From 7ef5f7267332d90b0071a1eaff979419662f2a8b Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 20 Aug 2026 22:54:36 +0000 Subject: [PATCH 1/2] Configurations: 'specification/cdn/resource-manager/Microsoft.Cdn/Cdn/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: '3341e9a7c51cfeb60ebd1cf2c4c77dfc960352b9' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6727892 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- eng/versioning/version_client.txt | 2 +- .../azure-resourcemanager-cdn/CHANGELOG.md | 664 +++++++- sdk/cdn/azure-resourcemanager-cdn/README.md | 2 +- sdk/cdn/azure-resourcemanager-cdn/pom.xml | 2 +- .../cdn/fluent/CdnManagementClient.java | 35 - .../cdn/fluent/DeploymentVersionsClient.java | 388 ----- .../cdn/fluent/KeyGroupsClient.java | 481 ------ .../cdn/fluent/KnowledgeSourcesClient.java | 558 ------- .../cdn/fluent/ProfileAgentsClient.java | 481 ------ .../cdn/fluent/RuleSetsClient.java | 112 +- .../cdn/fluent/WebAgentsClient.java | 455 ------ .../cdn/fluent/models/AfdOriginInner.java | 77 +- .../fluent/models/AfdOriginProperties.java | 103 +- .../AfdOriginUpdatePropertiesParameters.java | 105 +- ...ompareDeploymentVersionsResponseInner.java | 99 -- .../fluent/models/DeploymentVersionInner.java | 223 --- .../models/DeploymentVersionProperties.java | 193 --- .../DeploymentVersionUpdateProperties.java | 94 -- .../cdn/fluent/models/KeyGroupInner.java | 199 --- .../cdn/fluent/models/KeyGroupProperties.java | 135 -- .../fluent/models/KnowledgeSourceInner.java | 270 --- .../models/KnowledgeSourceProperties.java | 234 --- ...ledgeSourcePropertiesUpdateParameters.java | 157 -- .../models/PolicySettingsLogScrubbing.java | 131 -- .../cdn/fluent/models/ProfileAgentInner.java | 212 --- .../fluent/models/ProfileAgentProperties.java | 161 -- .../models/ProfileAgentUpdateProperties.java | 100 -- .../cdn/fluent/models/RouteInner.java | 26 - .../cdn/fluent/models/RouteProperties.java | 31 - .../RouteUpdatePropertiesParameters.java | 32 - .../cdn/fluent/models/RuleSetInner.java | 66 +- .../cdn/fluent/models/RuleSetProperties.java | 87 +- .../cdn/fluent/models/WebAgentInner.java | 271 --- .../cdn/fluent/models/WebAgentProperties.java | 195 --- .../WebAgentPropertiesUpdateParameters.java | 156 -- ...ebApplicationFirewallPolicyProperties.java | 268 --- .../CdnManagementClientImpl.java | 82 +- .../DeploymentVersionsClientImpl.java | 1032 ------------ .../implementation/KeyGroupsClientImpl.java | 1226 -------------- .../KnowledgeSourcesClientImpl.java | 1446 ----------------- .../ProfileAgentsClientImpl.java | 1226 -------------- .../implementation/RuleSetsClientImpl.java | 220 ++- .../implementation/WebAgentsClientImpl.java | 1278 --------------- .../models/DeploymentVersionListResult.java | 114 -- .../models/KeyGroupListResult.java | 112 -- .../models/KnowledgeSourceList.java | 114 -- .../models/ProfileAgentListResult.java | 112 -- .../implementation/models/WebAgentList.java | 112 -- .../cdn/models/ActionType.java | 15 - .../cdn/models/AfdDomainHttpsParameters.java | 64 + .../cdn/models/AfdOriginUpdateParameters.java | 76 +- .../cdn/models/AfdRouteGrpcState.java | 51 - .../cdn/models/AfdServerTlsGroup.java | 76 + .../cdn/models/AfdServerTlsGroupPolicy.java | 57 + .../resourcemanager/cdn/models/AgentPath.java | 133 -- .../cdn/models/AgentPathType.java | 51 - .../cdn/models/ApprovalStatus.java | 51 - .../cdn/models/BatchRuleProperties.java | 251 +++ .../CertificateNameCheckValidationMode.java | 58 + .../CompareDeploymentVersionsParameter.java | 103 -- .../cdn/models/CustomRuleAfd.java | 347 ---- .../cdn/models/CustomRuleListAfd.java | 98 -- .../cdn/models/DeploymentRolloutStatus.java | 61 - .../cdn/models/DeploymentStages.java | 97 -- .../DeploymentVersionAfdOriginChange.java | 135 -- ...DeploymentVersionAfdOriginGroupChange.java | 135 -- .../cdn/models/DeploymentVersionChange.java | 175 -- .../models/DeploymentVersionRouteChange.java | 132 -- .../models/DeploymentVersionRuleChange.java | 132 -- .../DeploymentVersionRuleSetChange.java | 132 -- ...DeploymentVersionSecurityPolicyChange.java | 134 -- .../cdn/models/DeploymentVersionUpdate.java | 110 -- .../cdn/models/FrontendEndpointLink.java | 81 - .../cdn/models/GroupByVariable.java | 101 -- .../KeyGroupUpdatePropertiesParameters.java | 100 -- .../KnowledgeSourceProvisioningState.java | 66 - .../cdn/models/KnowledgeSourceType.java | 56 - .../KnowledgeSourceUpdateFrequency.java | 61 - .../KnowledgeSourceUpdateParameters.java | 159 -- .../cdn/models/ManagedRuleExclusion.java | 174 -- .../ManagedRuleExclusionMatchVariable.java | 68 - ...gedRuleExclusionSelectorMatchOperator.java | 68 - .../models/ManagedRuleGroupOverrideAfd.java | 171 -- .../cdn/models/ManagedRuleOverrideAfd.java | 194 --- .../cdn/models/ManagedRuleSetActionType.java | 56 - .../cdn/models/ManagedRuleSetAfd.java | 231 --- .../cdn/models/ManagedRuleSetListAfd.java | 100 -- .../cdn/models/MatchConditionAfd.java | 257 --- .../OriginAuthenticationProperties.java | 36 + ...nAuthenticationTokenDestinationHeader.java | 54 + .../OriginCapacityResourceProperties.java | 180 -- .../cdn/models/PolicyRequestBodyCheck.java | 51 - .../cdn/models/PolicySettingsAfd.java | 381 ----- .../models/PreviewSupportedResourceType.java | 77 - .../cdn/models/ProbeProtocol.java | 7 +- .../models/ProfileAgentProvisioningState.java | 66 - .../models/ProfileAgentUpdateParameters.java | 111 -- .../cdn/models/RouteUpdateParameters.java | 25 - .../cdn/models/RoutingRuleLink.java | 81 - .../cdn/models/RuleSetsCreateHeaders.java | 52 - .../cdn/models/RuleSetsCreateResponse.java | 39 - .../resourcemanager/cdn/models/RuleType.java | 51 - .../ScrubbingRuleEntryMatchOperator.java | 5 - .../ScrubbingRuleEntryMatchVariable.java | 22 - .../cdn/models/SecurityPolicyLink.java | 81 - .../SecurityPolicyPropertiesParameters.java | 5 +- ...PolicyPropertiesWithEmbeddedWafPolicy.java | 139 -- .../cdn/models/SecurityPolicyType.java | 6 - ...licyWebApplicationFirewallAssociation.java | 32 + ...olicyWebApplicationFirewallParameters.java | 29 + ...rewallParametersWithEmbeddedWafPolicy.java | 157 -- .../resourcemanager/cdn/models/SkuName.java | 5 - .../cdn/models/VariableName.java | 56 - .../cdn/models/WebAgentProvisioningState.java | 66 - .../cdn/models/WebAgentUpdateParameters.java | 187 --- .../models/WebApplicationFirewallPolicy.java | 334 ---- .../WebApplicationFirewallScrubbingRules.java | 204 --- .../WebApplicationFirewallScrubbingState.java | 52 - .../azure-resourcemanager-cdn_metadata.json | 2 +- .../proxy-config.json | 2 +- .../AfdCustomDomainsCreateSamples.java | 43 +- .../AfdCustomDomainsDeleteSamples.java | 2 +- .../generated/AfdCustomDomainsGetSamples.java | 2 +- .../AfdCustomDomainsListByProfileSamples.java | 2 +- ...mDomainsRefreshValidationTokenSamples.java | 2 +- .../AfdCustomDomainsUpdateSamples.java | 39 +- .../generated/AfdEndpointsCreateSamples.java | 4 +- .../generated/AfdEndpointsDeleteSamples.java | 2 +- .../cdn/generated/AfdEndpointsGetSamples.java | 2 +- .../AfdEndpointsListByProfileSamples.java | 2 +- .../AfdEndpointsListResourceUsageSamples.java | 2 +- .../AfdEndpointsPurgeContentSamples.java | 2 +- .../generated/AfdEndpointsUpdateSamples.java | 7 +- ...dEndpointsValidateCustomDomainSamples.java | 2 +- .../AfdOriginGroupsCreateSamples.java | 2 +- .../AfdOriginGroupsDeleteSamples.java | 2 +- .../generated/AfdOriginGroupsGetSamples.java | 2 +- .../AfdOriginGroupsListByProfileSamples.java | 2 +- ...dOriginGroupsListResourceUsageSamples.java | 2 +- .../AfdOriginGroupsUpdateSamples.java | 2 +- .../generated/AfdOriginsCreateSamples.java | 77 +- .../generated/AfdOriginsDeleteSamples.java | 2 +- .../cdn/generated/AfdOriginsGetSamples.java | 2 +- .../AfdOriginsListByOriginGroupSamples.java | 2 +- .../generated/AfdOriginsUpdateSamples.java | 55 +- ...sCheckEndpointNameAvailabilitySamples.java | 2 +- ...filesCheckHostnameAvailabilitySamples.java | 2 +- .../AfdProfilesListResourceUsageSamples.java | 2 +- .../generated/AfdProfilesUpgradeSamples.java | 2 +- .../AfdProfilesValidateSecretSamples.java | 2 +- .../generated/CustomDomainsCreateSamples.java | 2 +- .../generated/CustomDomainsDeleteSamples.java | 2 +- ...ustomDomainsDisableCustomHttpsSamples.java | 2 +- ...CustomDomainsEnableCustomHttpsSamples.java | 4 +- .../generated/CustomDomainsGetSamples.java | 2 +- .../CustomDomainsListByEndpointSamples.java | 2 +- .../DeploymentVersionsApproveSamples.java | 24 - .../DeploymentVersionsCompareSamples.java | 28 - .../DeploymentVersionsGetSamples.java | 24 - ...eploymentVersionsListByProfileSamples.java | 24 - .../DeploymentVersionsUpdateSamples.java | 27 - .../cdn/generated/EdgeNodesListSamples.java | 2 +- .../cdn/generated/EndpointsCreateSamples.java | 2 +- .../cdn/generated/EndpointsDeleteSamples.java | 2 +- .../cdn/generated/EndpointsGetSamples.java | 2 +- .../EndpointsListByProfileSamples.java | 2 +- .../EndpointsListResourceUsageSamples.java | 2 +- .../EndpointsLoadContentSamples.java | 2 +- .../EndpointsPurgeContentSamples.java | 2 +- .../cdn/generated/EndpointsStartSamples.java | 2 +- .../cdn/generated/EndpointsStopSamples.java | 2 +- .../cdn/generated/EndpointsUpdateSamples.java | 2 +- .../EndpointsValidateCustomDomainSamples.java | 2 +- .../KeyGroupsCreateUpdateSamples.java | 35 - .../cdn/generated/KeyGroupsDeleteSamples.java | 22 - .../cdn/generated/KeyGroupsGetSamples.java | 24 - .../KeyGroupsListByProfileSamples.java | 22 - .../cdn/generated/KeyGroupsUpdateSamples.java | 35 - ...KnowledgeSourcesCreateOrUpdateSamples.java | 33 - .../KnowledgeSourcesDeleteSamples.java | 24 - .../generated/KnowledgeSourcesGetSamples.java | 24 - ...KnowledgeSourcesListByWebAgentSamples.java | 24 - .../KnowledgeSourcesPurgeSamples.java | 24 - .../KnowledgeSourcesUpdateSamples.java | 32 - ...lyticsGetLogAnalyticsLocationsSamples.java | 2 +- ...nalyticsGetLogAnalyticsMetricsSamples.java | 2 +- ...alyticsGetLogAnalyticsRankingsSamples.java | 2 +- ...lyticsGetLogAnalyticsResourcesSamples.java | 2 +- ...yticsGetWafLogAnalyticsMetricsSamples.java | 2 +- ...ticsGetWafLogAnalyticsRankingsSamples.java | 2 +- .../generated/ManagedRuleSetsListSamples.java | 2 +- .../cdn/generated/OperationsListSamples.java | 2 +- .../generated/OriginGroupsCreateSamples.java | 2 +- .../generated/OriginGroupsDeleteSamples.java | 2 +- .../cdn/generated/OriginGroupsGetSamples.java | 2 +- .../OriginGroupsListByEndpointSamples.java | 2 +- .../generated/OriginGroupsUpdateSamples.java | 2 +- .../cdn/generated/OriginsCreateSamples.java | 2 +- .../cdn/generated/OriginsDeleteSamples.java | 2 +- .../cdn/generated/OriginsGetSamples.java | 2 +- .../OriginsListByEndpointSamples.java | 2 +- .../cdn/generated/OriginsUpdateSamples.java | 2 +- .../PoliciesCreateOrUpdateSamples.java | 2 +- .../cdn/generated/PoliciesDeleteSamples.java | 2 +- .../PoliciesGetByResourceGroupSamples.java | 2 +- .../PoliciesListByResourceGroupSamples.java | 2 +- .../cdn/generated/PoliciesUpdateSamples.java | 2 +- .../ProfileAgentsCreateOrUpdateSamples.java | 33 - .../generated/ProfileAgentsDeleteSamples.java | 22 - .../generated/ProfileAgentsGetSamples.java | 24 - .../ProfileAgentsListByProfileSamples.java | 22 - .../generated/ProfileAgentsUpdateSamples.java | 31 - .../generated/ProfilesCanMigrateSamples.java | 2 +- .../ProfilesCdnCanMigrateToAfdSamples.java | 2 +- .../ProfilesCdnMigrateToAfdSamples.java | 2 +- .../cdn/generated/ProfilesCreateSamples.java | 2 +- .../cdn/generated/ProfilesDeleteSamples.java | 2 +- .../ProfilesGenerateSsoUriSamples.java | 2 +- .../ProfilesGetByResourceGroupSamples.java | 2 +- .../ProfilesListByResourceGroupSamples.java | 2 +- .../ProfilesListResourceUsageSamples.java | 2 +- .../cdn/generated/ProfilesListSamples.java | 2 +- ...ListSupportedOptimizationTypesSamples.java | 2 +- .../cdn/generated/ProfilesMigrateSamples.java | 2 +- .../ProfilesMigrationAbortSamples.java | 2 +- .../ProfilesMigrationCommitSamples.java | 2 +- .../cdn/generated/ProfilesUpdateSamples.java | 2 +- .../generated/ResourceUsageListSamples.java | 2 +- .../cdn/generated/RoutesCreateSamples.java | 6 +- .../cdn/generated/RoutesDeleteSamples.java | 2 +- .../cdn/generated/RoutesGetSamples.java | 2 +- .../RoutesListByEndpointSamples.java | 2 +- .../cdn/generated/RoutesUpdateSamples.java | 6 +- .../cdn/generated/RuleSetsCreateSamples.java | 4 +- .../cdn/generated/RuleSetsDeleteSamples.java | 2 +- .../cdn/generated/RuleSetsGetSamples.java | 2 +- .../RuleSetsListByProfileSamples.java | 2 +- .../RuleSetsListResourceUsageSamples.java | 2 +- .../cdn/generated/RulesCreateSamples.java | 38 +- .../cdn/generated/RulesDeleteSamples.java | 2 +- .../cdn/generated/RulesGetSamples.java | 2 +- .../generated/RulesListByRuleSetSamples.java | 2 +- .../cdn/generated/RulesUpdateSamples.java | 2 +- .../cdn/generated/SecretsCreateSamples.java | 22 +- .../cdn/generated/SecretsDeleteSamples.java | 2 +- .../cdn/generated/SecretsGetSamples.java | 2 +- .../SecretsListByProfileSamples.java | 2 +- .../SecurityPoliciesCreateSamples.java | 2 +- .../SecurityPoliciesDeleteSamples.java | 2 +- .../generated/SecurityPoliciesGetSamples.java | 2 +- .../SecurityPoliciesListByProfileSamples.java | 2 +- .../SecurityPoliciesPatchSamples.java | 2 +- .../WebAgentsCreateOrUpdateSamples.java | 50 - .../cdn/generated/WebAgentsDeleteSamples.java | 22 - .../WebAgentsGetByResourceGroupSamples.java | 24 - .../WebAgentsListByResourceGroupSamples.java | 22 - .../cdn/generated/WebAgentsListSamples.java | 22 - .../cdn/generated/WebAgentsUpdateSamples.java | 50 - .../tsp-location.yaml | 2 +- 259 files changed, 2292 insertions(+), 20052 deletions(-) delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/DeploymentVersionsClient.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/KeyGroupsClient.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/KnowledgeSourcesClient.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/ProfileAgentsClient.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/WebAgentsClient.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/CompareDeploymentVersionsResponseInner.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionInner.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionProperties.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionUpdateProperties.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupInner.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupProperties.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceInner.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceProperties.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourcePropertiesUpdateParameters.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/PolicySettingsLogScrubbing.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentInner.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentProperties.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentUpdateProperties.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentInner.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentProperties.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentPropertiesUpdateParameters.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebApplicationFirewallPolicyProperties.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/DeploymentVersionsClientImpl.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/KeyGroupsClientImpl.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/KnowledgeSourcesClientImpl.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/ProfileAgentsClientImpl.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/WebAgentsClientImpl.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/DeploymentVersionListResult.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/KeyGroupListResult.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/KnowledgeSourceList.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/ProfileAgentListResult.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/WebAgentList.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdRouteGrpcState.java create mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroup.java create mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroupPolicy.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AgentPath.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AgentPathType.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ApprovalStatus.java create mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/BatchRuleProperties.java create mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CertificateNameCheckValidationMode.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CompareDeploymentVersionsParameter.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleAfd.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleListAfd.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentRolloutStatus.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentStages.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginChange.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginGroupChange.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionChange.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRouteChange.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleChange.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleSetChange.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionSecurityPolicyChange.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionUpdate.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/FrontendEndpointLink.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/GroupByVariable.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KeyGroupUpdatePropertiesParameters.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceProvisioningState.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceType.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateFrequency.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateParameters.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusion.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionMatchVariable.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionSelectorMatchOperator.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleGroupOverrideAfd.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleOverrideAfd.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetActionType.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetAfd.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetListAfd.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/MatchConditionAfd.java create mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationTokenDestinationHeader.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/OriginCapacityResourceProperties.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PolicyRequestBodyCheck.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PolicySettingsAfd.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PreviewSupportedResourceType.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentProvisioningState.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentUpdateParameters.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RoutingRuleLink.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateHeaders.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateResponse.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleType.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyLink.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesWithEmbeddedWafPolicy.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/VariableName.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebAgentProvisioningState.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebAgentUpdateParameters.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallPolicy.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingRules.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingState.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsApproveSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsCompareSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsGetSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsListByProfileSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsUpdateSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsCreateUpdateSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsDeleteSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsGetSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsListByProfileSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsUpdateSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesCreateOrUpdateSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesDeleteSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesGetSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesListByWebAgentSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesPurgeSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesUpdateSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsCreateOrUpdateSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsDeleteSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsGetSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsListByProfileSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsUpdateSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsCreateOrUpdateSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsDeleteSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsGetByResourceGroupSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsListByResourceGroupSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsListSamples.java delete mode 100644 sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsUpdateSamples.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index cc414ec1ecd3..146a5d24f760 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -279,7 +279,7 @@ com.azure.resourcemanager:azure-resourcemanager;2.63.0;2.64.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-appplatform;2.51.0;2.52.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-appservice;2.56.0;2.57.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-authorization;2.53.11;2.54.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.9;2.54.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.9;2.54.0 com.azure.resourcemanager:azure-resourcemanager-compute;2.60.0;2.61.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.12;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.55.3;2.56.0-beta.3 diff --git a/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md b/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md index 3790c157104a..d12610e821b6 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md +++ b/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md @@ -1,16 +1,668 @@ # Release History -## 2.54.0-beta.1 (Unreleased) +## 2.54.0 (2026-08-20) + +- Package api-version 2026-07-01. + +### Breaking Changes + +#### `models.RuleListResult` was removed + +#### `models.UsagesListResult` was removed + +#### `models.SecurityPolicyListResult` was removed + +#### `models.OperationsListResult` was removed + +#### `models.RuleSetListResult` was removed + +#### `models.CdnWebApplicationFirewallPolicyList` was removed + +#### `models.ManagedRuleSetDefinitionList` was removed + +#### `models.AfdDomainListResult` was removed + +#### `models.ResourceUsageListResult` was removed + +#### `models.AfdEndpointListResult` was removed + +#### `models.RouteListResult` was removed + +#### `models.AfdOriginGroupListResult` was removed + +#### `models.OriginGroupListResult` was removed + +#### `models.EndpointListResult` was removed + +#### `models.ProfileListResult` was removed + +#### `models.EdgenodeResult` was removed + +#### `models.SecretListResult` was removed + +#### `models.OriginListResult` was removed + +#### `models.AfdOriginListResult` was removed + +#### `models.CustomDomainListResult` was removed + +#### `models.DeepCreatedCustomDomain` was modified + +* `DeepCreatedCustomDomain()` was changed to private access +* `withHostname(java.lang.String)` was removed +* `withValidationData(java.lang.String)` was removed +* `withName(java.lang.String)` was removed + +#### `models.RequestSchemeMatchConditionParameters` was modified + +* `withOperator(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.RequestUriMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.WafMetricsResponseSeriesItem` was modified + +* `WafMetricsResponseSeriesItem()` was changed to private access +* `withUnit(models.WafMetricsSeriesUnit)` was removed +* `withData(java.util.List)` was removed +* `withMetric(java.lang.String)` was removed +* `withGroups(java.util.List)` was removed + +#### `models.RankingsResponseTablesPropertiesItemsItem` was modified + +* `RankingsResponseTablesPropertiesItemsItem()` was changed to private access +* `withMetrics(java.util.List)` was removed +* `withName(java.lang.String)` was removed + +#### `models.EndpointResource` was modified + +* `EndpointResource()` was changed to private access +* `withId(java.lang.String)` was removed + +#### `models.KeyVaultCertificateSourceParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.CertificateSourceParametersType typeName()` + +#### `models.KeyVaultSigningKeyParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.KeyVaultSigningKeyParametersType typeName()` + +#### `models.MetricsResponseSeriesItem` was modified + +* `MetricsResponseSeriesItem()` was changed to private access +* `withGroups(java.util.List)` was removed +* `withData(java.util.List)` was removed +* `withUnit(models.MetricsSeriesUnit)` was removed +* `withMetric(java.lang.String)` was removed + +#### `models.IpAddressGroup` was modified + +* `IpAddressGroup()` was changed to private access +* `withIpv4Addresses(java.util.List)` was removed +* `withDeliveryRegion(java.lang.String)` was removed +* `withIpv6Addresses(java.util.List)` was removed + +#### `models.RequestMethodMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.RankingsResponseTablesItem` was modified + +* `RankingsResponseTablesItem()` was changed to private access +* `withRanking(java.lang.String)` was removed +* `withData(java.util.List)` was removed + +#### `models.RankingsResponseTablesPropertiesItemsMetricsItem` was modified + +* `RankingsResponseTablesPropertiesItemsMetricsItem()` was changed to private access +* `withMetric(java.lang.String)` was removed +* `withPercentage(java.lang.Float)` was removed +* `withValue(java.lang.Long)` was removed + +#### `models.UrlFileNameMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.RouteConfigurationOverrideActionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` + +#### `models.ContinentsResponseCountryOrRegionsItem` was modified + +* `ContinentsResponseCountryOrRegionsItem()` was changed to private access +* `withContinentId(java.lang.String)` was removed +* `withId(java.lang.String)` was removed + +#### `models.UrlRedirectActionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.SslProtocolMatchConditionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` + +#### `models.RequestHeaderMatchConditionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` + +#### `models.CacheKeyQueryStringActionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` + +#### `models.HttpVersionMatchConditionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` + +#### `models.MetricsResponseSeriesPropertiesItemsItem` was modified + +* `MetricsResponseSeriesPropertiesItemsItem()` was changed to private access +* `withName(java.lang.String)` was removed +* `withValue(java.lang.String)` was removed + +#### `models.UsageName` was modified + +* `UsageName()` was changed to private access +* `withValue(java.lang.String)` was removed +* `withLocalizedValue(java.lang.String)` was removed + +#### `models.PolicySettingsDefaultCustomBlockResponseStatusCode` was modified + +* `PolicySettingsDefaultCustomBlockResponseStatusCode()` was removed +* `fromInt(int)` was removed + +#### `models.ResourcesResponseCustomDomainsItem` was modified + +* `ResourcesResponseCustomDomainsItem()` was changed to private access +* `withEndpointId(java.lang.String)` was removed +* `withId(java.lang.String)` was removed +* `withName(java.lang.String)` was removed +* `withHistory(java.lang.Boolean)` was removed + +#### `models.CookiesMatchConditionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` + +#### `models.MigrationErrorType` was modified + +* `MigrationErrorType()` was changed to private access + +#### `models.IsDeviceMatchConditionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` + +#### `models.ManagedRuleGroupDefinition` was modified + +* `ManagedRuleGroupDefinition()` was changed to private access + +#### `models.UrlPathMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.HostnameMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.ResourcesResponseEndpointsItem` was modified + +* `ResourcesResponseEndpointsItem()` was changed to private access +* `withHistory(java.lang.Boolean)` was removed +* `withName(java.lang.String)` was removed +* `withId(java.lang.String)` was removed +* `withCustomDomains(java.util.List)` was removed + +#### `models.MetricsResponseSeriesItemData` was modified + +* `MetricsResponseSeriesItemData()` was changed to private access +* `withDateTime(java.time.OffsetDateTime)` was removed +* `withValue(java.lang.Float)` was removed + +#### `models.QueryStringMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.WafMetricsResponseSeriesPropertiesItemsItem` was modified + +* `WafMetricsResponseSeriesPropertiesItemsItem()` was changed to private access +* `withValue(java.lang.String)` was removed +* `withName(java.lang.String)` was removed + +#### `models.ContinentsResponseContinentsItem` was modified + +* `ContinentsResponseContinentsItem()` was changed to private access +* `withId(java.lang.String)` was removed + +#### `models.HeaderActionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` + +#### `models.SocketAddrMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.LogSpecification` was modified + +* `LogSpecification()` was changed to private access +* `withDisplayName(java.lang.String)` was removed +* `withName(java.lang.String)` was removed +* `withLogFilterPattern(java.lang.String)` was removed +* `withBlobDuration(java.lang.String)` was removed + +#### `models.RemoteAddressMatchConditionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` + +#### `models.WafMetricsResponseSeriesItemData` was modified + +* `WafMetricsResponseSeriesItemData()` was changed to private access +* `withDateTime(java.time.OffsetDateTime)` was removed +* `withValue(java.lang.Float)` was removed + +#### `models.MetricAvailability` was modified + +* `MetricAvailability()` was changed to private access +* `withBlobDuration(java.lang.String)` was removed +* `withTimeGrain(java.lang.String)` was removed + +#### `models.WafRankingsResponseDataItemMetric` was modified + +* `WafRankingsResponseDataItemMetric()` was changed to private access +* `withValue(java.lang.Long)` was removed +* `withMetric(java.lang.String)` was removed +* `withPercentage(java.lang.Double)` was removed + +#### `models.DimensionProperties` was modified + +* `DimensionProperties()` was changed to private access +* `withInternalName(java.lang.String)` was removed +* `withName(java.lang.String)` was removed +* `withDisplayName(java.lang.String)` was removed + +#### `models.ServiceSpecification` was modified + +* `ServiceSpecification()` was changed to private access +* `withMetricSpecifications(java.util.List)` was removed +* `withLogSpecifications(java.util.List)` was removed + +#### `models.WafRankingsResponseDataItem` was modified + +* `WafRankingsResponseDataItem()` was changed to private access +* `withGroupValues(java.util.List)` was removed +* `withMetrics(java.util.List)` was removed + +#### `models.CustomerCertificateParameters` was modified + +* `withSubjectAlternativeNames(java.util.List)` was removed + +#### `models.ClientPortMatchConditionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` + +#### `models.ServerPortMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.DomainValidationProperties` was modified + +* `DomainValidationProperties()` was changed to private access + +#### `models.OperationDisplay` was modified + +* `OperationDisplay()` was changed to private access + +#### `models.UrlFileExtensionMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.MetricSpecification` was modified + +* `MetricSpecification()` was changed to private access +* `withUnit(java.lang.String)` was removed +* `withDimensions(java.util.List)` was removed +* `withDisplayDescription(java.lang.String)` was removed +* `withAvailabilities(java.util.List)` was removed +* `withAggregationType(java.lang.String)` was removed +* `withName(java.lang.String)` was removed +* `withFillGapWithZero(java.lang.Boolean)` was removed +* `withMetricFilterPattern(java.lang.String)` was removed +* `withSupportedTimeGrainTypes(java.util.List)` was removed +* `withIsInternal(java.lang.Boolean)` was removed +* `withDisplayName(java.lang.String)` was removed + +#### `models.CacheExpirationActionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.UrlRewriteActionParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` + +#### `models.OriginGroupOverrideActionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.UrlSigningActionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.ManagedRuleDefinition` was modified + +* `ManagedRuleDefinition()` was changed to private access + +#### `models.ResourcesResponseEndpointsPropertiesItemsItem` was modified + +* `ResourcesResponseEndpointsPropertiesItemsItem()` was changed to private access +* `withEndpointId(java.lang.String)` was removed +* `withName(java.lang.String)` was removed +* `withId(java.lang.String)` was removed +* `withHistory(java.lang.Boolean)` was removed + +#### `models.RequestBodyMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.PostArgsMatchConditionParameters` was modified + +* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` +* `withTypeName(java.lang.String)` was removed + +#### `models.CdnCertificateSourceParameters` was modified + +* `withTypeName(java.lang.String)` was removed +* `java.lang.String typeName()` -> `models.CertificateSourceParametersType typeName()` + +#### `models.CidrIpAddress` was modified + +* `CidrIpAddress()` was changed to private access +* `withPrefixLength(java.lang.Integer)` was removed +* `withBaseIpAddress(java.lang.String)` was removed ### Features Added -- Supported `defineAfdEndpoint`, `defineOriginGroup`, `defineRuleSet` method in `CdnProfile` for Azure Front Door Standard/Premium Sku. +* `models.EnforceMtlsEnabledState` was added -### Breaking Changes +* `models.DeliveryRuleConditionParametersType` was added + +* `models.DeliveryRuleConditionParameters` was added + +* `models.Route$UpdateDefinitionStages` was added + +* `models.DeliveryRuleEdgeActionParameters` was added + +* `models.CertificateRevocationCheckEnabledState` was added + +* `models.Route$DefinitionStages` was added + +* `models.Route$Definition` was added + +* `models.Rule$Update` was added + +* `models.Rule$UpdateDefinitionStages$WithOrder` was added + +* `models.AfdCipherSuiteSetType` was added + +* `models.ClientCertificateRequiredAndValidatedAdvancedSettings` was added + +* `models.OriginAuthenticationType` was added + +* `models.OriginGroup$Update` was added + +* `models.Origin$UpdateDefinitionStages$Blank` was added + +* `models.AfdDomainMtlsParameters` was added + +* `models.OriginAuthenticationTokenDestinationHeader` was added + +* `models.Route$UpdateDefinitionStages$WithAttach` was added + +* `models.AfdEndpoint$UpdateDefinitionStages$WithAttach` was added + +* `models.ClientCertificateValidatedIfPresentedAdvancedSettings` was added + +* `models.OriginGroup$UpdateDefinitionStages$Blank` was added + +* `models.RuleSet$UpdateDefinitionStages$WithAttach` was added + +* `models.Origin` was added + +* `models.Route` was added + +* `models.CertificateNameCheckValidationMode` was added + +* `models.RuleSet$UpdateDefinitionStages$Blank` was added + +* `models.Origin$UpdateDefinitionStages$WithAttach` was added + +* `models.OriginGroup$UpdateDefinitionStages$WithAttach` was added + +* `models.CompleteMtlsPassthroughToOriginAdvancedSettings` was added + +* `models.DeliveryRuleActionParametersType` was added + +* `models.CdnMigrationToAfdParameters` was added + +* `models.AfdDomainHttpsCustomizedCipherSuiteSet` was added + +* `models.AfdSecretMtlsCertificateChain` was added + +* `models.MigrationEndpointMapping` was added + +* `models.ClientCertificateRequiredAndOriginValidatesAdvancedSettings` was added + +* `models.AfdEndpoint` was added + +* `models.DeliveryRuleActionParameters` was added + +* `models.RuleSet$Definition` was added + +* `models.Origin$UpdateDefinitionStages$WithHostname` was added + +* `models.RuleSet$Update` was added + +* `models.OriginGroup$UpdateDefinitionStages` was added + +* `models.Rule$UpdateDefinitionStages$WithAttach` was added + +* `models.AfdEndpoint$UpdateDefinitionStages` was added + +* `models.AfdEndpoint$UpdateDefinitionStages$Attachable` was added + +* `models.Origin$UpdateDefinitionStages$Attachable` was added + +* `models.Rule$UpdateDefinitionStages$Blank` was added + +* `models.AfdUrlSigningActionParameters` was added + +* `models.CertificateSourceParameters` was added + +* `models.AfdServerTlsGroupPolicy` was added + +* `models.RuleSet` was added + +* `models.Usage` was added + +* `models.AfdEndpoint$Definition` was added + +* `models.Rule$UpdateDefinitionStages` was added + +* `models.Rule` was added + +* `models.Origin$DefinitionStages` was added + +* `models.OriginGroup$DefinitionStages` was added + +* `models.Route$UpdateDefinitionStages$Attachable` was added + +* `models.EdgeAction` was added + +* `models.Origin$Update` was added + +* `models.Rule$DefinitionStages` was added + +* `models.OriginGroup` was added + +* `models.RuleSet$DefinitionStages` was added + +* `models.BatchRuleProperties` was added + +* `models.OriginAuthenticationProperties` was added + +* `models.Origin$Definition` was added + +* `models.InvocationPoint` was added + +* `models.AfdCustomizedCipherSuiteForTls12` was added + +* `models.AfdCustomizedCipherSuiteForTls13` was added + +* `models.Rule$Definition` was added + +* `models.Route$UpdateDefinitionStages$WithOriginGroup` was added + +* `models.AfdServerTlsGroup` was added + +* `models.AfdUrlSigningAction` was added + +* `models.CertificateSourceParametersType` was added + +* `models.KeyVaultSigningKeyParametersType` was added + +* `models.Route$Update` was added + +* `models.RuleSet$UpdateDefinitionStages$Attachable` was added + +* `models.Origin$UpdateDefinitionStages` was added + +* `models.AfdEndpoint$Update` was added + +* `models.OriginGroup$UpdateDefinitionStages$Attachable` was added + +* `models.RuleSet$UpdateDefinitionStages` was added + +* `models.OriginGroup$Definition` was added + +* `models.Rule$UpdateDefinitionStages$WithActions` was added + +* `models.Rule$UpdateDefinitionStages$Attachable` was added + +* `models.MtlsScenarioType` was added + +* `models.AfdEndpoint$DefinitionStages` was added + +* `models.AfdEndpoint$UpdateDefinitionStages$Blank` was added + +* `models.TypeName` was added + +* `models.Route$UpdateDefinitionStages$Blank` was added + +#### `models.CdnProfile` was modified + +* `ruleSets()` was added +* `afdEndpoints()` was added +* `originGroups()` was added + +#### `models.CdnProfile$Definition` was modified + +* `withGlobal()` was added + +#### `models.KeyVaultSigningKeyParameters` was modified + +* `withTypeName(models.KeyVaultSigningKeyParametersType)` was added + +#### `models.AfdOriginGroupUpdateParameters` was modified + +* `withAuthentication(models.OriginAuthenticationProperties)` was added +* `authentication()` was added + +#### `models.PolicySettingsDefaultCustomBlockResponseStatusCode` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `hashCode()` was added +* `fromValue(java.lang.Integer)` was added +* `equals(java.lang.Object)` was added +* `getValue()` was added +* `toString()` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.AfdMinimumTlsVersion` was modified + +* `TLS13` was added + +#### `models.SecurityPolicyWebApplicationFirewallAssociation` was modified + +* `withRoutes(java.util.List)` was added +* `routes()` was added + +#### `models.AfdOriginUpdateParameters` was modified + +* `withCustomCertificateSubjects(java.util.List)` was added +* `certificateNameCheckValidationMode()` was added +* `customCertificateSubjects()` was added +* `withCertificateNameCheckValidationMode(models.CertificateNameCheckValidationMode)` was added + +#### `models.AfdDomainHttpsParameters` was modified + +* `cipherSuiteSetType()` was added +* `withServerTlsGroups(java.util.List)` was added +* `serverTlsGroupPolicy()` was added +* `withCustomizedCipherSuiteSet(models.AfdDomainHttpsCustomizedCipherSuiteSet)` was added +* `serverTlsGroups()` was added +* `customizedCipherSuiteSet()` was added +* `withCipherSuiteSetType(models.AfdCipherSuiteSetType)` was added +* `withServerTlsGroupPolicy(models.AfdServerTlsGroupPolicy)` was added + +#### `models.AfdEndpointUpdateParameters` was modified + +* `withEnforceMtls(models.EnforceMtlsEnabledState)` was added +* `enforceMtls()` was added + +#### `models.AfdDomainUpdateParameters` was modified + +* `mtlsSettings()` was added +* `withMtlsSettings(models.AfdDomainMtlsParameters)` was added + +#### `models.SecretType` was modified + +* `MTLS_CERTIFICATE_CHAIN` was added + +#### `models.SecurityPolicyWebApplicationFirewallParameters` was modified + +* `isProfileLevel()` was added +* `withIsProfileLevel(java.lang.Boolean)` was added + +#### `models.DeliveryRuleActionValue` was modified -- Changed `typeName()` return type from `String` to enum types (`DeliveryRuleActionParametersType`, `DeliveryRuleConditionParametersType`, `CertificateSourceParametersType`, `KeyVaultSigningKeyParametersType`) in condition/action parameter classes. -- Changed `withTypeName(String)` parameter type to corresponding enum type in condition/action parameter classes. -- Removed `fromInt(int)` method from `PolicySettingsDefaultCustomBlockResponseStatusCode` class. Use `fromValue(Integer)` instead. +* `AFD_URL_SIGNING` was added +* `EDGE_ACTION` was added ## 2.53.9 (2026-07-01) diff --git a/sdk/cdn/azure-resourcemanager-cdn/README.md b/sdk/cdn/azure-resourcemanager-cdn/README.md index a79bdb94e720..3880c2bdce4e 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/README.md +++ b/sdk/cdn/azure-resourcemanager-cdn/README.md @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra com.azure.resourcemanager azure-resourcemanager-cdn - 2.54.0-beta.1 + 2.54.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/cdn/azure-resourcemanager-cdn/pom.xml b/sdk/cdn/azure-resourcemanager-cdn/pom.xml index 6f0a3b70faea..12744102e9b6 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/pom.xml +++ b/sdk/cdn/azure-resourcemanager-cdn/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-cdn - 2.54.0-beta.1 + 2.54.0 jar Microsoft Azure SDK for CDN Management diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/CdnManagementClient.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/CdnManagementClient.java index 794795972124..9e7f23a5a52c 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/CdnManagementClient.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/CdnManagementClient.java @@ -127,20 +127,6 @@ public interface CdnManagementClient { */ SecretsClient getSecrets(); - /** - * Gets the KeyGroupsClient object to access its operations. - * - * @return the KeyGroupsClient object. - */ - KeyGroupsClient getKeyGroups(); - - /** - * Gets the DeploymentVersionsClient object to access its operations. - * - * @return the DeploymentVersionsClient object. - */ - DeploymentVersionsClient getDeploymentVersions(); - /** * Gets the EndpointsClient object to access its operations. * @@ -169,27 +155,6 @@ public interface CdnManagementClient { */ CustomDomainsClient getCustomDomains(); - /** - * Gets the ProfileAgentsClient object to access its operations. - * - * @return the ProfileAgentsClient object. - */ - ProfileAgentsClient getProfileAgents(); - - /** - * Gets the WebAgentsClient object to access its operations. - * - * @return the WebAgentsClient object. - */ - WebAgentsClient getWebAgents(); - - /** - * Gets the KnowledgeSourcesClient object to access its operations. - * - * @return the KnowledgeSourcesClient object. - */ - KnowledgeSourcesClient getKnowledgeSources(); - /** * Gets the AfdCustomDomainsClient object to access its operations. * diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/DeploymentVersionsClient.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/DeploymentVersionsClient.java deleted file mode 100644 index 8003dd207756..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/DeploymentVersionsClient.java +++ /dev/null @@ -1,388 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.CompareDeploymentVersionsResponseInner; -import com.azure.resourcemanager.cdn.fluent.models.DeploymentVersionInner; -import com.azure.resourcemanager.cdn.models.CompareDeploymentVersionsParameter; -import com.azure.resourcemanager.cdn.models.DeploymentVersionUpdate; -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 DeploymentVersionsClient. - */ -public interface DeploymentVersionsClient { - /** - * Get an existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String profileName, - String versionName); - - /** - * Get an existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String profileName, String versionName); - - /** - * Get an existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String profileName, String versionName, - Context context); - - /** - * Get an existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DeploymentVersionInner get(String resourceGroupName, String profileName, String versionName); - - /** - * Update an existing DeploymentVersion within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param deploymentVersionUpdateProperties Deployment version properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return deployment version object along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> updateWithResponseAsync(String resourceGroupName, String profileName, - String versionName, DeploymentVersionUpdate deploymentVersionUpdateProperties); - - /** - * Update an existing DeploymentVersion within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param deploymentVersionUpdateProperties Deployment version properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return deployment version object on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateAsync(String resourceGroupName, String profileName, String versionName, - DeploymentVersionUpdate deploymentVersionUpdateProperties); - - /** - * Update an existing DeploymentVersion within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param deploymentVersionUpdateProperties Deployment version properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return deployment version object along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(String resourceGroupName, String profileName, - String versionName, DeploymentVersionUpdate deploymentVersionUpdateProperties, Context context); - - /** - * Update an existing DeploymentVersion within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param deploymentVersionUpdateProperties Deployment version properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return deployment version object. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DeploymentVersionInner update(String resourceGroupName, String profileName, String versionName, - DeploymentVersionUpdate deploymentVersionUpdateProperties); - - /** - * Lists existing deployment versions by profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 DeploymentVersion list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByProfileAsync(String resourceGroupName, String profileName); - - /** - * Lists existing deployment versions by profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 DeploymentVersion list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByProfile(String resourceGroupName, String profileName); - - /** - * Lists existing deployment versions by profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a DeploymentVersion list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByProfile(String resourceGroupName, String profileName, Context context); - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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>> approveWithResponseAsync(String resourceGroupName, String profileName, - String versionName); - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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> beginApproveAsync(String resourceGroupName, String profileName, - String versionName); - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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> beginApprove(String resourceGroupName, String profileName, String versionName); - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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> beginApprove(String resourceGroupName, String profileName, String versionName, - Context context); - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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 approveAsync(String resourceGroupName, String profileName, String versionName); - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 approve(String resourceGroupName, String profileName, String versionName); - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 approve(String resourceGroupName, String profileName, String versionName, Context context); - - /** - * Compare the deployment version to another deployment version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param compareDeploymentVersionsParameter The deployment version to be compared to. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compare deployment versions response along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> compareWithResponseAsync(String resourceGroupName, - String profileName, String versionName, CompareDeploymentVersionsParameter compareDeploymentVersionsParameter); - - /** - * Compare the deployment version to another deployment version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param compareDeploymentVersionsParameter The deployment version to be compared to. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compare deployment versions response on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono compareAsync(String resourceGroupName, String profileName, - String versionName, CompareDeploymentVersionsParameter compareDeploymentVersionsParameter); - - /** - * Compare the deployment version to another deployment version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param compareDeploymentVersionsParameter The deployment version to be compared to. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compare deployment versions response along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response compareWithResponse(String resourceGroupName, String profileName, - String versionName, CompareDeploymentVersionsParameter compareDeploymentVersionsParameter, Context context); - - /** - * Compare the deployment version to another deployment version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param compareDeploymentVersionsParameter The deployment version to be compared to. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compare deployment versions response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CompareDeploymentVersionsResponseInner compare(String resourceGroupName, String profileName, String versionName, - CompareDeploymentVersionsParameter compareDeploymentVersionsParameter); -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/KeyGroupsClient.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/KeyGroupsClient.java deleted file mode 100644 index f596203508b4..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/KeyGroupsClient.java +++ /dev/null @@ -1,481 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.KeyGroupInner; -import com.azure.resourcemanager.cdn.models.KeyGroupUpdatePropertiesParameters; -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 KeyGroupsClient. - */ -public interface KeyGroupsClient { - /** - * Gets an existing KeyGroup within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 existing KeyGroup within a profile along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String profileName, - String keyGroupName); - - /** - * Gets an existing KeyGroup within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 existing KeyGroup within a profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String profileName, String keyGroupName); - - /** - * Gets an existing KeyGroup within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 existing KeyGroup within a profile along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String profileName, String keyGroupName, - Context context); - - /** - * Gets an existing KeyGroup within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 existing KeyGroup within a profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KeyGroupInner get(String resourceGroupName, String profileName, String keyGroupName); - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createUpdateWithResponseAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup); - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginCreateUpdateAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup); - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginCreateUpdate(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup); - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginCreateUpdate(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup, Context context); - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createUpdateAsync(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupInner keyGroup); - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 createUpdate(String resourceGroupName, String profileName, String keyGroupName, KeyGroupInner keyGroup); - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 createUpdate(String resourceGroupName, String profileName, String keyGroupName, KeyGroupInner keyGroup, - Context context); - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> updateWithResponseAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties); - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties); - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpdate(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties); - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpdate(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties, Context context); - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateAsync(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties); - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 update(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties); - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 update(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties, Context context); - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 profileName, - String keyGroupName); - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 profileName, - String keyGroupName); - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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 profileName, String keyGroupName); - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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 profileName, String keyGroupName, - Context context); - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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 profileName, String keyGroupName); - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 profileName, String keyGroupName); - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 profileName, String keyGroupName, Context context); - - /** - * Lists existing AzureFrontDoor KeyGroups. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 KeyGroup list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByProfileAsync(String resourceGroupName, String profileName); - - /** - * Lists existing AzureFrontDoor KeyGroups. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 KeyGroup list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByProfile(String resourceGroupName, String profileName); - - /** - * Lists existing AzureFrontDoor KeyGroups. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a KeyGroup list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByProfile(String resourceGroupName, String profileName, Context context); -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/KnowledgeSourcesClient.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/KnowledgeSourcesClient.java deleted file mode 100644 index 06860dc2a586..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/KnowledgeSourcesClient.java +++ /dev/null @@ -1,558 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.KnowledgeSourceInner; -import com.azure.resourcemanager.cdn.models.KnowledgeSourceUpdateParameters; -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 KnowledgeSourcesClient. - */ -public interface KnowledgeSourcesClient { - /** - * Gets a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a knowledge source with the specified name within a web agent along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName); - - /** - * Gets a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a knowledge source with the specified name within a web agent on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String webAgentName, String knowledgeSourceName); - - /** - * Gets a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a knowledge source with the specified name within a web agent along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String webAgentName, - String knowledgeSourceName, Context context); - - /** - * Gets a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a knowledge source with the specified name within a web agent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KnowledgeSourceInner get(String resourceGroupName, String webAgentName, String knowledgeSourceName); - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceInner knowledgeSource); - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, KnowledgeSourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceInner knowledgeSource); - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KnowledgeSourceInner> beginCreateOrUpdate(String resourceGroupName, - String webAgentName, String knowledgeSourceName, KnowledgeSourceInner knowledgeSource); - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KnowledgeSourceInner> beginCreateOrUpdate(String resourceGroupName, - String webAgentName, String knowledgeSourceName, KnowledgeSourceInner knowledgeSource, Context context); - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceInner knowledgeSource); - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KnowledgeSourceInner createOrUpdate(String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceInner knowledgeSource); - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - KnowledgeSourceInner createOrUpdate(String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceInner knowledgeSource, Context context); - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> updateWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters); - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters); - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpdate(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters); - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpdate(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters, Context context); - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateAsync(String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters); - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void update(String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters); - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void update(String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters, Context context); - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 webAgentName, - String knowledgeSourceName); - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 webAgentName, - String knowledgeSourceName); - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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 webAgentName, - String knowledgeSourceName); - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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 webAgentName, - String knowledgeSourceName, Context context); - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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 webAgentName, String knowledgeSourceName); - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 webAgentName, String knowledgeSourceName); - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 webAgentName, String knowledgeSourceName, Context context); - - /** - * Lists all knowledge sources within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of knowledge sources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByWebAgentAsync(String resourceGroupName, String webAgentName); - - /** - * Lists all knowledge sources within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of knowledge sources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWebAgent(String resourceGroupName, String webAgentName); - - /** - * Lists all knowledge sources within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of knowledge sources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWebAgent(String resourceGroupName, String webAgentName, Context context); - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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>> purgeWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName); - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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> beginPurgeAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName); - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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> beginPurge(String resourceGroupName, String webAgentName, - String knowledgeSourceName); - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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> beginPurge(String resourceGroupName, String webAgentName, - String knowledgeSourceName, Context context); - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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 purgeAsync(String resourceGroupName, String webAgentName, String knowledgeSourceName); - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 purge(String resourceGroupName, String webAgentName, String knowledgeSourceName); - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 purge(String resourceGroupName, String webAgentName, String knowledgeSourceName, Context context); -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/ProfileAgentsClient.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/ProfileAgentsClient.java deleted file mode 100644 index 8b4adc319ae6..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/ProfileAgentsClient.java +++ /dev/null @@ -1,481 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.ProfileAgentInner; -import com.azure.resourcemanager.cdn.models.ProfileAgentUpdateParameters; -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 ProfileAgentsClient. - */ -public interface ProfileAgentsClient { - /** - * Gets an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String profileName, - String agentName); - - /** - * Gets an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String profileName, String agentName); - - /** - * Gets an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String profileName, String agentName, - Context context); - - /** - * Gets an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ProfileAgentInner get(String resourceGroupName, String profileName, String agentName); - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String profileName, - String agentName, ProfileAgentInner profileAgent); - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, ProfileAgentInner> beginCreateOrUpdateAsync(String resourceGroupName, - String profileName, String agentName, ProfileAgentInner profileAgent); - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ProfileAgentInner> beginCreateOrUpdate(String resourceGroupName, - String profileName, String agentName, ProfileAgentInner profileAgent); - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ProfileAgentInner> beginCreateOrUpdate(String resourceGroupName, - String profileName, String agentName, ProfileAgentInner profileAgent, Context context); - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String profileName, String agentName, - ProfileAgentInner profileAgent); - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ProfileAgentInner createOrUpdate(String resourceGroupName, String profileName, String agentName, - ProfileAgentInner profileAgent); - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ProfileAgentInner createOrUpdate(String resourceGroupName, String profileName, String agentName, - ProfileAgentInner profileAgent, Context context); - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> updateWithResponseAsync(String resourceGroupName, String profileName, - String agentName, ProfileAgentUpdateParameters profileAgentUpdateParameters); - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters); - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpdate(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters); - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpdate(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters, Context context); - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 agent link (web agent association) within a CDN profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateAsync(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters); - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 update(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters); - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 update(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters, Context context); - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 profileName, - String agentName); - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 profileName, String agentName); - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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 profileName, String agentName); - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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 profileName, String agentName, - Context context); - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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 profileName, String agentName); - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 profileName, String agentName); - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 profileName, String agentName, Context context); - - /** - * Lists all agent links (web agent associations) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 ProfileAgent list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByProfileAsync(String resourceGroupName, String profileName); - - /** - * Lists all agent links (web agent associations) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 ProfileAgent list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByProfile(String resourceGroupName, String profileName); - - /** - * Lists all agent links (web agent associations) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ProfileAgent list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByProfile(String resourceGroupName, String profileName, Context context); -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/RuleSetsClient.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/RuleSetsClient.java index 7e17f5ba6a06..1bab68ff21ae 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/RuleSetsClient.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/RuleSetsClient.java @@ -15,7 +15,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.cdn.fluent.models.RuleSetInner; import com.azure.resourcemanager.cdn.fluent.models.UsageInner; -import com.azure.resourcemanager.cdn.models.RuleSetsCreateResponse; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -95,12 +94,102 @@ Response getWithResponse(String resourceGroupName, String profileN RuleSetInner get(String resourceGroupName, String profileName, String ruleSetName); /** - * Creates a new rule set within the specified profile. + * Creates or update a batch rule set within the specified profile along with the rules associate to it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is * unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related information along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createWithResponseAsync(String resourceGroupName, String profileName, + String ruleSetName, RuleSetInner resource); + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related + * information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, RuleSetInner> beginCreateAsync(String resourceGroupName, String profileName, + String ruleSetName, RuleSetInner resource); + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown 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 friendly RuleSet name mapping to the any RuleSet or secret related + * information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, RuleSetInner> beginCreateAsync(String resourceGroupName, String profileName, + String ruleSetName); + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of friendly RuleSet name mapping to the any RuleSet or secret related + * information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, RuleSetInner> beginCreate(String resourceGroupName, String profileName, + String ruleSetName); + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related + * information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, RuleSetInner> beginCreate(String resourceGroupName, String profileName, + String ruleSetName, RuleSetInner resource, Context context); + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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. @@ -108,11 +197,11 @@ Response getWithResponse(String resourceGroupName, String profileN * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createWithResponseAsync(String resourceGroupName, String profileName, - String ruleSetName); + Mono createAsync(String resourceGroupName, String profileName, String ruleSetName, + RuleSetInner resource); /** - * Creates a new rule set within the specified profile. + * Creates or update a batch rule set within the specified profile along with the rules associate to it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is @@ -128,36 +217,37 @@ Mono createWithResponseAsync(String resourceGroupName, S Mono createAsync(String resourceGroupName, String profileName, String ruleSetName); /** - * Creates a new rule set within the specified profile. + * Creates or update a batch rule set within the specified profile along with the rules associate to it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is * unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return friendly RuleSet name mapping to the any RuleSet or secret related information. */ @ServiceMethod(returns = ReturnType.SINGLE) - RuleSetsCreateResponse createWithResponse(String resourceGroupName, String profileName, String ruleSetName, - Context context); + RuleSetInner create(String resourceGroupName, String profileName, String ruleSetName); /** - * Creates a new rule set within the specified profile. + * Creates or update a batch rule set within the specified profile along with the rules associate to it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is * unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related information. */ @ServiceMethod(returns = ReturnType.SINGLE) - RuleSetInner create(String resourceGroupName, String profileName, String ruleSetName); + RuleSetInner create(String resourceGroupName, String profileName, String ruleSetName, RuleSetInner resource, + Context context); /** * Deletes an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/WebAgentsClient.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/WebAgentsClient.java deleted file mode 100644 index 4be2fbec2c98..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/WebAgentsClient.java +++ /dev/null @@ -1,455 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.WebAgentInner; -import com.azure.resourcemanager.cdn.models.WebAgentUpdateParameters; -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 WebAgentsClient. - */ -public interface WebAgentsClient - extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Gets a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a web agent with the specified name within a resource group along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String webAgentName); - - /** - * Gets a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a web agent with the specified name within a resource group on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String webAgentName); - - /** - * Gets a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a web agent with the specified name within a resource group along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String webAgentName, - Context context); - - /** - * Gets a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a web agent with the specified name within a resource group. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - WebAgentInner getByResourceGroup(String resourceGroupName, String webAgentName); - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String webAgentName, - WebAgentInner webAgent); - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, WebAgentInner> beginCreateOrUpdateAsync(String resourceGroupName, - String webAgentName, WebAgentInner webAgent); - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WebAgentInner> beginCreateOrUpdate(String resourceGroupName, - String webAgentName, WebAgentInner webAgent); - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WebAgentInner> beginCreateOrUpdate(String resourceGroupName, - String webAgentName, WebAgentInner webAgent, Context context); - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String webAgentName, WebAgentInner webAgent); - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - WebAgentInner createOrUpdate(String resourceGroupName, String webAgentName, WebAgentInner webAgent); - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - WebAgentInner createOrUpdate(String resourceGroupName, String webAgentName, WebAgentInner webAgent, - Context context); - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> updateWithResponseAsync(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters); - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters); - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpdate(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters); - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpdate(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters, Context context); - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateAsync(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters); - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void update(String resourceGroupName, String webAgentName, WebAgentUpdateParameters webAgentUpdateParameters); - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void update(String resourceGroupName, String webAgentName, WebAgentUpdateParameters webAgentUpdateParameters, - Context context); - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 webAgentName); - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 webAgentName); - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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 webAgentName); - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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 webAgentName, Context context); - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException 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 webAgentName); - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 webAgentName); - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 webAgentName, Context context); - - /** - * Lists all web agents within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); - - /** - * Lists all web agents within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Lists all web agents within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Lists all web agents within 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 defines a list of web agents as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); - - /** - * Lists all web agents within 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 defines a list of web agents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Lists all web agents within a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginInner.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginInner.java index 5e78eac949eb..7d1fdd728414 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginInner.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginInner.java @@ -11,12 +11,13 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.cdn.models.AfdProvisioningState; +import com.azure.resourcemanager.cdn.models.CertificateNameCheckValidationMode; import com.azure.resourcemanager.cdn.models.DeploymentStatus; import com.azure.resourcemanager.cdn.models.EnabledState; -import com.azure.resourcemanager.cdn.models.OriginCapacityResourceProperties; import com.azure.resourcemanager.cdn.models.ResourceReference; import com.azure.resourcemanager.cdn.models.SharedPrivateLinkResourceProperties; import java.io.IOException; +import java.util.List; /** * Azure Front Door origin is the source of the content being delivered via Azure Front Door. When the edge nodes @@ -309,29 +310,6 @@ public AfdOriginInner withSharedPrivateLinkResource(SharedPrivateLinkResourcePro return this; } - /** - * Get the originCapacityResource property: Origin capacity settings for an origin. - * - * @return the originCapacityResource value. - */ - public OriginCapacityResourceProperties originCapacityResource() { - return this.innerProperties() == null ? null : this.innerProperties().originCapacityResource(); - } - - /** - * Set the originCapacityResource property: Origin capacity settings for an origin. - * - * @param originCapacityResource the originCapacityResource value to set. - * @return the AfdOriginInner object itself. - */ - public AfdOriginInner withOriginCapacityResource(OriginCapacityResourceProperties originCapacityResource) { - if (this.innerProperties() == null) { - this.innerProperties = new AfdOriginProperties(); - } - this.innerProperties().withOriginCapacityResource(originCapacityResource); - return this; - } - /** * Get the enabledState property: Whether to enable health probes to be made against backends defined under * backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend @@ -382,6 +360,57 @@ public AfdOriginInner withEnforceCertificateNameCheck(Boolean enforceCertificate return this; } + /** + * Get the certificateNameCheckValidationMode property: The validation mode for certificate name check. Only + * applicable when enforceCertificateNameCheck is true. + * + * @return the certificateNameCheckValidationMode value. + */ + public CertificateNameCheckValidationMode certificateNameCheckValidationMode() { + return this.innerProperties() == null ? null : this.innerProperties().certificateNameCheckValidationMode(); + } + + /** + * Set the certificateNameCheckValidationMode property: The validation mode for certificate name check. Only + * applicable when enforceCertificateNameCheck is true. + * + * @param certificateNameCheckValidationMode the certificateNameCheckValidationMode value to set. + * @return the AfdOriginInner object itself. + */ + public AfdOriginInner + withCertificateNameCheckValidationMode(CertificateNameCheckValidationMode certificateNameCheckValidationMode) { + if (this.innerProperties() == null) { + this.innerProperties = new AfdOriginProperties(); + } + this.innerProperties().withCertificateNameCheckValidationMode(certificateNameCheckValidationMode); + return this; + } + + /** + * Get the customCertificateSubjects property: The list of custom certificate subjects to validate against. Only + * applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries. + * + * @return the customCertificateSubjects value. + */ + public List customCertificateSubjects() { + return this.innerProperties() == null ? null : this.innerProperties().customCertificateSubjects(); + } + + /** + * Set the customCertificateSubjects property: The list of custom certificate subjects to validate against. Only + * applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries. + * + * @param customCertificateSubjects the customCertificateSubjects value to set. + * @return the AfdOriginInner object itself. + */ + public AfdOriginInner withCustomCertificateSubjects(List customCertificateSubjects) { + if (this.innerProperties() == null) { + this.innerProperties = new AfdOriginProperties(); + } + this.innerProperties().withCustomCertificateSubjects(customCertificateSubjects); + return this; + } + /** * Get the provisioningState property: Provisioning status. * diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginProperties.java index 7361d3e7a308..3a362f6d7df0 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginProperties.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginProperties.java @@ -10,12 +10,13 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.cdn.models.AfdProvisioningState; +import com.azure.resourcemanager.cdn.models.CertificateNameCheckValidationMode; import com.azure.resourcemanager.cdn.models.DeploymentStatus; import com.azure.resourcemanager.cdn.models.EnabledState; -import com.azure.resourcemanager.cdn.models.OriginCapacityResourceProperties; import com.azure.resourcemanager.cdn.models.ResourceReference; import com.azure.resourcemanager.cdn.models.SharedPrivateLinkResourceProperties; import java.io.IOException; +import java.util.List; /** * The JSON object that contains the properties of the origin. @@ -71,11 +72,6 @@ public final class AfdOriginProperties implements JsonSerializable customCertificateSubjects; + /* * Provisioning status */ @@ -285,26 +292,6 @@ public SharedPrivateLinkResourceProperties sharedPrivateLinkResource() { return this; } - /** - * Get the originCapacityResource property: Origin capacity settings for an origin. - * - * @return the originCapacityResource value. - */ - public OriginCapacityResourceProperties originCapacityResource() { - return this.originCapacityResource; - } - - /** - * Set the originCapacityResource property: Origin capacity settings for an origin. - * - * @param originCapacityResource the originCapacityResource value to set. - * @return the AfdOriginProperties object itself. - */ - public AfdOriginProperties withOriginCapacityResource(OriginCapacityResourceProperties originCapacityResource) { - this.originCapacityResource = originCapacityResource; - return this; - } - /** * Get the enabledState property: Whether to enable health probes to be made against backends defined under * backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend @@ -349,6 +336,51 @@ public AfdOriginProperties withEnforceCertificateNameCheck(Boolean enforceCertif return this; } + /** + * Get the certificateNameCheckValidationMode property: The validation mode for certificate name check. Only + * applicable when enforceCertificateNameCheck is true. + * + * @return the certificateNameCheckValidationMode value. + */ + public CertificateNameCheckValidationMode certificateNameCheckValidationMode() { + return this.certificateNameCheckValidationMode; + } + + /** + * Set the certificateNameCheckValidationMode property: The validation mode for certificate name check. Only + * applicable when enforceCertificateNameCheck is true. + * + * @param certificateNameCheckValidationMode the certificateNameCheckValidationMode value to set. + * @return the AfdOriginProperties object itself. + */ + public AfdOriginProperties + withCertificateNameCheckValidationMode(CertificateNameCheckValidationMode certificateNameCheckValidationMode) { + this.certificateNameCheckValidationMode = certificateNameCheckValidationMode; + return this; + } + + /** + * Get the customCertificateSubjects property: The list of custom certificate subjects to validate against. Only + * applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries. + * + * @return the customCertificateSubjects value. + */ + public List customCertificateSubjects() { + return this.customCertificateSubjects; + } + + /** + * Set the customCertificateSubjects property: The list of custom certificate subjects to validate against. Only + * applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries. + * + * @param customCertificateSubjects the customCertificateSubjects value to set. + * @return the AfdOriginProperties object itself. + */ + public AfdOriginProperties withCustomCertificateSubjects(List customCertificateSubjects) { + this.customCertificateSubjects = customCertificateSubjects; + return this; + } + /** * Get the provisioningState property: Provisioning status. * @@ -379,9 +411,6 @@ public void validate() { if (sharedPrivateLinkResource() != null) { sharedPrivateLinkResource().validate(); } - if (originCapacityResource() != null) { - originCapacityResource().validate(); - } } /** @@ -398,9 +427,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("priority", this.priority); jsonWriter.writeNumberField("weight", this.weight); jsonWriter.writeJsonField("sharedPrivateLinkResource", this.sharedPrivateLinkResource); - jsonWriter.writeJsonField("originCapacityResource", this.originCapacityResource); jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString()); jsonWriter.writeBooleanField("enforceCertificateNameCheck", this.enforceCertificateNameCheck); + jsonWriter.writeStringField("certificateNameCheckValidationMode", + this.certificateNameCheckValidationMode == null + ? null + : this.certificateNameCheckValidationMode.toString()); + jsonWriter.writeArrayField("customCertificateSubjects", this.customCertificateSubjects, + (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -438,14 +472,17 @@ public static AfdOriginProperties fromJson(JsonReader jsonReader) throws IOExcep } else if ("sharedPrivateLinkResource".equals(fieldName)) { deserializedAfdOriginProperties.sharedPrivateLinkResource = SharedPrivateLinkResourceProperties.fromJson(reader); - } else if ("originCapacityResource".equals(fieldName)) { - deserializedAfdOriginProperties.originCapacityResource - = OriginCapacityResourceProperties.fromJson(reader); } else if ("enabledState".equals(fieldName)) { deserializedAfdOriginProperties.enabledState = EnabledState.fromString(reader.getString()); } else if ("enforceCertificateNameCheck".equals(fieldName)) { deserializedAfdOriginProperties.enforceCertificateNameCheck = reader.getNullable(JsonReader::getBoolean); + } else if ("certificateNameCheckValidationMode".equals(fieldName)) { + deserializedAfdOriginProperties.certificateNameCheckValidationMode + = CertificateNameCheckValidationMode.fromString(reader.getString()); + } else if ("customCertificateSubjects".equals(fieldName)) { + List customCertificateSubjects = reader.readArray(reader1 -> reader1.getString()); + deserializedAfdOriginProperties.customCertificateSubjects = customCertificateSubjects; } else if ("provisioningState".equals(fieldName)) { deserializedAfdOriginProperties.provisioningState = AfdProvisioningState.fromString(reader.getString()); diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginUpdatePropertiesParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginUpdatePropertiesParameters.java index 03ea62b4d04d..fec4a7f2840d 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginUpdatePropertiesParameters.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginUpdatePropertiesParameters.java @@ -9,11 +9,12 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cdn.models.CertificateNameCheckValidationMode; import com.azure.resourcemanager.cdn.models.EnabledState; -import com.azure.resourcemanager.cdn.models.OriginCapacityResourceProperties; import com.azure.resourcemanager.cdn.models.ResourceReference; import com.azure.resourcemanager.cdn.models.SharedPrivateLinkResourceProperties; import java.io.IOException; +import java.util.List; /** * The JSON object that contains the properties of the origin. @@ -70,11 +71,6 @@ public final class AfdOriginUpdatePropertiesParameters */ private SharedPrivateLinkResourceProperties sharedPrivateLinkResource; - /* - * Origin capacity settings for an origin - */ - private OriginCapacityResourceProperties originCapacityResource; - /* * Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be * disabled if there is a single enabled backend in single enabled backend pool. @@ -86,6 +82,17 @@ public final class AfdOriginUpdatePropertiesParameters */ private Boolean enforceCertificateNameCheck; + /* + * The validation mode for certificate name check. Only applicable when enforceCertificateNameCheck is true. + */ + private CertificateNameCheckValidationMode certificateNameCheckValidationMode; + + /* + * The list of custom certificate subjects to validate against. Only applicable when + * certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries. + */ + private List customCertificateSubjects; + /** * Creates an instance of AfdOriginUpdatePropertiesParameters class. */ @@ -274,27 +281,6 @@ public SharedPrivateLinkResourceProperties sharedPrivateLinkResource() { return this; } - /** - * Get the originCapacityResource property: Origin capacity settings for an origin. - * - * @return the originCapacityResource value. - */ - public OriginCapacityResourceProperties originCapacityResource() { - return this.originCapacityResource; - } - - /** - * Set the originCapacityResource property: Origin capacity settings for an origin. - * - * @param originCapacityResource the originCapacityResource value to set. - * @return the AfdOriginUpdatePropertiesParameters object itself. - */ - public AfdOriginUpdatePropertiesParameters - withOriginCapacityResource(OriginCapacityResourceProperties originCapacityResource) { - this.originCapacityResource = originCapacityResource; - return this; - } - /** * Get the enabledState property: Whether to enable health probes to be made against backends defined under * backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend @@ -339,6 +325,51 @@ public AfdOriginUpdatePropertiesParameters withEnforceCertificateNameCheck(Boole return this; } + /** + * Get the certificateNameCheckValidationMode property: The validation mode for certificate name check. Only + * applicable when enforceCertificateNameCheck is true. + * + * @return the certificateNameCheckValidationMode value. + */ + public CertificateNameCheckValidationMode certificateNameCheckValidationMode() { + return this.certificateNameCheckValidationMode; + } + + /** + * Set the certificateNameCheckValidationMode property: The validation mode for certificate name check. Only + * applicable when enforceCertificateNameCheck is true. + * + * @param certificateNameCheckValidationMode the certificateNameCheckValidationMode value to set. + * @return the AfdOriginUpdatePropertiesParameters object itself. + */ + public AfdOriginUpdatePropertiesParameters + withCertificateNameCheckValidationMode(CertificateNameCheckValidationMode certificateNameCheckValidationMode) { + this.certificateNameCheckValidationMode = certificateNameCheckValidationMode; + return this; + } + + /** + * Get the customCertificateSubjects property: The list of custom certificate subjects to validate against. Only + * applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries. + * + * @return the customCertificateSubjects value. + */ + public List customCertificateSubjects() { + return this.customCertificateSubjects; + } + + /** + * Set the customCertificateSubjects property: The list of custom certificate subjects to validate against. Only + * applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries. + * + * @param customCertificateSubjects the customCertificateSubjects value to set. + * @return the AfdOriginUpdatePropertiesParameters object itself. + */ + public AfdOriginUpdatePropertiesParameters withCustomCertificateSubjects(List customCertificateSubjects) { + this.customCertificateSubjects = customCertificateSubjects; + return this; + } + /** * Validates the instance. * @@ -351,9 +382,6 @@ public void validate() { if (sharedPrivateLinkResource() != null) { sharedPrivateLinkResource().validate(); } - if (originCapacityResource() != null) { - originCapacityResource().validate(); - } } /** @@ -370,9 +398,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("priority", this.priority); jsonWriter.writeNumberField("weight", this.weight); jsonWriter.writeJsonField("sharedPrivateLinkResource", this.sharedPrivateLinkResource); - jsonWriter.writeJsonField("originCapacityResource", this.originCapacityResource); jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString()); jsonWriter.writeBooleanField("enforceCertificateNameCheck", this.enforceCertificateNameCheck); + jsonWriter.writeStringField("certificateNameCheckValidationMode", + this.certificateNameCheckValidationMode == null + ? null + : this.certificateNameCheckValidationMode.toString()); + jsonWriter.writeArrayField("customCertificateSubjects", this.customCertificateSubjects, + (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -411,15 +444,19 @@ public static AfdOriginUpdatePropertiesParameters fromJson(JsonReader jsonReader } else if ("sharedPrivateLinkResource".equals(fieldName)) { deserializedAfdOriginUpdatePropertiesParameters.sharedPrivateLinkResource = SharedPrivateLinkResourceProperties.fromJson(reader); - } else if ("originCapacityResource".equals(fieldName)) { - deserializedAfdOriginUpdatePropertiesParameters.originCapacityResource - = OriginCapacityResourceProperties.fromJson(reader); } else if ("enabledState".equals(fieldName)) { deserializedAfdOriginUpdatePropertiesParameters.enabledState = EnabledState.fromString(reader.getString()); } else if ("enforceCertificateNameCheck".equals(fieldName)) { deserializedAfdOriginUpdatePropertiesParameters.enforceCertificateNameCheck = reader.getNullable(JsonReader::getBoolean); + } else if ("certificateNameCheckValidationMode".equals(fieldName)) { + deserializedAfdOriginUpdatePropertiesParameters.certificateNameCheckValidationMode + = CertificateNameCheckValidationMode.fromString(reader.getString()); + } else if ("customCertificateSubjects".equals(fieldName)) { + List customCertificateSubjects = reader.readArray(reader1 -> reader1.getString()); + deserializedAfdOriginUpdatePropertiesParameters.customCertificateSubjects + = customCertificateSubjects; } else { reader.skipChildren(); } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/CompareDeploymentVersionsResponseInner.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/CompareDeploymentVersionsResponseInner.java deleted file mode 100644 index 73ac26f33084..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/CompareDeploymentVersionsResponseInner.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.cdn.fluent.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.cdn.models.DeploymentVersionChange; -import java.io.IOException; -import java.util.List; - -/** - * compare deployment versions response. - */ -@Immutable -public final class CompareDeploymentVersionsResponseInner - implements JsonSerializable { - /* - * The difference between two deployment versions - */ - private List value; - - /** - * Creates an instance of CompareDeploymentVersionsResponseInner class. - */ - private CompareDeploymentVersionsResponseInner() { - } - - /** - * Get the value property: The difference between two deployment versions. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * 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 CompareDeploymentVersionsResponseInner")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CompareDeploymentVersionsResponseInner.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CompareDeploymentVersionsResponseInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CompareDeploymentVersionsResponseInner 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 CompareDeploymentVersionsResponseInner. - */ - public static CompareDeploymentVersionsResponseInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CompareDeploymentVersionsResponseInner deserializedCompareDeploymentVersionsResponseInner - = new CompareDeploymentVersionsResponseInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> DeploymentVersionChange.fromJson(reader1)); - deserializedCompareDeploymentVersionsResponseInner.value = value; - } else { - reader.skipChildren(); - } - } - - return deserializedCompareDeploymentVersionsResponseInner; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionInner.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionInner.java deleted file mode 100644 index d9fa1c822384..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionInner.java +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.models.AfdProvisioningState; -import com.azure.resourcemanager.cdn.models.ApprovalStatus; -import com.azure.resourcemanager.cdn.models.DeploymentStages; -import com.azure.resourcemanager.cdn.models.DeploymentStatus; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * Deployment version object. - */ -@Immutable -public final class DeploymentVersionInner extends ProxyResource { - /* - * The JSON object that contains the properties of the deployment version. - */ - private DeploymentVersionProperties 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 DeploymentVersionInner class. - */ - private DeploymentVersionInner() { - } - - /** - * Get the innerProperties property: The JSON object that contains the properties of the deployment version. - * - * @return the innerProperties value. - */ - private DeploymentVersionProperties 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 description property: The description property. - * - * @return the description value. - */ - public String description() { - return this.innerProperties() == null ? null : this.innerProperties().description(); - } - - /** - * Get the provisioningState property: Provisioning status. - * - * @return the provisioningState value. - */ - public AfdProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the deploymentStatus property: The deploymentStatus property. - * - * @return the deploymentStatus value. - */ - public DeploymentStatus deploymentStatus() { - return this.innerProperties() == null ? null : this.innerProperties().deploymentStatus(); - } - - /** - * Get the createdAt property: The timestamp of deployment version creation (UTC). - * - * @return the createdAt value. - */ - public OffsetDateTime createdAt() { - return this.innerProperties() == null ? null : this.innerProperties().createdAt(); - } - - /** - * Get the approvedAt property: The timestamp of deployment version approval (UTC). - * - * @return the approvedAt value. - */ - public OffsetDateTime approvedAt() { - return this.innerProperties() == null ? null : this.innerProperties().approvedAt(); - } - - /** - * Get the approvalStatus property: The approvalStatus property. - * - * @return the approvalStatus value. - */ - public ApprovalStatus approvalStatus() { - return this.innerProperties() == null ? null : this.innerProperties().approvalStatus(); - } - - /** - * Get the stages property: The preview and production deployment status of the deployment version under the - * profile. - * - * @return the stages value. - */ - public DeploymentStages stages() { - return this.innerProperties() == null ? null : this.innerProperties().stages(); - } - - /** - * 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 DeploymentVersionInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionInner 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 DeploymentVersionInner. - */ - public static DeploymentVersionInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionInner deserializedDeploymentVersionInner = new DeploymentVersionInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedDeploymentVersionInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedDeploymentVersionInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedDeploymentVersionInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedDeploymentVersionInner.innerProperties = DeploymentVersionProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedDeploymentVersionInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionInner; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionProperties.java deleted file mode 100644 index ee569b7daee4..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionProperties.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.cdn.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.cdn.models.AfdProvisioningState; -import com.azure.resourcemanager.cdn.models.ApprovalStatus; -import com.azure.resourcemanager.cdn.models.DeploymentStages; -import com.azure.resourcemanager.cdn.models.DeploymentStatus; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * The JSON object that contains the properties of the deployment version. - */ -@Immutable -public final class DeploymentVersionProperties implements JsonSerializable { - /* - * The description property. - */ - private String description; - - /* - * Provisioning status - */ - private AfdProvisioningState provisioningState; - - /* - * The deploymentStatus property. - */ - private DeploymentStatus deploymentStatus; - - /* - * The timestamp of deployment version creation (UTC) - */ - private OffsetDateTime createdAt; - - /* - * The timestamp of deployment version approval (UTC) - */ - private OffsetDateTime approvedAt; - - /* - * The approvalStatus property. - */ - private ApprovalStatus approvalStatus; - - /* - * The preview and production deployment status of the deployment version under the profile - */ - private DeploymentStages stages; - - /** - * Creates an instance of DeploymentVersionProperties class. - */ - private DeploymentVersionProperties() { - } - - /** - * Get the description property: The description property. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Get the provisioningState property: Provisioning status. - * - * @return the provisioningState value. - */ - public AfdProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the deploymentStatus property: The deploymentStatus property. - * - * @return the deploymentStatus value. - */ - public DeploymentStatus deploymentStatus() { - return this.deploymentStatus; - } - - /** - * Get the createdAt property: The timestamp of deployment version creation (UTC). - * - * @return the createdAt value. - */ - public OffsetDateTime createdAt() { - return this.createdAt; - } - - /** - * Get the approvedAt property: The timestamp of deployment version approval (UTC). - * - * @return the approvedAt value. - */ - public OffsetDateTime approvedAt() { - return this.approvedAt; - } - - /** - * Get the approvalStatus property: The approvalStatus property. - * - * @return the approvalStatus value. - */ - public ApprovalStatus approvalStatus() { - return this.approvalStatus; - } - - /** - * Get the stages property: The preview and production deployment status of the deployment version under the - * profile. - * - * @return the stages value. - */ - public DeploymentStages stages() { - return this.stages; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (stages() != null) { - stages().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("description", this.description); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionProperties 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 DeploymentVersionProperties. - */ - public static DeploymentVersionProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionProperties deserializedDeploymentVersionProperties = new DeploymentVersionProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("description".equals(fieldName)) { - deserializedDeploymentVersionProperties.description = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedDeploymentVersionProperties.provisioningState - = AfdProvisioningState.fromString(reader.getString()); - } else if ("deploymentStatus".equals(fieldName)) { - deserializedDeploymentVersionProperties.deploymentStatus - = DeploymentStatus.fromString(reader.getString()); - } else if ("createdAt".equals(fieldName)) { - deserializedDeploymentVersionProperties.createdAt = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("approvedAt".equals(fieldName)) { - deserializedDeploymentVersionProperties.approvedAt = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("approvalStatus".equals(fieldName)) { - deserializedDeploymentVersionProperties.approvalStatus - = ApprovalStatus.fromString(reader.getString()); - } else if ("stages".equals(fieldName)) { - deserializedDeploymentVersionProperties.stages = DeploymentStages.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionProperties; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionUpdateProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionUpdateProperties.java deleted file mode 100644 index 6ddda99a5829..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionUpdateProperties.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.cdn.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 java.io.IOException; - -/** - * Contains the properties of the deployment version. - */ -@Fluent -public final class DeploymentVersionUpdateProperties implements JsonSerializable { - /* - * The description property. - */ - private String description; - - /** - * Creates an instance of DeploymentVersionUpdateProperties class. - */ - public DeploymentVersionUpdateProperties() { - } - - /** - * Get the description property: The description property. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: The description property. - * - * @param description the description value to set. - * @return the DeploymentVersionUpdateProperties object itself. - */ - public DeploymentVersionUpdateProperties withDescription(String description) { - this.description = description; - 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("description", this.description); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionUpdateProperties 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 DeploymentVersionUpdateProperties. - */ - public static DeploymentVersionUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionUpdateProperties deserializedDeploymentVersionUpdateProperties - = new DeploymentVersionUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("description".equals(fieldName)) { - deserializedDeploymentVersionUpdateProperties.description = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionUpdateProperties; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupInner.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupInner.java deleted file mode 100644 index 36cb93d5fdf6..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupInner.java +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.models.AfdProvisioningState; -import com.azure.resourcemanager.cdn.models.DeploymentStatus; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import java.io.IOException; -import java.util.List; - -/** - * Contains a list of references of UrlSigningKey type secret objects. - */ -@Fluent -public final class KeyGroupInner extends ProxyResource { - /* - * The JSON object that contains the properties of the key group to create. - */ - private KeyGroupProperties 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 KeyGroupInner class. - */ - public KeyGroupInner() { - } - - /** - * Get the innerProperties property: The JSON object that contains the properties of the key group to create. - * - * @return the innerProperties value. - */ - private KeyGroupProperties 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 keyReferences property: Names of UrlSigningKey type secret objects. - * - * @return the keyReferences value. - */ - public List keyReferences() { - return this.innerProperties() == null ? null : this.innerProperties().keyReferences(); - } - - /** - * Set the keyReferences property: Names of UrlSigningKey type secret objects. - * - * @param keyReferences the keyReferences value to set. - * @return the KeyGroupInner object itself. - */ - public KeyGroupInner withKeyReferences(List keyReferences) { - if (this.innerProperties() == null) { - this.innerProperties = new KeyGroupProperties(); - } - this.innerProperties().withKeyReferences(keyReferences); - return this; - } - - /** - * Get the provisioningState property: Provisioning status. - * - * @return the provisioningState value. - */ - public AfdProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the deploymentStatus property: The deploymentStatus property. - * - * @return the deploymentStatus value. - */ - public DeploymentStatus deploymentStatus() { - return this.innerProperties() == null ? null : this.innerProperties().deploymentStatus(); - } - - /** - * 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 KeyGroupInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KeyGroupInner 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 KeyGroupInner. - */ - public static KeyGroupInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KeyGroupInner deserializedKeyGroupInner = new KeyGroupInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedKeyGroupInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedKeyGroupInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedKeyGroupInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedKeyGroupInner.innerProperties = KeyGroupProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedKeyGroupInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedKeyGroupInner; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupProperties.java deleted file mode 100644 index 2e269537f70e..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupProperties.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.cdn.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.cdn.models.AfdProvisioningState; -import com.azure.resourcemanager.cdn.models.DeploymentStatus; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import java.io.IOException; -import java.util.List; - -/** - * The JSON object that contains the properties of the key group to create. - */ -@Fluent -public final class KeyGroupProperties implements JsonSerializable { - /* - * Names of UrlSigningKey type secret objects - */ - private List keyReferences; - - /* - * Provisioning status - */ - private AfdProvisioningState provisioningState; - - /* - * The deploymentStatus property. - */ - private DeploymentStatus deploymentStatus; - - /** - * Creates an instance of KeyGroupProperties class. - */ - public KeyGroupProperties() { - } - - /** - * Get the keyReferences property: Names of UrlSigningKey type secret objects. - * - * @return the keyReferences value. - */ - public List keyReferences() { - return this.keyReferences; - } - - /** - * Set the keyReferences property: Names of UrlSigningKey type secret objects. - * - * @param keyReferences the keyReferences value to set. - * @return the KeyGroupProperties object itself. - */ - public KeyGroupProperties withKeyReferences(List keyReferences) { - this.keyReferences = keyReferences; - return this; - } - - /** - * Get the provisioningState property: Provisioning status. - * - * @return the provisioningState value. - */ - public AfdProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the deploymentStatus property: The deploymentStatus property. - * - * @return the deploymentStatus value. - */ - public DeploymentStatus deploymentStatus() { - return this.deploymentStatus; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (keyReferences() != null) { - keyReferences().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("keyReferences", this.keyReferences, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KeyGroupProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KeyGroupProperties 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 KeyGroupProperties. - */ - public static KeyGroupProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KeyGroupProperties deserializedKeyGroupProperties = new KeyGroupProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("keyReferences".equals(fieldName)) { - List keyReferences - = reader.readArray(reader1 -> ResourceReference.fromJson(reader1)); - deserializedKeyGroupProperties.keyReferences = keyReferences; - } else if ("provisioningState".equals(fieldName)) { - deserializedKeyGroupProperties.provisioningState - = AfdProvisioningState.fromString(reader.getString()); - } else if ("deploymentStatus".equals(fieldName)) { - deserializedKeyGroupProperties.deploymentStatus = DeploymentStatus.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedKeyGroupProperties; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceInner.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceInner.java deleted file mode 100644 index c4b43de59cf7..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceInner.java +++ /dev/null @@ -1,270 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.models.KnowledgeSourceProvisioningState; -import com.azure.resourcemanager.cdn.models.KnowledgeSourceType; -import com.azure.resourcemanager.cdn.models.KnowledgeSourceUpdateFrequency; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * Defines a knowledge source resource for a web agent. - */ -@Fluent -public final class KnowledgeSourceInner extends ProxyResource { - /* - * Properties of the knowledge source. - */ - private KnowledgeSourceProperties 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 KnowledgeSourceInner class. - */ - public KnowledgeSourceInner() { - } - - /** - * Get the innerProperties property: Properties of the knowledge source. - * - * @return the innerProperties value. - */ - private KnowledgeSourceProperties 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 description property: Description of the knowledge source. - * - * @return the description value. - */ - public String description() { - return this.innerProperties() == null ? null : this.innerProperties().description(); - } - - /** - * Set the description property: Description of the knowledge source. - * - * @param description the description value to set. - * @return the KnowledgeSourceInner object itself. - */ - public KnowledgeSourceInner withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new KnowledgeSourceProperties(); - } - this.innerProperties().withDescription(description); - return this; - } - - /** - * Get the sourceType property: Format or origin of the knowledge source. - * - * @return the sourceType value. - */ - public KnowledgeSourceType sourceType() { - return this.innerProperties() == null ? null : this.innerProperties().sourceType(); - } - - /** - * Set the sourceType property: Format or origin of the knowledge source. - * - * @param sourceType the sourceType value to set. - * @return the KnowledgeSourceInner object itself. - */ - public KnowledgeSourceInner withSourceType(KnowledgeSourceType sourceType) { - if (this.innerProperties() == null) { - this.innerProperties = new KnowledgeSourceProperties(); - } - this.innerProperties().withSourceType(sourceType); - return this; - } - - /** - * Get the url property: Endpoint or location of the knowledge source. - * - * @return the url value. - */ - public String url() { - return this.innerProperties() == null ? null : this.innerProperties().url(); - } - - /** - * Set the url property: Endpoint or location of the knowledge source. - * - * @param url the url value to set. - * @return the KnowledgeSourceInner object itself. - */ - public KnowledgeSourceInner withUrl(String url) { - if (this.innerProperties() == null) { - this.innerProperties = new KnowledgeSourceProperties(); - } - this.innerProperties().withUrl(url); - return this; - } - - /** - * Get the updateFrequency property: Specifies the units of time for scheduling update intervals for the knowledge - * source. - * - * @return the updateFrequency value. - */ - public KnowledgeSourceUpdateFrequency updateFrequency() { - return this.innerProperties() == null ? null : this.innerProperties().updateFrequency(); - } - - /** - * Set the updateFrequency property: Specifies the units of time for scheduling update intervals for the knowledge - * source. - * - * @param updateFrequency the updateFrequency value to set. - * @return the KnowledgeSourceInner object itself. - */ - public KnowledgeSourceInner withUpdateFrequency(KnowledgeSourceUpdateFrequency updateFrequency) { - if (this.innerProperties() == null) { - this.innerProperties = new KnowledgeSourceProperties(); - } - this.innerProperties().withUpdateFrequency(updateFrequency); - return this; - } - - /** - * Get the lastRefreshedTime property: The last time the knowledge source was updated. - * - * @return the lastRefreshedTime value. - */ - public OffsetDateTime lastRefreshedTime() { - return this.innerProperties() == null ? null : this.innerProperties().lastRefreshedTime(); - } - - /** - * Get the provisioningState property: Provisioning status of the knowledge source. - * - * @return the provisioningState value. - */ - public KnowledgeSourceProvisioningState 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 KnowledgeSourceInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KnowledgeSourceInner 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 KnowledgeSourceInner. - */ - public static KnowledgeSourceInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KnowledgeSourceInner deserializedKnowledgeSourceInner = new KnowledgeSourceInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedKnowledgeSourceInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedKnowledgeSourceInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedKnowledgeSourceInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedKnowledgeSourceInner.innerProperties = KnowledgeSourceProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedKnowledgeSourceInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedKnowledgeSourceInner; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceProperties.java deleted file mode 100644 index 4a38f6bc9072..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceProperties.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.cdn.fluent.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 com.azure.resourcemanager.cdn.models.KnowledgeSourceProvisioningState; -import com.azure.resourcemanager.cdn.models.KnowledgeSourceType; -import com.azure.resourcemanager.cdn.models.KnowledgeSourceUpdateFrequency; -import java.io.IOException; -import java.time.OffsetDateTime; - -/** - * Defines properties of a knowledge source. - */ -@Fluent -public final class KnowledgeSourceProperties implements JsonSerializable { - /* - * Description of the knowledge source. - */ - private String description; - - /* - * Format or origin of the knowledge source. - */ - private KnowledgeSourceType sourceType; - - /* - * Endpoint or location of the knowledge source. - */ - private String url; - - /* - * Specifies the units of time for scheduling update intervals for the knowledge source. - */ - private KnowledgeSourceUpdateFrequency updateFrequency; - - /* - * The last time the knowledge source was updated. - */ - private OffsetDateTime lastRefreshedTime; - - /* - * Provisioning status of the knowledge source. - */ - private KnowledgeSourceProvisioningState provisioningState; - - /** - * Creates an instance of KnowledgeSourceProperties class. - */ - public KnowledgeSourceProperties() { - } - - /** - * Get the description property: Description of the knowledge source. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Description of the knowledge source. - * - * @param description the description value to set. - * @return the KnowledgeSourceProperties object itself. - */ - public KnowledgeSourceProperties withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the sourceType property: Format or origin of the knowledge source. - * - * @return the sourceType value. - */ - public KnowledgeSourceType sourceType() { - return this.sourceType; - } - - /** - * Set the sourceType property: Format or origin of the knowledge source. - * - * @param sourceType the sourceType value to set. - * @return the KnowledgeSourceProperties object itself. - */ - public KnowledgeSourceProperties withSourceType(KnowledgeSourceType sourceType) { - this.sourceType = sourceType; - return this; - } - - /** - * Get the url property: Endpoint or location of the knowledge source. - * - * @return the url value. - */ - public String url() { - return this.url; - } - - /** - * Set the url property: Endpoint or location of the knowledge source. - * - * @param url the url value to set. - * @return the KnowledgeSourceProperties object itself. - */ - public KnowledgeSourceProperties withUrl(String url) { - this.url = url; - return this; - } - - /** - * Get the updateFrequency property: Specifies the units of time for scheduling update intervals for the knowledge - * source. - * - * @return the updateFrequency value. - */ - public KnowledgeSourceUpdateFrequency updateFrequency() { - return this.updateFrequency; - } - - /** - * Set the updateFrequency property: Specifies the units of time for scheduling update intervals for the knowledge - * source. - * - * @param updateFrequency the updateFrequency value to set. - * @return the KnowledgeSourceProperties object itself. - */ - public KnowledgeSourceProperties withUpdateFrequency(KnowledgeSourceUpdateFrequency updateFrequency) { - this.updateFrequency = updateFrequency; - return this; - } - - /** - * Get the lastRefreshedTime property: The last time the knowledge source was updated. - * - * @return the lastRefreshedTime value. - */ - public OffsetDateTime lastRefreshedTime() { - return this.lastRefreshedTime; - } - - /** - * Get the provisioningState property: Provisioning status of the knowledge source. - * - * @return the provisioningState value. - */ - public KnowledgeSourceProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sourceType() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property sourceType in model KnowledgeSourceProperties")); - } - if (url() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property url in model KnowledgeSourceProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(KnowledgeSourceProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("sourceType", this.sourceType == null ? null : this.sourceType.toString()); - jsonWriter.writeStringField("url", this.url); - jsonWriter.writeStringField("description", this.description); - jsonWriter.writeStringField("updateFrequency", - this.updateFrequency == null ? null : this.updateFrequency.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KnowledgeSourceProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KnowledgeSourceProperties 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 KnowledgeSourceProperties. - */ - public static KnowledgeSourceProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KnowledgeSourceProperties deserializedKnowledgeSourceProperties = new KnowledgeSourceProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("sourceType".equals(fieldName)) { - deserializedKnowledgeSourceProperties.sourceType - = KnowledgeSourceType.fromString(reader.getString()); - } else if ("url".equals(fieldName)) { - deserializedKnowledgeSourceProperties.url = reader.getString(); - } else if ("description".equals(fieldName)) { - deserializedKnowledgeSourceProperties.description = reader.getString(); - } else if ("updateFrequency".equals(fieldName)) { - deserializedKnowledgeSourceProperties.updateFrequency - = KnowledgeSourceUpdateFrequency.fromString(reader.getString()); - } else if ("lastRefreshedTime".equals(fieldName)) { - deserializedKnowledgeSourceProperties.lastRefreshedTime = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("provisioningState".equals(fieldName)) { - deserializedKnowledgeSourceProperties.provisioningState - = KnowledgeSourceProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedKnowledgeSourceProperties; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourcePropertiesUpdateParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourcePropertiesUpdateParameters.java deleted file mode 100644 index dc9b7efe53ee..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourcePropertiesUpdateParameters.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.cdn.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.cdn.models.KnowledgeSourceUpdateFrequency; -import java.io.IOException; - -/** - * Defines properties of a knowledge source that can be updated. - */ -@Fluent -public final class KnowledgeSourcePropertiesUpdateParameters - implements JsonSerializable { - /* - * Description of the knowledge source. - */ - private String description; - - /* - * Endpoint or location of the knowledge source. - */ - private String url; - - /* - * Specifies the units of time for scheduling update intervals for the knowledge source. - */ - private KnowledgeSourceUpdateFrequency updateFrequency; - - /** - * Creates an instance of KnowledgeSourcePropertiesUpdateParameters class. - */ - public KnowledgeSourcePropertiesUpdateParameters() { - } - - /** - * Get the description property: Description of the knowledge source. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Description of the knowledge source. - * - * @param description the description value to set. - * @return the KnowledgeSourcePropertiesUpdateParameters object itself. - */ - public KnowledgeSourcePropertiesUpdateParameters withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the url property: Endpoint or location of the knowledge source. - * - * @return the url value. - */ - public String url() { - return this.url; - } - - /** - * Set the url property: Endpoint or location of the knowledge source. - * - * @param url the url value to set. - * @return the KnowledgeSourcePropertiesUpdateParameters object itself. - */ - public KnowledgeSourcePropertiesUpdateParameters withUrl(String url) { - this.url = url; - return this; - } - - /** - * Get the updateFrequency property: Specifies the units of time for scheduling update intervals for the knowledge - * source. - * - * @return the updateFrequency value. - */ - public KnowledgeSourceUpdateFrequency updateFrequency() { - return this.updateFrequency; - } - - /** - * Set the updateFrequency property: Specifies the units of time for scheduling update intervals for the knowledge - * source. - * - * @param updateFrequency the updateFrequency value to set. - * @return the KnowledgeSourcePropertiesUpdateParameters object itself. - */ - public KnowledgeSourcePropertiesUpdateParameters - withUpdateFrequency(KnowledgeSourceUpdateFrequency updateFrequency) { - this.updateFrequency = updateFrequency; - 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("description", this.description); - jsonWriter.writeStringField("url", this.url); - jsonWriter.writeStringField("updateFrequency", - this.updateFrequency == null ? null : this.updateFrequency.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KnowledgeSourcePropertiesUpdateParameters from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KnowledgeSourcePropertiesUpdateParameters 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 KnowledgeSourcePropertiesUpdateParameters. - */ - public static KnowledgeSourcePropertiesUpdateParameters fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KnowledgeSourcePropertiesUpdateParameters deserializedKnowledgeSourcePropertiesUpdateParameters - = new KnowledgeSourcePropertiesUpdateParameters(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("description".equals(fieldName)) { - deserializedKnowledgeSourcePropertiesUpdateParameters.description = reader.getString(); - } else if ("url".equals(fieldName)) { - deserializedKnowledgeSourcePropertiesUpdateParameters.url = reader.getString(); - } else if ("updateFrequency".equals(fieldName)) { - deserializedKnowledgeSourcePropertiesUpdateParameters.updateFrequency - = KnowledgeSourceUpdateFrequency.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedKnowledgeSourcePropertiesUpdateParameters; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/PolicySettingsLogScrubbing.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/PolicySettingsLogScrubbing.java deleted file mode 100644 index b560a083f04f..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/PolicySettingsLogScrubbing.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.cdn.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.cdn.models.WebApplicationFirewallScrubbingRules; -import com.azure.resourcemanager.cdn.models.WebApplicationFirewallScrubbingState; -import java.io.IOException; -import java.util.List; - -/** - * Defines rules that scrub sensitive fields in the Web Application Firewall logs. - */ -@Fluent -public final class PolicySettingsLogScrubbing implements JsonSerializable { - /* - * State of the log scrubbing config. Default value is Enabled. - */ - private WebApplicationFirewallScrubbingState state; - - /* - * List of log scrubbing rules applied to the Web Application Firewall logs. - */ - private List scrubbingRules; - - /** - * Creates an instance of PolicySettingsLogScrubbing class. - */ - public PolicySettingsLogScrubbing() { - } - - /** - * Get the state property: State of the log scrubbing config. Default value is Enabled. - * - * @return the state value. - */ - public WebApplicationFirewallScrubbingState state() { - return this.state; - } - - /** - * Set the state property: State of the log scrubbing config. Default value is Enabled. - * - * @param state the state value to set. - * @return the PolicySettingsLogScrubbing object itself. - */ - public PolicySettingsLogScrubbing withState(WebApplicationFirewallScrubbingState state) { - this.state = state; - return this; - } - - /** - * Get the scrubbingRules property: List of log scrubbing rules applied to the Web Application Firewall logs. - * - * @return the scrubbingRules value. - */ - public List scrubbingRules() { - return this.scrubbingRules; - } - - /** - * Set the scrubbingRules property: List of log scrubbing rules applied to the Web Application Firewall logs. - * - * @param scrubbingRules the scrubbingRules value to set. - * @return the PolicySettingsLogScrubbing object itself. - */ - public PolicySettingsLogScrubbing withScrubbingRules(List scrubbingRules) { - this.scrubbingRules = scrubbingRules; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (scrubbingRules() != null) { - scrubbingRules().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); - jsonWriter.writeArrayField("scrubbingRules", this.scrubbingRules, - (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of PolicySettingsLogScrubbing from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of PolicySettingsLogScrubbing 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 PolicySettingsLogScrubbing. - */ - public static PolicySettingsLogScrubbing fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - PolicySettingsLogScrubbing deserializedPolicySettingsLogScrubbing = new PolicySettingsLogScrubbing(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("state".equals(fieldName)) { - deserializedPolicySettingsLogScrubbing.state - = WebApplicationFirewallScrubbingState.fromString(reader.getString()); - } else if ("scrubbingRules".equals(fieldName)) { - List scrubbingRules - = reader.readArray(reader1 -> WebApplicationFirewallScrubbingRules.fromJson(reader1)); - deserializedPolicySettingsLogScrubbing.scrubbingRules = scrubbingRules; - } else { - reader.skipChildren(); - } - } - - return deserializedPolicySettingsLogScrubbing; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentInner.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentInner.java deleted file mode 100644 index 7ba4fd9c7669..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentInner.java +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.models.ProfileAgentProvisioningState; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import java.io.IOException; -import java.util.List; - -/** - * An agent link (web agent association) within a CDN profile. - */ -@Fluent -public final class ProfileAgentInner extends ProxyResource { - /* - * The properties of a profile agent association. - */ - private ProfileAgentProperties 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 ProfileAgentInner class. - */ - public ProfileAgentInner() { - } - - /** - * Get the innerProperties property: The properties of a profile agent association. - * - * @return the innerProperties value. - */ - private ProfileAgentProperties 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 webAgent property: Reference to the web agent resource. - * - * @return the webAgent value. - */ - public ResourceReference webAgent() { - return this.innerProperties() == null ? null : this.innerProperties().webAgent(); - } - - /** - * Set the webAgent property: Reference to the web agent resource. - * - * @param webAgent the webAgent value to set. - * @return the ProfileAgentInner object itself. - */ - public ProfileAgentInner withWebAgent(ResourceReference webAgent) { - if (this.innerProperties() == null) { - this.innerProperties = new ProfileAgentProperties(); - } - this.innerProperties().withWebAgent(webAgent); - return this; - } - - /** - * Get the customDomains property: List of custom domains associated with this agent link. - * - * @return the customDomains value. - */ - public List customDomains() { - return this.innerProperties() == null ? null : this.innerProperties().customDomains(); - } - - /** - * Set the customDomains property: List of custom domains associated with this agent link. - * - * @param customDomains the customDomains value to set. - * @return the ProfileAgentInner object itself. - */ - public ProfileAgentInner withCustomDomains(List customDomains) { - if (this.innerProperties() == null) { - this.innerProperties = new ProfileAgentProperties(); - } - this.innerProperties().withCustomDomains(customDomains); - return this; - } - - /** - * Get the provisioningState property: Provisioning status of the profile agent association. - * - * @return the provisioningState value. - */ - public ProfileAgentProvisioningState 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 ProfileAgentInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ProfileAgentInner 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 ProfileAgentInner. - */ - public static ProfileAgentInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ProfileAgentInner deserializedProfileAgentInner = new ProfileAgentInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedProfileAgentInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedProfileAgentInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedProfileAgentInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedProfileAgentInner.innerProperties = ProfileAgentProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedProfileAgentInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedProfileAgentInner; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentProperties.java deleted file mode 100644 index 47fba1003d98..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentProperties.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.models.ProfileAgentProvisioningState; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import java.io.IOException; -import java.util.List; - -/** - * The properties of a profile agent association. - */ -@Fluent -public final class ProfileAgentProperties implements JsonSerializable { - /* - * Reference to the web agent resource. - */ - private ResourceReference webAgent; - - /* - * List of custom domains associated with this agent link. - */ - private List customDomains; - - /* - * Provisioning status of the profile agent association. - */ - private ProfileAgentProvisioningState provisioningState; - - /** - * Creates an instance of ProfileAgentProperties class. - */ - public ProfileAgentProperties() { - } - - /** - * Get the webAgent property: Reference to the web agent resource. - * - * @return the webAgent value. - */ - public ResourceReference webAgent() { - return this.webAgent; - } - - /** - * Set the webAgent property: Reference to the web agent resource. - * - * @param webAgent the webAgent value to set. - * @return the ProfileAgentProperties object itself. - */ - public ProfileAgentProperties withWebAgent(ResourceReference webAgent) { - this.webAgent = webAgent; - return this; - } - - /** - * Get the customDomains property: List of custom domains associated with this agent link. - * - * @return the customDomains value. - */ - public List customDomains() { - return this.customDomains; - } - - /** - * Set the customDomains property: List of custom domains associated with this agent link. - * - * @param customDomains the customDomains value to set. - * @return the ProfileAgentProperties object itself. - */ - public ProfileAgentProperties withCustomDomains(List customDomains) { - this.customDomains = customDomains; - return this; - } - - /** - * Get the provisioningState property: Provisioning status of the profile agent association. - * - * @return the provisioningState value. - */ - public ProfileAgentProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (webAgent() == null) { - throw LOGGER.atError() - .log( - new IllegalArgumentException("Missing required property webAgent in model ProfileAgentProperties")); - } else { - webAgent().validate(); - } - if (customDomains() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property customDomains in model ProfileAgentProperties")); - } else { - customDomains().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ProfileAgentProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("webAgent", this.webAgent); - jsonWriter.writeArrayField("customDomains", this.customDomains, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ProfileAgentProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ProfileAgentProperties 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 ProfileAgentProperties. - */ - public static ProfileAgentProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ProfileAgentProperties deserializedProfileAgentProperties = new ProfileAgentProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("webAgent".equals(fieldName)) { - deserializedProfileAgentProperties.webAgent = ResourceReference.fromJson(reader); - } else if ("customDomains".equals(fieldName)) { - List customDomains - = reader.readArray(reader1 -> ResourceReference.fromJson(reader1)); - deserializedProfileAgentProperties.customDomains = customDomains; - } else if ("provisioningState".equals(fieldName)) { - deserializedProfileAgentProperties.provisioningState - = ProfileAgentProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedProfileAgentProperties; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentUpdateProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentUpdateProperties.java deleted file mode 100644 index a14be2f312f6..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentUpdateProperties.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.cdn.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.cdn.models.ResourceReference; -import java.io.IOException; -import java.util.List; - -/** - * The properties for updating a profile agent association. - */ -@Fluent -public final class ProfileAgentUpdateProperties implements JsonSerializable { - /* - * List of custom domains associated with this agent link. - */ - private List customDomains; - - /** - * Creates an instance of ProfileAgentUpdateProperties class. - */ - public ProfileAgentUpdateProperties() { - } - - /** - * Get the customDomains property: List of custom domains associated with this agent link. - * - * @return the customDomains value. - */ - public List customDomains() { - return this.customDomains; - } - - /** - * Set the customDomains property: List of custom domains associated with this agent link. - * - * @param customDomains the customDomains value to set. - * @return the ProfileAgentUpdateProperties object itself. - */ - public ProfileAgentUpdateProperties withCustomDomains(List customDomains) { - this.customDomains = customDomains; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (customDomains() != null) { - customDomains().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("customDomains", this.customDomains, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ProfileAgentUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ProfileAgentUpdateProperties 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 ProfileAgentUpdateProperties. - */ - public static ProfileAgentUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ProfileAgentUpdateProperties deserializedProfileAgentUpdateProperties = new ProfileAgentUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("customDomains".equals(fieldName)) { - List customDomains - = reader.readArray(reader1 -> ResourceReference.fromJson(reader1)); - deserializedProfileAgentUpdateProperties.customDomains = customDomains; - } else { - reader.skipChildren(); - } - } - - return deserializedProfileAgentUpdateProperties; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteInner.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteInner.java index c9b0d9ddb3fd..94e7783b76cd 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteInner.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteInner.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.cdn.models.AfdEndpointProtocols; import com.azure.resourcemanager.cdn.models.AfdProvisioningState; import com.azure.resourcemanager.cdn.models.AfdRouteCacheConfiguration; -import com.azure.resourcemanager.cdn.models.AfdRouteGrpcState; import com.azure.resourcemanager.cdn.models.DeploymentStatus; import com.azure.resourcemanager.cdn.models.EnabledState; import com.azure.resourcemanager.cdn.models.ForwardingProtocol; @@ -376,31 +375,6 @@ public RouteInner withEnabledState(EnabledState enabledState) { return this; } - /** - * Get the grpcState property: Whether or not gRPC is enabled on this route. Permitted values are 'Enabled' or - * 'Disabled'. - * - * @return the grpcState value. - */ - public AfdRouteGrpcState grpcState() { - return this.innerProperties() == null ? null : this.innerProperties().grpcState(); - } - - /** - * Set the grpcState property: Whether or not gRPC is enabled on this route. Permitted values are 'Enabled' or - * 'Disabled'. - * - * @param grpcState the grpcState value to set. - * @return the RouteInner object itself. - */ - public RouteInner withGrpcState(AfdRouteGrpcState grpcState) { - if (this.innerProperties() == null) { - this.innerProperties = new RouteProperties(); - } - this.innerProperties().withGrpcState(grpcState); - return this; - } - /** * Get the provisioningState property: Provisioning status. * diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteProperties.java index 035643faa617..b7a9891cef27 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteProperties.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteProperties.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.cdn.models.AfdEndpointProtocols; import com.azure.resourcemanager.cdn.models.AfdProvisioningState; import com.azure.resourcemanager.cdn.models.AfdRouteCacheConfiguration; -import com.azure.resourcemanager.cdn.models.AfdRouteGrpcState; import com.azure.resourcemanager.cdn.models.DeploymentStatus; import com.azure.resourcemanager.cdn.models.EnabledState; import com.azure.resourcemanager.cdn.models.ForwardingProtocol; @@ -90,11 +89,6 @@ public final class RouteProperties implements JsonSerializable */ private EnabledState enabledState; - /* - * Whether or not gRPC is enabled on this route. Permitted values are 'Enabled' or 'Disabled' - */ - private AfdRouteGrpcState grpcState; - /* * Provisioning status */ @@ -346,28 +340,6 @@ public RouteProperties withEnabledState(EnabledState enabledState) { return this; } - /** - * Get the grpcState property: Whether or not gRPC is enabled on this route. Permitted values are 'Enabled' or - * 'Disabled'. - * - * @return the grpcState value. - */ - public AfdRouteGrpcState grpcState() { - return this.grpcState; - } - - /** - * Set the grpcState property: Whether or not gRPC is enabled on this route. Permitted values are 'Enabled' or - * 'Disabled'. - * - * @param grpcState the grpcState value to set. - * @return the RouteProperties object itself. - */ - public RouteProperties withGrpcState(AfdRouteGrpcState grpcState) { - this.grpcState = grpcState; - return this; - } - /** * Get the provisioningState property: Provisioning status. * @@ -427,7 +399,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.linkToDefaultDomain == null ? null : this.linkToDefaultDomain.toString()); jsonWriter.writeStringField("httpsRedirect", this.httpsRedirect == null ? null : this.httpsRedirect.toString()); jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString()); - jsonWriter.writeStringField("grpcState", this.grpcState == null ? null : this.grpcState.toString()); return jsonWriter.writeEndObject(); } @@ -477,8 +448,6 @@ public static RouteProperties fromJson(JsonReader jsonReader) throws IOException deserializedRouteProperties.httpsRedirect = HttpsRedirect.fromString(reader.getString()); } else if ("enabledState".equals(fieldName)) { deserializedRouteProperties.enabledState = EnabledState.fromString(reader.getString()); - } else if ("grpcState".equals(fieldName)) { - deserializedRouteProperties.grpcState = AfdRouteGrpcState.fromString(reader.getString()); } else if ("provisioningState".equals(fieldName)) { deserializedRouteProperties.provisioningState = AfdProvisioningState.fromString(reader.getString()); } else if ("deploymentStatus".equals(fieldName)) { diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteUpdatePropertiesParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteUpdatePropertiesParameters.java index b410500dbbcb..2add87fde0d5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteUpdatePropertiesParameters.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteUpdatePropertiesParameters.java @@ -12,7 +12,6 @@ import com.azure.resourcemanager.cdn.models.ActivatedResourceReference; import com.azure.resourcemanager.cdn.models.AfdEndpointProtocols; import com.azure.resourcemanager.cdn.models.AfdRouteCacheConfiguration; -import com.azure.resourcemanager.cdn.models.AfdRouteGrpcState; import com.azure.resourcemanager.cdn.models.EnabledState; import com.azure.resourcemanager.cdn.models.ForwardingProtocol; import com.azure.resourcemanager.cdn.models.HttpsRedirect; @@ -88,11 +87,6 @@ public final class RouteUpdatePropertiesParameters implements JsonSerializable rules() { + return this.innerProperties() == null ? null : this.innerProperties().rules(); + } + + /** + * Set the rules property: A list of rules that are part of this rule set provided the rule set is in batch mode. + * This property will be ignored if the rule set is not in batch mode. + * + * @param rules the rules value to set. + * @return the RuleSetInner object itself. + */ + public RuleSetInner withRules(List rules) { + if (this.innerProperties() == null) { + this.innerProperties = new RuleSetProperties(); + } + this.innerProperties().withRules(rules); + return this; + } + /** * Get the provisioningState property: Provisioning status. * diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleSetProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleSetProperties.java index a4dbdc9b1a18..bf646ce3857c 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleSetProperties.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleSetProperties.java @@ -4,25 +4,43 @@ package com.azure.resourcemanager.cdn.fluent.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.cdn.models.AfdProvisioningState; import com.azure.resourcemanager.cdn.models.AfdStateProperties; +import com.azure.resourcemanager.cdn.models.BatchRuleProperties; import com.azure.resourcemanager.cdn.models.DeploymentStatus; import java.io.IOException; +import java.util.List; /** * The JSON object that contains the properties of the Rule Set to create. */ -@Immutable +@Fluent public final class RuleSetProperties extends AfdStateProperties { /* * The name of the profile which holds the rule set. */ private String profileName; + /* + * Indicates whether rule set is in batch mode. When batch mode is enabled, rules will be processed in a batch along + * with the rule set. + * When batch mode is disabled, rules would need to be processed independently. + * This property can only be set during rule set creation and cannot be updated later. + * For switching modes, a new rule set needs to be created with the desired mode and rules need to be migrated to + * the new rule set. + */ + private Boolean batchMode; + + /* + * A list of rules that are part of this rule set provided the rule set is in batch mode. + * This property will be ignored if the rule set is not in batch mode. + */ + private List rules; + /* * The deploymentStatus property. */ @@ -36,7 +54,7 @@ public final class RuleSetProperties extends AfdStateProperties { /** * Creates an instance of RuleSetProperties class. */ - private RuleSetProperties() { + public RuleSetProperties() { } /** @@ -48,6 +66,58 @@ public String profileName() { return this.profileName; } + /** + * Get the batchMode property: Indicates whether rule set is in batch mode. When batch mode is enabled, rules will + * be processed in a batch along with the rule set. + * When batch mode is disabled, rules would need to be processed independently. + * This property can only be set during rule set creation and cannot be updated later. + * For switching modes, a new rule set needs to be created with the desired mode and rules need to be migrated to + * the new rule set. + * + * @return the batchMode value. + */ + public Boolean batchMode() { + return this.batchMode; + } + + /** + * Set the batchMode property: Indicates whether rule set is in batch mode. When batch mode is enabled, rules will + * be processed in a batch along with the rule set. + * When batch mode is disabled, rules would need to be processed independently. + * This property can only be set during rule set creation and cannot be updated later. + * For switching modes, a new rule set needs to be created with the desired mode and rules need to be migrated to + * the new rule set. + * + * @param batchMode the batchMode value to set. + * @return the RuleSetProperties object itself. + */ + public RuleSetProperties withBatchMode(Boolean batchMode) { + this.batchMode = batchMode; + return this; + } + + /** + * Get the rules property: A list of rules that are part of this rule set provided the rule set is in batch mode. + * This property will be ignored if the rule set is not in batch mode. + * + * @return the rules value. + */ + public List rules() { + return this.rules; + } + + /** + * Set the rules property: A list of rules that are part of this rule set provided the rule set is in batch mode. + * This property will be ignored if the rule set is not in batch mode. + * + * @param rules the rules value to set. + * @return the RuleSetProperties object itself. + */ + public RuleSetProperties withRules(List rules) { + this.rules = rules; + return this; + } + /** * Get the deploymentStatus property: The deploymentStatus property. * @@ -75,6 +145,9 @@ public AfdProvisioningState provisioningState() { */ @Override public void validate() { + if (rules() != null) { + rules().forEach(e -> e.validate()); + } } /** @@ -83,6 +156,8 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("batchMode", this.batchMode); + jsonWriter.writeArrayField("rules", this.rules, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -108,6 +183,12 @@ public static RuleSetProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedRuleSetProperties.deploymentStatus = DeploymentStatus.fromString(reader.getString()); } else if ("profileName".equals(fieldName)) { deserializedRuleSetProperties.profileName = reader.getString(); + } else if ("batchMode".equals(fieldName)) { + deserializedRuleSetProperties.batchMode = reader.getNullable(JsonReader::getBoolean); + } else if ("rules".equals(fieldName)) { + List rules + = reader.readArray(reader1 -> BatchRuleProperties.fromJson(reader1)); + deserializedRuleSetProperties.rules = rules; } else { reader.skipChildren(); } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentInner.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentInner.java deleted file mode 100644 index 0bff1c376394..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentInner.java +++ /dev/null @@ -1,271 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.models.AgentPath; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import com.azure.resourcemanager.cdn.models.WebAgentProvisioningState; -import java.io.IOException; -import java.util.List; -import java.util.Map; - -/** - * Defines a web agent resource for Azure CDN. - */ -@Fluent -public final class WebAgentInner extends Resource { - /* - * Properties of the web agent. - */ - private WebAgentProperties 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 WebAgentInner class. - */ - public WebAgentInner() { - } - - /** - * Get the innerProperties property: Properties of the web agent. - * - * @return the innerProperties value. - */ - private WebAgentProperties 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 WebAgentInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public WebAgentInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Get the description property: Optional textual description of the agent. - * - * @return the description value. - */ - public String description() { - return this.innerProperties() == null ? null : this.innerProperties().description(); - } - - /** - * Set the description property: Optional textual description of the agent. - * - * @param description the description value to set. - * @return the WebAgentInner object itself. - */ - public WebAgentInner withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new WebAgentProperties(); - } - this.innerProperties().withDescription(description); - return this; - } - - /** - * Get the systemPrompt property: System prompt for the web agent. - * - * @return the systemPrompt value. - */ - public String systemPrompt() { - return this.innerProperties() == null ? null : this.innerProperties().systemPrompt(); - } - - /** - * Set the systemPrompt property: System prompt for the web agent. - * - * @param systemPrompt the systemPrompt value to set. - * @return the WebAgentInner object itself. - */ - public WebAgentInner withSystemPrompt(String systemPrompt) { - if (this.innerProperties() == null) { - this.innerProperties = new WebAgentProperties(); - } - this.innerProperties().withSystemPrompt(systemPrompt); - return this; - } - - /** - * Get the paths property: List of paths associated with the web agent. - * - * @return the paths value. - */ - public List paths() { - return this.innerProperties() == null ? null : this.innerProperties().paths(); - } - - /** - * Set the paths property: List of paths associated with the web agent. - * - * @param paths the paths value to set. - * @return the WebAgentInner object itself. - */ - public WebAgentInner withPaths(List paths) { - if (this.innerProperties() == null) { - this.innerProperties = new WebAgentProperties(); - } - this.innerProperties().withPaths(paths); - return this; - } - - /** - * Get the profileAgentLinks property: References to agent links in CDN profiles. - * - * @return the profileAgentLinks value. - */ - public List profileAgentLinks() { - return this.innerProperties() == null ? null : this.innerProperties().profileAgentLinks(); - } - - /** - * Get the provisioningState property: Provisioning status of the web agent. - * - * @return the provisioningState value. - */ - public WebAgentProvisioningState 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.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of WebAgentInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of WebAgentInner 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 WebAgentInner. - */ - public static WebAgentInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - WebAgentInner deserializedWebAgentInner = new WebAgentInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedWebAgentInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedWebAgentInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedWebAgentInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedWebAgentInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedWebAgentInner.withTags(tags); - } else if ("properties".equals(fieldName)) { - deserializedWebAgentInner.innerProperties = WebAgentProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedWebAgentInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedWebAgentInner; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentProperties.java deleted file mode 100644 index d5c948446ba8..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentProperties.java +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.models.AgentPath; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import com.azure.resourcemanager.cdn.models.WebAgentProvisioningState; -import java.io.IOException; -import java.util.List; - -/** - * Defines properties of a web agent. - */ -@Fluent -public final class WebAgentProperties implements JsonSerializable { - /* - * Optional textual description of the agent. - */ - private String description; - - /* - * System prompt for the web agent. - */ - private String systemPrompt; - - /* - * List of paths associated with the web agent. - */ - private List paths; - - /* - * References to agent links in CDN profiles. - */ - private List profileAgentLinks; - - /* - * Provisioning status of the web agent. - */ - private WebAgentProvisioningState provisioningState; - - /** - * Creates an instance of WebAgentProperties class. - */ - public WebAgentProperties() { - } - - /** - * Get the description property: Optional textual description of the agent. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Optional textual description of the agent. - * - * @param description the description value to set. - * @return the WebAgentProperties object itself. - */ - public WebAgentProperties withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the systemPrompt property: System prompt for the web agent. - * - * @return the systemPrompt value. - */ - public String systemPrompt() { - return this.systemPrompt; - } - - /** - * Set the systemPrompt property: System prompt for the web agent. - * - * @param systemPrompt the systemPrompt value to set. - * @return the WebAgentProperties object itself. - */ - public WebAgentProperties withSystemPrompt(String systemPrompt) { - this.systemPrompt = systemPrompt; - return this; - } - - /** - * Get the paths property: List of paths associated with the web agent. - * - * @return the paths value. - */ - public List paths() { - return this.paths; - } - - /** - * Set the paths property: List of paths associated with the web agent. - * - * @param paths the paths value to set. - * @return the WebAgentProperties object itself. - */ - public WebAgentProperties withPaths(List paths) { - this.paths = paths; - return this; - } - - /** - * Get the profileAgentLinks property: References to agent links in CDN profiles. - * - * @return the profileAgentLinks value. - */ - public List profileAgentLinks() { - return this.profileAgentLinks; - } - - /** - * Get the provisioningState property: Provisioning status of the web agent. - * - * @return the provisioningState value. - */ - public WebAgentProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (paths() != null) { - paths().forEach(e -> e.validate()); - } - if (profileAgentLinks() != null) { - profileAgentLinks().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("description", this.description); - jsonWriter.writeStringField("systemPrompt", this.systemPrompt); - jsonWriter.writeArrayField("paths", this.paths, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of WebAgentProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of WebAgentProperties 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 WebAgentProperties. - */ - public static WebAgentProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - WebAgentProperties deserializedWebAgentProperties = new WebAgentProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("description".equals(fieldName)) { - deserializedWebAgentProperties.description = reader.getString(); - } else if ("systemPrompt".equals(fieldName)) { - deserializedWebAgentProperties.systemPrompt = reader.getString(); - } else if ("paths".equals(fieldName)) { - List paths = reader.readArray(reader1 -> AgentPath.fromJson(reader1)); - deserializedWebAgentProperties.paths = paths; - } else if ("profileAgentLinks".equals(fieldName)) { - List profileAgentLinks - = reader.readArray(reader1 -> ResourceReference.fromJson(reader1)); - deserializedWebAgentProperties.profileAgentLinks = profileAgentLinks; - } else if ("provisioningState".equals(fieldName)) { - deserializedWebAgentProperties.provisioningState - = WebAgentProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedWebAgentProperties; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentPropertiesUpdateParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentPropertiesUpdateParameters.java deleted file mode 100644 index d8673bc3f91f..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentPropertiesUpdateParameters.java +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.models.AgentPath; -import java.io.IOException; -import java.util.List; - -/** - * Defines properties of a web agent that can be updated. - */ -@Fluent -public final class WebAgentPropertiesUpdateParameters implements JsonSerializable { - /* - * Optional textual description of the agent. - */ - private String description; - - /* - * System prompt for the web agent. - */ - private String systemPrompt; - - /* - * List of paths associated with the web agent. - */ - private List paths; - - /** - * Creates an instance of WebAgentPropertiesUpdateParameters class. - */ - public WebAgentPropertiesUpdateParameters() { - } - - /** - * Get the description property: Optional textual description of the agent. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Optional textual description of the agent. - * - * @param description the description value to set. - * @return the WebAgentPropertiesUpdateParameters object itself. - */ - public WebAgentPropertiesUpdateParameters withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the systemPrompt property: System prompt for the web agent. - * - * @return the systemPrompt value. - */ - public String systemPrompt() { - return this.systemPrompt; - } - - /** - * Set the systemPrompt property: System prompt for the web agent. - * - * @param systemPrompt the systemPrompt value to set. - * @return the WebAgentPropertiesUpdateParameters object itself. - */ - public WebAgentPropertiesUpdateParameters withSystemPrompt(String systemPrompt) { - this.systemPrompt = systemPrompt; - return this; - } - - /** - * Get the paths property: List of paths associated with the web agent. - * - * @return the paths value. - */ - public List paths() { - return this.paths; - } - - /** - * Set the paths property: List of paths associated with the web agent. - * - * @param paths the paths value to set. - * @return the WebAgentPropertiesUpdateParameters object itself. - */ - public WebAgentPropertiesUpdateParameters withPaths(List paths) { - this.paths = paths; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (paths() != null) { - paths().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("description", this.description); - jsonWriter.writeStringField("systemPrompt", this.systemPrompt); - jsonWriter.writeArrayField("paths", this.paths, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of WebAgentPropertiesUpdateParameters from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of WebAgentPropertiesUpdateParameters 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 WebAgentPropertiesUpdateParameters. - */ - public static WebAgentPropertiesUpdateParameters fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - WebAgentPropertiesUpdateParameters deserializedWebAgentPropertiesUpdateParameters - = new WebAgentPropertiesUpdateParameters(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("description".equals(fieldName)) { - deserializedWebAgentPropertiesUpdateParameters.description = reader.getString(); - } else if ("systemPrompt".equals(fieldName)) { - deserializedWebAgentPropertiesUpdateParameters.systemPrompt = reader.getString(); - } else if ("paths".equals(fieldName)) { - List paths = reader.readArray(reader1 -> AgentPath.fromJson(reader1)); - deserializedWebAgentPropertiesUpdateParameters.paths = paths; - } else { - reader.skipChildren(); - } - } - - return deserializedWebAgentPropertiesUpdateParameters; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebApplicationFirewallPolicyProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebApplicationFirewallPolicyProperties.java deleted file mode 100644 index 267df642ffeb..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebApplicationFirewallPolicyProperties.java +++ /dev/null @@ -1,268 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.models.CustomRuleListAfd; -import com.azure.resourcemanager.cdn.models.FrontendEndpointLink; -import com.azure.resourcemanager.cdn.models.ManagedRuleSetListAfd; -import com.azure.resourcemanager.cdn.models.PolicyResourceState; -import com.azure.resourcemanager.cdn.models.PolicySettingsAfd; -import com.azure.resourcemanager.cdn.models.RoutingRuleLink; -import com.azure.resourcemanager.cdn.models.SecurityPolicyLink; -import java.io.IOException; -import java.util.List; - -/** - * Defines web application firewall policy properties. - */ -@Fluent -public final class WebApplicationFirewallPolicyProperties - implements JsonSerializable { - /* - * Describes settings for the policy. - */ - private PolicySettingsAfd policySettings; - - /* - * Describes custom rules inside the policy. - */ - private CustomRuleListAfd customRules; - - /* - * Describes managed rules inside the policy. - */ - private ManagedRuleSetListAfd managedRules; - - /* - * Describes Frontend Endpoints associated with this Web Application Firewall policy. - */ - private List frontendEndpointLinks; - - /* - * Describes Routing Rules associated with this Web Application Firewall policy. - */ - private List routingRuleLinks; - - /* - * Describes Security Policy associated with this Web Application Firewall policy. - */ - private List securityPolicyLinks; - - /* - * Provisioning state of the policy. - */ - private String provisioningState; - - /* - * The resourceState property. - */ - private PolicyResourceState resourceState; - - /** - * Creates an instance of WebApplicationFirewallPolicyProperties class. - */ - public WebApplicationFirewallPolicyProperties() { - } - - /** - * Get the policySettings property: Describes settings for the policy. - * - * @return the policySettings value. - */ - public PolicySettingsAfd policySettings() { - return this.policySettings; - } - - /** - * Set the policySettings property: Describes settings for the policy. - * - * @param policySettings the policySettings value to set. - * @return the WebApplicationFirewallPolicyProperties object itself. - */ - public WebApplicationFirewallPolicyProperties withPolicySettings(PolicySettingsAfd policySettings) { - this.policySettings = policySettings; - return this; - } - - /** - * Get the customRules property: Describes custom rules inside the policy. - * - * @return the customRules value. - */ - public CustomRuleListAfd customRules() { - return this.customRules; - } - - /** - * Set the customRules property: Describes custom rules inside the policy. - * - * @param customRules the customRules value to set. - * @return the WebApplicationFirewallPolicyProperties object itself. - */ - public WebApplicationFirewallPolicyProperties withCustomRules(CustomRuleListAfd customRules) { - this.customRules = customRules; - return this; - } - - /** - * Get the managedRules property: Describes managed rules inside the policy. - * - * @return the managedRules value. - */ - public ManagedRuleSetListAfd managedRules() { - return this.managedRules; - } - - /** - * Set the managedRules property: Describes managed rules inside the policy. - * - * @param managedRules the managedRules value to set. - * @return the WebApplicationFirewallPolicyProperties object itself. - */ - public WebApplicationFirewallPolicyProperties withManagedRules(ManagedRuleSetListAfd managedRules) { - this.managedRules = managedRules; - return this; - } - - /** - * Get the frontendEndpointLinks property: Describes Frontend Endpoints associated with this Web Application - * Firewall policy. - * - * @return the frontendEndpointLinks value. - */ - public List frontendEndpointLinks() { - return this.frontendEndpointLinks; - } - - /** - * Get the routingRuleLinks property: Describes Routing Rules associated with this Web Application Firewall policy. - * - * @return the routingRuleLinks value. - */ - public List routingRuleLinks() { - return this.routingRuleLinks; - } - - /** - * Get the securityPolicyLinks property: Describes Security Policy associated with this Web Application Firewall - * policy. - * - * @return the securityPolicyLinks value. - */ - public List securityPolicyLinks() { - return this.securityPolicyLinks; - } - - /** - * Get the provisioningState property: Provisioning state of the policy. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the resourceState property: The resourceState property. - * - * @return the resourceState value. - */ - public PolicyResourceState resourceState() { - return this.resourceState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (policySettings() != null) { - policySettings().validate(); - } - if (customRules() != null) { - customRules().validate(); - } - if (managedRules() != null) { - managedRules().validate(); - } - if (frontendEndpointLinks() != null) { - frontendEndpointLinks().forEach(e -> e.validate()); - } - if (routingRuleLinks() != null) { - routingRuleLinks().forEach(e -> e.validate()); - } - if (securityPolicyLinks() != null) { - securityPolicyLinks().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("policySettings", this.policySettings); - jsonWriter.writeJsonField("customRules", this.customRules); - jsonWriter.writeJsonField("managedRules", this.managedRules); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of WebApplicationFirewallPolicyProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of WebApplicationFirewallPolicyProperties 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 WebApplicationFirewallPolicyProperties. - */ - public static WebApplicationFirewallPolicyProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - WebApplicationFirewallPolicyProperties deserializedWebApplicationFirewallPolicyProperties - = new WebApplicationFirewallPolicyProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("policySettings".equals(fieldName)) { - deserializedWebApplicationFirewallPolicyProperties.policySettings - = PolicySettingsAfd.fromJson(reader); - } else if ("customRules".equals(fieldName)) { - deserializedWebApplicationFirewallPolicyProperties.customRules = CustomRuleListAfd.fromJson(reader); - } else if ("managedRules".equals(fieldName)) { - deserializedWebApplicationFirewallPolicyProperties.managedRules - = ManagedRuleSetListAfd.fromJson(reader); - } else if ("frontendEndpointLinks".equals(fieldName)) { - List frontendEndpointLinks - = reader.readArray(reader1 -> FrontendEndpointLink.fromJson(reader1)); - deserializedWebApplicationFirewallPolicyProperties.frontendEndpointLinks = frontendEndpointLinks; - } else if ("routingRuleLinks".equals(fieldName)) { - List routingRuleLinks - = reader.readArray(reader1 -> RoutingRuleLink.fromJson(reader1)); - deserializedWebApplicationFirewallPolicyProperties.routingRuleLinks = routingRuleLinks; - } else if ("securityPolicyLinks".equals(fieldName)) { - List securityPolicyLinks - = reader.readArray(reader1 -> SecurityPolicyLink.fromJson(reader1)); - deserializedWebApplicationFirewallPolicyProperties.securityPolicyLinks = securityPolicyLinks; - } else if ("provisioningState".equals(fieldName)) { - deserializedWebApplicationFirewallPolicyProperties.provisioningState = reader.getString(); - } else if ("resourceState".equals(fieldName)) { - deserializedWebApplicationFirewallPolicyProperties.resourceState - = PolicyResourceState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedWebApplicationFirewallPolicyProperties; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/CdnManagementClientImpl.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/CdnManagementClientImpl.java index 015681c529a4..7a203a2c469f 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/CdnManagementClientImpl.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/CdnManagementClientImpl.java @@ -32,18 +32,14 @@ import com.azure.resourcemanager.cdn.fluent.AfdProfilesClient; import com.azure.resourcemanager.cdn.fluent.CdnManagementClient; import com.azure.resourcemanager.cdn.fluent.CustomDomainsClient; -import com.azure.resourcemanager.cdn.fluent.DeploymentVersionsClient; import com.azure.resourcemanager.cdn.fluent.EdgeNodesClient; import com.azure.resourcemanager.cdn.fluent.EndpointsClient; -import com.azure.resourcemanager.cdn.fluent.KeyGroupsClient; -import com.azure.resourcemanager.cdn.fluent.KnowledgeSourcesClient; import com.azure.resourcemanager.cdn.fluent.LogAnalyticsClient; import com.azure.resourcemanager.cdn.fluent.ManagedRuleSetsClient; import com.azure.resourcemanager.cdn.fluent.OperationsClient; import com.azure.resourcemanager.cdn.fluent.OriginGroupsClient; import com.azure.resourcemanager.cdn.fluent.OriginsClient; import com.azure.resourcemanager.cdn.fluent.PoliciesClient; -import com.azure.resourcemanager.cdn.fluent.ProfileAgentsClient; import com.azure.resourcemanager.cdn.fluent.ProfilesClient; import com.azure.resourcemanager.cdn.fluent.ResourceUsagesClient; import com.azure.resourcemanager.cdn.fluent.RoutesClient; @@ -51,7 +47,6 @@ import com.azure.resourcemanager.cdn.fluent.RulesClient; import com.azure.resourcemanager.cdn.fluent.SecretsClient; import com.azure.resourcemanager.cdn.fluent.SecurityPoliciesClient; -import com.azure.resourcemanager.cdn.fluent.WebAgentsClient; import com.azure.resourcemanager.cdn.fluent.models.CheckEndpointNameAvailabilityOutputInner; import com.azure.resourcemanager.cdn.fluent.models.CheckNameAvailabilityOutputInner; import com.azure.resourcemanager.cdn.fluent.models.ValidateProbeOutputInner; @@ -296,34 +291,6 @@ public SecretsClient getSecrets() { return this.secrets; } - /** - * The KeyGroupsClient object to access its operations. - */ - private final KeyGroupsClient keyGroups; - - /** - * Gets the KeyGroupsClient object to access its operations. - * - * @return the KeyGroupsClient object. - */ - public KeyGroupsClient getKeyGroups() { - return this.keyGroups; - } - - /** - * The DeploymentVersionsClient object to access its operations. - */ - private final DeploymentVersionsClient deploymentVersions; - - /** - * Gets the DeploymentVersionsClient object to access its operations. - * - * @return the DeploymentVersionsClient object. - */ - public DeploymentVersionsClient getDeploymentVersions() { - return this.deploymentVersions; - } - /** * The EndpointsClient object to access its operations. */ @@ -380,48 +347,6 @@ public CustomDomainsClient getCustomDomains() { return this.customDomains; } - /** - * The ProfileAgentsClient object to access its operations. - */ - private final ProfileAgentsClient profileAgents; - - /** - * Gets the ProfileAgentsClient object to access its operations. - * - * @return the ProfileAgentsClient object. - */ - public ProfileAgentsClient getProfileAgents() { - return this.profileAgents; - } - - /** - * The WebAgentsClient object to access its operations. - */ - private final WebAgentsClient webAgents; - - /** - * Gets the WebAgentsClient object to access its operations. - * - * @return the WebAgentsClient object. - */ - public WebAgentsClient getWebAgents() { - return this.webAgents; - } - - /** - * The KnowledgeSourcesClient object to access its operations. - */ - private final KnowledgeSourcesClient knowledgeSources; - - /** - * Gets the KnowledgeSourcesClient object to access its operations. - * - * @return the KnowledgeSourcesClient object. - */ - public KnowledgeSourcesClient getKnowledgeSources() { - return this.knowledgeSources; - } - /** * The AfdCustomDomainsClient object to access its operations. */ @@ -538,7 +463,7 @@ public ManagedRuleSetsClient getManagedRuleSets() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-09-01-preview"; + this.apiVersion = "2026-07-01"; this.operations = new OperationsClientImpl(this); this.profiles = new ProfilesClientImpl(this); this.afdEndpoints = new AfdEndpointsClientImpl(this); @@ -549,15 +474,10 @@ public ManagedRuleSetsClient getManagedRuleSets() { this.rules = new RulesClientImpl(this); this.securityPolicies = new SecurityPoliciesClientImpl(this); this.secrets = new SecretsClientImpl(this); - this.keyGroups = new KeyGroupsClientImpl(this); - this.deploymentVersions = new DeploymentVersionsClientImpl(this); this.endpoints = new EndpointsClientImpl(this); this.origins = new OriginsClientImpl(this); this.originGroups = new OriginGroupsClientImpl(this); this.customDomains = new CustomDomainsClientImpl(this); - this.profileAgents = new ProfileAgentsClientImpl(this); - this.webAgents = new WebAgentsClientImpl(this); - this.knowledgeSources = new KnowledgeSourcesClientImpl(this); this.afdCustomDomains = new AfdCustomDomainsClientImpl(this); this.afdProfiles = new AfdProfilesClientImpl(this); this.logAnalytics = new LogAnalyticsClientImpl(this); diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/DeploymentVersionsClientImpl.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/DeploymentVersionsClientImpl.java deleted file mode 100644 index 5afd3bc9d424..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/DeploymentVersionsClientImpl.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.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.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.cdn.fluent.DeploymentVersionsClient; -import com.azure.resourcemanager.cdn.fluent.models.CompareDeploymentVersionsResponseInner; -import com.azure.resourcemanager.cdn.fluent.models.DeploymentVersionInner; -import com.azure.resourcemanager.cdn.implementation.models.DeploymentVersionListResult; -import com.azure.resourcemanager.cdn.models.CompareDeploymentVersionsParameter; -import com.azure.resourcemanager.cdn.models.DeploymentVersionUpdate; -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 DeploymentVersionsClient. - */ -public final class DeploymentVersionsClientImpl implements DeploymentVersionsClient { - /** - * The proxy service used to perform REST calls. - */ - private final DeploymentVersionsService service; - - /** - * The service client containing this operation class. - */ - private final CdnManagementClientImpl client; - - /** - * Initializes an instance of DeploymentVersionsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - DeploymentVersionsClientImpl(CdnManagementClientImpl client) { - this.service = RestProxy.create(DeploymentVersionsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for CdnManagementClientDeploymentVersions to be used by the proxy service - * to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "CdnManagementClientDeploymentVersions") - public interface DeploymentVersionsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/deploymentVersions/{versionName}") - @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("profileName") String profileName, - @PathParam("versionName") String versionName, @HeaderParam("Accept") String accept, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/deploymentVersions/{versionName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("profileName") String profileName, - @PathParam("versionName") String versionName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, - @BodyParam("application/json") DeploymentVersionUpdate deploymentVersionUpdateProperties, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/deploymentVersions") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByProfile(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("profileName") String profileName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/deploymentVersions/{versionName}/approve") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> approve(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("profileName") String profileName, - @PathParam("versionName") String versionName, @HeaderParam("Accept") String accept, Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/deploymentVersions/{versionName}/compare") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> compare(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("profileName") String profileName, - @PathParam("versionName") String versionName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, - @BodyParam("application/json") CompareDeploymentVersionsParameter compareDeploymentVersionsParameter, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByProfileNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get an existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String profileName, - String versionName) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (versionName == null) { - return Mono.error(new IllegalArgumentException("Parameter versionName 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, profileName, versionName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get an existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String profileName, - String versionName, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (versionName == null) { - return Mono.error(new IllegalArgumentException("Parameter versionName 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, profileName, versionName, accept, context); - } - - /** - * Get an existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String profileName, String versionName) { - return getWithResponseAsync(resourceGroupName, profileName, versionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get an existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String profileName, - String versionName, Context context) { - return getWithResponseAsync(resourceGroupName, profileName, versionName, context).block(); - } - - /** - * Get an existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing DeploymentVersion with the specified version name under the specified subscription, resource - * group and profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DeploymentVersionInner get(String resourceGroupName, String profileName, String versionName) { - return getWithResponse(resourceGroupName, profileName, versionName, Context.NONE).getValue(); - } - - /** - * Update an existing DeploymentVersion within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param deploymentVersionUpdateProperties Deployment version properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return deployment version object along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync(String resourceGroupName, String profileName, - String versionName, DeploymentVersionUpdate deploymentVersionUpdateProperties) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (versionName == null) { - return Mono.error(new IllegalArgumentException("Parameter versionName is required and cannot be null.")); - } - if (deploymentVersionUpdateProperties == null) { - return Mono.error(new IllegalArgumentException( - "Parameter deploymentVersionUpdateProperties is required and cannot be null.")); - } else { - deploymentVersionUpdateProperties.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, profileName, versionName, contentType, accept, - deploymentVersionUpdateProperties, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Update an existing DeploymentVersion within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param deploymentVersionUpdateProperties Deployment version properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return deployment version object along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, String profileName, - String versionName, DeploymentVersionUpdate deploymentVersionUpdateProperties, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (versionName == null) { - return Mono.error(new IllegalArgumentException("Parameter versionName is required and cannot be null.")); - } - if (deploymentVersionUpdateProperties == null) { - return Mono.error(new IllegalArgumentException( - "Parameter deploymentVersionUpdateProperties is required and cannot be null.")); - } else { - deploymentVersionUpdateProperties.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, profileName, versionName, contentType, accept, deploymentVersionUpdateProperties, - context); - } - - /** - * Update an existing DeploymentVersion within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param deploymentVersionUpdateProperties Deployment version properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return deployment version object on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateAsync(String resourceGroupName, String profileName, String versionName, - DeploymentVersionUpdate deploymentVersionUpdateProperties) { - return updateWithResponseAsync(resourceGroupName, profileName, versionName, deploymentVersionUpdateProperties) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Update an existing DeploymentVersion within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param deploymentVersionUpdateProperties Deployment version properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return deployment version object along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, String profileName, - String versionName, DeploymentVersionUpdate deploymentVersionUpdateProperties, Context context) { - return updateWithResponseAsync(resourceGroupName, profileName, versionName, deploymentVersionUpdateProperties, - context).block(); - } - - /** - * Update an existing DeploymentVersion within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param deploymentVersionUpdateProperties Deployment version properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return deployment version object. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DeploymentVersionInner update(String resourceGroupName, String profileName, String versionName, - DeploymentVersionUpdate deploymentVersionUpdateProperties) { - return updateWithResponse(resourceGroupName, profileName, versionName, deploymentVersionUpdateProperties, - Context.NONE).getValue(); - } - - /** - * Lists existing deployment versions by profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 DeploymentVersion list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileSinglePageAsync(String resourceGroupName, - String profileName) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByProfile(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, 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 existing deployment versions by profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a DeploymentVersion list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileSinglePageAsync(String resourceGroupName, - String profileName, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByProfile(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, profileName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists existing deployment versions by profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 DeploymentVersion list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByProfileAsync(String resourceGroupName, String profileName) { - return new PagedFlux<>(() -> listByProfileSinglePageAsync(resourceGroupName, profileName), - nextLink -> listByProfileNextSinglePageAsync(nextLink)); - } - - /** - * Lists existing deployment versions by profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a DeploymentVersion list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByProfileAsync(String resourceGroupName, String profileName, - Context context) { - return new PagedFlux<>(() -> listByProfileSinglePageAsync(resourceGroupName, profileName, context), - nextLink -> listByProfileNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists existing deployment versions by profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 DeploymentVersion list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByProfile(String resourceGroupName, String profileName) { - return new PagedIterable<>(listByProfileAsync(resourceGroupName, profileName)); - } - - /** - * Lists existing deployment versions by profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a DeploymentVersion list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByProfile(String resourceGroupName, String profileName, - Context context) { - return new PagedIterable<>(listByProfileAsync(resourceGroupName, profileName, context)); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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>> approveWithResponseAsync(String resourceGroupName, String profileName, - String versionName) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (versionName == null) { - return Mono.error(new IllegalArgumentException("Parameter versionName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.approve(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, versionName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> approveWithResponseAsync(String resourceGroupName, String profileName, - String versionName, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (versionName == null) { - return Mono.error(new IllegalArgumentException("Parameter versionName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.approve(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, profileName, versionName, accept, context); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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> beginApproveAsync(String resourceGroupName, String profileName, - String versionName) { - Mono>> mono = approveWithResponseAsync(resourceGroupName, profileName, versionName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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> beginApproveAsync(String resourceGroupName, String profileName, - String versionName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = approveWithResponseAsync(resourceGroupName, profileName, versionName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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> beginApprove(String resourceGroupName, String profileName, - String versionName) { - return this.beginApproveAsync(resourceGroupName, profileName, versionName).getSyncPoller(); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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> beginApprove(String resourceGroupName, String profileName, - String versionName, Context context) { - return this.beginApproveAsync(resourceGroupName, profileName, versionName, context).getSyncPoller(); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 approveAsync(String resourceGroupName, String profileName, String versionName) { - return beginApproveAsync(resourceGroupName, profileName, versionName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 approveAsync(String resourceGroupName, String profileName, String versionName, Context context) { - return beginApproveAsync(resourceGroupName, profileName, versionName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 approve(String resourceGroupName, String profileName, String versionName) { - approveAsync(resourceGroupName, profileName, versionName).block(); - } - - /** - * Approve the deployment of the version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 approve(String resourceGroupName, String profileName, String versionName, Context context) { - approveAsync(resourceGroupName, profileName, versionName, context).block(); - } - - /** - * Compare the deployment version to another deployment version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param compareDeploymentVersionsParameter The deployment version to be compared to. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compare deployment versions response along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> compareWithResponseAsync(String resourceGroupName, - String profileName, String versionName, CompareDeploymentVersionsParameter compareDeploymentVersionsParameter) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (versionName == null) { - return Mono.error(new IllegalArgumentException("Parameter versionName is required and cannot be null.")); - } - if (compareDeploymentVersionsParameter == null) { - return Mono.error(new IllegalArgumentException( - "Parameter compareDeploymentVersionsParameter is required and cannot be null.")); - } else { - compareDeploymentVersionsParameter.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.compare(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, versionName, contentType, accept, - compareDeploymentVersionsParameter, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Compare the deployment version to another deployment version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param compareDeploymentVersionsParameter The deployment version to be compared to. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compare deployment versions response along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> compareWithResponseAsync(String resourceGroupName, - String profileName, String versionName, CompareDeploymentVersionsParameter compareDeploymentVersionsParameter, - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (versionName == null) { - return Mono.error(new IllegalArgumentException("Parameter versionName is required and cannot be null.")); - } - if (compareDeploymentVersionsParameter == null) { - return Mono.error(new IllegalArgumentException( - "Parameter compareDeploymentVersionsParameter is required and cannot be null.")); - } else { - compareDeploymentVersionsParameter.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.compare(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, profileName, versionName, contentType, accept, compareDeploymentVersionsParameter, - context); - } - - /** - * Compare the deployment version to another deployment version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param compareDeploymentVersionsParameter The deployment version to be compared to. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compare deployment versions response on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono compareAsync(String resourceGroupName, String profileName, - String versionName, CompareDeploymentVersionsParameter compareDeploymentVersionsParameter) { - return compareWithResponseAsync(resourceGroupName, profileName, versionName, compareDeploymentVersionsParameter) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Compare the deployment version to another deployment version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param compareDeploymentVersionsParameter The deployment version to be compared to. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compare deployment versions response along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response compareWithResponse(String resourceGroupName, - String profileName, String versionName, CompareDeploymentVersionsParameter compareDeploymentVersionsParameter, - Context context) { - return compareWithResponseAsync(resourceGroupName, profileName, versionName, compareDeploymentVersionsParameter, - context).block(); - } - - /** - * Compare the deployment version to another deployment version. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param versionName Name of the DeploymentVersion under the profile. - * @param compareDeploymentVersionsParameter The deployment version to be compared to. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return compare deployment versions response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CompareDeploymentVersionsResponseInner compare(String resourceGroupName, String profileName, - String versionName, CompareDeploymentVersionsParameter compareDeploymentVersionsParameter) { - return compareWithResponse(resourceGroupName, profileName, versionName, compareDeploymentVersionsParameter, - 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 DeploymentVersion list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileNextSinglePageAsync(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.listByProfileNext(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 DeploymentVersion list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileNextSinglePageAsync(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.listByProfileNext(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/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/KeyGroupsClientImpl.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/KeyGroupsClientImpl.java deleted file mode 100644 index c2528259b10b..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/KeyGroupsClientImpl.java +++ /dev/null @@ -1,1226 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.KeyGroupsClient; -import com.azure.resourcemanager.cdn.fluent.models.KeyGroupInner; -import com.azure.resourcemanager.cdn.implementation.models.KeyGroupListResult; -import com.azure.resourcemanager.cdn.models.KeyGroupUpdatePropertiesParameters; -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 KeyGroupsClient. - */ -public final class KeyGroupsClientImpl implements KeyGroupsClient { - /** - * The proxy service used to perform REST calls. - */ - private final KeyGroupsService service; - - /** - * The service client containing this operation class. - */ - private final CdnManagementClientImpl client; - - /** - * Initializes an instance of KeyGroupsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KeyGroupsClientImpl(CdnManagementClientImpl client) { - this.service - = RestProxy.create(KeyGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for CdnManagementClientKeyGroups to be used by the proxy service to - * perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "CdnManagementClientKeyGroups") - public interface KeyGroupsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}") - @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("profileName") String profileName, - @PathParam("keyGroupName") String keyGroupName, @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}") - @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("profileName") String profileName, - @PathParam("keyGroupName") String keyGroupName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") KeyGroupInner keyGroup, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}") - @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("profileName") String profileName, - @PathParam("keyGroupName") String keyGroupName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, - @BodyParam("application/json") KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}") - @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("profileName") String profileName, - @PathParam("keyGroupName") String keyGroupName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByProfile(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("profileName") String profileName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByProfileNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets an existing KeyGroup within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing KeyGroup within a profile along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String profileName, - String keyGroupName) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (keyGroupName == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroupName 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, profileName, keyGroupName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets an existing KeyGroup within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing KeyGroup within a profile along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String profileName, - String keyGroupName, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (keyGroupName == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroupName 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, profileName, keyGroupName, accept, context); - } - - /** - * Gets an existing KeyGroup within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing KeyGroup within a profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String profileName, String keyGroupName) { - return getWithResponseAsync(resourceGroupName, profileName, keyGroupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets an existing KeyGroup within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing KeyGroup within a profile along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String profileName, String keyGroupName, - Context context) { - return getWithResponseAsync(resourceGroupName, profileName, keyGroupName, context).block(); - } - - /** - * Gets an existing KeyGroup within a profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 existing KeyGroup within a profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KeyGroupInner get(String resourceGroupName, String profileName, String keyGroupName) { - return getWithResponse(resourceGroupName, profileName, keyGroupName, Context.NONE).getValue(); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createUpdateWithResponseAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (keyGroupName == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroupName is required and cannot be null.")); - } - if (keyGroup == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroup is required and cannot be null.")); - } else { - keyGroup.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, keyGroupName, contentType, accept, - keyGroup, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createUpdateWithResponseAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (keyGroupName == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroupName is required and cannot be null.")); - } - if (keyGroup == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroup is required and cannot be null.")); - } else { - keyGroup.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, keyGroupName, contentType, accept, - keyGroup, context); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginCreateUpdateAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup) { - Mono>> mono - = createUpdateWithResponseAsync(resourceGroupName, profileName, keyGroupName, keyGroup); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginCreateUpdateAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createUpdateWithResponseAsync(resourceGroupName, profileName, keyGroupName, keyGroup, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginCreateUpdate(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup) { - return this.beginCreateUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroup).getSyncPoller(); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginCreateUpdate(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupInner keyGroup, Context context) { - return this.beginCreateUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroup, context) - .getSyncPoller(); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createUpdateAsync(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupInner keyGroup) { - return beginCreateUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroup).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createUpdateAsync(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupInner keyGroup, Context context) { - return beginCreateUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroup, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 createUpdate(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupInner keyGroup) { - createUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroup).block(); - } - - /** - * Creates or updates a new KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroup The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 createUpdate(String resourceGroupName, String profileName, String keyGroupName, KeyGroupInner keyGroup, - Context context) { - createUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroup, context).block(); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> updateWithResponseAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (keyGroupName == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroupName is required and cannot be null.")); - } - if (keyGroupUpdateProperties == null) { - return Mono.error( - new IllegalArgumentException("Parameter keyGroupUpdateProperties is required and cannot be null.")); - } else { - keyGroupUpdateProperties.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, profileName, keyGroupName, contentType, accept, - keyGroupUpdateProperties, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (keyGroupName == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroupName is required and cannot be null.")); - } - if (keyGroupUpdateProperties == null) { - return Mono.error( - new IllegalArgumentException("Parameter keyGroupUpdateProperties is required and cannot be null.")); - } else { - keyGroupUpdateProperties.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, profileName, keyGroupName, contentType, accept, keyGroupUpdateProperties, context); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, profileName, keyGroupName, keyGroupUpdateProperties); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = updateWithResponseAsync(resourceGroupName, profileName, keyGroupName, keyGroupUpdateProperties, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpdate(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties) { - return this.beginUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroupUpdateProperties) - .getSyncPoller(); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of contains a list of references of UrlSigningKey type secret objects. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpdate(String resourceGroupName, String profileName, - String keyGroupName, KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties, Context context) { - return this.beginUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroupUpdateProperties, context) - .getSyncPoller(); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateAsync(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties) { - return beginUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroupUpdateProperties).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of references of UrlSigningKey type secret objects on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties, Context context) { - return beginUpdateAsync(resourceGroupName, profileName, keyGroupName, keyGroupUpdateProperties, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 update(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties) { - updateAsync(resourceGroupName, profileName, keyGroupName, keyGroupUpdateProperties).block(); - } - - /** - * Updates an existing KeyGroup within the specified profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param keyGroupUpdateProperties The KeyGroup properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 update(String resourceGroupName, String profileName, String keyGroupName, - KeyGroupUpdatePropertiesParameters keyGroupUpdateProperties, Context context) { - updateAsync(resourceGroupName, profileName, keyGroupName, keyGroupUpdateProperties, context).block(); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 profileName, - String keyGroupName) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (keyGroupName == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroupName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, keyGroupName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 profileName, - String keyGroupName, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (keyGroupName == null) { - return Mono.error(new IllegalArgumentException("Parameter keyGroupName is required and cannot be null.")); - } - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, profileName, keyGroupName, context); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 profileName, - String keyGroupName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, profileName, keyGroupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 profileName, - String keyGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, profileName, keyGroupName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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 profileName, - String keyGroupName) { - return this.beginDeleteAsync(resourceGroupName, profileName, keyGroupName).getSyncPoller(); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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 profileName, - String keyGroupName, Context context) { - return this.beginDeleteAsync(resourceGroupName, profileName, keyGroupName, context).getSyncPoller(); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 profileName, String keyGroupName) { - return beginDeleteAsync(resourceGroupName, profileName, keyGroupName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 profileName, String keyGroupName, Context context) { - return beginDeleteAsync(resourceGroupName, profileName, keyGroupName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 profileName, String keyGroupName) { - deleteAsync(resourceGroupName, profileName, keyGroupName).block(); - } - - /** - * Deletes an existing KeyGroup within profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param keyGroupName Name of the KeyGroup under the profile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 profileName, String keyGroupName, Context context) { - deleteAsync(resourceGroupName, profileName, keyGroupName, context).block(); - } - - /** - * Lists existing AzureFrontDoor KeyGroups. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 KeyGroup list operation along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileSinglePageAsync(String resourceGroupName, - String profileName) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByProfile(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, 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 existing AzureFrontDoor KeyGroups. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a KeyGroup list operation along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileSinglePageAsync(String resourceGroupName, - String profileName, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByProfile(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, profileName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists existing AzureFrontDoor KeyGroups. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 KeyGroup list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByProfileAsync(String resourceGroupName, String profileName) { - return new PagedFlux<>(() -> listByProfileSinglePageAsync(resourceGroupName, profileName), - nextLink -> listByProfileNextSinglePageAsync(nextLink)); - } - - /** - * Lists existing AzureFrontDoor KeyGroups. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a KeyGroup list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByProfileAsync(String resourceGroupName, String profileName, Context context) { - return new PagedFlux<>(() -> listByProfileSinglePageAsync(resourceGroupName, profileName, context), - nextLink -> listByProfileNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists existing AzureFrontDoor KeyGroups. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 KeyGroup list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByProfile(String resourceGroupName, String profileName) { - return new PagedIterable<>(listByProfileAsync(resourceGroupName, profileName)); - } - - /** - * Lists existing AzureFrontDoor KeyGroups. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a KeyGroup list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByProfile(String resourceGroupName, String profileName, Context context) { - return new PagedIterable<>(listByProfileAsync(resourceGroupName, profileName, 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 KeyGroup list operation along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileNextSinglePageAsync(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.listByProfileNext(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 KeyGroup list operation along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileNextSinglePageAsync(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.listByProfileNext(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/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/KnowledgeSourcesClientImpl.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/KnowledgeSourcesClientImpl.java deleted file mode 100644 index 3c249753258a..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/KnowledgeSourcesClientImpl.java +++ /dev/null @@ -1,1446 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.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.cdn.fluent.KnowledgeSourcesClient; -import com.azure.resourcemanager.cdn.fluent.models.KnowledgeSourceInner; -import com.azure.resourcemanager.cdn.implementation.models.KnowledgeSourceList; -import com.azure.resourcemanager.cdn.models.KnowledgeSourceUpdateParameters; -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 KnowledgeSourcesClient. - */ -public final class KnowledgeSourcesClientImpl implements KnowledgeSourcesClient { - /** - * The proxy service used to perform REST calls. - */ - private final KnowledgeSourcesService service; - - /** - * The service client containing this operation class. - */ - private final CdnManagementClientImpl client; - - /** - * Initializes an instance of KnowledgeSourcesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - KnowledgeSourcesClientImpl(CdnManagementClientImpl client) { - this.service - = RestProxy.create(KnowledgeSourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for CdnManagementClientKnowledgeSources to be used by the proxy service - * to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "CdnManagementClientKnowledgeSources") - public interface KnowledgeSourcesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources/{knowledgeSourceName}") - @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("webAgentName") String webAgentName, - @PathParam("knowledgeSourceName") String knowledgeSourceName, @HeaderParam("Accept") String accept, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources/{knowledgeSourceName}") - @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("webAgentName") String webAgentName, - @PathParam("knowledgeSourceName") String knowledgeSourceName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") KnowledgeSourceInner knowledgeSource, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources/{knowledgeSourceName}") - @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("webAgentName") String webAgentName, - @PathParam("knowledgeSourceName") String knowledgeSourceName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources/{knowledgeSourceName}") - @ExpectedResponses({ 200, 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("webAgentName") String webAgentName, - @PathParam("knowledgeSourceName") String knowledgeSourceName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWebAgent(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("webAgentName") String webAgentName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}/knowledgeSources/{knowledgeSourceName}/purge") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> purge(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("webAgentName") String webAgentName, - @PathParam("knowledgeSourceName") String knowledgeSourceName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWebAgentNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a knowledge source with the specified name within a web agent along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName 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, webAgentName, knowledgeSourceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a knowledge source with the specified name within a web agent along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName 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, webAgentName, knowledgeSourceName, accept, context); - } - - /** - * Gets a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a knowledge source with the specified name within a web agent on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName) { - return getWithResponseAsync(resourceGroupName, webAgentName, knowledgeSourceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a knowledge source with the specified name within a web agent along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String webAgentName, - String knowledgeSourceName, Context context) { - return getWithResponseAsync(resourceGroupName, webAgentName, knowledgeSourceName, context).block(); - } - - /** - * Gets a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a knowledge source with the specified name within a web agent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KnowledgeSourceInner get(String resourceGroupName, String webAgentName, String knowledgeSourceName) { - return getWithResponse(resourceGroupName, webAgentName, knowledgeSourceName, Context.NONE).getValue(); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String webAgentName, String knowledgeSourceName, KnowledgeSourceInner knowledgeSource) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName is required and cannot be null.")); - } - if (knowledgeSource == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSource is required and cannot be null.")); - } else { - knowledgeSource.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, webAgentName, knowledgeSourceName, contentType, - accept, knowledgeSource, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String webAgentName, String knowledgeSourceName, KnowledgeSourceInner knowledgeSource, 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName is required and cannot be null.")); - } - if (knowledgeSource == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSource is required and cannot be null.")); - } else { - knowledgeSource.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, webAgentName, knowledgeSourceName, contentType, accept, - knowledgeSource, context); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, KnowledgeSourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceInner knowledgeSource) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSource); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - KnowledgeSourceInner.class, KnowledgeSourceInner.class, this.client.getContext()); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 PollerFlux} for polling of defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KnowledgeSourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String webAgentName, String knowledgeSourceName, KnowledgeSourceInner knowledgeSource, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, webAgentName, - knowledgeSourceName, knowledgeSource, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - KnowledgeSourceInner.class, KnowledgeSourceInner.class, context); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KnowledgeSourceInner> beginCreateOrUpdate( - String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceInner knowledgeSource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSource) - .getSyncPoller(); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KnowledgeSourceInner> beginCreateOrUpdate( - String resourceGroupName, String webAgentName, String knowledgeSourceName, KnowledgeSourceInner knowledgeSource, - Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSource, context) - .getSyncPoller(); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceInner knowledgeSource) { - return beginCreateOrUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSource).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceInner knowledgeSource, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSource, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KnowledgeSourceInner createOrUpdate(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceInner knowledgeSource) { - return createOrUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSource).block(); - } - - /** - * Creates or updates a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSource Knowledge source to be created or 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KnowledgeSourceInner createOrUpdate(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceInner knowledgeSource, Context context) { - return createOrUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSource, context) - .block(); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> updateWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName is required and cannot be null.")); - } - if (knowledgeSourceUpdateParameters == null) { - return Mono.error(new IllegalArgumentException( - "Parameter knowledgeSourceUpdateParameters is required and cannot be null.")); - } else { - knowledgeSourceUpdateParameters.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, webAgentName, knowledgeSourceName, contentType, - accept, knowledgeSourceUpdateParameters, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters, 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName is required and cannot be null.")); - } - if (knowledgeSourceUpdateParameters == null) { - return Mono.error(new IllegalArgumentException( - "Parameter knowledgeSourceUpdateParameters is required and cannot be null.")); - } else { - knowledgeSourceUpdateParameters.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, webAgentName, knowledgeSourceName, contentType, accept, knowledgeSourceUpdateParameters, - context); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, webAgentName, - knowledgeSourceName, knowledgeSourceUpdateParameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 PollerFlux} for polling of defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = updateWithResponseAsync(resourceGroupName, webAgentName, - knowledgeSourceName, knowledgeSourceUpdateParameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpdate(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters) { - return this - .beginUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSourceUpdateParameters) - .getSyncPoller(); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpdate(String resourceGroupName, String webAgentName, - String knowledgeSourceName, KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters, Context context) { - return this - .beginUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSourceUpdateParameters, - context) - .getSyncPoller(); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateAsync(String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters) { - return beginUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSourceUpdateParameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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 defines a knowledge source resource for a web agent on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters, Context context) { - return beginUpdateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSourceUpdateParameters, - context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void update(String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters) { - updateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSourceUpdateParameters).block(); - } - - /** - * Updates an existing knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param knowledgeSourceUpdateParameters Knowledge source parameters 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void update(String resourceGroupName, String webAgentName, String knowledgeSourceName, - KnowledgeSourceUpdateParameters knowledgeSourceUpdateParameters, Context context) { - updateAsync(resourceGroupName, webAgentName, knowledgeSourceName, knowledgeSourceUpdateParameters, context) - .block(); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 webAgentName, - String knowledgeSourceName) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, webAgentName, knowledgeSourceName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 webAgentName, - String knowledgeSourceName, 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName is required and cannot be null.")); - } - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, webAgentName, knowledgeSourceName, context); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 webAgentName, - String knowledgeSourceName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, webAgentName, knowledgeSourceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 webAgentName, - String knowledgeSourceName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, webAgentName, knowledgeSourceName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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 webAgentName, - String knowledgeSourceName) { - return this.beginDeleteAsync(resourceGroupName, webAgentName, knowledgeSourceName).getSyncPoller(); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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 webAgentName, - String knowledgeSourceName, Context context) { - return this.beginDeleteAsync(resourceGroupName, webAgentName, knowledgeSourceName, context).getSyncPoller(); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 webAgentName, String knowledgeSourceName) { - return beginDeleteAsync(resourceGroupName, webAgentName, knowledgeSourceName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 webAgentName, String knowledgeSourceName, - Context context) { - return beginDeleteAsync(resourceGroupName, webAgentName, knowledgeSourceName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 webAgentName, String knowledgeSourceName) { - deleteAsync(resourceGroupName, webAgentName, knowledgeSourceName).block(); - } - - /** - * Deletes a knowledge source with the specified name within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 webAgentName, String knowledgeSourceName, Context context) { - deleteAsync(resourceGroupName, webAgentName, knowledgeSourceName, context).block(); - } - - /** - * Lists all knowledge sources within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of knowledge sources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWebAgentSinglePageAsync(String resourceGroupName, - String webAgentName) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByWebAgent(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, webAgentName, 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 knowledge sources within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of knowledge sources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWebAgentSinglePageAsync(String resourceGroupName, - String webAgentName, 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByWebAgent(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, webAgentName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all knowledge sources within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of knowledge sources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByWebAgentAsync(String resourceGroupName, String webAgentName) { - return new PagedFlux<>(() -> listByWebAgentSinglePageAsync(resourceGroupName, webAgentName), - nextLink -> listByWebAgentNextSinglePageAsync(nextLink)); - } - - /** - * Lists all knowledge sources within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of knowledge sources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWebAgentAsync(String resourceGroupName, String webAgentName, - Context context) { - return new PagedFlux<>(() -> listByWebAgentSinglePageAsync(resourceGroupName, webAgentName, context), - nextLink -> listByWebAgentNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all knowledge sources within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of knowledge sources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWebAgent(String resourceGroupName, String webAgentName) { - return new PagedIterable<>(listByWebAgentAsync(resourceGroupName, webAgentName)); - } - - /** - * Lists all knowledge sources within a web agent. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of knowledge sources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWebAgent(String resourceGroupName, String webAgentName, - Context context) { - return new PagedIterable<>(listByWebAgentAsync(resourceGroupName, webAgentName, context)); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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>> purgeWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, webAgentName, knowledgeSourceName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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>> purgeWithResponseAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (knowledgeSourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter knowledgeSourceName is required and cannot be null.")); - } - context = this.client.mergeContext(context); - return service.purge(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, webAgentName, knowledgeSourceName, context); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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> beginPurgeAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName) { - Mono>> mono - = purgeWithResponseAsync(resourceGroupName, webAgentName, knowledgeSourceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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> beginPurgeAsync(String resourceGroupName, String webAgentName, - String knowledgeSourceName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = purgeWithResponseAsync(resourceGroupName, webAgentName, knowledgeSourceName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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> beginPurge(String resourceGroupName, String webAgentName, - String knowledgeSourceName) { - return this.beginPurgeAsync(resourceGroupName, webAgentName, knowledgeSourceName).getSyncPoller(); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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> beginPurge(String resourceGroupName, String webAgentName, - String knowledgeSourceName, Context context) { - return this.beginPurgeAsync(resourceGroupName, webAgentName, knowledgeSourceName, context).getSyncPoller(); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 purgeAsync(String resourceGroupName, String webAgentName, String knowledgeSourceName) { - return beginPurgeAsync(resourceGroupName, webAgentName, knowledgeSourceName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 purgeAsync(String resourceGroupName, String webAgentName, String knowledgeSourceName, - Context context) { - return beginPurgeAsync(resourceGroupName, webAgentName, knowledgeSourceName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 purge(String resourceGroupName, String webAgentName, String knowledgeSourceName) { - purgeAsync(resourceGroupName, webAgentName, knowledgeSourceName).block(); - } - - /** - * Remove the cache of a knowledge source. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param knowledgeSourceName The name of the knowledge source. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 purge(String resourceGroupName, String webAgentName, String knowledgeSourceName, Context context) { - purgeAsync(resourceGroupName, webAgentName, knowledgeSourceName, context).block(); - } - - /** - * 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 defines a list of knowledge sources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWebAgentNextSinglePageAsync(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.listByWebAgentNext(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 defines a list of knowledge sources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWebAgentNextSinglePageAsync(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.listByWebAgentNext(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/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/ProfileAgentsClientImpl.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/ProfileAgentsClientImpl.java deleted file mode 100644 index 4214aaf874de..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/ProfileAgentsClientImpl.java +++ /dev/null @@ -1,1226 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.ProfileAgentsClient; -import com.azure.resourcemanager.cdn.fluent.models.ProfileAgentInner; -import com.azure.resourcemanager.cdn.implementation.models.ProfileAgentListResult; -import com.azure.resourcemanager.cdn.models.ProfileAgentUpdateParameters; -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 ProfileAgentsClient. - */ -public final class ProfileAgentsClientImpl implements ProfileAgentsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ProfileAgentsService service; - - /** - * The service client containing this operation class. - */ - private final CdnManagementClientImpl client; - - /** - * Initializes an instance of ProfileAgentsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ProfileAgentsClientImpl(CdnManagementClientImpl client) { - this.service - = RestProxy.create(ProfileAgentsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for CdnManagementClientProfileAgents to be used by the proxy service to - * perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "CdnManagementClientProfileAgents") - public interface ProfileAgentsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/agents/{agentName}") - @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("profileName") String profileName, - @PathParam("agentName") String agentName, @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/agents/{agentName}") - @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("profileName") String profileName, - @PathParam("agentName") String agentName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ProfileAgentInner profileAgent, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/agents/{agentName}") - @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("profileName") String profileName, - @PathParam("agentName") String agentName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, - @BodyParam("application/json") ProfileAgentUpdateParameters profileAgentUpdateParameters, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/agents/{agentName}") - @ExpectedResponses({ 200, 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("profileName") String profileName, - @PathParam("agentName") String agentName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/agents") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByProfile(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("profileName") String profileName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByProfileNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String profileName, - String agentName) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (agentName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentName 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, profileName, agentName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String profileName, - String agentName, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (agentName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentName 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, profileName, agentName, accept, context); - } - - /** - * Gets an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String profileName, String agentName) { - return getWithResponseAsync(resourceGroupName, profileName, agentName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String profileName, String agentName, - Context context) { - return getWithResponseAsync(resourceGroupName, profileName, agentName, context).block(); - } - - /** - * Gets an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ProfileAgentInner get(String resourceGroupName, String profileName, String agentName) { - return getWithResponse(resourceGroupName, profileName, agentName, Context.NONE).getValue(); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String profileName, String agentName, ProfileAgentInner profileAgent) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (agentName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentName is required and cannot be null.")); - } - if (profileAgent == null) { - return Mono.error(new IllegalArgumentException("Parameter profileAgent is required and cannot be null.")); - } else { - profileAgent.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, profileName, agentName, contentType, accept, - profileAgent, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String profileName, String agentName, ProfileAgentInner profileAgent, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (agentName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentName is required and cannot be null.")); - } - if (profileAgent == null) { - return Mono.error(new IllegalArgumentException("Parameter profileAgent is required and cannot be null.")); - } else { - profileAgent.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, profileName, agentName, contentType, accept, - profileAgent, context); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, ProfileAgentInner> beginCreateOrUpdateAsync( - String resourceGroupName, String profileName, String agentName, ProfileAgentInner profileAgent) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, profileName, agentName, profileAgent); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ProfileAgentInner.class, ProfileAgentInner.class, this.client.getContext()); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ProfileAgentInner> beginCreateOrUpdateAsync( - String resourceGroupName, String profileName, String agentName, ProfileAgentInner profileAgent, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, profileName, agentName, profileAgent, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ProfileAgentInner.class, ProfileAgentInner.class, context); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ProfileAgentInner> beginCreateOrUpdate(String resourceGroupName, - String profileName, String agentName, ProfileAgentInner profileAgent) { - return this.beginCreateOrUpdateAsync(resourceGroupName, profileName, agentName, profileAgent).getSyncPoller(); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ProfileAgentInner> beginCreateOrUpdate(String resourceGroupName, - String profileName, String agentName, ProfileAgentInner profileAgent, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, profileName, agentName, profileAgent, context) - .getSyncPoller(); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String profileName, String agentName, - ProfileAgentInner profileAgent) { - return beginCreateOrUpdateAsync(resourceGroupName, profileName, agentName, profileAgent).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String profileName, String agentName, - ProfileAgentInner profileAgent, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, profileName, agentName, profileAgent, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ProfileAgentInner createOrUpdate(String resourceGroupName, String profileName, String agentName, - ProfileAgentInner profileAgent) { - return createOrUpdateAsync(resourceGroupName, profileName, agentName, profileAgent).block(); - } - - /** - * Creates or updates an agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgent Profile agent association properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ProfileAgentInner createOrUpdate(String resourceGroupName, String profileName, String agentName, - ProfileAgentInner profileAgent, Context context) { - return createOrUpdateAsync(resourceGroupName, profileName, agentName, profileAgent, context).block(); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> updateWithResponseAsync(String resourceGroupName, String profileName, - String agentName, ProfileAgentUpdateParameters profileAgentUpdateParameters) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (agentName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentName is required and cannot be null.")); - } - if (profileAgentUpdateParameters == null) { - return Mono.error( - new IllegalArgumentException("Parameter profileAgentUpdateParameters is required and cannot be null.")); - } else { - profileAgentUpdateParameters.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, profileName, agentName, contentType, accept, - profileAgentUpdateParameters, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String profileName, - String agentName, ProfileAgentUpdateParameters profileAgentUpdateParameters, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (agentName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentName is required and cannot be null.")); - } - if (profileAgentUpdateParameters == null) { - return Mono.error( - new IllegalArgumentException("Parameter profileAgentUpdateParameters is required and cannot be null.")); - } else { - profileAgentUpdateParameters.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, profileName, agentName, contentType, accept, profileAgentUpdateParameters, context); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String profileName, - String agentName, ProfileAgentUpdateParameters profileAgentUpdateParameters) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, profileName, agentName, profileAgentUpdateParameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String profileName, - String agentName, ProfileAgentUpdateParameters profileAgentUpdateParameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = updateWithResponseAsync(resourceGroupName, profileName, agentName, profileAgentUpdateParameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpdate(String resourceGroupName, String profileName, - String agentName, ProfileAgentUpdateParameters profileAgentUpdateParameters) { - return this.beginUpdateAsync(resourceGroupName, profileName, agentName, profileAgentUpdateParameters) - .getSyncPoller(); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an agent link (web agent association) within a CDN profile. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpdate(String resourceGroupName, String profileName, - String agentName, ProfileAgentUpdateParameters profileAgentUpdateParameters, Context context) { - return this.beginUpdateAsync(resourceGroupName, profileName, agentName, profileAgentUpdateParameters, context) - .getSyncPoller(); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateAsync(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters) { - return beginUpdateAsync(resourceGroupName, profileName, agentName, profileAgentUpdateParameters).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 agent link (web agent association) within a CDN profile on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters, Context context) { - return beginUpdateAsync(resourceGroupName, profileName, agentName, profileAgentUpdateParameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 update(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters) { - updateAsync(resourceGroupName, profileName, agentName, profileAgentUpdateParameters).block(); - } - - /** - * Updates an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param profileAgentUpdateParameters Profile agent association update properties. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 update(String resourceGroupName, String profileName, String agentName, - ProfileAgentUpdateParameters profileAgentUpdateParameters, Context context) { - updateAsync(resourceGroupName, profileName, agentName, profileAgentUpdateParameters, context).block(); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 profileName, - String agentName) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (agentName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, agentName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 profileName, - String agentName, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - if (agentName == null) { - return Mono.error(new IllegalArgumentException("Parameter agentName is required and cannot be null.")); - } - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, profileName, agentName, context); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 profileName, - String agentName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, profileName, agentName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 profileName, - String agentName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, profileName, agentName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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 profileName, - String agentName) { - return this.beginDeleteAsync(resourceGroupName, profileName, agentName).getSyncPoller(); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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 profileName, - String agentName, Context context) { - return this.beginDeleteAsync(resourceGroupName, profileName, agentName, context).getSyncPoller(); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 profileName, String agentName) { - return beginDeleteAsync(resourceGroupName, profileName, agentName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 profileName, String agentName, Context context) { - return beginDeleteAsync(resourceGroupName, profileName, agentName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 profileName, String agentName) { - deleteAsync(resourceGroupName, profileName, agentName).block(); - } - - /** - * Deletes an existing agent link (web agent association) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param agentName Name of the web agent association. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 profileName, String agentName, Context context) { - deleteAsync(resourceGroupName, profileName, agentName, context).block(); - } - - /** - * Lists all agent links (web agent associations) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 ProfileAgent list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileSinglePageAsync(String resourceGroupName, - String profileName) { - 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByProfile(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, 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 agent links (web agent associations) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ProfileAgent list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileSinglePageAsync(String resourceGroupName, - String profileName, 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 (profileName == null) { - return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByProfile(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, profileName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all agent links (web agent associations) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 ProfileAgent list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByProfileAsync(String resourceGroupName, String profileName) { - return new PagedFlux<>(() -> listByProfileSinglePageAsync(resourceGroupName, profileName), - nextLink -> listByProfileNextSinglePageAsync(nextLink)); - } - - /** - * Lists all agent links (web agent associations) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ProfileAgent list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByProfileAsync(String resourceGroupName, String profileName, - Context context) { - return new PagedFlux<>(() -> listByProfileSinglePageAsync(resourceGroupName, profileName, context), - nextLink -> listByProfileNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all agent links (web agent associations) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource 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 ProfileAgent list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByProfile(String resourceGroupName, String profileName) { - return new PagedIterable<>(listByProfileAsync(resourceGroupName, profileName)); - } - - /** - * Lists all agent links (web agent associations) within a CDN profile. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is - * unique within the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ProfileAgent list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByProfile(String resourceGroupName, String profileName, - Context context) { - return new PagedIterable<>(listByProfileAsync(resourceGroupName, profileName, 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 ProfileAgent list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileNextSinglePageAsync(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.listByProfileNext(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 ProfileAgent list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByProfileNextSinglePageAsync(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.listByProfileNext(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/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/RuleSetsClientImpl.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/RuleSetsClientImpl.java index 4d6e8e9b7d75..e8d3fb09e894 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/RuleSetsClientImpl.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/RuleSetsClientImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.cdn.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; @@ -36,7 +37,6 @@ import com.azure.resourcemanager.cdn.fluent.models.UsageInner; import com.azure.resourcemanager.cdn.implementation.models.RuleSetListResult; import com.azure.resourcemanager.cdn.implementation.models.UsagesListResult; -import com.azure.resourcemanager.cdn.models.RuleSetsCreateResponse; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -85,10 +85,11 @@ Mono> get(@HostParam("endpoint") String endpoint, @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono create(@HostParam("endpoint") String endpoint, + Mono>> create(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("profileName") String profileName, - @PathParam("ruleSetName") String ruleSetName, @HeaderParam("Accept") String accept, Context context); + @PathParam("ruleSetName") String ruleSetName, @HeaderParam("Accept") String accept, + @BodyParam("application/json") RuleSetInner resource, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}") @@ -279,21 +280,22 @@ public RuleSetInner get(String resourceGroupName, String profileName, String rul } /** - * Creates a new rule set within the specified profile. + * Creates or update a batch rule set within the specified profile along with the rules associate to it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is * unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related information on successful completion - * of {@link Mono}. + * @return friendly RuleSet name mapping to the any RuleSet or secret related information along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createWithResponseAsync(String resourceGroupName, String profileName, - String ruleSetName) { + public Mono>> createWithResponseAsync(String resourceGroupName, String profileName, + String ruleSetName, RuleSetInner resource) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -312,30 +314,33 @@ public Mono createWithResponseAsync(String resourceGroup if (ruleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleSetName is required and cannot be null.")); } + if (resource != null) { + resource.validate(); + } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, profileName, ruleSetName, accept, context)) + return FluxUtil.withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, profileName, ruleSetName, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates a new rule set within the specified profile. + * Creates or update a batch rule set within the specified profile along with the rules associate to it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is * unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related information on successful completion - * of {@link Mono}. + * @return friendly RuleSet name mapping to the any RuleSet or secret related information along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createWithResponseAsync(String resourceGroupName, String profileName, - String ruleSetName, Context context) { + private Mono>> createWithResponseAsync(String resourceGroupName, String profileName, + String ruleSetName, RuleSetInner resource, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -354,14 +359,150 @@ private Mono createWithResponseAsync(String resourceGrou if (ruleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleSetName is required and cannot be null.")); } + if (resource != null) { + resource.validate(); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, profileName, ruleSetName, accept, context); + resourceGroupName, profileName, ruleSetName, accept, resource, context); + } + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related + * information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, RuleSetInner> beginCreateAsync(String resourceGroupName, + String profileName, String ruleSetName, RuleSetInner resource) { + Mono>> mono + = createWithResponseAsync(resourceGroupName, profileName, ruleSetName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + RuleSetInner.class, RuleSetInner.class, this.client.getContext()); + } + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown 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 friendly RuleSet name mapping to the any RuleSet or secret related + * information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, RuleSetInner> beginCreateAsync(String resourceGroupName, + String profileName, String ruleSetName) { + final RuleSetInner resource = null; + Mono>> mono + = createWithResponseAsync(resourceGroupName, profileName, ruleSetName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + RuleSetInner.class, RuleSetInner.class, this.client.getContext()); + } + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related + * information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, RuleSetInner> beginCreateAsync(String resourceGroupName, + String profileName, String ruleSetName, RuleSetInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createWithResponseAsync(resourceGroupName, profileName, ruleSetName, resource, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + RuleSetInner.class, RuleSetInner.class, context); + } + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of friendly RuleSet name mapping to the any RuleSet or secret related + * information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, RuleSetInner> beginCreate(String resourceGroupName, String profileName, + String ruleSetName) { + final RuleSetInner resource = null; + return this.beginCreateAsync(resourceGroupName, profileName, ruleSetName, resource).getSyncPoller(); + } + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related + * information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, RuleSetInner> beginCreate(String resourceGroupName, String profileName, + String ruleSetName, RuleSetInner resource, Context context) { + return this.beginCreateAsync(resourceGroupName, profileName, ruleSetName, resource, context).getSyncPoller(); + } + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related information on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createAsync(String resourceGroupName, String profileName, String ruleSetName, + RuleSetInner resource) { + return beginCreateAsync(resourceGroupName, profileName, ruleSetName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates a new rule set within the specified profile. + * Creates or update a batch rule set within the specified profile along with the rules associate to it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is @@ -375,31 +516,35 @@ private Mono createWithResponseAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono createAsync(String resourceGroupName, String profileName, String ruleSetName) { - return createWithResponseAsync(resourceGroupName, profileName, ruleSetName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + final RuleSetInner resource = null; + return beginCreateAsync(resourceGroupName, profileName, ruleSetName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates a new rule set within the specified profile. + * Creates or update a batch rule set within the specified profile along with the rules associate to it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is * unique within the resource group. * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related information. + * @return friendly RuleSet name mapping to the any RuleSet or secret related information on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RuleSetsCreateResponse createWithResponse(String resourceGroupName, String profileName, String ruleSetName, - Context context) { - return createWithResponseAsync(resourceGroupName, profileName, ruleSetName, context).block(); + private Mono createAsync(String resourceGroupName, String profileName, String ruleSetName, + RuleSetInner resource, Context context) { + return beginCreateAsync(resourceGroupName, profileName, ruleSetName, resource, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates a new rule set within the specified profile. + * Creates or update a batch rule set within the specified profile along with the rules associate to it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is @@ -412,7 +557,28 @@ public RuleSetsCreateResponse createWithResponse(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) public RuleSetInner create(String resourceGroupName, String profileName, String ruleSetName) { - return createWithResponse(resourceGroupName, profileName, ruleSetName, Context.NONE).getValue(); + final RuleSetInner resource = null; + return createAsync(resourceGroupName, profileName, ruleSetName, resource).block(); + } + + /** + * Creates or update a batch rule set within the specified profile along with the rules associate to it. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is + * unique within the resource group. + * @param ruleSetName Name of the rule set under the profile which is unique globally. + * @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 friendly RuleSet name mapping to the any RuleSet or secret related information. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RuleSetInner create(String resourceGroupName, String profileName, String ruleSetName, RuleSetInner resource, + Context context) { + return createAsync(resourceGroupName, profileName, ruleSetName, resource, context).block(); } /** diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/WebAgentsClientImpl.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/WebAgentsClientImpl.java deleted file mode 100644 index 7f9643fa25ef..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/WebAgentsClientImpl.java +++ /dev/null @@ -1,1278 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.WebAgentsClient; -import com.azure.resourcemanager.cdn.fluent.models.WebAgentInner; -import com.azure.resourcemanager.cdn.implementation.models.WebAgentList; -import com.azure.resourcemanager.cdn.models.WebAgentUpdateParameters; -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 WebAgentsClient. - */ -public final class WebAgentsClientImpl implements InnerSupportsGet, InnerSupportsListing, - InnerSupportsDelete, WebAgentsClient { - /** - * The proxy service used to perform REST calls. - */ - private final WebAgentsService service; - - /** - * The service client containing this operation class. - */ - private final CdnManagementClientImpl client; - - /** - * Initializes an instance of WebAgentsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - WebAgentsClientImpl(CdnManagementClientImpl client) { - this.service - = RestProxy.create(WebAgentsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for CdnManagementClientWebAgents to be used by the proxy service to - * perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "CdnManagementClientWebAgents") - public interface WebAgentsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}") - @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("webAgentName") String webAgentName, - @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}") - @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("webAgentName") String webAgentName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") WebAgentInner webAgent, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}") - @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("webAgentName") String webAgentName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") WebAgentUpdateParameters webAgentUpdateParameters, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}") - @ExpectedResponses({ 200, 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("webAgentName") String webAgentName, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents") - @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.Cdn/webAgents") - @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> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a web agent with the specified name within a resource group along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String webAgentName) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName 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, webAgentName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a web agent with the specified name within a resource group along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String webAgentName, 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName 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, webAgentName, accept, context); - } - - /** - * Gets a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a web agent with the specified name within a resource group on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String webAgentName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, webAgentName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a web agent with the specified name within a resource group along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, String webAgentName, - Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, webAgentName, context).block(); - } - - /** - * Gets a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a web agent with the specified name within a resource group. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public WebAgentInner getByResourceGroup(String resourceGroupName, String webAgentName) { - return getByResourceGroupWithResponse(resourceGroupName, webAgentName, Context.NONE).getValue(); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String webAgentName, WebAgentInner webAgent) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (webAgent == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgent is required and cannot be null.")); - } else { - webAgent.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, webAgentName, contentType, accept, webAgent, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String webAgentName, WebAgentInner webAgent, 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (webAgent == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgent is required and cannot be null.")); - } else { - webAgent.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, webAgentName, contentType, accept, webAgent, context); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, WebAgentInner> beginCreateOrUpdateAsync(String resourceGroupName, - String webAgentName, WebAgentInner webAgent) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, webAgentName, webAgent); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - WebAgentInner.class, WebAgentInner.class, this.client.getContext()); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 PollerFlux} for polling of defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WebAgentInner> beginCreateOrUpdateAsync(String resourceGroupName, - String webAgentName, WebAgentInner webAgent, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, webAgentName, webAgent, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - WebAgentInner.class, WebAgentInner.class, context); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WebAgentInner> beginCreateOrUpdate(String resourceGroupName, - String webAgentName, WebAgentInner webAgent) { - return this.beginCreateOrUpdateAsync(resourceGroupName, webAgentName, webAgent).getSyncPoller(); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WebAgentInner> beginCreateOrUpdate(String resourceGroupName, - String webAgentName, WebAgentInner webAgent, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, webAgentName, webAgent, context).getSyncPoller(); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String webAgentName, - WebAgentInner webAgent) { - return beginCreateOrUpdateAsync(resourceGroupName, webAgentName, webAgent).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String webAgentName, - WebAgentInner webAgent, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, webAgentName, webAgent, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public WebAgentInner createOrUpdate(String resourceGroupName, String webAgentName, WebAgentInner webAgent) { - return createOrUpdateAsync(resourceGroupName, webAgentName, webAgent).block(); - } - - /** - * Creates or updates a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgent Web agent to be created or 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public WebAgentInner createOrUpdate(String resourceGroupName, String webAgentName, WebAgentInner webAgent, - Context context) { - return createOrUpdateAsync(resourceGroupName, webAgentName, webAgent, context).block(); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> updateWithResponseAsync(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (webAgentUpdateParameters == null) { - return Mono.error( - new IllegalArgumentException("Parameter webAgentUpdateParameters is required and cannot be null.")); - } else { - webAgentUpdateParameters.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, webAgentName, contentType, accept, - webAgentUpdateParameters, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters, 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - if (webAgentUpdateParameters == null) { - return Mono.error( - new IllegalArgumentException("Parameter webAgentUpdateParameters is required and cannot be null.")); - } else { - webAgentUpdateParameters.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, webAgentName, contentType, accept, webAgentUpdateParameters, context); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, webAgentName, webAgentUpdateParameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 PollerFlux} for polling of defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = updateWithResponseAsync(resourceGroupName, webAgentName, webAgentUpdateParameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpdate(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters) { - return this.beginUpdateAsync(resourceGroupName, webAgentName, webAgentUpdateParameters).getSyncPoller(); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpdate(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters, Context context) { - return this.beginUpdateAsync(resourceGroupName, webAgentName, webAgentUpdateParameters, context) - .getSyncPoller(); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateAsync(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters) { - return beginUpdateAsync(resourceGroupName, webAgentName, webAgentUpdateParameters).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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 defines a web agent resource for Azure CDN on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters, Context context) { - return beginUpdateAsync(resourceGroupName, webAgentName, webAgentUpdateParameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void update(String resourceGroupName, String webAgentName, - WebAgentUpdateParameters webAgentUpdateParameters) { - updateAsync(resourceGroupName, webAgentName, webAgentUpdateParameters).block(); - } - - /** - * Updates an existing web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param webAgentUpdateParameters Web agent parameters 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void update(String resourceGroupName, String webAgentName, WebAgentUpdateParameters webAgentUpdateParameters, - Context context) { - updateAsync(resourceGroupName, webAgentName, webAgentUpdateParameters, context).block(); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 webAgentName) { - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, webAgentName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 webAgentName, - 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 (webAgentName == null) { - return Mono.error(new IllegalArgumentException("Parameter webAgentName is required and cannot be null.")); - } - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, webAgentName, context); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 webAgentName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, webAgentName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 webAgentName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, webAgentName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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 webAgentName) { - return this.beginDeleteAsync(resourceGroupName, webAgentName).getSyncPoller(); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is 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 webAgentName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, webAgentName, context).getSyncPoller(); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 webAgentName) { - return beginDeleteAsync(resourceGroupName, webAgentName).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException 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 webAgentName, Context context) { - return beginDeleteAsync(resourceGroupName, webAgentName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 webAgentName) { - deleteAsync(resourceGroupName, webAgentName).block(); - } - - /** - * Deletes a web agent with the specified name within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webAgentName The name of the web agent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 webAgentName, Context context) { - deleteAsync(resourceGroupName, webAgentName, context).block(); - } - - /** - * Lists all web agents within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents 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 all web agents within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents 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 all web agents within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * Lists all web agents within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents 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 all web agents within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } - - /** - * Lists all web agents within a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines a list of web agents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); - } - - /** - * Lists all web agents within a 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 defines a list of web agents 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 all web agents within a 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 defines a list of web agents 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 all web agents within a 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 defines a list of web agents as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * Lists all web agents within a 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 defines a list of web agents 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 all web agents within a 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 defines a list of web agents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Lists all web agents within a 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 defines a list of web agents 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 defines a list of web agents 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 defines a list of web agents 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 defines a list of web agents 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 defines a list of web agents 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/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/DeploymentVersionListResult.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/DeploymentVersionListResult.java deleted file mode 100644 index 8dfd9629265d..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/DeploymentVersionListResult.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.cdn.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.cdn.fluent.models.DeploymentVersionInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a DeploymentVersion list operation. - */ -@Immutable -public final class DeploymentVersionListResult implements JsonSerializable { - /* - * The DeploymentVersion items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of DeploymentVersionListResult class. - */ - private DeploymentVersionListResult() { - } - - /** - * Get the value property: The DeploymentVersion 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 DeploymentVersionListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(DeploymentVersionListResult.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 DeploymentVersionListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionListResult 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 DeploymentVersionListResult. - */ - public static DeploymentVersionListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionListResult deserializedDeploymentVersionListResult = new DeploymentVersionListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> DeploymentVersionInner.fromJson(reader1)); - deserializedDeploymentVersionListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedDeploymentVersionListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionListResult; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/KeyGroupListResult.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/KeyGroupListResult.java deleted file mode 100644 index 2ae314d1117d..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/KeyGroupListResult.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.cdn.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.cdn.fluent.models.KeyGroupInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a KeyGroup list operation. - */ -@Immutable -public final class KeyGroupListResult implements JsonSerializable { - /* - * The KeyGroup items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of KeyGroupListResult class. - */ - private KeyGroupListResult() { - } - - /** - * Get the value property: The KeyGroup 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 KeyGroupListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(KeyGroupListResult.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 KeyGroupListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KeyGroupListResult 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 KeyGroupListResult. - */ - public static KeyGroupListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KeyGroupListResult deserializedKeyGroupListResult = new KeyGroupListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> KeyGroupInner.fromJson(reader1)); - deserializedKeyGroupListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedKeyGroupListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedKeyGroupListResult; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/KnowledgeSourceList.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/KnowledgeSourceList.java deleted file mode 100644 index 5c54924368ad..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/KnowledgeSourceList.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.cdn.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.cdn.fluent.models.KnowledgeSourceInner; -import java.io.IOException; -import java.util.List; - -/** - * Defines a list of knowledge sources. It contains a list of KnowledgeSource objects and a URL link to get the next set - * of results. - */ -@Immutable -public final class KnowledgeSourceList implements JsonSerializable { - /* - * The KnowledgeSource items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of KnowledgeSourceList class. - */ - private KnowledgeSourceList() { - } - - /** - * Get the value property: The KnowledgeSource 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 KnowledgeSourceList")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(KnowledgeSourceList.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 KnowledgeSourceList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KnowledgeSourceList 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 KnowledgeSourceList. - */ - public static KnowledgeSourceList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KnowledgeSourceList deserializedKnowledgeSourceList = new KnowledgeSourceList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> KnowledgeSourceInner.fromJson(reader1)); - deserializedKnowledgeSourceList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedKnowledgeSourceList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedKnowledgeSourceList; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/ProfileAgentListResult.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/ProfileAgentListResult.java deleted file mode 100644 index 1ea6bd47fa99..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/ProfileAgentListResult.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.cdn.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.cdn.fluent.models.ProfileAgentInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ProfileAgent list operation. - */ -@Immutable -public final class ProfileAgentListResult implements JsonSerializable { - /* - * The ProfileAgent items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ProfileAgentListResult class. - */ - private ProfileAgentListResult() { - } - - /** - * Get the value property: The ProfileAgent 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 ProfileAgentListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ProfileAgentListResult.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 ProfileAgentListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ProfileAgentListResult 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 ProfileAgentListResult. - */ - public static ProfileAgentListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ProfileAgentListResult deserializedProfileAgentListResult = new ProfileAgentListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> ProfileAgentInner.fromJson(reader1)); - deserializedProfileAgentListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedProfileAgentListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedProfileAgentListResult; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/WebAgentList.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/WebAgentList.java deleted file mode 100644 index a8c0ad6dea52..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/implementation/models/WebAgentList.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.cdn.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.cdn.fluent.models.WebAgentInner; -import java.io.IOException; -import java.util.List; - -/** - * Defines a list of web agents. It contains a list of WebAgent objects and a URL link to get the next set of results. - */ -@Immutable -public final class WebAgentList implements JsonSerializable { - /* - * The WebAgent items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of WebAgentList class. - */ - private WebAgentList() { - } - - /** - * Get the value property: The WebAgent 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 WebAgentList")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebAgentList.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 WebAgentList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of WebAgentList 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 WebAgentList. - */ - public static WebAgentList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - WebAgentList deserializedWebAgentList = new WebAgentList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> WebAgentInner.fromJson(reader1)); - deserializedWebAgentList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedWebAgentList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedWebAgentList; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ActionType.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ActionType.java index 40b1fb086b3e..b4a07663a9e6 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ActionType.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ActionType.java @@ -31,21 +31,6 @@ public final class ActionType extends ExpandableStringEnum { */ public static final ActionType REDIRECT = fromString("Redirect"); - /** - * Static value AnomalyScoring for ActionType. - */ - public static final ActionType ANOMALY_SCORING = fromString("AnomalyScoring"); - - /** - * Static value JSChallenge for ActionType. - */ - public static final ActionType JSCHALLENGE = fromString("JSChallenge"); - - /** - * Static value CAPTCHA for ActionType. - */ - public static final ActionType CAPTCHA = fromString("CAPTCHA"); - /** * Creates a new instance of ActionType value. * diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainHttpsParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainHttpsParameters.java index 74627d5f0f43..eff1d39ac4b5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainHttpsParameters.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainHttpsParameters.java @@ -11,6 +11,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * The JSON object that contains the properties to secure a domain. @@ -37,6 +38,16 @@ public final class AfdDomainHttpsParameters implements JsonSerializable serverTlsGroups; + /* * Resource reference to the secret. ie. subs/rg/profile/secret */ @@ -133,6 +144,48 @@ public AfdDomainHttpsCustomizedCipherSuiteSet customizedCipherSuiteSet() { return this; } + /** + * Get the serverTlsGroupPolicy property: Server TLS group policy that will be used for Https. + * + * @return the serverTlsGroupPolicy value. + */ + public AfdServerTlsGroupPolicy serverTlsGroupPolicy() { + return this.serverTlsGroupPolicy; + } + + /** + * Set the serverTlsGroupPolicy property: Server TLS group policy that will be used for Https. + * + * @param serverTlsGroupPolicy the serverTlsGroupPolicy value to set. + * @return the AfdDomainHttpsParameters object itself. + */ + public AfdDomainHttpsParameters withServerTlsGroupPolicy(AfdServerTlsGroupPolicy serverTlsGroupPolicy) { + this.serverTlsGroupPolicy = serverTlsGroupPolicy; + return this; + } + + /** + * Get the serverTlsGroups property: Server TLS groups that will be used for Https when serverTlsGroupPolicy is + * Custom. + * + * @return the serverTlsGroups value. + */ + public List serverTlsGroups() { + return this.serverTlsGroups; + } + + /** + * Set the serverTlsGroups property: Server TLS groups that will be used for Https when serverTlsGroupPolicy is + * Custom. + * + * @param serverTlsGroups the serverTlsGroups value to set. + * @return the AfdDomainHttpsParameters object itself. + */ + public AfdDomainHttpsParameters withServerTlsGroups(List serverTlsGroups) { + this.serverTlsGroups = serverTlsGroups; + return this; + } + /** * Get the secret property: Resource reference to the secret. ie. subs/rg/profile/secret. * @@ -187,6 +240,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("minimumTlsVersion", this.minimumTlsVersion == null ? null : this.minimumTlsVersion.toString()); jsonWriter.writeJsonField("customizedCipherSuiteSet", this.customizedCipherSuiteSet); + jsonWriter.writeStringField("serverTlsGroupPolicy", + this.serverTlsGroupPolicy == null ? null : this.serverTlsGroupPolicy.toString()); + jsonWriter.writeArrayField("serverTlsGroups", this.serverTlsGroups, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); jsonWriter.writeJsonField("secret", this.secret); return jsonWriter.writeEndObject(); } @@ -219,6 +276,13 @@ public static AfdDomainHttpsParameters fromJson(JsonReader jsonReader) throws IO } else if ("customizedCipherSuiteSet".equals(fieldName)) { deserializedAfdDomainHttpsParameters.customizedCipherSuiteSet = AfdDomainHttpsCustomizedCipherSuiteSet.fromJson(reader); + } else if ("serverTlsGroupPolicy".equals(fieldName)) { + deserializedAfdDomainHttpsParameters.serverTlsGroupPolicy + = AfdServerTlsGroupPolicy.fromString(reader.getString()); + } else if ("serverTlsGroups".equals(fieldName)) { + List serverTlsGroups + = reader.readArray(reader1 -> AfdServerTlsGroup.fromString(reader1.getString())); + deserializedAfdDomainHttpsParameters.serverTlsGroups = serverTlsGroups; } else if ("secret".equals(fieldName)) { deserializedAfdDomainHttpsParameters.secret = ResourceReference.fromJson(reader); } else { diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdOriginUpdateParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdOriginUpdateParameters.java index 8ba630cbd017..0e82cafa1d16 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdOriginUpdateParameters.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdOriginUpdateParameters.java @@ -11,6 +11,7 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.cdn.fluent.models.AfdOriginUpdatePropertiesParameters; import java.io.IOException; +import java.util.List; /** * AFDOrigin properties needed for origin update. @@ -243,30 +244,6 @@ public SharedPrivateLinkResourceProperties sharedPrivateLinkResource() { return this; } - /** - * Get the originCapacityResource property: Origin capacity settings for an origin. - * - * @return the originCapacityResource value. - */ - public OriginCapacityResourceProperties originCapacityResource() { - return this.innerProperties() == null ? null : this.innerProperties().originCapacityResource(); - } - - /** - * Set the originCapacityResource property: Origin capacity settings for an origin. - * - * @param originCapacityResource the originCapacityResource value to set. - * @return the AfdOriginUpdateParameters object itself. - */ - public AfdOriginUpdateParameters - withOriginCapacityResource(OriginCapacityResourceProperties originCapacityResource) { - if (this.innerProperties() == null) { - this.innerProperties = new AfdOriginUpdatePropertiesParameters(); - } - this.innerProperties().withOriginCapacityResource(originCapacityResource); - return this; - } - /** * Get the enabledState property: Whether to enable health probes to be made against backends defined under * backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend @@ -317,6 +294,57 @@ public AfdOriginUpdateParameters withEnforceCertificateNameCheck(Boolean enforce return this; } + /** + * Get the certificateNameCheckValidationMode property: The validation mode for certificate name check. Only + * applicable when enforceCertificateNameCheck is true. + * + * @return the certificateNameCheckValidationMode value. + */ + public CertificateNameCheckValidationMode certificateNameCheckValidationMode() { + return this.innerProperties() == null ? null : this.innerProperties().certificateNameCheckValidationMode(); + } + + /** + * Set the certificateNameCheckValidationMode property: The validation mode for certificate name check. Only + * applicable when enforceCertificateNameCheck is true. + * + * @param certificateNameCheckValidationMode the certificateNameCheckValidationMode value to set. + * @return the AfdOriginUpdateParameters object itself. + */ + public AfdOriginUpdateParameters + withCertificateNameCheckValidationMode(CertificateNameCheckValidationMode certificateNameCheckValidationMode) { + if (this.innerProperties() == null) { + this.innerProperties = new AfdOriginUpdatePropertiesParameters(); + } + this.innerProperties().withCertificateNameCheckValidationMode(certificateNameCheckValidationMode); + return this; + } + + /** + * Get the customCertificateSubjects property: The list of custom certificate subjects to validate against. Only + * applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries. + * + * @return the customCertificateSubjects value. + */ + public List customCertificateSubjects() { + return this.innerProperties() == null ? null : this.innerProperties().customCertificateSubjects(); + } + + /** + * Set the customCertificateSubjects property: The list of custom certificate subjects to validate against. Only + * applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries. + * + * @param customCertificateSubjects the customCertificateSubjects value to set. + * @return the AfdOriginUpdateParameters object itself. + */ + public AfdOriginUpdateParameters withCustomCertificateSubjects(List customCertificateSubjects) { + if (this.innerProperties() == null) { + this.innerProperties = new AfdOriginUpdatePropertiesParameters(); + } + this.innerProperties().withCustomCertificateSubjects(customCertificateSubjects); + return this; + } + /** * Validates the instance. * diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdRouteGrpcState.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdRouteGrpcState.java deleted file mode 100644 index 09a1a7f3a390..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdRouteGrpcState.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Whether or not gRPC is enabled on this route. Permitted values are 'Enabled' or 'Disabled'. - */ -public final class AfdRouteGrpcState extends ExpandableStringEnum { - /** - * Static value Enabled for AfdRouteGrpcState. - */ - public static final AfdRouteGrpcState ENABLED = fromString("Enabled"); - - /** - * Static value Disabled for AfdRouteGrpcState. - */ - public static final AfdRouteGrpcState DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of AfdRouteGrpcState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AfdRouteGrpcState() { - } - - /** - * Creates or finds a AfdRouteGrpcState from its string representation. - * - * @param name a name to look for. - * @return the corresponding AfdRouteGrpcState. - */ - public static AfdRouteGrpcState fromString(String name) { - return fromString(name, AfdRouteGrpcState.class); - } - - /** - * Gets known AfdRouteGrpcState values. - * - * @return known AfdRouteGrpcState values. - */ - public static Collection values() { - return values(AfdRouteGrpcState.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroup.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroup.java new file mode 100644 index 000000000000..660a4440d446 --- /dev/null +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroup.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.cdn.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Supported key-exchange groups and curves. The ML-KEM groups are hybrid post-quantum groups. + */ +public final class AfdServerTlsGroup extends ExpandableStringEnum { + /** + * Hybrid post-quantum group combining secp256r1 with ML-KEM-768. + */ + public static final AfdServerTlsGroup SEC_P256R1MLKEM768 = fromString("SecP256r1MLKEM768"); + + /** + * Hybrid post-quantum group combining secp384r1 with ML-KEM-1024. + */ + public static final AfdServerTlsGroup SEC_P384R1MLKEM1024 = fromString("SecP384r1MLKEM1024"); + + /** + * Hybrid post-quantum group combining X25519 with ML-KEM-768. + */ + public static final AfdServerTlsGroup X25519MLKEM768 = fromString("X25519MLKEM768"); + + /** + * The prime256v1 elliptic curve group. + */ + public static final AfdServerTlsGroup PRIME256V1 = fromString("prime256v1"); + + /** + * The X25519 elliptic curve group. + */ + public static final AfdServerTlsGroup X25519 = fromString("X25519"); + + /** + * The secp384r1 elliptic curve group. + */ + public static final AfdServerTlsGroup SECP384R1 = fromString("secp384r1"); + + /** + * The secp521r1 elliptic curve group. + */ + public static final AfdServerTlsGroup SECP521R1 = fromString("secp521r1"); + + /** + * Creates a new instance of AfdServerTlsGroup value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AfdServerTlsGroup() { + } + + /** + * Creates or finds a AfdServerTlsGroup from its string representation. + * + * @param name a name to look for. + * @return the corresponding AfdServerTlsGroup. + */ + public static AfdServerTlsGroup fromString(String name) { + return fromString(name, AfdServerTlsGroup.class); + } + + /** + * Gets known AfdServerTlsGroup values. + * + * @return known AfdServerTlsGroup values. + */ + public static Collection values() { + return values(AfdServerTlsGroup.class); + } +} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroupPolicy.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroupPolicy.java new file mode 100644 index 000000000000..00c17175da2b --- /dev/null +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroupPolicy.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.cdn.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Server TLS group policy that will be used for Https. Standard and Enhanced are service-managed sets; Custom allows + * specifying serverTlsGroups explicitly. + */ +public final class AfdServerTlsGroupPolicy extends ExpandableStringEnum { + /** + * Uses the standard service-managed set of server TLS groups. + */ + public static final AfdServerTlsGroupPolicy STANDARD = fromString("Standard"); + + /** + * Uses the enhanced service-managed set of server TLS groups. + */ + public static final AfdServerTlsGroupPolicy ENHANCED = fromString("Enhanced"); + + /** + * Uses the server TLS groups specified by serverTlsGroups. + */ + public static final AfdServerTlsGroupPolicy CUSTOM = fromString("Custom"); + + /** + * Creates a new instance of AfdServerTlsGroupPolicy value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AfdServerTlsGroupPolicy() { + } + + /** + * Creates or finds a AfdServerTlsGroupPolicy from its string representation. + * + * @param name a name to look for. + * @return the corresponding AfdServerTlsGroupPolicy. + */ + public static AfdServerTlsGroupPolicy fromString(String name) { + return fromString(name, AfdServerTlsGroupPolicy.class); + } + + /** + * Gets known AfdServerTlsGroupPolicy values. + * + * @return known AfdServerTlsGroupPolicy values. + */ + public static Collection values() { + return values(AfdServerTlsGroupPolicy.class); + } +} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AgentPath.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AgentPath.java deleted file mode 100644 index 79fcce5e6e0b..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AgentPath.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.cdn.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; - -/** - * Defines a path configuration for a web agent. - */ -@Fluent -public final class AgentPath implements JsonSerializable { - /* - * The type of the path. - */ - private AgentPathType type; - - /* - * The actual path value. - */ - private String path; - - /** - * Creates an instance of AgentPath class. - */ - public AgentPath() { - } - - /** - * Get the type property: The type of the path. - * - * @return the type value. - */ - public AgentPathType type() { - return this.type; - } - - /** - * Set the type property: The type of the path. - * - * @param type the type value to set. - * @return the AgentPath object itself. - */ - public AgentPath withType(AgentPathType type) { - this.type = type; - return this; - } - - /** - * Get the path property: The actual path value. - * - * @return the path value. - */ - public String path() { - return this.path; - } - - /** - * Set the path property: The actual path value. - * - * @param path the path value to set. - * @return the AgentPath object itself. - */ - public AgentPath withPath(String path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (type() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property type in model AgentPath")); - } - if (path() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property path in model AgentPath")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AgentPath.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); - jsonWriter.writeStringField("path", this.path); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AgentPath from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AgentPath 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 AgentPath. - */ - public static AgentPath fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AgentPath deserializedAgentPath = new AgentPath(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("type".equals(fieldName)) { - deserializedAgentPath.type = AgentPathType.fromString(reader.getString()); - } else if ("path".equals(fieldName)) { - deserializedAgentPath.path = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedAgentPath; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AgentPathType.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AgentPathType.java deleted file mode 100644 index 45833d58a12a..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/AgentPathType.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The type of the path. - */ -public final class AgentPathType extends ExpandableStringEnum { - /** - * Static value Chat for AgentPathType. - */ - public static final AgentPathType CHAT = fromString("Chat"); - - /** - * Static value McpServer for AgentPathType. - */ - public static final AgentPathType MCP_SERVER = fromString("McpServer"); - - /** - * Creates a new instance of AgentPathType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AgentPathType() { - } - - /** - * Creates or finds a AgentPathType from its string representation. - * - * @param name a name to look for. - * @return the corresponding AgentPathType. - */ - public static AgentPathType fromString(String name) { - return fromString(name, AgentPathType.class); - } - - /** - * Gets known AgentPathType values. - * - * @return known AgentPathType values. - */ - public static Collection values() { - return values(AgentPathType.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ApprovalStatus.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ApprovalStatus.java deleted file mode 100644 index 19a6c1bec8db..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ApprovalStatus.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Defines values for ApprovalStatus. - */ -public final class ApprovalStatus extends ExpandableStringEnum { - /** - * Static value NotApproved for ApprovalStatus. - */ - public static final ApprovalStatus NOT_APPROVED = fromString("NotApproved"); - - /** - * Static value Approved for ApprovalStatus. - */ - public static final ApprovalStatus APPROVED = fromString("Approved"); - - /** - * Creates a new instance of ApprovalStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ApprovalStatus() { - } - - /** - * Creates or finds a ApprovalStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding ApprovalStatus. - */ - public static ApprovalStatus fromString(String name) { - return fromString(name, ApprovalStatus.class); - } - - /** - * Gets known ApprovalStatus values. - * - * @return known ApprovalStatus values. - */ - public static Collection values() { - return values(ApprovalStatus.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/BatchRuleProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/BatchRuleProperties.java new file mode 100644 index 000000000000..f42e6d8d2bd2 --- /dev/null +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/BatchRuleProperties.java @@ -0,0 +1,251 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cdn.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 JSON object that contains a rule with its name for batch mode operations. + */ +@Fluent +public final class BatchRuleProperties implements JsonSerializable { + /* + * Name of the rule. + */ + private String ruleName; + + /* + * The name of the rule set containing the rule. + */ + private String ruleSetName; + + /* + * The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser + * order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not + * require any condition and actions listed in it will always be applied. + */ + private Integer order; + + /* + * A list of conditions that must be matched for the actions to be executed + */ + private List conditions; + + /* + * A list of actions that are executed when all the conditions of a rule are satisfied. + */ + private List actions; + + /* + * If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, + * defaults to Continue. + */ + private MatchProcessingBehavior matchProcessingBehavior; + + /** + * Creates an instance of BatchRuleProperties class. + */ + public BatchRuleProperties() { + } + + /** + * Get the ruleName property: Name of the rule. + * + * @return the ruleName value. + */ + public String ruleName() { + return this.ruleName; + } + + /** + * Set the ruleName property: Name of the rule. + * + * @param ruleName the ruleName value to set. + * @return the BatchRuleProperties object itself. + */ + public BatchRuleProperties withRuleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get the ruleSetName property: The name of the rule set containing the rule. + * + * @return the ruleSetName value. + */ + public String ruleSetName() { + return this.ruleSetName; + } + + /** + * Get the order property: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. + * A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special + * rule. It does not require any condition and actions listed in it will always be applied. + * + * @return the order value. + */ + public Integer order() { + return this.order; + } + + /** + * Set the order property: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. + * A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special + * rule. It does not require any condition and actions listed in it will always be applied. + * + * @param order the order value to set. + * @return the BatchRuleProperties object itself. + */ + public BatchRuleProperties withOrder(Integer order) { + this.order = order; + return this; + } + + /** + * Get the conditions property: A list of conditions that must be matched for the actions to be executed. + * + * @return the conditions value. + */ + public List conditions() { + return this.conditions; + } + + /** + * Set the conditions property: A list of conditions that must be matched for the actions to be executed. + * + * @param conditions the conditions value to set. + * @return the BatchRuleProperties object itself. + */ + public BatchRuleProperties withConditions(List conditions) { + this.conditions = conditions; + return this; + } + + /** + * Get the actions property: A list of actions that are executed when all the conditions of a rule are satisfied. + * + * @return the actions value. + */ + public List actions() { + return this.actions; + } + + /** + * Set the actions property: A list of actions that are executed when all the conditions of a rule are satisfied. + * + * @param actions the actions value to set. + * @return the BatchRuleProperties object itself. + */ + public BatchRuleProperties withActions(List actions) { + this.actions = actions; + return this; + } + + /** + * Get the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the + * remaining rules or stop. If not present, defaults to Continue. + * + * @return the matchProcessingBehavior value. + */ + public MatchProcessingBehavior matchProcessingBehavior() { + return this.matchProcessingBehavior; + } + + /** + * Set the matchProcessingBehavior property: If this rule is a match should the rules engine continue running the + * remaining rules or stop. If not present, defaults to Continue. + * + * @param matchProcessingBehavior the matchProcessingBehavior value to set. + * @return the BatchRuleProperties object itself. + */ + public BatchRuleProperties withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior) { + this.matchProcessingBehavior = matchProcessingBehavior; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (ruleName() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property ruleName in model BatchRuleProperties")); + } + if (conditions() != null) { + conditions().forEach(e -> e.validate()); + } + if (actions() != null) { + actions().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(BatchRuleProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("ruleName", this.ruleName); + jsonWriter.writeNumberField("order", this.order); + jsonWriter.writeArrayField("conditions", this.conditions, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("actions", this.actions, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("matchProcessingBehavior", + this.matchProcessingBehavior == null ? null : this.matchProcessingBehavior.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BatchRuleProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BatchRuleProperties 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 BatchRuleProperties. + */ + public static BatchRuleProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BatchRuleProperties deserializedBatchRuleProperties = new BatchRuleProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("ruleName".equals(fieldName)) { + deserializedBatchRuleProperties.ruleName = reader.getString(); + } else if ("ruleSetName".equals(fieldName)) { + deserializedBatchRuleProperties.ruleSetName = reader.getString(); + } else if ("order".equals(fieldName)) { + deserializedBatchRuleProperties.order = reader.getNullable(JsonReader::getInt); + } else if ("conditions".equals(fieldName)) { + List conditions + = reader.readArray(reader1 -> DeliveryRuleCondition.fromJson(reader1)); + deserializedBatchRuleProperties.conditions = conditions; + } else if ("actions".equals(fieldName)) { + List actions + = reader.readArray(reader1 -> DeliveryRuleAction.fromJson(reader1)); + deserializedBatchRuleProperties.actions = actions; + } else if ("matchProcessingBehavior".equals(fieldName)) { + deserializedBatchRuleProperties.matchProcessingBehavior + = MatchProcessingBehavior.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedBatchRuleProperties; + }); + } +} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CertificateNameCheckValidationMode.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CertificateNameCheckValidationMode.java new file mode 100644 index 000000000000..f890b06dc2bd --- /dev/null +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CertificateNameCheckValidationMode.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.cdn.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The validation mode for certificate name check at origin level. Only applicable when enforceCertificateNameCheck is + * true. + */ +public final class CertificateNameCheckValidationMode extends ExpandableStringEnum { + /** + * Validate the certificate against the origin hostname. + */ + public static final CertificateNameCheckValidationMode ORIGIN_HOSTNAME = fromString("OriginHostname"); + + /** + * Validate the certificate against custom certificate subjects. + */ + public static final CertificateNameCheckValidationMode CUSTOM_CERTIFICATE_SUBJECT + = fromString("CustomCertificateSubject"); + + /** + * Validate the certificate against the incoming host header. + */ + public static final CertificateNameCheckValidationMode INCOMING_HOST_HEADER = fromString("IncomingHostHeader"); + + /** + * Creates a new instance of CertificateNameCheckValidationMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CertificateNameCheckValidationMode() { + } + + /** + * Creates or finds a CertificateNameCheckValidationMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding CertificateNameCheckValidationMode. + */ + public static CertificateNameCheckValidationMode fromString(String name) { + return fromString(name, CertificateNameCheckValidationMode.class); + } + + /** + * Gets known CertificateNameCheckValidationMode values. + * + * @return known CertificateNameCheckValidationMode values. + */ + public static Collection values() { + return values(CertificateNameCheckValidationMode.class); + } +} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CompareDeploymentVersionsParameter.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CompareDeploymentVersionsParameter.java deleted file mode 100644 index 1e26b4004387..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CompareDeploymentVersionsParameter.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * compare deployment versions request parameter. - */ -@Fluent -public final class CompareDeploymentVersionsParameter implements JsonSerializable { - /* - * the deployment version name to be compared to - */ - private String compareTo; - - /** - * Creates an instance of CompareDeploymentVersionsParameter class. - */ - public CompareDeploymentVersionsParameter() { - } - - /** - * Get the compareTo property: the deployment version name to be compared to. - * - * @return the compareTo value. - */ - public String compareTo() { - return this.compareTo; - } - - /** - * Set the compareTo property: the deployment version name to be compared to. - * - * @param compareTo the compareTo value to set. - * @return the CompareDeploymentVersionsParameter object itself. - */ - public CompareDeploymentVersionsParameter withCompareTo(String compareTo) { - this.compareTo = compareTo; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (compareTo() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property compareTo in model CompareDeploymentVersionsParameter")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CompareDeploymentVersionsParameter.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("compareTo", this.compareTo); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CompareDeploymentVersionsParameter from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CompareDeploymentVersionsParameter 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 CompareDeploymentVersionsParameter. - */ - public static CompareDeploymentVersionsParameter fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CompareDeploymentVersionsParameter deserializedCompareDeploymentVersionsParameter - = new CompareDeploymentVersionsParameter(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("compareTo".equals(fieldName)) { - deserializedCompareDeploymentVersionsParameter.compareTo = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedCompareDeploymentVersionsParameter; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleAfd.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleAfd.java deleted file mode 100644 index 5267fa36d10f..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleAfd.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.cdn.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; - -/** - * Defines contents of a web application rule. - */ -@Fluent -public final class CustomRuleAfd implements JsonSerializable { - /* - * Describes the name of the rule. - */ - private String name; - - /* - * Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. - */ - private int priority; - - /* - * Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. - */ - private CustomRuleEnabledState enabledState; - - /* - * Describes type of rule. - */ - private RuleType ruleType; - - /* - * Time window for resetting the rate limit count. Default is 1 minute. - */ - private Integer rateLimitDurationInMinutes; - - /* - * Number of allowed requests per client within the time window. - */ - private Integer rateLimitThreshold; - - /* - * Describes the list of variables to group the rate limit requests - */ - private List groupBy; - - /* - * List of match conditions. - */ - private List matchConditions; - - /* - * Describes what action to be applied when rule matches. - */ - private ActionType action; - - /** - * Creates an instance of CustomRuleAfd class. - */ - public CustomRuleAfd() { - } - - /** - * Get the name property: Describes the name of the rule. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Describes the name of the rule. - * - * @param name the name value to set. - * @return the CustomRuleAfd object itself. - */ - public CustomRuleAfd withName(String name) { - this.name = name; - return this; - } - - /** - * Get the priority property: Describes priority of the rule. Rules with a lower value will be evaluated before - * rules with a higher value. - * - * @return the priority value. - */ - public int priority() { - return this.priority; - } - - /** - * Set the priority property: Describes priority of the rule. Rules with a lower value will be evaluated before - * rules with a higher value. - * - * @param priority the priority value to set. - * @return the CustomRuleAfd object itself. - */ - public CustomRuleAfd withPriority(int priority) { - this.priority = priority; - return this; - } - - /** - * Get the enabledState property: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled - * if not specified. - * - * @return the enabledState value. - */ - public CustomRuleEnabledState enabledState() { - return this.enabledState; - } - - /** - * Set the enabledState property: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled - * if not specified. - * - * @param enabledState the enabledState value to set. - * @return the CustomRuleAfd object itself. - */ - public CustomRuleAfd withEnabledState(CustomRuleEnabledState enabledState) { - this.enabledState = enabledState; - return this; - } - - /** - * Get the ruleType property: Describes type of rule. - * - * @return the ruleType value. - */ - public RuleType ruleType() { - return this.ruleType; - } - - /** - * Set the ruleType property: Describes type of rule. - * - * @param ruleType the ruleType value to set. - * @return the CustomRuleAfd object itself. - */ - public CustomRuleAfd withRuleType(RuleType ruleType) { - this.ruleType = ruleType; - return this; - } - - /** - * Get the rateLimitDurationInMinutes property: Time window for resetting the rate limit count. Default is 1 minute. - * - * @return the rateLimitDurationInMinutes value. - */ - public Integer rateLimitDurationInMinutes() { - return this.rateLimitDurationInMinutes; - } - - /** - * Set the rateLimitDurationInMinutes property: Time window for resetting the rate limit count. Default is 1 minute. - * - * @param rateLimitDurationInMinutes the rateLimitDurationInMinutes value to set. - * @return the CustomRuleAfd object itself. - */ - public CustomRuleAfd withRateLimitDurationInMinutes(Integer rateLimitDurationInMinutes) { - this.rateLimitDurationInMinutes = rateLimitDurationInMinutes; - return this; - } - - /** - * Get the rateLimitThreshold property: Number of allowed requests per client within the time window. - * - * @return the rateLimitThreshold value. - */ - public Integer rateLimitThreshold() { - return this.rateLimitThreshold; - } - - /** - * Set the rateLimitThreshold property: Number of allowed requests per client within the time window. - * - * @param rateLimitThreshold the rateLimitThreshold value to set. - * @return the CustomRuleAfd object itself. - */ - public CustomRuleAfd withRateLimitThreshold(Integer rateLimitThreshold) { - this.rateLimitThreshold = rateLimitThreshold; - return this; - } - - /** - * Get the groupBy property: Describes the list of variables to group the rate limit requests. - * - * @return the groupBy value. - */ - public List groupBy() { - return this.groupBy; - } - - /** - * Set the groupBy property: Describes the list of variables to group the rate limit requests. - * - * @param groupBy the groupBy value to set. - * @return the CustomRuleAfd object itself. - */ - public CustomRuleAfd withGroupBy(List groupBy) { - this.groupBy = groupBy; - return this; - } - - /** - * Get the matchConditions property: List of match conditions. - * - * @return the matchConditions value. - */ - public List matchConditions() { - return this.matchConditions; - } - - /** - * Set the matchConditions property: List of match conditions. - * - * @param matchConditions the matchConditions value to set. - * @return the CustomRuleAfd object itself. - */ - public CustomRuleAfd withMatchConditions(List matchConditions) { - this.matchConditions = matchConditions; - return this; - } - - /** - * Get the action property: Describes what action to be applied when rule matches. - * - * @return the action value. - */ - public ActionType action() { - return this.action; - } - - /** - * Set the action property: Describes what action to be applied when rule matches. - * - * @param action the action value to set. - * @return the CustomRuleAfd object itself. - */ - public CustomRuleAfd withAction(ActionType action) { - this.action = action; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (ruleType() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property ruleType in model CustomRuleAfd")); - } - if (groupBy() != null) { - groupBy().forEach(e -> e.validate()); - } - if (matchConditions() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property matchConditions in model CustomRuleAfd")); - } else { - matchConditions().forEach(e -> e.validate()); - } - if (action() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property action in model CustomRuleAfd")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CustomRuleAfd.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeIntField("priority", this.priority); - jsonWriter.writeStringField("ruleType", this.ruleType == null ? null : this.ruleType.toString()); - jsonWriter.writeArrayField("matchConditions", this.matchConditions, - (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("action", this.action == null ? null : this.action.toString()); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString()); - jsonWriter.writeNumberField("rateLimitDurationInMinutes", this.rateLimitDurationInMinutes); - jsonWriter.writeNumberField("rateLimitThreshold", this.rateLimitThreshold); - jsonWriter.writeArrayField("groupBy", this.groupBy, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CustomRuleAfd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CustomRuleAfd 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 CustomRuleAfd. - */ - public static CustomRuleAfd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CustomRuleAfd deserializedCustomRuleAfd = new CustomRuleAfd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("priority".equals(fieldName)) { - deserializedCustomRuleAfd.priority = reader.getInt(); - } else if ("ruleType".equals(fieldName)) { - deserializedCustomRuleAfd.ruleType = RuleType.fromString(reader.getString()); - } else if ("matchConditions".equals(fieldName)) { - List matchConditions - = reader.readArray(reader1 -> MatchConditionAfd.fromJson(reader1)); - deserializedCustomRuleAfd.matchConditions = matchConditions; - } else if ("action".equals(fieldName)) { - deserializedCustomRuleAfd.action = ActionType.fromString(reader.getString()); - } else if ("name".equals(fieldName)) { - deserializedCustomRuleAfd.name = reader.getString(); - } else if ("enabledState".equals(fieldName)) { - deserializedCustomRuleAfd.enabledState = CustomRuleEnabledState.fromString(reader.getString()); - } else if ("rateLimitDurationInMinutes".equals(fieldName)) { - deserializedCustomRuleAfd.rateLimitDurationInMinutes = reader.getNullable(JsonReader::getInt); - } else if ("rateLimitThreshold".equals(fieldName)) { - deserializedCustomRuleAfd.rateLimitThreshold = reader.getNullable(JsonReader::getInt); - } else if ("groupBy".equals(fieldName)) { - List groupBy = reader.readArray(reader1 -> GroupByVariable.fromJson(reader1)); - deserializedCustomRuleAfd.groupBy = groupBy; - } else { - reader.skipChildren(); - } - } - - return deserializedCustomRuleAfd; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleListAfd.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleListAfd.java deleted file mode 100644 index c9f3224c17d2..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleListAfd.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Defines contents of custom rules. - */ -@Fluent -public final class CustomRuleListAfd implements JsonSerializable { - /* - * List of rules - */ - private List rules; - - /** - * Creates an instance of CustomRuleListAfd class. - */ - public CustomRuleListAfd() { - } - - /** - * Get the rules property: List of rules. - * - * @return the rules value. - */ - public List rules() { - return this.rules; - } - - /** - * Set the rules property: List of rules. - * - * @param rules the rules value to set. - * @return the CustomRuleListAfd object itself. - */ - public CustomRuleListAfd 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 CustomRuleListAfd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CustomRuleListAfd 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 CustomRuleListAfd. - */ - public static CustomRuleListAfd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CustomRuleListAfd deserializedCustomRuleListAfd = new CustomRuleListAfd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("rules".equals(fieldName)) { - List rules = reader.readArray(reader1 -> CustomRuleAfd.fromJson(reader1)); - deserializedCustomRuleListAfd.rules = rules; - } else { - reader.skipChildren(); - } - } - - return deserializedCustomRuleListAfd; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentRolloutStatus.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentRolloutStatus.java deleted file mode 100644 index 62c6f9f4e304..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentRolloutStatus.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Deployment status of preview stage. - */ -public final class DeploymentRolloutStatus extends ExpandableStringEnum { - /** - * Static value NotStarted for DeploymentRolloutStatus. - */ - public static final DeploymentRolloutStatus NOT_STARTED = fromString("NotStarted"); - - /** - * Static value InProgress for DeploymentRolloutStatus. - */ - public static final DeploymentRolloutStatus IN_PROGRESS = fromString("InProgress"); - - /** - * Static value Succeeded for DeploymentRolloutStatus. - */ - public static final DeploymentRolloutStatus SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Failed for DeploymentRolloutStatus. - */ - public static final DeploymentRolloutStatus FAILED = fromString("Failed"); - - /** - * Creates a new instance of DeploymentRolloutStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DeploymentRolloutStatus() { - } - - /** - * Creates or finds a DeploymentRolloutStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding DeploymentRolloutStatus. - */ - public static DeploymentRolloutStatus fromString(String name) { - return fromString(name, DeploymentRolloutStatus.class); - } - - /** - * Gets known DeploymentRolloutStatus values. - * - * @return known DeploymentRolloutStatus values. - */ - public static Collection values() { - return values(DeploymentRolloutStatus.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentStages.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentStages.java deleted file mode 100644 index 5b40dc7e408b..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentStages.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.cdn.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 preview and production deployment status of the deployment version under the profile. - */ -@Immutable -public final class DeploymentStages implements JsonSerializable { - /* - * Deployment status of preview stage. - */ - private DeploymentRolloutStatus preview; - - /* - * Deployment status of production stage. - */ - private DeploymentRolloutStatus production; - - /** - * Creates an instance of DeploymentStages class. - */ - private DeploymentStages() { - } - - /** - * Get the preview property: Deployment status of preview stage. - * - * @return the preview value. - */ - public DeploymentRolloutStatus preview() { - return this.preview; - } - - /** - * Get the production property: Deployment status of production stage. - * - * @return the production value. - */ - public DeploymentRolloutStatus production() { - return this.production; - } - - /** - * 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 DeploymentStages from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentStages 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 DeploymentStages. - */ - public static DeploymentStages fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentStages deserializedDeploymentStages = new DeploymentStages(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("preview".equals(fieldName)) { - deserializedDeploymentStages.preview = DeploymentRolloutStatus.fromString(reader.getString()); - } else if ("production".equals(fieldName)) { - deserializedDeploymentStages.production = DeploymentRolloutStatus.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentStages; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginChange.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginChange.java deleted file mode 100644 index 61c9b0b07749..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginChange.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.cdn.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.cdn.fluent.models.AfdOriginProperties; -import java.io.IOException; - -/** - * Deployment change of the origin group under the profile. - */ -@Immutable -public final class DeploymentVersionAfdOriginChange extends DeploymentVersionChange { - /* - * Resource type supported by preview. - */ - private PreviewSupportedResourceType resourceType - = PreviewSupportedResourceType.MICROSOFT_CDN_PROFILES_ORIGIN_GROUPS_ORIGINS; - - /* - * The JSON object that contains the properties of the origin. - */ - private AfdOriginProperties previousProperties; - - /* - * The JSON object that contains the properties of the origin. - */ - private AfdOriginProperties currentProperties; - - /** - * Creates an instance of DeploymentVersionAfdOriginChange class. - */ - private DeploymentVersionAfdOriginChange() { - } - - /** - * Get the resourceType property: Resource type supported by preview. - * - * @return the resourceType value. - */ - @Override - public PreviewSupportedResourceType resourceType() { - return this.resourceType; - } - - /** - * Get the previousProperties property: The JSON object that contains the properties of the origin. - * - * @return the previousProperties value. - */ - public AfdOriginProperties previousProperties() { - return this.previousProperties; - } - - /** - * Get the currentProperties property: The JSON object that contains the properties of the origin. - * - * @return the currentProperties value. - */ - public AfdOriginProperties currentProperties() { - return this.currentProperties; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (previousProperties() != null) { - previousProperties().validate(); - } - if (currentProperties() != null) { - currentProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("resourceId", resourceId()); - jsonWriter.writeStringField("resourceName", resourceName()); - jsonWriter.writeStringField("resourceType", this.resourceType == null ? null : this.resourceType.toString()); - jsonWriter.writeJsonField("previousProperties", this.previousProperties); - jsonWriter.writeJsonField("currentProperties", this.currentProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionAfdOriginChange from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionAfdOriginChange 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 DeploymentVersionAfdOriginChange. - */ - public static DeploymentVersionAfdOriginChange fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionAfdOriginChange deserializedDeploymentVersionAfdOriginChange - = new DeploymentVersionAfdOriginChange(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceId".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginChange.withResourceId(reader.getString()); - } else if ("resourceName".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginChange.withResourceName(reader.getString()); - } else if ("resourceType".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginChange.resourceType - = PreviewSupportedResourceType.fromString(reader.getString()); - } else if ("previousProperties".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginChange.previousProperties - = AfdOriginProperties.fromJson(reader); - } else if ("currentProperties".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginChange.currentProperties - = AfdOriginProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionAfdOriginChange; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginGroupChange.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginGroupChange.java deleted file mode 100644 index a4cb3516961b..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginGroupChange.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.cdn.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.cdn.fluent.models.AfdOriginGroupProperties; -import java.io.IOException; - -/** - * Deployment change of the origin group under the profile. - */ -@Immutable -public final class DeploymentVersionAfdOriginGroupChange extends DeploymentVersionChange { - /* - * Resource type supported by preview. - */ - private PreviewSupportedResourceType resourceType - = PreviewSupportedResourceType.MICROSOFT_CDN_PROFILES_ORIGIN_GROUPS; - - /* - * The JSON object that contains the properties of the origin group. - */ - private AfdOriginGroupProperties previousProperties; - - /* - * The JSON object that contains the properties of the origin group. - */ - private AfdOriginGroupProperties currentProperties; - - /** - * Creates an instance of DeploymentVersionAfdOriginGroupChange class. - */ - private DeploymentVersionAfdOriginGroupChange() { - } - - /** - * Get the resourceType property: Resource type supported by preview. - * - * @return the resourceType value. - */ - @Override - public PreviewSupportedResourceType resourceType() { - return this.resourceType; - } - - /** - * Get the previousProperties property: The JSON object that contains the properties of the origin group. - * - * @return the previousProperties value. - */ - public AfdOriginGroupProperties previousProperties() { - return this.previousProperties; - } - - /** - * Get the currentProperties property: The JSON object that contains the properties of the origin group. - * - * @return the currentProperties value. - */ - public AfdOriginGroupProperties currentProperties() { - return this.currentProperties; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (previousProperties() != null) { - previousProperties().validate(); - } - if (currentProperties() != null) { - currentProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("resourceId", resourceId()); - jsonWriter.writeStringField("resourceName", resourceName()); - jsonWriter.writeStringField("resourceType", this.resourceType == null ? null : this.resourceType.toString()); - jsonWriter.writeJsonField("previousProperties", this.previousProperties); - jsonWriter.writeJsonField("currentProperties", this.currentProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionAfdOriginGroupChange from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionAfdOriginGroupChange 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 DeploymentVersionAfdOriginGroupChange. - */ - public static DeploymentVersionAfdOriginGroupChange fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionAfdOriginGroupChange deserializedDeploymentVersionAfdOriginGroupChange - = new DeploymentVersionAfdOriginGroupChange(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceId".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginGroupChange.withResourceId(reader.getString()); - } else if ("resourceName".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginGroupChange.withResourceName(reader.getString()); - } else if ("resourceType".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginGroupChange.resourceType - = PreviewSupportedResourceType.fromString(reader.getString()); - } else if ("previousProperties".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginGroupChange.previousProperties - = AfdOriginGroupProperties.fromJson(reader); - } else if ("currentProperties".equals(fieldName)) { - deserializedDeploymentVersionAfdOriginGroupChange.currentProperties - = AfdOriginGroupProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionAfdOriginGroupChange; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionChange.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionChange.java deleted file mode 100644 index 3029522d61a7..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionChange.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Deployment change under the profile. - */ -@Immutable -public class DeploymentVersionChange implements JsonSerializable { - /* - * Resource type supported by preview. - */ - private PreviewSupportedResourceType resourceType - = PreviewSupportedResourceType.fromString("DeploymentVersionChange"); - - /* - * The resourceId property. - */ - private String resourceId; - - /* - * The resourceName property. - */ - private String resourceName; - - /** - * Creates an instance of DeploymentVersionChange class. - */ - protected DeploymentVersionChange() { - } - - /** - * Get the resourceType property: Resource type supported by preview. - * - * @return the resourceType value. - */ - public PreviewSupportedResourceType resourceType() { - return this.resourceType; - } - - /** - * Get the resourceId property: The resourceId property. - * - * @return the resourceId value. - */ - public String resourceId() { - return this.resourceId; - } - - /** - * Set the resourceId property: The resourceId property. - * - * @param resourceId the resourceId value to set. - * @return the DeploymentVersionChange object itself. - */ - DeploymentVersionChange withResourceId(String resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * Get the resourceName property: The resourceName property. - * - * @return the resourceName value. - */ - public String resourceName() { - return this.resourceName; - } - - /** - * Set the resourceName property: The resourceName property. - * - * @param resourceName the resourceName value to set. - * @return the DeploymentVersionChange object itself. - */ - DeploymentVersionChange withResourceName(String resourceName) { - this.resourceName = resourceName; - 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("resourceType", this.resourceType == null ? null : this.resourceType.toString()); - jsonWriter.writeStringField("resourceId", this.resourceId); - jsonWriter.writeStringField("resourceName", this.resourceName); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionChange from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionChange 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 DeploymentVersionChange. - */ - public static DeploymentVersionChange 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 ("resourceType".equals(fieldName)) { - discriminatorValue = readerToUse.getString(); - break; - } else { - readerToUse.skipChildren(); - } - } - // Use the discriminator value to determine which subtype should be deserialized. - if ("Microsoft.Cdn/profiles/afdEndpoints/routes".equals(discriminatorValue)) { - return DeploymentVersionRouteChange.fromJson(readerToUse.reset()); - } else if ("Microsoft.Cdn/profiles/originGroups".equals(discriminatorValue)) { - return DeploymentVersionAfdOriginGroupChange.fromJson(readerToUse.reset()); - } else if ("Microsoft.Cdn/profiles/originGroups/origins".equals(discriminatorValue)) { - return DeploymentVersionAfdOriginChange.fromJson(readerToUse.reset()); - } else if ("Microsoft.Cdn/profiles/ruleSets".equals(discriminatorValue)) { - return DeploymentVersionRuleSetChange.fromJson(readerToUse.reset()); - } else if ("Microsoft.Cdn/profiles/ruleSets/rules".equals(discriminatorValue)) { - return DeploymentVersionRuleChange.fromJson(readerToUse.reset()); - } else if ("Microsoft.Cdn/profiles/securityPolicies".equals(discriminatorValue)) { - return DeploymentVersionSecurityPolicyChange.fromJson(readerToUse.reset()); - } else { - return fromJsonKnownDiscriminator(readerToUse.reset()); - } - } - }); - } - - static DeploymentVersionChange fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionChange deserializedDeploymentVersionChange = new DeploymentVersionChange(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceType".equals(fieldName)) { - deserializedDeploymentVersionChange.resourceType - = PreviewSupportedResourceType.fromString(reader.getString()); - } else if ("resourceId".equals(fieldName)) { - deserializedDeploymentVersionChange.resourceId = reader.getString(); - } else if ("resourceName".equals(fieldName)) { - deserializedDeploymentVersionChange.resourceName = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionChange; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRouteChange.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRouteChange.java deleted file mode 100644 index 4a4c78426498..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRouteChange.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.RouteProperties; -import java.io.IOException; - -/** - * Deployment change of the route under the profile. - */ -@Immutable -public final class DeploymentVersionRouteChange extends DeploymentVersionChange { - /* - * Resource type supported by preview. - */ - private PreviewSupportedResourceType resourceType - = PreviewSupportedResourceType.MICROSOFT_CDN_PROFILES_AFD_ENDPOINTS_ROUTE; - - /* - * The JSON object that contains the properties of the Routes to create. - */ - private RouteProperties previousProperties; - - /* - * The JSON object that contains the properties of the Routes to create. - */ - private RouteProperties currentProperties; - - /** - * Creates an instance of DeploymentVersionRouteChange class. - */ - private DeploymentVersionRouteChange() { - } - - /** - * Get the resourceType property: Resource type supported by preview. - * - * @return the resourceType value. - */ - @Override - public PreviewSupportedResourceType resourceType() { - return this.resourceType; - } - - /** - * Get the previousProperties property: The JSON object that contains the properties of the Routes to create. - * - * @return the previousProperties value. - */ - public RouteProperties previousProperties() { - return this.previousProperties; - } - - /** - * Get the currentProperties property: The JSON object that contains the properties of the Routes to create. - * - * @return the currentProperties value. - */ - public RouteProperties currentProperties() { - return this.currentProperties; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (previousProperties() != null) { - previousProperties().validate(); - } - if (currentProperties() != null) { - currentProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("resourceId", resourceId()); - jsonWriter.writeStringField("resourceName", resourceName()); - jsonWriter.writeStringField("resourceType", this.resourceType == null ? null : this.resourceType.toString()); - jsonWriter.writeJsonField("previousProperties", this.previousProperties); - jsonWriter.writeJsonField("currentProperties", this.currentProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionRouteChange from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionRouteChange 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 DeploymentVersionRouteChange. - */ - public static DeploymentVersionRouteChange fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionRouteChange deserializedDeploymentVersionRouteChange = new DeploymentVersionRouteChange(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceId".equals(fieldName)) { - deserializedDeploymentVersionRouteChange.withResourceId(reader.getString()); - } else if ("resourceName".equals(fieldName)) { - deserializedDeploymentVersionRouteChange.withResourceName(reader.getString()); - } else if ("resourceType".equals(fieldName)) { - deserializedDeploymentVersionRouteChange.resourceType - = PreviewSupportedResourceType.fromString(reader.getString()); - } else if ("previousProperties".equals(fieldName)) { - deserializedDeploymentVersionRouteChange.previousProperties = RouteProperties.fromJson(reader); - } else if ("currentProperties".equals(fieldName)) { - deserializedDeploymentVersionRouteChange.currentProperties = RouteProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionRouteChange; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleChange.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleChange.java deleted file mode 100644 index 23e8cbcc2659..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleChange.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.RuleProperties; -import java.io.IOException; - -/** - * Deployment change of the rule under the profile. - */ -@Immutable -public final class DeploymentVersionRuleChange extends DeploymentVersionChange { - /* - * Resource type supported by preview. - */ - private PreviewSupportedResourceType resourceType - = PreviewSupportedResourceType.MICROSOFT_CDN_PROFILES_RULE_SETS_RULES; - - /* - * The JSON object that contains the properties of the Rules to create. - */ - private RuleProperties previousProperties; - - /* - * The JSON object that contains the properties of the Rules to create. - */ - private RuleProperties currentProperties; - - /** - * Creates an instance of DeploymentVersionRuleChange class. - */ - private DeploymentVersionRuleChange() { - } - - /** - * Get the resourceType property: Resource type supported by preview. - * - * @return the resourceType value. - */ - @Override - public PreviewSupportedResourceType resourceType() { - return this.resourceType; - } - - /** - * Get the previousProperties property: The JSON object that contains the properties of the Rules to create. - * - * @return the previousProperties value. - */ - public RuleProperties previousProperties() { - return this.previousProperties; - } - - /** - * Get the currentProperties property: The JSON object that contains the properties of the Rules to create. - * - * @return the currentProperties value. - */ - public RuleProperties currentProperties() { - return this.currentProperties; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (previousProperties() != null) { - previousProperties().validate(); - } - if (currentProperties() != null) { - currentProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("resourceId", resourceId()); - jsonWriter.writeStringField("resourceName", resourceName()); - jsonWriter.writeStringField("resourceType", this.resourceType == null ? null : this.resourceType.toString()); - jsonWriter.writeJsonField("previousProperties", this.previousProperties); - jsonWriter.writeJsonField("currentProperties", this.currentProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionRuleChange from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionRuleChange 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 DeploymentVersionRuleChange. - */ - public static DeploymentVersionRuleChange fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionRuleChange deserializedDeploymentVersionRuleChange = new DeploymentVersionRuleChange(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceId".equals(fieldName)) { - deserializedDeploymentVersionRuleChange.withResourceId(reader.getString()); - } else if ("resourceName".equals(fieldName)) { - deserializedDeploymentVersionRuleChange.withResourceName(reader.getString()); - } else if ("resourceType".equals(fieldName)) { - deserializedDeploymentVersionRuleChange.resourceType - = PreviewSupportedResourceType.fromString(reader.getString()); - } else if ("previousProperties".equals(fieldName)) { - deserializedDeploymentVersionRuleChange.previousProperties = RuleProperties.fromJson(reader); - } else if ("currentProperties".equals(fieldName)) { - deserializedDeploymentVersionRuleChange.currentProperties = RuleProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionRuleChange; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleSetChange.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleSetChange.java deleted file mode 100644 index 4339cf0e74c3..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleSetChange.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.RuleSetProperties; -import java.io.IOException; - -/** - * Deployment change of the rule set under the profile. - */ -@Immutable -public final class DeploymentVersionRuleSetChange extends DeploymentVersionChange { - /* - * Resource type supported by preview. - */ - private PreviewSupportedResourceType resourceType = PreviewSupportedResourceType.MICROSOFT_CDN_PROFILES_RULE_SETS; - - /* - * The JSON object that contains the properties of the Rule Set to create. - */ - private RuleSetProperties previousProperties; - - /* - * The JSON object that contains the properties of the Rule Set to create. - */ - private RuleSetProperties currentProperties; - - /** - * Creates an instance of DeploymentVersionRuleSetChange class. - */ - private DeploymentVersionRuleSetChange() { - } - - /** - * Get the resourceType property: Resource type supported by preview. - * - * @return the resourceType value. - */ - @Override - public PreviewSupportedResourceType resourceType() { - return this.resourceType; - } - - /** - * Get the previousProperties property: The JSON object that contains the properties of the Rule Set to create. - * - * @return the previousProperties value. - */ - public RuleSetProperties previousProperties() { - return this.previousProperties; - } - - /** - * Get the currentProperties property: The JSON object that contains the properties of the Rule Set to create. - * - * @return the currentProperties value. - */ - public RuleSetProperties currentProperties() { - return this.currentProperties; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (previousProperties() != null) { - previousProperties().validate(); - } - if (currentProperties() != null) { - currentProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("resourceId", resourceId()); - jsonWriter.writeStringField("resourceName", resourceName()); - jsonWriter.writeStringField("resourceType", this.resourceType == null ? null : this.resourceType.toString()); - jsonWriter.writeJsonField("previousProperties", this.previousProperties); - jsonWriter.writeJsonField("currentProperties", this.currentProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionRuleSetChange from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionRuleSetChange 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 DeploymentVersionRuleSetChange. - */ - public static DeploymentVersionRuleSetChange fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionRuleSetChange deserializedDeploymentVersionRuleSetChange - = new DeploymentVersionRuleSetChange(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceId".equals(fieldName)) { - deserializedDeploymentVersionRuleSetChange.withResourceId(reader.getString()); - } else if ("resourceName".equals(fieldName)) { - deserializedDeploymentVersionRuleSetChange.withResourceName(reader.getString()); - } else if ("resourceType".equals(fieldName)) { - deserializedDeploymentVersionRuleSetChange.resourceType - = PreviewSupportedResourceType.fromString(reader.getString()); - } else if ("previousProperties".equals(fieldName)) { - deserializedDeploymentVersionRuleSetChange.previousProperties = RuleSetProperties.fromJson(reader); - } else if ("currentProperties".equals(fieldName)) { - deserializedDeploymentVersionRuleSetChange.currentProperties = RuleSetProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionRuleSetChange; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionSecurityPolicyChange.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionSecurityPolicyChange.java deleted file mode 100644 index fd742dd85ad9..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionSecurityPolicyChange.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.cdn.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; - -/** - * Deployment change of the security policy under the profile. - */ -@Immutable -public final class DeploymentVersionSecurityPolicyChange extends DeploymentVersionChange { - /* - * Resource type supported by preview. - */ - private PreviewSupportedResourceType resourceType - = PreviewSupportedResourceType.MICROSOFT_CDN_PROFILES_SECURITY_POLICIES; - - /* - * Contains properties required to create a security policy - */ - private SecurityPolicyPropertiesWithEmbeddedWafPolicy previousProperties; - - /* - * Contains properties required to create a security policy - */ - private SecurityPolicyPropertiesWithEmbeddedWafPolicy currentProperties; - - /** - * Creates an instance of DeploymentVersionSecurityPolicyChange class. - */ - private DeploymentVersionSecurityPolicyChange() { - } - - /** - * Get the resourceType property: Resource type supported by preview. - * - * @return the resourceType value. - */ - @Override - public PreviewSupportedResourceType resourceType() { - return this.resourceType; - } - - /** - * Get the previousProperties property: Contains properties required to create a security policy. - * - * @return the previousProperties value. - */ - public SecurityPolicyPropertiesWithEmbeddedWafPolicy previousProperties() { - return this.previousProperties; - } - - /** - * Get the currentProperties property: Contains properties required to create a security policy. - * - * @return the currentProperties value. - */ - public SecurityPolicyPropertiesWithEmbeddedWafPolicy currentProperties() { - return this.currentProperties; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (previousProperties() != null) { - previousProperties().validate(); - } - if (currentProperties() != null) { - currentProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("resourceId", resourceId()); - jsonWriter.writeStringField("resourceName", resourceName()); - jsonWriter.writeStringField("resourceType", this.resourceType == null ? null : this.resourceType.toString()); - jsonWriter.writeJsonField("previousProperties", this.previousProperties); - jsonWriter.writeJsonField("currentProperties", this.currentProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionSecurityPolicyChange from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionSecurityPolicyChange 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 DeploymentVersionSecurityPolicyChange. - */ - public static DeploymentVersionSecurityPolicyChange fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionSecurityPolicyChange deserializedDeploymentVersionSecurityPolicyChange - = new DeploymentVersionSecurityPolicyChange(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resourceId".equals(fieldName)) { - deserializedDeploymentVersionSecurityPolicyChange.withResourceId(reader.getString()); - } else if ("resourceName".equals(fieldName)) { - deserializedDeploymentVersionSecurityPolicyChange.withResourceName(reader.getString()); - } else if ("resourceType".equals(fieldName)) { - deserializedDeploymentVersionSecurityPolicyChange.resourceType - = PreviewSupportedResourceType.fromString(reader.getString()); - } else if ("previousProperties".equals(fieldName)) { - deserializedDeploymentVersionSecurityPolicyChange.previousProperties - = SecurityPolicyPropertiesWithEmbeddedWafPolicy.fromJson(reader); - } else if ("currentProperties".equals(fieldName)) { - deserializedDeploymentVersionSecurityPolicyChange.currentProperties - = SecurityPolicyPropertiesWithEmbeddedWafPolicy.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionSecurityPolicyChange; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionUpdate.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionUpdate.java deleted file mode 100644 index 8cf3c84d3060..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionUpdate.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.DeploymentVersionUpdateProperties; -import java.io.IOException; - -/** - * Contains deployment version for creation or update. - */ -@Fluent -public final class DeploymentVersionUpdate implements JsonSerializable { - /* - * Contains the properties of the deployment version. - */ - private DeploymentVersionUpdateProperties innerProperties; - - /** - * Creates an instance of DeploymentVersionUpdate class. - */ - public DeploymentVersionUpdate() { - } - - /** - * Get the innerProperties property: Contains the properties of the deployment version. - * - * @return the innerProperties value. - */ - private DeploymentVersionUpdateProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the description property: The description property. - * - * @return the description value. - */ - public String description() { - return this.innerProperties() == null ? null : this.innerProperties().description(); - } - - /** - * Set the description property: The description property. - * - * @param description the description value to set. - * @return the DeploymentVersionUpdate object itself. - */ - public DeploymentVersionUpdate withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new DeploymentVersionUpdateProperties(); - } - this.innerProperties().withDescription(description); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentVersionUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentVersionUpdate 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 DeploymentVersionUpdate. - */ - public static DeploymentVersionUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentVersionUpdate deserializedDeploymentVersionUpdate = new DeploymentVersionUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("properties".equals(fieldName)) { - deserializedDeploymentVersionUpdate.innerProperties - = DeploymentVersionUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentVersionUpdate; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/FrontendEndpointLink.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/FrontendEndpointLink.java deleted file mode 100644 index dc324b09a6cb..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/FrontendEndpointLink.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Defines the Resource ID for a Frontend Endpoint. - */ -@Immutable -public final class FrontendEndpointLink implements JsonSerializable { - /* - * Resource ID. - */ - private String id; - - /** - * Creates an instance of FrontendEndpointLink class. - */ - private FrontendEndpointLink() { - } - - /** - * Get the id property: Resource ID. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * 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 FrontendEndpointLink from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of FrontendEndpointLink 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 FrontendEndpointLink. - */ - public static FrontendEndpointLink fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - FrontendEndpointLink deserializedFrontendEndpointLink = new FrontendEndpointLink(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedFrontendEndpointLink.id = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedFrontendEndpointLink; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/GroupByVariable.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/GroupByVariable.java deleted file mode 100644 index ea87f94841bb..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/GroupByVariable.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Describes the variables available to group the rate limit requests. - */ -@Fluent -public final class GroupByVariable implements JsonSerializable { - /* - * Describes the supported variable for group by - */ - private VariableName variableName; - - /** - * Creates an instance of GroupByVariable class. - */ - public GroupByVariable() { - } - - /** - * Get the variableName property: Describes the supported variable for group by. - * - * @return the variableName value. - */ - public VariableName variableName() { - return this.variableName; - } - - /** - * Set the variableName property: Describes the supported variable for group by. - * - * @param variableName the variableName value to set. - * @return the GroupByVariable object itself. - */ - public GroupByVariable withVariableName(VariableName variableName) { - this.variableName = variableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (variableName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property variableName in model GroupByVariable")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(GroupByVariable.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("variableName", this.variableName == null ? null : this.variableName.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of GroupByVariable from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of GroupByVariable 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 GroupByVariable. - */ - public static GroupByVariable fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - GroupByVariable deserializedGroupByVariable = new GroupByVariable(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("variableName".equals(fieldName)) { - deserializedGroupByVariable.variableName = VariableName.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedGroupByVariable; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KeyGroupUpdatePropertiesParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KeyGroupUpdatePropertiesParameters.java deleted file mode 100644 index 89777b7832fa..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KeyGroupUpdatePropertiesParameters.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.cdn.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 JSON object containing properties of key group to create or update. - */ -@Fluent -public final class KeyGroupUpdatePropertiesParameters implements JsonSerializable { - /* - * Names of UrlSigningKey type secret objects - */ - private List keyReferences; - - /** - * Creates an instance of KeyGroupUpdatePropertiesParameters class. - */ - public KeyGroupUpdatePropertiesParameters() { - } - - /** - * Get the keyReferences property: Names of UrlSigningKey type secret objects. - * - * @return the keyReferences value. - */ - public List keyReferences() { - return this.keyReferences; - } - - /** - * Set the keyReferences property: Names of UrlSigningKey type secret objects. - * - * @param keyReferences the keyReferences value to set. - * @return the KeyGroupUpdatePropertiesParameters object itself. - */ - public KeyGroupUpdatePropertiesParameters withKeyReferences(List keyReferences) { - this.keyReferences = keyReferences; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (keyReferences() != null) { - keyReferences().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("keyReferences", this.keyReferences, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KeyGroupUpdatePropertiesParameters from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KeyGroupUpdatePropertiesParameters 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 KeyGroupUpdatePropertiesParameters. - */ - public static KeyGroupUpdatePropertiesParameters fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KeyGroupUpdatePropertiesParameters deserializedKeyGroupUpdatePropertiesParameters - = new KeyGroupUpdatePropertiesParameters(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("keyReferences".equals(fieldName)) { - List keyReferences - = reader.readArray(reader1 -> ResourceReference.fromJson(reader1)); - deserializedKeyGroupUpdatePropertiesParameters.keyReferences = keyReferences; - } else { - reader.skipChildren(); - } - } - - return deserializedKeyGroupUpdatePropertiesParameters; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceProvisioningState.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceProvisioningState.java deleted file mode 100644 index 6116e0064e20..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceProvisioningState.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Provisioning status of the knowledge source. - */ -public final class KnowledgeSourceProvisioningState extends ExpandableStringEnum { - /** - * Static value Creating for KnowledgeSourceProvisioningState. - */ - public static final KnowledgeSourceProvisioningState CREATING = fromString("Creating"); - - /** - * Static value Succeeded for KnowledgeSourceProvisioningState. - */ - public static final KnowledgeSourceProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Failed for KnowledgeSourceProvisioningState. - */ - public static final KnowledgeSourceProvisioningState FAILED = fromString("Failed"); - - /** - * Static value Updating for KnowledgeSourceProvisioningState. - */ - public static final KnowledgeSourceProvisioningState UPDATING = fromString("Updating"); - - /** - * Static value Deleting for KnowledgeSourceProvisioningState. - */ - public static final KnowledgeSourceProvisioningState DELETING = fromString("Deleting"); - - /** - * Creates a new instance of KnowledgeSourceProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public KnowledgeSourceProvisioningState() { - } - - /** - * Creates or finds a KnowledgeSourceProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding KnowledgeSourceProvisioningState. - */ - public static KnowledgeSourceProvisioningState fromString(String name) { - return fromString(name, KnowledgeSourceProvisioningState.class); - } - - /** - * Gets known KnowledgeSourceProvisioningState values. - * - * @return known KnowledgeSourceProvisioningState values. - */ - public static Collection values() { - return values(KnowledgeSourceProvisioningState.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceType.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceType.java deleted file mode 100644 index 85aca9eda8c6..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceType.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Format or origin of the knowledge source. - */ -public final class KnowledgeSourceType extends ExpandableStringEnum { - /** - * Static value SchemaOrgMarkup for KnowledgeSourceType. - */ - public static final KnowledgeSourceType SCHEMA_ORG_MARKUP = fromString("SchemaOrgMarkup"); - - /** - * Static value RssFeeds for KnowledgeSourceType. - */ - public static final KnowledgeSourceType RSS_FEEDS = fromString("RssFeeds"); - - /** - * Static value Sitemap for KnowledgeSourceType. - */ - public static final KnowledgeSourceType SITEMAP = fromString("Sitemap"); - - /** - * Creates a new instance of KnowledgeSourceType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public KnowledgeSourceType() { - } - - /** - * Creates or finds a KnowledgeSourceType from its string representation. - * - * @param name a name to look for. - * @return the corresponding KnowledgeSourceType. - */ - public static KnowledgeSourceType fromString(String name) { - return fromString(name, KnowledgeSourceType.class); - } - - /** - * Gets known KnowledgeSourceType values. - * - * @return known KnowledgeSourceType values. - */ - public static Collection values() { - return values(KnowledgeSourceType.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateFrequency.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateFrequency.java deleted file mode 100644 index 1602687a9e1d..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateFrequency.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Specifies the units of time for scheduling update intervals for the knowledge source. - */ -public final class KnowledgeSourceUpdateFrequency extends ExpandableStringEnum { - /** - * Static value EverySixHours for KnowledgeSourceUpdateFrequency. - */ - public static final KnowledgeSourceUpdateFrequency EVERY_SIX_HOURS = fromString("EverySixHours"); - - /** - * Static value Daily for KnowledgeSourceUpdateFrequency. - */ - public static final KnowledgeSourceUpdateFrequency DAILY = fromString("Daily"); - - /** - * Static value Weekly for KnowledgeSourceUpdateFrequency. - */ - public static final KnowledgeSourceUpdateFrequency WEEKLY = fromString("Weekly"); - - /** - * Static value Monthly for KnowledgeSourceUpdateFrequency. - */ - public static final KnowledgeSourceUpdateFrequency MONTHLY = fromString("Monthly"); - - /** - * Creates a new instance of KnowledgeSourceUpdateFrequency value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public KnowledgeSourceUpdateFrequency() { - } - - /** - * Creates or finds a KnowledgeSourceUpdateFrequency from its string representation. - * - * @param name a name to look for. - * @return the corresponding KnowledgeSourceUpdateFrequency. - */ - public static KnowledgeSourceUpdateFrequency fromString(String name) { - return fromString(name, KnowledgeSourceUpdateFrequency.class); - } - - /** - * Gets known KnowledgeSourceUpdateFrequency values. - * - * @return known KnowledgeSourceUpdateFrequency values. - */ - public static Collection values() { - return values(KnowledgeSourceUpdateFrequency.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateParameters.java deleted file mode 100644 index 7aced718732d..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateParameters.java +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.KnowledgeSourcePropertiesUpdateParameters; -import java.io.IOException; - -/** - * Properties required to update a knowledge source. - */ -@Fluent -public final class KnowledgeSourceUpdateParameters implements JsonSerializable { - /* - * Properties of the knowledge source to be updated. - */ - private KnowledgeSourcePropertiesUpdateParameters innerProperties; - - /** - * Creates an instance of KnowledgeSourceUpdateParameters class. - */ - public KnowledgeSourceUpdateParameters() { - } - - /** - * Get the innerProperties property: Properties of the knowledge source to be updated. - * - * @return the innerProperties value. - */ - private KnowledgeSourcePropertiesUpdateParameters innerProperties() { - return this.innerProperties; - } - - /** - * Get the description property: Description of the knowledge source. - * - * @return the description value. - */ - public String description() { - return this.innerProperties() == null ? null : this.innerProperties().description(); - } - - /** - * Set the description property: Description of the knowledge source. - * - * @param description the description value to set. - * @return the KnowledgeSourceUpdateParameters object itself. - */ - public KnowledgeSourceUpdateParameters withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new KnowledgeSourcePropertiesUpdateParameters(); - } - this.innerProperties().withDescription(description); - return this; - } - - /** - * Get the url property: Endpoint or location of the knowledge source. - * - * @return the url value. - */ - public String url() { - return this.innerProperties() == null ? null : this.innerProperties().url(); - } - - /** - * Set the url property: Endpoint or location of the knowledge source. - * - * @param url the url value to set. - * @return the KnowledgeSourceUpdateParameters object itself. - */ - public KnowledgeSourceUpdateParameters withUrl(String url) { - if (this.innerProperties() == null) { - this.innerProperties = new KnowledgeSourcePropertiesUpdateParameters(); - } - this.innerProperties().withUrl(url); - return this; - } - - /** - * Get the updateFrequency property: Specifies the units of time for scheduling update intervals for the knowledge - * source. - * - * @return the updateFrequency value. - */ - public KnowledgeSourceUpdateFrequency updateFrequency() { - return this.innerProperties() == null ? null : this.innerProperties().updateFrequency(); - } - - /** - * Set the updateFrequency property: Specifies the units of time for scheduling update intervals for the knowledge - * source. - * - * @param updateFrequency the updateFrequency value to set. - * @return the KnowledgeSourceUpdateParameters object itself. - */ - public KnowledgeSourceUpdateParameters withUpdateFrequency(KnowledgeSourceUpdateFrequency updateFrequency) { - if (this.innerProperties() == null) { - this.innerProperties = new KnowledgeSourcePropertiesUpdateParameters(); - } - this.innerProperties().withUpdateFrequency(updateFrequency); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of KnowledgeSourceUpdateParameters from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of KnowledgeSourceUpdateParameters 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 KnowledgeSourceUpdateParameters. - */ - public static KnowledgeSourceUpdateParameters fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - KnowledgeSourceUpdateParameters deserializedKnowledgeSourceUpdateParameters - = new KnowledgeSourceUpdateParameters(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("properties".equals(fieldName)) { - deserializedKnowledgeSourceUpdateParameters.innerProperties - = KnowledgeSourcePropertiesUpdateParameters.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedKnowledgeSourceUpdateParameters; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusion.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusion.java deleted file mode 100644 index ae9aec936a7b..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusion.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.cdn.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; - -/** - * Exclude variables from managed rule evaluation. - */ -@Fluent -public final class ManagedRuleExclusion implements JsonSerializable { - /* - * The variable type to be excluded. - */ - private ManagedRuleExclusionMatchVariable matchVariable; - - /* - * Comparison operator to apply to the selector when specifying which elements in the collection this exclusion - * applies to. - */ - private ManagedRuleExclusionSelectorMatchOperator selectorMatchOperator; - - /* - * Selector value for which elements in the collection this exclusion applies to. - */ - private String selector; - - /** - * Creates an instance of ManagedRuleExclusion class. - */ - public ManagedRuleExclusion() { - } - - /** - * Get the matchVariable property: The variable type to be excluded. - * - * @return the matchVariable value. - */ - public ManagedRuleExclusionMatchVariable matchVariable() { - return this.matchVariable; - } - - /** - * Set the matchVariable property: The variable type to be excluded. - * - * @param matchVariable the matchVariable value to set. - * @return the ManagedRuleExclusion object itself. - */ - public ManagedRuleExclusion withMatchVariable(ManagedRuleExclusionMatchVariable matchVariable) { - this.matchVariable = matchVariable; - return this; - } - - /** - * Get the selectorMatchOperator property: Comparison operator to apply to the selector when specifying which - * elements in the collection this exclusion applies to. - * - * @return the selectorMatchOperator value. - */ - public ManagedRuleExclusionSelectorMatchOperator selectorMatchOperator() { - return this.selectorMatchOperator; - } - - /** - * Set the selectorMatchOperator property: Comparison operator to apply to the selector when specifying which - * elements in the collection this exclusion applies to. - * - * @param selectorMatchOperator the selectorMatchOperator value to set. - * @return the ManagedRuleExclusion object itself. - */ - public ManagedRuleExclusion - withSelectorMatchOperator(ManagedRuleExclusionSelectorMatchOperator selectorMatchOperator) { - this.selectorMatchOperator = selectorMatchOperator; - return this; - } - - /** - * Get the selector property: Selector value for which elements in the collection this exclusion applies to. - * - * @return the selector value. - */ - public String selector() { - return this.selector; - } - - /** - * Set the selector property: Selector value for which elements in the collection this exclusion applies to. - * - * @param selector the selector value to set. - * @return the ManagedRuleExclusion object itself. - */ - public ManagedRuleExclusion withSelector(String selector) { - this.selector = selector; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (matchVariable() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property matchVariable in model ManagedRuleExclusion")); - } - if (selectorMatchOperator() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property selectorMatchOperator in model ManagedRuleExclusion")); - } - if (selector() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property selector in model ManagedRuleExclusion")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedRuleExclusion.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("matchVariable", this.matchVariable == null ? null : this.matchVariable.toString()); - jsonWriter.writeStringField("selectorMatchOperator", - this.selectorMatchOperator == null ? null : this.selectorMatchOperator.toString()); - jsonWriter.writeStringField("selector", this.selector); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedRuleExclusion from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedRuleExclusion 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 ManagedRuleExclusion. - */ - public static ManagedRuleExclusion fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedRuleExclusion deserializedManagedRuleExclusion = new ManagedRuleExclusion(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("matchVariable".equals(fieldName)) { - deserializedManagedRuleExclusion.matchVariable - = ManagedRuleExclusionMatchVariable.fromString(reader.getString()); - } else if ("selectorMatchOperator".equals(fieldName)) { - deserializedManagedRuleExclusion.selectorMatchOperator - = ManagedRuleExclusionSelectorMatchOperator.fromString(reader.getString()); - } else if ("selector".equals(fieldName)) { - deserializedManagedRuleExclusion.selector = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedManagedRuleExclusion; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionMatchVariable.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionMatchVariable.java deleted file mode 100644 index 04bf9f7e9447..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionMatchVariable.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The variable type to be excluded. - */ -public final class ManagedRuleExclusionMatchVariable extends ExpandableStringEnum { - /** - * Static value RequestHeaderNames for ManagedRuleExclusionMatchVariable. - */ - public static final ManagedRuleExclusionMatchVariable REQUEST_HEADER_NAMES = fromString("RequestHeaderNames"); - - /** - * Static value RequestCookieNames for ManagedRuleExclusionMatchVariable. - */ - public static final ManagedRuleExclusionMatchVariable REQUEST_COOKIE_NAMES = fromString("RequestCookieNames"); - - /** - * Static value QueryStringArgNames for ManagedRuleExclusionMatchVariable. - */ - public static final ManagedRuleExclusionMatchVariable QUERY_STRING_ARG_NAMES = fromString("QueryStringArgNames"); - - /** - * Static value RequestBodyPostArgNames for ManagedRuleExclusionMatchVariable. - */ - public static final ManagedRuleExclusionMatchVariable REQUEST_BODY_POST_ARG_NAMES - = fromString("RequestBodyPostArgNames"); - - /** - * Static value RequestBodyJsonArgNames for ManagedRuleExclusionMatchVariable. - */ - public static final ManagedRuleExclusionMatchVariable REQUEST_BODY_JSON_ARG_NAMES - = fromString("RequestBodyJsonArgNames"); - - /** - * Creates a new instance of ManagedRuleExclusionMatchVariable value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ManagedRuleExclusionMatchVariable() { - } - - /** - * Creates or finds a ManagedRuleExclusionMatchVariable from its string representation. - * - * @param name a name to look for. - * @return the corresponding ManagedRuleExclusionMatchVariable. - */ - public static ManagedRuleExclusionMatchVariable fromString(String name) { - return fromString(name, ManagedRuleExclusionMatchVariable.class); - } - - /** - * Gets known ManagedRuleExclusionMatchVariable values. - * - * @return known ManagedRuleExclusionMatchVariable values. - */ - public static Collection values() { - return values(ManagedRuleExclusionMatchVariable.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionSelectorMatchOperator.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionSelectorMatchOperator.java deleted file mode 100644 index 37a9410fe542..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionSelectorMatchOperator.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies - * to. - */ -public final class ManagedRuleExclusionSelectorMatchOperator - extends ExpandableStringEnum { - /** - * Static value Equals for ManagedRuleExclusionSelectorMatchOperator. - */ - public static final ManagedRuleExclusionSelectorMatchOperator EQUALS = fromString("Equals"); - - /** - * Static value Contains for ManagedRuleExclusionSelectorMatchOperator. - */ - public static final ManagedRuleExclusionSelectorMatchOperator CONTAINS = fromString("Contains"); - - /** - * Static value StartsWith for ManagedRuleExclusionSelectorMatchOperator. - */ - public static final ManagedRuleExclusionSelectorMatchOperator STARTS_WITH = fromString("StartsWith"); - - /** - * Static value EndsWith for ManagedRuleExclusionSelectorMatchOperator. - */ - public static final ManagedRuleExclusionSelectorMatchOperator ENDS_WITH = fromString("EndsWith"); - - /** - * Static value EqualsAny for ManagedRuleExclusionSelectorMatchOperator. - */ - public static final ManagedRuleExclusionSelectorMatchOperator EQUALS_ANY = fromString("EqualsAny"); - - /** - * Creates a new instance of ManagedRuleExclusionSelectorMatchOperator value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ManagedRuleExclusionSelectorMatchOperator() { - } - - /** - * Creates or finds a ManagedRuleExclusionSelectorMatchOperator from its string representation. - * - * @param name a name to look for. - * @return the corresponding ManagedRuleExclusionSelectorMatchOperator. - */ - public static ManagedRuleExclusionSelectorMatchOperator fromString(String name) { - return fromString(name, ManagedRuleExclusionSelectorMatchOperator.class); - } - - /** - * Gets known ManagedRuleExclusionSelectorMatchOperator values. - * - * @return known ManagedRuleExclusionSelectorMatchOperator values. - */ - public static Collection values() { - return values(ManagedRuleExclusionSelectorMatchOperator.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleGroupOverrideAfd.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleGroupOverrideAfd.java deleted file mode 100644 index f6fa473f00aa..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleGroupOverrideAfd.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.cdn.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; - -/** - * Defines a managed rule group override setting. - */ -@Fluent -public final class ManagedRuleGroupOverrideAfd implements JsonSerializable { - /* - * Describes the managed rule group to override. - */ - private String ruleGroupName; - - /* - * Describes the exclusions that are applied to all rules in the group. - */ - private List exclusions; - - /* - * List of rules that will be disabled. If none specified, all rules in the group will be disabled. - */ - private List rules; - - /** - * Creates an instance of ManagedRuleGroupOverrideAfd class. - */ - public ManagedRuleGroupOverrideAfd() { - } - - /** - * Get the ruleGroupName property: Describes the managed rule group to override. - * - * @return the ruleGroupName value. - */ - public String ruleGroupName() { - return this.ruleGroupName; - } - - /** - * Set the ruleGroupName property: Describes the managed rule group to override. - * - * @param ruleGroupName the ruleGroupName value to set. - * @return the ManagedRuleGroupOverrideAfd object itself. - */ - public ManagedRuleGroupOverrideAfd withRuleGroupName(String ruleGroupName) { - this.ruleGroupName = ruleGroupName; - return this; - } - - /** - * Get the exclusions property: Describes the exclusions that are applied to all rules in the group. - * - * @return the exclusions value. - */ - public List exclusions() { - return this.exclusions; - } - - /** - * Set the exclusions property: Describes the exclusions that are applied to all rules in the group. - * - * @param exclusions the exclusions value to set. - * @return the ManagedRuleGroupOverrideAfd object itself. - */ - public ManagedRuleGroupOverrideAfd withExclusions(List exclusions) { - this.exclusions = exclusions; - return this; - } - - /** - * Get the rules property: List of rules that will be disabled. If none specified, all rules in the group will be - * disabled. - * - * @return the rules value. - */ - public List rules() { - return this.rules; - } - - /** - * Set the rules property: List of rules that will be disabled. If none specified, all rules in the group will be - * disabled. - * - * @param rules the rules value to set. - * @return the ManagedRuleGroupOverrideAfd object itself. - */ - public ManagedRuleGroupOverrideAfd withRules(List rules) { - this.rules = rules; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (ruleGroupName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property ruleGroupName in model ManagedRuleGroupOverrideAfd")); - } - if (exclusions() != null) { - exclusions().forEach(e -> e.validate()); - } - if (rules() != null) { - rules().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedRuleGroupOverrideAfd.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("ruleGroupName", this.ruleGroupName); - jsonWriter.writeArrayField("exclusions", this.exclusions, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeArrayField("rules", this.rules, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedRuleGroupOverrideAfd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedRuleGroupOverrideAfd 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 ManagedRuleGroupOverrideAfd. - */ - public static ManagedRuleGroupOverrideAfd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedRuleGroupOverrideAfd deserializedManagedRuleGroupOverrideAfd = new ManagedRuleGroupOverrideAfd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("ruleGroupName".equals(fieldName)) { - deserializedManagedRuleGroupOverrideAfd.ruleGroupName = reader.getString(); - } else if ("exclusions".equals(fieldName)) { - List exclusions - = reader.readArray(reader1 -> ManagedRuleExclusion.fromJson(reader1)); - deserializedManagedRuleGroupOverrideAfd.exclusions = exclusions; - } else if ("rules".equals(fieldName)) { - List rules - = reader.readArray(reader1 -> ManagedRuleOverrideAfd.fromJson(reader1)); - deserializedManagedRuleGroupOverrideAfd.rules = rules; - } else { - reader.skipChildren(); - } - } - - return deserializedManagedRuleGroupOverrideAfd; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleOverrideAfd.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleOverrideAfd.java deleted file mode 100644 index f203105d18e7..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleOverrideAfd.java +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Defines a managed rule group override setting. - */ -@Fluent -public final class ManagedRuleOverrideAfd implements JsonSerializable { - /* - * Identifier for the managed rule. - */ - private String ruleId; - - /* - * Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. - */ - private ManagedRuleEnabledState enabledState; - - /* - * Describes the override action to be applied when rule matches. - */ - private ActionType action; - - /* - * Describes the exclusions that are applied to this specific rule. - */ - private List exclusions; - - /** - * Creates an instance of ManagedRuleOverrideAfd class. - */ - public ManagedRuleOverrideAfd() { - } - - /** - * Get the ruleId property: Identifier for the managed rule. - * - * @return the ruleId value. - */ - public String ruleId() { - return this.ruleId; - } - - /** - * Set the ruleId property: Identifier for the managed rule. - * - * @param ruleId the ruleId value to set. - * @return the ManagedRuleOverrideAfd object itself. - */ - public ManagedRuleOverrideAfd withRuleId(String ruleId) { - this.ruleId = ruleId; - return this; - } - - /** - * Get the enabledState property: Describes if the managed rule is in enabled or disabled state. Defaults to - * Disabled if not specified. - * - * @return the enabledState value. - */ - public ManagedRuleEnabledState enabledState() { - return this.enabledState; - } - - /** - * Set the enabledState property: Describes if the managed rule is in enabled or disabled state. Defaults to - * Disabled if not specified. - * - * @param enabledState the enabledState value to set. - * @return the ManagedRuleOverrideAfd object itself. - */ - public ManagedRuleOverrideAfd withEnabledState(ManagedRuleEnabledState enabledState) { - this.enabledState = enabledState; - return this; - } - - /** - * Get the action property: Describes the override action to be applied when rule matches. - * - * @return the action value. - */ - public ActionType action() { - return this.action; - } - - /** - * Set the action property: Describes the override action to be applied when rule matches. - * - * @param action the action value to set. - * @return the ManagedRuleOverrideAfd object itself. - */ - public ManagedRuleOverrideAfd withAction(ActionType action) { - this.action = action; - return this; - } - - /** - * Get the exclusions property: Describes the exclusions that are applied to this specific rule. - * - * @return the exclusions value. - */ - public List exclusions() { - return this.exclusions; - } - - /** - * Set the exclusions property: Describes the exclusions that are applied to this specific rule. - * - * @param exclusions the exclusions value to set. - * @return the ManagedRuleOverrideAfd object itself. - */ - public ManagedRuleOverrideAfd withExclusions(List exclusions) { - this.exclusions = exclusions; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (ruleId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property ruleId in model ManagedRuleOverrideAfd")); - } - if (exclusions() != null) { - exclusions().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedRuleOverrideAfd.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("ruleId", this.ruleId); - jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString()); - jsonWriter.writeStringField("action", this.action == null ? null : this.action.toString()); - jsonWriter.writeArrayField("exclusions", this.exclusions, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedRuleOverrideAfd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedRuleOverrideAfd 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 ManagedRuleOverrideAfd. - */ - public static ManagedRuleOverrideAfd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedRuleOverrideAfd deserializedManagedRuleOverrideAfd = new ManagedRuleOverrideAfd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("ruleId".equals(fieldName)) { - deserializedManagedRuleOverrideAfd.ruleId = reader.getString(); - } else if ("enabledState".equals(fieldName)) { - deserializedManagedRuleOverrideAfd.enabledState - = ManagedRuleEnabledState.fromString(reader.getString()); - } else if ("action".equals(fieldName)) { - deserializedManagedRuleOverrideAfd.action = ActionType.fromString(reader.getString()); - } else if ("exclusions".equals(fieldName)) { - List exclusions - = reader.readArray(reader1 -> ManagedRuleExclusion.fromJson(reader1)); - deserializedManagedRuleOverrideAfd.exclusions = exclusions; - } else { - reader.skipChildren(); - } - } - - return deserializedManagedRuleOverrideAfd; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetActionType.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetActionType.java deleted file mode 100644 index b6b51da97530..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetActionType.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Defines the action to take when a managed rule set score threshold is met. - */ -public final class ManagedRuleSetActionType extends ExpandableStringEnum { - /** - * Static value Block for ManagedRuleSetActionType. - */ - public static final ManagedRuleSetActionType BLOCK = fromString("Block"); - - /** - * Static value Log for ManagedRuleSetActionType. - */ - public static final ManagedRuleSetActionType LOG = fromString("Log"); - - /** - * Static value Redirect for ManagedRuleSetActionType. - */ - public static final ManagedRuleSetActionType REDIRECT = fromString("Redirect"); - - /** - * Creates a new instance of ManagedRuleSetActionType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ManagedRuleSetActionType() { - } - - /** - * Creates or finds a ManagedRuleSetActionType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ManagedRuleSetActionType. - */ - public static ManagedRuleSetActionType fromString(String name) { - return fromString(name, ManagedRuleSetActionType.class); - } - - /** - * Gets known ManagedRuleSetActionType values. - * - * @return known ManagedRuleSetActionType values. - */ - public static Collection values() { - return values(ManagedRuleSetActionType.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetAfd.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetAfd.java deleted file mode 100644 index a4bb4028aed6..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetAfd.java +++ /dev/null @@ -1,231 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Defines a managed rule set. - */ -@Fluent -public final class ManagedRuleSetAfd implements JsonSerializable { - /* - * Defines the rule set type to use. - */ - private String ruleSetType; - - /* - * Defines the version of the rule set to use. - */ - private String ruleSetVersion; - - /* - * Defines the rule set action. - */ - private ManagedRuleSetActionType ruleSetAction; - - /* - * Describes the exclusions that are applied to all rules in the set. - */ - private List exclusions; - - /* - * Defines the rule group overrides to apply to the rule set. - */ - private List ruleGroupOverrides; - - /** - * Creates an instance of ManagedRuleSetAfd class. - */ - public ManagedRuleSetAfd() { - } - - /** - * Get the ruleSetType property: Defines the rule set type to use. - * - * @return the ruleSetType value. - */ - public String ruleSetType() { - return this.ruleSetType; - } - - /** - * Set the ruleSetType property: Defines the rule set type to use. - * - * @param ruleSetType the ruleSetType value to set. - * @return the ManagedRuleSetAfd object itself. - */ - public ManagedRuleSetAfd withRuleSetType(String ruleSetType) { - this.ruleSetType = ruleSetType; - return this; - } - - /** - * Get the ruleSetVersion property: Defines the version of the rule set to use. - * - * @return the ruleSetVersion value. - */ - public String ruleSetVersion() { - return this.ruleSetVersion; - } - - /** - * Set the ruleSetVersion property: Defines the version of the rule set to use. - * - * @param ruleSetVersion the ruleSetVersion value to set. - * @return the ManagedRuleSetAfd object itself. - */ - public ManagedRuleSetAfd withRuleSetVersion(String ruleSetVersion) { - this.ruleSetVersion = ruleSetVersion; - return this; - } - - /** - * Get the ruleSetAction property: Defines the rule set action. - * - * @return the ruleSetAction value. - */ - public ManagedRuleSetActionType ruleSetAction() { - return this.ruleSetAction; - } - - /** - * Set the ruleSetAction property: Defines the rule set action. - * - * @param ruleSetAction the ruleSetAction value to set. - * @return the ManagedRuleSetAfd object itself. - */ - public ManagedRuleSetAfd withRuleSetAction(ManagedRuleSetActionType ruleSetAction) { - this.ruleSetAction = ruleSetAction; - return this; - } - - /** - * Get the exclusions property: Describes the exclusions that are applied to all rules in the set. - * - * @return the exclusions value. - */ - public List exclusions() { - return this.exclusions; - } - - /** - * Set the exclusions property: Describes the exclusions that are applied to all rules in the set. - * - * @param exclusions the exclusions value to set. - * @return the ManagedRuleSetAfd object itself. - */ - public ManagedRuleSetAfd withExclusions(List exclusions) { - this.exclusions = exclusions; - return this; - } - - /** - * Get the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set. - * - * @return the ruleGroupOverrides value. - */ - public List ruleGroupOverrides() { - return this.ruleGroupOverrides; - } - - /** - * Set the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set. - * - * @param ruleGroupOverrides the ruleGroupOverrides value to set. - * @return the ManagedRuleSetAfd object itself. - */ - public ManagedRuleSetAfd withRuleGroupOverrides(List ruleGroupOverrides) { - this.ruleGroupOverrides = ruleGroupOverrides; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (ruleSetType() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property ruleSetType in model ManagedRuleSetAfd")); - } - if (ruleSetVersion() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property ruleSetVersion in model ManagedRuleSetAfd")); - } - if (exclusions() != null) { - exclusions().forEach(e -> e.validate()); - } - if (ruleGroupOverrides() != null) { - ruleGroupOverrides().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedRuleSetAfd.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("ruleSetType", this.ruleSetType); - jsonWriter.writeStringField("ruleSetVersion", this.ruleSetVersion); - jsonWriter.writeStringField("ruleSetAction", this.ruleSetAction == null ? null : this.ruleSetAction.toString()); - jsonWriter.writeArrayField("exclusions", this.exclusions, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeArrayField("ruleGroupOverrides", this.ruleGroupOverrides, - (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedRuleSetAfd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedRuleSetAfd 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 ManagedRuleSetAfd. - */ - public static ManagedRuleSetAfd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedRuleSetAfd deserializedManagedRuleSetAfd = new ManagedRuleSetAfd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("ruleSetType".equals(fieldName)) { - deserializedManagedRuleSetAfd.ruleSetType = reader.getString(); - } else if ("ruleSetVersion".equals(fieldName)) { - deserializedManagedRuleSetAfd.ruleSetVersion = reader.getString(); - } else if ("ruleSetAction".equals(fieldName)) { - deserializedManagedRuleSetAfd.ruleSetAction - = ManagedRuleSetActionType.fromString(reader.getString()); - } else if ("exclusions".equals(fieldName)) { - List exclusions - = reader.readArray(reader1 -> ManagedRuleExclusion.fromJson(reader1)); - deserializedManagedRuleSetAfd.exclusions = exclusions; - } else if ("ruleGroupOverrides".equals(fieldName)) { - List ruleGroupOverrides - = reader.readArray(reader1 -> ManagedRuleGroupOverrideAfd.fromJson(reader1)); - deserializedManagedRuleSetAfd.ruleGroupOverrides = ruleGroupOverrides; - } else { - reader.skipChildren(); - } - } - - return deserializedManagedRuleSetAfd; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetListAfd.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetListAfd.java deleted file mode 100644 index ab31f69675ee..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetListAfd.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.cdn.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; - -/** - * Defines the list of managed rule sets for the policy. - */ -@Fluent -public final class ManagedRuleSetListAfd implements JsonSerializable { - /* - * List of rule sets. - */ - private List managedRuleSets; - - /** - * Creates an instance of ManagedRuleSetListAfd class. - */ - public ManagedRuleSetListAfd() { - } - - /** - * Get the managedRuleSets property: List of rule sets. - * - * @return the managedRuleSets value. - */ - public List managedRuleSets() { - return this.managedRuleSets; - } - - /** - * Set the managedRuleSets property: List of rule sets. - * - * @param managedRuleSets the managedRuleSets value to set. - * @return the ManagedRuleSetListAfd object itself. - */ - public ManagedRuleSetListAfd withManagedRuleSets(List managedRuleSets) { - this.managedRuleSets = managedRuleSets; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (managedRuleSets() != null) { - managedRuleSets().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("managedRuleSets", this.managedRuleSets, - (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedRuleSetListAfd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedRuleSetListAfd 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 ManagedRuleSetListAfd. - */ - public static ManagedRuleSetListAfd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedRuleSetListAfd deserializedManagedRuleSetListAfd = new ManagedRuleSetListAfd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("managedRuleSets".equals(fieldName)) { - List managedRuleSets - = reader.readArray(reader1 -> ManagedRuleSetAfd.fromJson(reader1)); - deserializedManagedRuleSetListAfd.managedRuleSets = managedRuleSets; - } else { - reader.skipChildren(); - } - } - - return deserializedManagedRuleSetListAfd; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/MatchConditionAfd.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/MatchConditionAfd.java deleted file mode 100644 index 678f6cedd73d..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/MatchConditionAfd.java +++ /dev/null @@ -1,257 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Define a match condition. - */ -@Fluent -public final class MatchConditionAfd implements JsonSerializable { - /* - * Request variable to compare with. - */ - private MatchVariable matchVariable; - - /* - * Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null. - */ - private String selector; - - /* - * Comparison type to use for matching with the variable value. - */ - private Operator operator; - - /* - * Describes if the result of this condition should be negated. - */ - private Boolean negateCondition; - - /* - * List of possible match values. - */ - private List matchValue; - - /* - * List of transforms. - */ - private List transforms; - - /** - * Creates an instance of MatchConditionAfd class. - */ - public MatchConditionAfd() { - } - - /** - * Get the matchVariable property: Request variable to compare with. - * - * @return the matchVariable value. - */ - public MatchVariable matchVariable() { - return this.matchVariable; - } - - /** - * Set the matchVariable property: Request variable to compare with. - * - * @param matchVariable the matchVariable value to set. - * @return the MatchConditionAfd object itself. - */ - public MatchConditionAfd withMatchVariable(MatchVariable matchVariable) { - this.matchVariable = matchVariable; - return this; - } - - /** - * Get the selector property: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies - * variables. Default is null. - * - * @return the selector value. - */ - public String selector() { - return this.selector; - } - - /** - * Set the selector property: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies - * variables. Default is null. - * - * @param selector the selector value to set. - * @return the MatchConditionAfd object itself. - */ - public MatchConditionAfd withSelector(String selector) { - this.selector = selector; - return this; - } - - /** - * Get the operator property: Comparison type to use for matching with the variable value. - * - * @return the operator value. - */ - public Operator operator() { - return this.operator; - } - - /** - * Set the operator property: Comparison type to use for matching with the variable value. - * - * @param operator the operator value to set. - * @return the MatchConditionAfd object itself. - */ - public MatchConditionAfd withOperator(Operator operator) { - this.operator = operator; - return this; - } - - /** - * Get the negateCondition property: Describes if the result of this condition should be negated. - * - * @return the negateCondition value. - */ - public Boolean negateCondition() { - return this.negateCondition; - } - - /** - * Set the negateCondition property: Describes if the result of this condition should be negated. - * - * @param negateCondition the negateCondition value to set. - * @return the MatchConditionAfd object itself. - */ - public MatchConditionAfd withNegateCondition(Boolean negateCondition) { - this.negateCondition = negateCondition; - return this; - } - - /** - * Get the matchValue property: List of possible match values. - * - * @return the matchValue value. - */ - public List matchValue() { - return this.matchValue; - } - - /** - * Set the matchValue property: List of possible match values. - * - * @param matchValue the matchValue value to set. - * @return the MatchConditionAfd object itself. - */ - public MatchConditionAfd withMatchValue(List matchValue) { - this.matchValue = matchValue; - return this; - } - - /** - * Get the transforms property: List of transforms. - * - * @return the transforms value. - */ - public List transforms() { - return this.transforms; - } - - /** - * Set the transforms property: List of transforms. - * - * @param transforms the transforms value to set. - * @return the MatchConditionAfd object itself. - */ - public MatchConditionAfd withTransforms(List transforms) { - this.transforms = transforms; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (matchVariable() == null) { - throw LOGGER.atError() - .log( - new IllegalArgumentException("Missing required property matchVariable in model MatchConditionAfd")); - } - if (operator() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property operator in model MatchConditionAfd")); - } - if (matchValue() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property matchValue in model MatchConditionAfd")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MatchConditionAfd.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("matchVariable", this.matchVariable == null ? null : this.matchVariable.toString()); - jsonWriter.writeStringField("operator", this.operator == null ? null : this.operator.toString()); - jsonWriter.writeArrayField("matchValue", this.matchValue, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("selector", this.selector); - jsonWriter.writeBooleanField("negateCondition", this.negateCondition); - jsonWriter.writeArrayField("transforms", this.transforms, - (writer, element) -> writer.writeString(element == null ? null : element.toString())); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of MatchConditionAfd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of MatchConditionAfd 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 MatchConditionAfd. - */ - public static MatchConditionAfd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - MatchConditionAfd deserializedMatchConditionAfd = new MatchConditionAfd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("matchVariable".equals(fieldName)) { - deserializedMatchConditionAfd.matchVariable = MatchVariable.fromString(reader.getString()); - } else if ("operator".equals(fieldName)) { - deserializedMatchConditionAfd.operator = Operator.fromString(reader.getString()); - } else if ("matchValue".equals(fieldName)) { - List matchValue = reader.readArray(reader1 -> reader1.getString()); - deserializedMatchConditionAfd.matchValue = matchValue; - } else if ("selector".equals(fieldName)) { - deserializedMatchConditionAfd.selector = reader.getString(); - } else if ("negateCondition".equals(fieldName)) { - deserializedMatchConditionAfd.negateCondition = reader.getNullable(JsonReader::getBoolean); - } else if ("transforms".equals(fieldName)) { - List transforms - = reader.readArray(reader1 -> TransformType.fromString(reader1.getString())); - deserializedMatchConditionAfd.transforms = transforms; - } else { - reader.skipChildren(); - } - } - - return deserializedMatchConditionAfd; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationProperties.java index 6de47b345601..2a66b76f7a12 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationProperties.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationProperties.java @@ -32,6 +32,12 @@ public final class OriginAuthenticationProperties implements JsonSerializable { + /** + * Place the token in the standard `Authorization` request header (default behavior). + */ + public static final OriginAuthenticationTokenDestinationHeader AUTHORIZATION = fromString("Authorization"); + + /** + * Place the token in the `X-Azure-Authorization` request header to avoid conflicts with an existing `Authorization` + * header set by the client. + */ + public static final OriginAuthenticationTokenDestinationHeader XAZURE_AUTHORIZATION + = fromString("X-Azure-Authorization"); + + /** + * Creates a new instance of OriginAuthenticationTokenDestinationHeader value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public OriginAuthenticationTokenDestinationHeader() { + } + + /** + * Creates or finds a OriginAuthenticationTokenDestinationHeader from its string representation. + * + * @param name a name to look for. + * @return the corresponding OriginAuthenticationTokenDestinationHeader. + */ + public static OriginAuthenticationTokenDestinationHeader fromString(String name) { + return fromString(name, OriginAuthenticationTokenDestinationHeader.class); + } + + /** + * Gets known OriginAuthenticationTokenDestinationHeader values. + * + * @return known OriginAuthenticationTokenDestinationHeader values. + */ + public static Collection values() { + return values(OriginAuthenticationTokenDestinationHeader.class); + } +} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/OriginCapacityResourceProperties.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/OriginCapacityResourceProperties.java deleted file mode 100644 index 424917e7f1dc..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/OriginCapacityResourceProperties.java +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Origin capacity settings for an origin. - */ -@Fluent -public final class OriginCapacityResourceProperties implements JsonSerializable { - /* - * Whether to enable origin capacity for a specific origin - */ - private EnabledState enabled; - - /* - * The nearest origin capacity pop region for an origin - */ - private String region; - - /* - * The request rate limit threshold for an origin per minute - */ - private Long originRequestRateThreshold; - - /* - * The ingress rate limit threshold for an origin per minute in bytes - */ - private Long originIngressRateThreshold; - - /** - * Creates an instance of OriginCapacityResourceProperties class. - */ - public OriginCapacityResourceProperties() { - } - - /** - * Get the enabled property: Whether to enable origin capacity for a specific origin. - * - * @return the enabled value. - */ - public EnabledState enabled() { - return this.enabled; - } - - /** - * Set the enabled property: Whether to enable origin capacity for a specific origin. - * - * @param enabled the enabled value to set. - * @return the OriginCapacityResourceProperties object itself. - */ - public OriginCapacityResourceProperties withEnabled(EnabledState enabled) { - this.enabled = enabled; - return this; - } - - /** - * Get the region property: The nearest origin capacity pop region for an origin. - * - * @return the region value. - */ - public String region() { - return this.region; - } - - /** - * Set the region property: The nearest origin capacity pop region for an origin. - * - * @param region the region value to set. - * @return the OriginCapacityResourceProperties object itself. - */ - public OriginCapacityResourceProperties withRegion(String region) { - this.region = region; - return this; - } - - /** - * Get the originRequestRateThreshold property: The request rate limit threshold for an origin per minute. - * - * @return the originRequestRateThreshold value. - */ - public Long originRequestRateThreshold() { - return this.originRequestRateThreshold; - } - - /** - * Set the originRequestRateThreshold property: The request rate limit threshold for an origin per minute. - * - * @param originRequestRateThreshold the originRequestRateThreshold value to set. - * @return the OriginCapacityResourceProperties object itself. - */ - public OriginCapacityResourceProperties withOriginRequestRateThreshold(Long originRequestRateThreshold) { - this.originRequestRateThreshold = originRequestRateThreshold; - return this; - } - - /** - * Get the originIngressRateThreshold property: The ingress rate limit threshold for an origin per minute in bytes. - * - * @return the originIngressRateThreshold value. - */ - public Long originIngressRateThreshold() { - return this.originIngressRateThreshold; - } - - /** - * Set the originIngressRateThreshold property: The ingress rate limit threshold for an origin per minute in bytes. - * - * @param originIngressRateThreshold the originIngressRateThreshold value to set. - * @return the OriginCapacityResourceProperties object itself. - */ - public OriginCapacityResourceProperties withOriginIngressRateThreshold(Long originIngressRateThreshold) { - this.originIngressRateThreshold = originIngressRateThreshold; - 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("enabled", this.enabled == null ? null : this.enabled.toString()); - jsonWriter.writeStringField("region", this.region); - jsonWriter.writeNumberField("originRequestRateThreshold", this.originRequestRateThreshold); - jsonWriter.writeNumberField("originIngressRateThreshold", this.originIngressRateThreshold); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of OriginCapacityResourceProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of OriginCapacityResourceProperties 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 OriginCapacityResourceProperties. - */ - public static OriginCapacityResourceProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - OriginCapacityResourceProperties deserializedOriginCapacityResourceProperties - = new OriginCapacityResourceProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabled".equals(fieldName)) { - deserializedOriginCapacityResourceProperties.enabled = EnabledState.fromString(reader.getString()); - } else if ("region".equals(fieldName)) { - deserializedOriginCapacityResourceProperties.region = reader.getString(); - } else if ("originRequestRateThreshold".equals(fieldName)) { - deserializedOriginCapacityResourceProperties.originRequestRateThreshold - = reader.getNullable(JsonReader::getLong); - } else if ("originIngressRateThreshold".equals(fieldName)) { - deserializedOriginCapacityResourceProperties.originIngressRateThreshold - = reader.getNullable(JsonReader::getLong); - } else { - reader.skipChildren(); - } - } - - return deserializedOriginCapacityResourceProperties; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PolicyRequestBodyCheck.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PolicyRequestBodyCheck.java deleted file mode 100644 index a264258ef9c4..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PolicyRequestBodyCheck.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Describes if policy managed rules will inspect the request body content. - */ -public final class PolicyRequestBodyCheck extends ExpandableStringEnum { - /** - * Static value Disabled for PolicyRequestBodyCheck. - */ - public static final PolicyRequestBodyCheck DISABLED = fromString("Disabled"); - - /** - * Static value Enabled for PolicyRequestBodyCheck. - */ - public static final PolicyRequestBodyCheck ENABLED = fromString("Enabled"); - - /** - * Creates a new instance of PolicyRequestBodyCheck value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public PolicyRequestBodyCheck() { - } - - /** - * Creates or finds a PolicyRequestBodyCheck from its string representation. - * - * @param name a name to look for. - * @return the corresponding PolicyRequestBodyCheck. - */ - public static PolicyRequestBodyCheck fromString(String name) { - return fromString(name, PolicyRequestBodyCheck.class); - } - - /** - * Gets known PolicyRequestBodyCheck values. - * - * @return known PolicyRequestBodyCheck values. - */ - public static Collection values() { - return values(PolicyRequestBodyCheck.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PolicySettingsAfd.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PolicySettingsAfd.java deleted file mode 100644 index a7181026cd17..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PolicySettingsAfd.java +++ /dev/null @@ -1,381 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.PolicySettingsLogScrubbing; -import java.io.IOException; -import java.util.List; - -/** - * Defines top-level WebApplicationFirewallPolicy configuration settings. - */ -@Fluent -public final class PolicySettingsAfd implements JsonSerializable { - /* - * Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. - */ - private PolicyEnabledState enabledState; - - /* - * Describes if it is in detection mode or prevention mode at policy level. - */ - private PolicyMode mode; - - /* - * If action type is redirect, this field represents redirect URL for the client. - */ - private String redirectUrl; - - /* - * If the action type is block, customer can override the response status code. - */ - private Integer customBlockResponseStatusCode; - - /* - * If the action type is block, customer can override the response body. The body must be specified in base64 - * encoding. - */ - private String customBlockResponseBody; - - /* - * Describes if policy managed rules will inspect the request body content. - */ - private PolicyRequestBodyCheck requestBodyCheck; - - /* - * Defines the JavaScript challenge cookie validity lifetime in minutes. This setting is only applicable to - * Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. - */ - private Integer javascriptChallengeExpirationInMinutes; - - /* - * Defines the Captcha cookie validity lifetime in minutes. This setting is only applicable to - * Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. - */ - private Integer captchaExpirationInMinutes; - - /* - * Defines rules that scrub sensitive fields in the Web Application Firewall logs. - */ - private PolicySettingsLogScrubbing innerLogScrubbing; - - /** - * Creates an instance of PolicySettingsAfd class. - */ - public PolicySettingsAfd() { - } - - /** - * Get the enabledState property: Describes if the policy is in enabled or disabled state. Defaults to Enabled if - * not specified. - * - * @return the enabledState value. - */ - public PolicyEnabledState enabledState() { - return this.enabledState; - } - - /** - * Set the enabledState property: Describes if the policy is in enabled or disabled state. Defaults to Enabled if - * not specified. - * - * @param enabledState the enabledState value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd withEnabledState(PolicyEnabledState enabledState) { - this.enabledState = enabledState; - return this; - } - - /** - * Get the mode property: Describes if it is in detection mode or prevention mode at policy level. - * - * @return the mode value. - */ - public PolicyMode mode() { - return this.mode; - } - - /** - * Set the mode property: Describes if it is in detection mode or prevention mode at policy level. - * - * @param mode the mode value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd withMode(PolicyMode mode) { - this.mode = mode; - return this; - } - - /** - * Get the redirectUrl property: If action type is redirect, this field represents redirect URL for the client. - * - * @return the redirectUrl value. - */ - public String redirectUrl() { - return this.redirectUrl; - } - - /** - * Set the redirectUrl property: If action type is redirect, this field represents redirect URL for the client. - * - * @param redirectUrl the redirectUrl value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd withRedirectUrl(String redirectUrl) { - this.redirectUrl = redirectUrl; - return this; - } - - /** - * Get the customBlockResponseStatusCode property: If the action type is block, customer can override the response - * status code. - * - * @return the customBlockResponseStatusCode value. - */ - public Integer customBlockResponseStatusCode() { - return this.customBlockResponseStatusCode; - } - - /** - * Set the customBlockResponseStatusCode property: If the action type is block, customer can override the response - * status code. - * - * @param customBlockResponseStatusCode the customBlockResponseStatusCode value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd withCustomBlockResponseStatusCode(Integer customBlockResponseStatusCode) { - this.customBlockResponseStatusCode = customBlockResponseStatusCode; - return this; - } - - /** - * Get the customBlockResponseBody property: If the action type is block, customer can override the response body. - * The body must be specified in base64 encoding. - * - * @return the customBlockResponseBody value. - */ - public String customBlockResponseBody() { - return this.customBlockResponseBody; - } - - /** - * Set the customBlockResponseBody property: If the action type is block, customer can override the response body. - * The body must be specified in base64 encoding. - * - * @param customBlockResponseBody the customBlockResponseBody value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd withCustomBlockResponseBody(String customBlockResponseBody) { - this.customBlockResponseBody = customBlockResponseBody; - return this; - } - - /** - * Get the requestBodyCheck property: Describes if policy managed rules will inspect the request body content. - * - * @return the requestBodyCheck value. - */ - public PolicyRequestBodyCheck requestBodyCheck() { - return this.requestBodyCheck; - } - - /** - * Set the requestBodyCheck property: Describes if policy managed rules will inspect the request body content. - * - * @param requestBodyCheck the requestBodyCheck value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd withRequestBodyCheck(PolicyRequestBodyCheck requestBodyCheck) { - this.requestBodyCheck = requestBodyCheck; - return this; - } - - /** - * Get the javascriptChallengeExpirationInMinutes property: Defines the JavaScript challenge cookie validity - * lifetime in minutes. This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between - * 5 and 1440 with the default value being 30. - * - * @return the javascriptChallengeExpirationInMinutes value. - */ - public Integer javascriptChallengeExpirationInMinutes() { - return this.javascriptChallengeExpirationInMinutes; - } - - /** - * Set the javascriptChallengeExpirationInMinutes property: Defines the JavaScript challenge cookie validity - * lifetime in minutes. This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between - * 5 and 1440 with the default value being 30. - * - * @param javascriptChallengeExpirationInMinutes the javascriptChallengeExpirationInMinutes value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd - withJavascriptChallengeExpirationInMinutes(Integer javascriptChallengeExpirationInMinutes) { - this.javascriptChallengeExpirationInMinutes = javascriptChallengeExpirationInMinutes; - return this; - } - - /** - * Get the captchaExpirationInMinutes property: Defines the Captcha cookie validity lifetime in minutes. This - * setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the - * default value being 30. - * - * @return the captchaExpirationInMinutes value. - */ - public Integer captchaExpirationInMinutes() { - return this.captchaExpirationInMinutes; - } - - /** - * Set the captchaExpirationInMinutes property: Defines the Captcha cookie validity lifetime in minutes. This - * setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the - * default value being 30. - * - * @param captchaExpirationInMinutes the captchaExpirationInMinutes value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd withCaptchaExpirationInMinutes(Integer captchaExpirationInMinutes) { - this.captchaExpirationInMinutes = captchaExpirationInMinutes; - return this; - } - - /** - * Get the innerLogScrubbing property: Defines rules that scrub sensitive fields in the Web Application Firewall - * logs. - * - * @return the innerLogScrubbing value. - */ - private PolicySettingsLogScrubbing innerLogScrubbing() { - return this.innerLogScrubbing; - } - - /** - * Get the state property: State of the log scrubbing config. Default value is Enabled. - * - * @return the state value. - */ - public WebApplicationFirewallScrubbingState state() { - return this.innerLogScrubbing() == null ? null : this.innerLogScrubbing().state(); - } - - /** - * Set the state property: State of the log scrubbing config. Default value is Enabled. - * - * @param state the state value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd withState(WebApplicationFirewallScrubbingState state) { - if (this.innerLogScrubbing() == null) { - this.innerLogScrubbing = new PolicySettingsLogScrubbing(); - } - this.innerLogScrubbing().withState(state); - return this; - } - - /** - * Get the scrubbingRules property: List of log scrubbing rules applied to the Web Application Firewall logs. - * - * @return the scrubbingRules value. - */ - public List scrubbingRules() { - return this.innerLogScrubbing() == null ? null : this.innerLogScrubbing().scrubbingRules(); - } - - /** - * Set the scrubbingRules property: List of log scrubbing rules applied to the Web Application Firewall logs. - * - * @param scrubbingRules the scrubbingRules value to set. - * @return the PolicySettingsAfd object itself. - */ - public PolicySettingsAfd withScrubbingRules(List scrubbingRules) { - if (this.innerLogScrubbing() == null) { - this.innerLogScrubbing = new PolicySettingsLogScrubbing(); - } - this.innerLogScrubbing().withScrubbingRules(scrubbingRules); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerLogScrubbing() != null) { - innerLogScrubbing().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString()); - jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); - jsonWriter.writeStringField("redirectUrl", this.redirectUrl); - jsonWriter.writeNumberField("customBlockResponseStatusCode", this.customBlockResponseStatusCode); - jsonWriter.writeStringField("customBlockResponseBody", this.customBlockResponseBody); - jsonWriter.writeStringField("requestBodyCheck", - this.requestBodyCheck == null ? null : this.requestBodyCheck.toString()); - jsonWriter.writeNumberField("javascriptChallengeExpirationInMinutes", - this.javascriptChallengeExpirationInMinutes); - jsonWriter.writeNumberField("captchaExpirationInMinutes", this.captchaExpirationInMinutes); - jsonWriter.writeJsonField("logScrubbing", this.innerLogScrubbing); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of PolicySettingsAfd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of PolicySettingsAfd 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 PolicySettingsAfd. - */ - public static PolicySettingsAfd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - PolicySettingsAfd deserializedPolicySettingsAfd = new PolicySettingsAfd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("enabledState".equals(fieldName)) { - deserializedPolicySettingsAfd.enabledState = PolicyEnabledState.fromString(reader.getString()); - } else if ("mode".equals(fieldName)) { - deserializedPolicySettingsAfd.mode = PolicyMode.fromString(reader.getString()); - } else if ("redirectUrl".equals(fieldName)) { - deserializedPolicySettingsAfd.redirectUrl = reader.getString(); - } else if ("customBlockResponseStatusCode".equals(fieldName)) { - deserializedPolicySettingsAfd.customBlockResponseStatusCode - = reader.getNullable(JsonReader::getInt); - } else if ("customBlockResponseBody".equals(fieldName)) { - deserializedPolicySettingsAfd.customBlockResponseBody = reader.getString(); - } else if ("requestBodyCheck".equals(fieldName)) { - deserializedPolicySettingsAfd.requestBodyCheck - = PolicyRequestBodyCheck.fromString(reader.getString()); - } else if ("javascriptChallengeExpirationInMinutes".equals(fieldName)) { - deserializedPolicySettingsAfd.javascriptChallengeExpirationInMinutes - = reader.getNullable(JsonReader::getInt); - } else if ("captchaExpirationInMinutes".equals(fieldName)) { - deserializedPolicySettingsAfd.captchaExpirationInMinutes = reader.getNullable(JsonReader::getInt); - } else if ("logScrubbing".equals(fieldName)) { - deserializedPolicySettingsAfd.innerLogScrubbing = PolicySettingsLogScrubbing.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedPolicySettingsAfd; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PreviewSupportedResourceType.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PreviewSupportedResourceType.java deleted file mode 100644 index 103509601c6e..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/PreviewSupportedResourceType.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Resource type supported by preview. - */ -public final class PreviewSupportedResourceType extends ExpandableStringEnum { - /** - * Static value Microsoft.Cdn/profiles/afdEndpoints/routes for PreviewSupportedResourceType. - */ - public static final PreviewSupportedResourceType MICROSOFT_CDN_PROFILES_AFD_ENDPOINTS_ROUTE - = fromString("Microsoft.Cdn/profiles/afdEndpoints/routes"); - - /** - * Static value Microsoft.Cdn/profiles/originGroups for PreviewSupportedResourceType. - */ - public static final PreviewSupportedResourceType MICROSOFT_CDN_PROFILES_ORIGIN_GROUPS - = fromString("Microsoft.Cdn/profiles/originGroups"); - - /** - * Static value Microsoft.Cdn/profiles/originGroups/origins for PreviewSupportedResourceType. - */ - public static final PreviewSupportedResourceType MICROSOFT_CDN_PROFILES_ORIGIN_GROUPS_ORIGINS - = fromString("Microsoft.Cdn/profiles/originGroups/origins"); - - /** - * Static value Microsoft.Cdn/profiles/ruleSets for PreviewSupportedResourceType. - */ - public static final PreviewSupportedResourceType MICROSOFT_CDN_PROFILES_RULE_SETS - = fromString("Microsoft.Cdn/profiles/ruleSets"); - - /** - * Static value Microsoft.Cdn/profiles/ruleSets/rules for PreviewSupportedResourceType. - */ - public static final PreviewSupportedResourceType MICROSOFT_CDN_PROFILES_RULE_SETS_RULES - = fromString("Microsoft.Cdn/profiles/ruleSets/rules"); - - /** - * Static value Microsoft.Cdn/profiles/securityPolicies for PreviewSupportedResourceType. - */ - public static final PreviewSupportedResourceType MICROSOFT_CDN_PROFILES_SECURITY_POLICIES - = fromString("Microsoft.Cdn/profiles/securityPolicies"); - - /** - * Creates a new instance of PreviewSupportedResourceType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public PreviewSupportedResourceType() { - } - - /** - * Creates or finds a PreviewSupportedResourceType from its string representation. - * - * @param name a name to look for. - * @return the corresponding PreviewSupportedResourceType. - */ - public static PreviewSupportedResourceType fromString(String name) { - return fromString(name, PreviewSupportedResourceType.class); - } - - /** - * Gets known PreviewSupportedResourceType values. - * - * @return known PreviewSupportedResourceType values. - */ - public static Collection values() { - return values(PreviewSupportedResourceType.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProbeProtocol.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProbeProtocol.java index e319fe6877ac..28717ae02013 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProbeProtocol.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProbeProtocol.java @@ -21,12 +21,7 @@ public enum ProbeProtocol { /** * Enum value Https. */ - HTTPS("Https"), - - /** - * Enum value Grpc. - */ - GRPC("Grpc"); + HTTPS("Https"); /** * The actual serialized value for a ProbeProtocol instance. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentProvisioningState.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentProvisioningState.java deleted file mode 100644 index d49549191b60..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentProvisioningState.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Provisioning status of the profile agent association. - */ -public final class ProfileAgentProvisioningState extends ExpandableStringEnum { - /** - * Static value Succeeded for ProfileAgentProvisioningState. - */ - public static final ProfileAgentProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Failed for ProfileAgentProvisioningState. - */ - public static final ProfileAgentProvisioningState FAILED = fromString("Failed"); - - /** - * Static value Updating for ProfileAgentProvisioningState. - */ - public static final ProfileAgentProvisioningState UPDATING = fromString("Updating"); - - /** - * Static value Deleting for ProfileAgentProvisioningState. - */ - public static final ProfileAgentProvisioningState DELETING = fromString("Deleting"); - - /** - * Static value Creating for ProfileAgentProvisioningState. - */ - public static final ProfileAgentProvisioningState CREATING = fromString("Creating"); - - /** - * Creates a new instance of ProfileAgentProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ProfileAgentProvisioningState() { - } - - /** - * Creates or finds a ProfileAgentProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding ProfileAgentProvisioningState. - */ - public static ProfileAgentProvisioningState fromString(String name) { - return fromString(name, ProfileAgentProvisioningState.class); - } - - /** - * Gets known ProfileAgentProvisioningState values. - * - * @return known ProfileAgentProvisioningState values. - */ - public static Collection values() { - return values(ProfileAgentProvisioningState.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentUpdateParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentUpdateParameters.java deleted file mode 100644 index b6f2ca948ede..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentUpdateParameters.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.ProfileAgentUpdateProperties; -import java.io.IOException; -import java.util.List; - -/** - * Properties required to update a profile agent association. - */ -@Fluent -public final class ProfileAgentUpdateParameters implements JsonSerializable { - /* - * The properties for updating a profile agent association. - */ - private ProfileAgentUpdateProperties innerProperties; - - /** - * Creates an instance of ProfileAgentUpdateParameters class. - */ - public ProfileAgentUpdateParameters() { - } - - /** - * Get the innerProperties property: The properties for updating a profile agent association. - * - * @return the innerProperties value. - */ - private ProfileAgentUpdateProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the customDomains property: List of custom domains associated with this agent link. - * - * @return the customDomains value. - */ - public List customDomains() { - return this.innerProperties() == null ? null : this.innerProperties().customDomains(); - } - - /** - * Set the customDomains property: List of custom domains associated with this agent link. - * - * @param customDomains the customDomains value to set. - * @return the ProfileAgentUpdateParameters object itself. - */ - public ProfileAgentUpdateParameters withCustomDomains(List customDomains) { - if (this.innerProperties() == null) { - this.innerProperties = new ProfileAgentUpdateProperties(); - } - this.innerProperties().withCustomDomains(customDomains); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ProfileAgentUpdateParameters from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ProfileAgentUpdateParameters 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 ProfileAgentUpdateParameters. - */ - public static ProfileAgentUpdateParameters fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ProfileAgentUpdateParameters deserializedProfileAgentUpdateParameters = new ProfileAgentUpdateParameters(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("properties".equals(fieldName)) { - deserializedProfileAgentUpdateParameters.innerProperties - = ProfileAgentUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedProfileAgentUpdateParameters; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RouteUpdateParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RouteUpdateParameters.java index 1d4db69ba250..b524714362fd 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RouteUpdateParameters.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RouteUpdateParameters.java @@ -306,31 +306,6 @@ public RouteUpdateParameters withEnabledState(EnabledState enabledState) { return this; } - /** - * Get the grpcState property: Whether or not gRPC is enabled on this route. Permitted values are 'Enabled' or - * 'Disabled'. - * - * @return the grpcState value. - */ - public AfdRouteGrpcState grpcState() { - return this.innerProperties() == null ? null : this.innerProperties().grpcState(); - } - - /** - * Set the grpcState property: Whether or not gRPC is enabled on this route. Permitted values are 'Enabled' or - * 'Disabled'. - * - * @param grpcState the grpcState value to set. - * @return the RouteUpdateParameters object itself. - */ - public RouteUpdateParameters withGrpcState(AfdRouteGrpcState grpcState) { - if (this.innerProperties() == null) { - this.innerProperties = new RouteUpdatePropertiesParameters(); - } - this.innerProperties().withGrpcState(grpcState); - return this; - } - /** * Validates the instance. * diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RoutingRuleLink.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RoutingRuleLink.java deleted file mode 100644 index 389476ea7292..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RoutingRuleLink.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Defines the Resource ID for a Routing Rule. - */ -@Immutable -public final class RoutingRuleLink implements JsonSerializable { - /* - * Resource ID. - */ - private String id; - - /** - * Creates an instance of RoutingRuleLink class. - */ - private RoutingRuleLink() { - } - - /** - * Get the id property: Resource ID. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * 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 RoutingRuleLink from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RoutingRuleLink 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 RoutingRuleLink. - */ - public static RoutingRuleLink fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RoutingRuleLink deserializedRoutingRuleLink = new RoutingRuleLink(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedRoutingRuleLink.id = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedRoutingRuleLink; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateHeaders.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateHeaders.java deleted file mode 100644 index 508abdeebd4d..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateHeaders.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.cdn.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.http.HttpHeaderName; -import com.azure.core.http.HttpHeaders; - -/** - * The RuleSetsCreateHeaders model. - */ -@Immutable -public final class RuleSetsCreateHeaders { - /* - * The Retry-After property. - */ - private final Integer retryAfter; - - // HttpHeaders containing the raw property values. - /** - * Creates an instance of RuleSetsCreateHeaders class. - * - * @param rawHeaders The raw HttpHeaders that will be used to create the property values. - */ - public RuleSetsCreateHeaders(HttpHeaders rawHeaders) { - String retryAfter = rawHeaders.getValue(HttpHeaderName.RETRY_AFTER); - if (retryAfter != null) { - this.retryAfter = Integer.parseInt(retryAfter); - } else { - this.retryAfter = null; - } - } - - /** - * Get the retryAfter property: The Retry-After property. - * - * @return the retryAfter value. - */ - public Integer retryAfter() { - return this.retryAfter; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateResponse.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateResponse.java deleted file mode 100644 index 34f8ba0962e2..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateResponse.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.cdn.models; - -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.rest.ResponseBase; -import com.azure.resourcemanager.cdn.fluent.models.RuleSetInner; - -/** - * Contains all response data for the create operation. - */ -public final class RuleSetsCreateResponse extends ResponseBase { - /** - * Creates an instance of RuleSetsCreateResponse. - * - * @param request the request which resulted in this RuleSetsCreateResponse. - * @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 RuleSetsCreateResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, RuleSetInner value, - RuleSetsCreateHeaders headers) { - super(request, statusCode, rawHeaders, value, headers); - } - - /** - * Gets the deserialized response body. - * - * @return the deserialized response body. - */ - @Override - public RuleSetInner getValue() { - return super.getValue(); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleType.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleType.java deleted file mode 100644 index 30bed8c2d0f6..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/RuleType.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Describes type of rule. - */ -public final class RuleType extends ExpandableStringEnum { - /** - * Static value MatchRule for RuleType. - */ - public static final RuleType MATCH_RULE = fromString("MatchRule"); - - /** - * Static value RateLimitRule for RuleType. - */ - public static final RuleType RATE_LIMIT_RULE = fromString("RateLimitRule"); - - /** - * Creates a new instance of RuleType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public RuleType() { - } - - /** - * Creates or finds a RuleType from its string representation. - * - * @param name a name to look for. - * @return the corresponding RuleType. - */ - public static RuleType fromString(String name) { - return fromString(name, RuleType.class); - } - - /** - * Gets known RuleType values. - * - * @return known RuleType values. - */ - public static Collection values() { - return values(RuleType.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchOperator.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchOperator.java index 0d65eac5365a..df2aa92eb2f0 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchOperator.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchOperator.java @@ -17,11 +17,6 @@ public final class ScrubbingRuleEntryMatchOperator extends ExpandableStringEnum< */ public static final ScrubbingRuleEntryMatchOperator EQUALS_ANY = fromString("EqualsAny"); - /** - * Static value Equals for ScrubbingRuleEntryMatchOperator. - */ - public static final ScrubbingRuleEntryMatchOperator EQUALS = fromString("Equals"); - /** * Creates a new instance of ScrubbingRuleEntryMatchOperator value. * diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchVariable.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchVariable.java index 100ab34430db..c4618fc5172a 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchVariable.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchVariable.java @@ -26,28 +26,6 @@ public final class ScrubbingRuleEntryMatchVariable extends ExpandableStringEnum< */ public static final ScrubbingRuleEntryMatchVariable QUERY_STRING_ARG_NAMES = fromString("QueryStringArgNames"); - /** - * Static value RequestHeaderNames for ScrubbingRuleEntryMatchVariable. - */ - public static final ScrubbingRuleEntryMatchVariable REQUEST_HEADER_NAMES = fromString("RequestHeaderNames"); - - /** - * Static value RequestCookieNames for ScrubbingRuleEntryMatchVariable. - */ - public static final ScrubbingRuleEntryMatchVariable REQUEST_COOKIE_NAMES = fromString("RequestCookieNames"); - - /** - * Static value RequestBodyPostArgNames for ScrubbingRuleEntryMatchVariable. - */ - public static final ScrubbingRuleEntryMatchVariable REQUEST_BODY_POST_ARG_NAMES - = fromString("RequestBodyPostArgNames"); - - /** - * Static value RequestBodyJsonArgNames for ScrubbingRuleEntryMatchVariable. - */ - public static final ScrubbingRuleEntryMatchVariable REQUEST_BODY_JSON_ARG_NAMES - = fromString("RequestBodyJsonArgNames"); - /** * Creates a new instance of ScrubbingRuleEntryMatchVariable value. * diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyLink.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyLink.java deleted file mode 100644 index eb9b2b0e984b..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyLink.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Defines the Resource ID for a Security Policy. - */ -@Immutable -public final class SecurityPolicyLink implements JsonSerializable { - /* - * Resource ID. - */ - private String id; - - /** - * Creates an instance of SecurityPolicyLink class. - */ - private SecurityPolicyLink() { - } - - /** - * Get the id property: Resource ID. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * 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 SecurityPolicyLink from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SecurityPolicyLink 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 SecurityPolicyLink. - */ - public static SecurityPolicyLink fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SecurityPolicyLink deserializedSecurityPolicyLink = new SecurityPolicyLink(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedSecurityPolicyLink.id = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedSecurityPolicyLink; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesParameters.java index 22a38b49af0f..d5117e5502cb 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesParameters.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesParameters.java @@ -78,10 +78,7 @@ public static SecurityPolicyPropertiesParameters fromJson(JsonReader jsonReader) } } // Use the discriminator value to determine which subtype should be deserialized. - if ("WebApplicationFirewallEmbedded".equals(discriminatorValue)) { - return SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy - .fromJson(readerToUse.reset()); - } else if ("WebApplicationFirewall".equals(discriminatorValue)) { + if ("WebApplicationFirewall".equals(discriminatorValue)) { return SecurityPolicyWebApplicationFirewallParameters.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesWithEmbeddedWafPolicy.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesWithEmbeddedWafPolicy.java deleted file mode 100644 index 1dab67ef6435..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesWithEmbeddedWafPolicy.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.cdn.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; - -/** - * Contains properties required to create a security policy. - */ -@Immutable -public final class SecurityPolicyPropertiesWithEmbeddedWafPolicy extends AfdStateProperties { - /* - * The name of the profile which holds the security policy. - */ - private String profileName; - - /* - * object which contains security policy parameters - */ - private SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy parameters; - - /* - * The deploymentStatus property. - */ - private DeploymentStatus deploymentStatus; - - /* - * Provisioning status - */ - private AfdProvisioningState provisioningState; - - /** - * Creates an instance of SecurityPolicyPropertiesWithEmbeddedWafPolicy class. - */ - private SecurityPolicyPropertiesWithEmbeddedWafPolicy() { - } - - /** - * Get the profileName property: The name of the profile which holds the security policy. - * - * @return the profileName value. - */ - public String profileName() { - return this.profileName; - } - - /** - * Get the parameters property: object which contains security policy parameters. - * - * @return the parameters value. - */ - public SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy parameters() { - return this.parameters; - } - - /** - * Get the deploymentStatus property: The deploymentStatus property. - * - * @return the deploymentStatus value. - */ - @Override - public DeploymentStatus deploymentStatus() { - return this.deploymentStatus; - } - - /** - * Get the provisioningState property: Provisioning status. - * - * @return the provisioningState value. - */ - @Override - public AfdProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (parameters() != null) { - parameters().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("parameters", this.parameters); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SecurityPolicyPropertiesWithEmbeddedWafPolicy from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SecurityPolicyPropertiesWithEmbeddedWafPolicy 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 SecurityPolicyPropertiesWithEmbeddedWafPolicy. - */ - public static SecurityPolicyPropertiesWithEmbeddedWafPolicy fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SecurityPolicyPropertiesWithEmbeddedWafPolicy deserializedSecurityPolicyPropertiesWithEmbeddedWafPolicy - = new SecurityPolicyPropertiesWithEmbeddedWafPolicy(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedSecurityPolicyPropertiesWithEmbeddedWafPolicy.provisioningState - = AfdProvisioningState.fromString(reader.getString()); - } else if ("deploymentStatus".equals(fieldName)) { - deserializedSecurityPolicyPropertiesWithEmbeddedWafPolicy.deploymentStatus - = DeploymentStatus.fromString(reader.getString()); - } else if ("profileName".equals(fieldName)) { - deserializedSecurityPolicyPropertiesWithEmbeddedWafPolicy.profileName = reader.getString(); - } else if ("parameters".equals(fieldName)) { - deserializedSecurityPolicyPropertiesWithEmbeddedWafPolicy.parameters - = SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedSecurityPolicyPropertiesWithEmbeddedWafPolicy; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyType.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyType.java index cb06ebe6a72d..cb3878b06e57 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyType.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyType.java @@ -16,12 +16,6 @@ public final class SecurityPolicyType extends ExpandableStringEnum patternsToMatch; + /* + * List of routes. + */ + private List routes; + /** * Creates an instance of SecurityPolicyWebApplicationFirewallAssociation class. */ @@ -74,6 +79,26 @@ public SecurityPolicyWebApplicationFirewallAssociation withPatternsToMatch(List< return this; } + /** + * Get the routes property: List of routes. + * + * @return the routes value. + */ + public List routes() { + return this.routes; + } + + /** + * Set the routes property: List of routes. + * + * @param routes the routes value to set. + * @return the SecurityPolicyWebApplicationFirewallAssociation object itself. + */ + public SecurityPolicyWebApplicationFirewallAssociation withRoutes(List routes) { + this.routes = routes; + return this; + } + /** * Validates the instance. * @@ -83,6 +108,9 @@ public void validate() { if (domains() != null) { domains().forEach(e -> e.validate()); } + if (routes() != null) { + routes().forEach(e -> e.validate()); + } } /** @@ -94,6 +122,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("domains", this.domains, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("patternsToMatch", this.patternsToMatch, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("routes", this.routes, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -120,6 +149,9 @@ public static SecurityPolicyWebApplicationFirewallAssociation fromJson(JsonReade } else if ("patternsToMatch".equals(fieldName)) { List patternsToMatch = reader.readArray(reader1 -> reader1.getString()); deserializedSecurityPolicyWebApplicationFirewallAssociation.patternsToMatch = patternsToMatch; + } else if ("routes".equals(fieldName)) { + List routes = reader.readArray(reader1 -> ResourceReference.fromJson(reader1)); + deserializedSecurityPolicyWebApplicationFirewallAssociation.routes = routes; } else { reader.skipChildren(); } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParameters.java index 2a159a4a6f34..467173a6cf5b 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParameters.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParameters.java @@ -31,6 +31,11 @@ public final class SecurityPolicyWebApplicationFirewallParameters extends Securi */ private List associations; + /* + * Indicates if this is a profile-level WAF policy. + */ + private Boolean isProfileLevel; + /** * Creates an instance of SecurityPolicyWebApplicationFirewallParameters class. */ @@ -88,6 +93,26 @@ public List associations() { return this; } + /** + * Get the isProfileLevel property: Indicates if this is a profile-level WAF policy. + * + * @return the isProfileLevel value. + */ + public Boolean isProfileLevel() { + return this.isProfileLevel; + } + + /** + * Set the isProfileLevel property: Indicates if this is a profile-level WAF policy. + * + * @param isProfileLevel the isProfileLevel value to set. + * @return the SecurityPolicyWebApplicationFirewallParameters object itself. + */ + public SecurityPolicyWebApplicationFirewallParameters withIsProfileLevel(Boolean isProfileLevel) { + this.isProfileLevel = isProfileLevel; + return this; + } + /** * Validates the instance. * @@ -112,6 +137,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); jsonWriter.writeJsonField("wafPolicy", this.wafPolicy); jsonWriter.writeArrayField("associations", this.associations, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeBooleanField("isProfileLevel", this.isProfileLevel); return jsonWriter.writeEndObject(); } @@ -141,6 +167,9 @@ public static SecurityPolicyWebApplicationFirewallParameters fromJson(JsonReader List associations = reader .readArray(reader1 -> SecurityPolicyWebApplicationFirewallAssociation.fromJson(reader1)); deserializedSecurityPolicyWebApplicationFirewallParameters.associations = associations; + } else if ("isProfileLevel".equals(fieldName)) { + deserializedSecurityPolicyWebApplicationFirewallParameters.isProfileLevel + = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy.java deleted file mode 100644 index a13a88c666ab..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy.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.cdn.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; -import java.util.List; - -/** - * Contains security policy waf parameters. - */ -@Fluent -public final class SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy - extends SecurityPolicyPropertiesParameters { - /* - * The type of the Security policy to create. - */ - private SecurityPolicyType type = SecurityPolicyType.WEB_APPLICATION_FIREWALL_EMBEDDED; - - /* - * Properties of the web application firewall policy. - */ - private WebApplicationFirewallPolicy wafPolicy; - - /* - * Waf associations - */ - private List associations; - - /** - * Creates an instance of SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy class. - */ - public SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy() { - } - - /** - * Get the type property: The type of the Security policy to create. - * - * @return the type value. - */ - @Override - public SecurityPolicyType type() { - return this.type; - } - - /** - * Get the wafPolicy property: Properties of the web application firewall policy. - * - * @return the wafPolicy value. - */ - public WebApplicationFirewallPolicy wafPolicy() { - return this.wafPolicy; - } - - /** - * Set the wafPolicy property: Properties of the web application firewall policy. - * - * @param wafPolicy the wafPolicy value to set. - * @return the SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy object itself. - */ - public SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy - withWafPolicy(WebApplicationFirewallPolicy wafPolicy) { - this.wafPolicy = wafPolicy; - return this; - } - - /** - * Get the associations property: Waf associations. - * - * @return the associations value. - */ - public List associations() { - return this.associations; - } - - /** - * Set the associations property: Waf associations. - * - * @param associations the associations value to set. - * @return the SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy object itself. - */ - public SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy - withAssociations(List associations) { - this.associations = associations; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (wafPolicy() != null) { - wafPolicy().validate(); - } - if (associations() != null) { - associations().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); - jsonWriter.writeJsonField("wafPolicy", this.wafPolicy); - jsonWriter.writeArrayField("associations", this.associations, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy 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 - * SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy. - */ - public static SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy deserializedSecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy - = new SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("type".equals(fieldName)) { - deserializedSecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy.type - = SecurityPolicyType.fromString(reader.getString()); - } else if ("wafPolicy".equals(fieldName)) { - deserializedSecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy.wafPolicy - = WebApplicationFirewallPolicy.fromJson(reader); - } else if ("associations".equals(fieldName)) { - List associations = reader - .readArray(reader1 -> SecurityPolicyWebApplicationFirewallAssociation.fromJson(reader1)); - deserializedSecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy.associations - = associations; - } else { - reader.skipChildren(); - } - } - - return deserializedSecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SkuName.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SkuName.java index 03aac86b551e..8051aacdd6fc 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SkuName.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/SkuName.java @@ -51,11 +51,6 @@ public final class SkuName extends ExpandableStringEnum { */ public static final SkuName PREMIUM_AZURE_FRONT_DOOR = fromString("Premium_AzureFrontDoor"); - /** - * Static value Classic_AzureFrontDoor for SkuName. - */ - public static final SkuName CLASSIC_AZURE_FRONT_DOOR = fromString("Classic_AzureFrontDoor"); - /** * Static value Standard_955BandWidth_ChinaCdn for SkuName. */ diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/VariableName.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/VariableName.java deleted file mode 100644 index 9d8d0c22e270..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/VariableName.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Describes the supported variable for group by. - */ -public final class VariableName extends ExpandableStringEnum { - /** - * Static value SocketAddr for VariableName. - */ - public static final VariableName SOCKET_ADDR = fromString("SocketAddr"); - - /** - * Static value GeoLocation for VariableName. - */ - public static final VariableName GEO_LOCATION = fromString("GeoLocation"); - - /** - * Static value None for VariableName. - */ - public static final VariableName NONE = fromString("None"); - - /** - * Creates a new instance of VariableName value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public VariableName() { - } - - /** - * Creates or finds a VariableName from its string representation. - * - * @param name a name to look for. - * @return the corresponding VariableName. - */ - public static VariableName fromString(String name) { - return fromString(name, VariableName.class); - } - - /** - * Gets known VariableName values. - * - * @return known VariableName values. - */ - public static Collection values() { - return values(VariableName.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebAgentProvisioningState.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebAgentProvisioningState.java deleted file mode 100644 index 40dd9517fab8..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebAgentProvisioningState.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Provisioning status of the web agent. - */ -public final class WebAgentProvisioningState extends ExpandableStringEnum { - /** - * Static value Creating for WebAgentProvisioningState. - */ - public static final WebAgentProvisioningState CREATING = fromString("Creating"); - - /** - * Static value Succeeded for WebAgentProvisioningState. - */ - public static final WebAgentProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** - * Static value Failed for WebAgentProvisioningState. - */ - public static final WebAgentProvisioningState FAILED = fromString("Failed"); - - /** - * Static value Updating for WebAgentProvisioningState. - */ - public static final WebAgentProvisioningState UPDATING = fromString("Updating"); - - /** - * Static value Deleting for WebAgentProvisioningState. - */ - public static final WebAgentProvisioningState DELETING = fromString("Deleting"); - - /** - * Creates a new instance of WebAgentProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public WebAgentProvisioningState() { - } - - /** - * Creates or finds a WebAgentProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding WebAgentProvisioningState. - */ - public static WebAgentProvisioningState fromString(String name) { - return fromString(name, WebAgentProvisioningState.class); - } - - /** - * Gets known WebAgentProvisioningState values. - * - * @return known WebAgentProvisioningState values. - */ - public static Collection values() { - return values(WebAgentProvisioningState.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebAgentUpdateParameters.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebAgentUpdateParameters.java deleted file mode 100644 index 15ab64234777..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebAgentUpdateParameters.java +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.WebAgentPropertiesUpdateParameters; -import java.io.IOException; -import java.util.List; -import java.util.Map; - -/** - * Properties required to update a web agent. - */ -@Fluent -public final class WebAgentUpdateParameters implements JsonSerializable { - /* - * Web agent tags - */ - private Map tags; - - /* - * Properties of the web agent to be updated. - */ - private WebAgentPropertiesUpdateParameters innerProperties; - - /** - * Creates an instance of WebAgentUpdateParameters class. - */ - public WebAgentUpdateParameters() { - } - - /** - * Get the tags property: Web agent tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Web agent tags. - * - * @param tags the tags value to set. - * @return the WebAgentUpdateParameters object itself. - */ - public WebAgentUpdateParameters withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the innerProperties property: Properties of the web agent to be updated. - * - * @return the innerProperties value. - */ - private WebAgentPropertiesUpdateParameters innerProperties() { - return this.innerProperties; - } - - /** - * Get the description property: Optional textual description of the agent. - * - * @return the description value. - */ - public String description() { - return this.innerProperties() == null ? null : this.innerProperties().description(); - } - - /** - * Set the description property: Optional textual description of the agent. - * - * @param description the description value to set. - * @return the WebAgentUpdateParameters object itself. - */ - public WebAgentUpdateParameters withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new WebAgentPropertiesUpdateParameters(); - } - this.innerProperties().withDescription(description); - return this; - } - - /** - * Get the systemPrompt property: System prompt for the web agent. - * - * @return the systemPrompt value. - */ - public String systemPrompt() { - return this.innerProperties() == null ? null : this.innerProperties().systemPrompt(); - } - - /** - * Set the systemPrompt property: System prompt for the web agent. - * - * @param systemPrompt the systemPrompt value to set. - * @return the WebAgentUpdateParameters object itself. - */ - public WebAgentUpdateParameters withSystemPrompt(String systemPrompt) { - if (this.innerProperties() == null) { - this.innerProperties = new WebAgentPropertiesUpdateParameters(); - } - this.innerProperties().withSystemPrompt(systemPrompt); - return this; - } - - /** - * Get the paths property: List of paths associated with the web agent. - * - * @return the paths value. - */ - public List paths() { - return this.innerProperties() == null ? null : this.innerProperties().paths(); - } - - /** - * Set the paths property: List of paths associated with the web agent. - * - * @param paths the paths value to set. - * @return the WebAgentUpdateParameters object itself. - */ - public WebAgentUpdateParameters withPaths(List paths) { - if (this.innerProperties() == null) { - this.innerProperties = new WebAgentPropertiesUpdateParameters(); - } - this.innerProperties().withPaths(paths); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of WebAgentUpdateParameters from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of WebAgentUpdateParameters 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 WebAgentUpdateParameters. - */ - public static WebAgentUpdateParameters fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - WebAgentUpdateParameters deserializedWebAgentUpdateParameters = new WebAgentUpdateParameters(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedWebAgentUpdateParameters.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedWebAgentUpdateParameters.innerProperties - = WebAgentPropertiesUpdateParameters.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedWebAgentUpdateParameters; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallPolicy.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallPolicy.java deleted file mode 100644 index 7af5e0dce28c..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallPolicy.java +++ /dev/null @@ -1,334 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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.cdn.fluent.models.WebApplicationFirewallPolicyProperties; -import java.io.IOException; -import java.util.List; - -/** - * Defines web application firewall policy. - */ -@Fluent -public final class WebApplicationFirewallPolicy extends ProxyResource { - /* - * Properties of the web application firewall policy. - */ - private WebApplicationFirewallPolicyProperties innerProperties; - - /* - * Gets a unique read-only string that changes whenever the resource is updated. - */ - private String etag; - - /* - * The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified. - */ - private Sku sku; - - /* - * 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 WebApplicationFirewallPolicy class. - */ - public WebApplicationFirewallPolicy() { - } - - /** - * Get the innerProperties property: Properties of the web application firewall policy. - * - * @return the innerProperties value. - */ - private WebApplicationFirewallPolicyProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the etag property: Gets a unique read-only string that changes whenever the resource is updated. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** - * Set the etag property: Gets a unique read-only string that changes whenever the resource is updated. - * - * @param etag the etag value to set. - * @return the WebApplicationFirewallPolicy object itself. - */ - public WebApplicationFirewallPolicy withEtag(String etag) { - this.etag = etag; - return this; - } - - /** - * Get the sku property: The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if - * not specified. - * - * @return the sku value. - */ - public Sku sku() { - return this.sku; - } - - /** - * Set the sku property: The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if - * not specified. - * - * @param sku the sku value to set. - * @return the WebApplicationFirewallPolicy object itself. - */ - public WebApplicationFirewallPolicy withSku(Sku sku) { - this.sku = sku; - 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; - } - - /** - * Get the policySettings property: Describes settings for the policy. - * - * @return the policySettings value. - */ - public PolicySettingsAfd policySettings() { - return this.innerProperties() == null ? null : this.innerProperties().policySettings(); - } - - /** - * Set the policySettings property: Describes settings for the policy. - * - * @param policySettings the policySettings value to set. - * @return the WebApplicationFirewallPolicy object itself. - */ - public WebApplicationFirewallPolicy withPolicySettings(PolicySettingsAfd policySettings) { - if (this.innerProperties() == null) { - this.innerProperties = new WebApplicationFirewallPolicyProperties(); - } - this.innerProperties().withPolicySettings(policySettings); - return this; - } - - /** - * Get the customRules property: Describes custom rules inside the policy. - * - * @return the customRules value. - */ - public CustomRuleListAfd customRules() { - return this.innerProperties() == null ? null : this.innerProperties().customRules(); - } - - /** - * Set the customRules property: Describes custom rules inside the policy. - * - * @param customRules the customRules value to set. - * @return the WebApplicationFirewallPolicy object itself. - */ - public WebApplicationFirewallPolicy withCustomRules(CustomRuleListAfd customRules) { - if (this.innerProperties() == null) { - this.innerProperties = new WebApplicationFirewallPolicyProperties(); - } - this.innerProperties().withCustomRules(customRules); - return this; - } - - /** - * Get the managedRules property: Describes managed rules inside the policy. - * - * @return the managedRules value. - */ - public ManagedRuleSetListAfd managedRules() { - return this.innerProperties() == null ? null : this.innerProperties().managedRules(); - } - - /** - * Set the managedRules property: Describes managed rules inside the policy. - * - * @param managedRules the managedRules value to set. - * @return the WebApplicationFirewallPolicy object itself. - */ - public WebApplicationFirewallPolicy withManagedRules(ManagedRuleSetListAfd managedRules) { - if (this.innerProperties() == null) { - this.innerProperties = new WebApplicationFirewallPolicyProperties(); - } - this.innerProperties().withManagedRules(managedRules); - return this; - } - - /** - * Get the frontendEndpointLinks property: Describes Frontend Endpoints associated with this Web Application - * Firewall policy. - * - * @return the frontendEndpointLinks value. - */ - public List frontendEndpointLinks() { - return this.innerProperties() == null ? null : this.innerProperties().frontendEndpointLinks(); - } - - /** - * Get the routingRuleLinks property: Describes Routing Rules associated with this Web Application Firewall policy. - * - * @return the routingRuleLinks value. - */ - public List routingRuleLinks() { - return this.innerProperties() == null ? null : this.innerProperties().routingRuleLinks(); - } - - /** - * Get the securityPolicyLinks property: Describes Security Policy associated with this Web Application Firewall - * policy. - * - * @return the securityPolicyLinks value. - */ - public List securityPolicyLinks() { - return this.innerProperties() == null ? null : this.innerProperties().securityPolicyLinks(); - } - - /** - * Get the provisioningState property: Provisioning state of the policy. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the resourceState property: The resourceState property. - * - * @return the resourceState value. - */ - public PolicyResourceState resourceState() { - return this.innerProperties() == null ? null : this.innerProperties().resourceState(); - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - if (sku() != null) { - sku().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("etag", this.etag); - jsonWriter.writeJsonField("sku", this.sku); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of WebApplicationFirewallPolicy from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of WebApplicationFirewallPolicy 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 WebApplicationFirewallPolicy. - */ - public static WebApplicationFirewallPolicy fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - WebApplicationFirewallPolicy deserializedWebApplicationFirewallPolicy = new WebApplicationFirewallPolicy(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedWebApplicationFirewallPolicy.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedWebApplicationFirewallPolicy.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedWebApplicationFirewallPolicy.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedWebApplicationFirewallPolicy.innerProperties - = WebApplicationFirewallPolicyProperties.fromJson(reader); - } else if ("etag".equals(fieldName)) { - deserializedWebApplicationFirewallPolicy.etag = reader.getString(); - } else if ("sku".equals(fieldName)) { - deserializedWebApplicationFirewallPolicy.sku = Sku.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedWebApplicationFirewallPolicy.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedWebApplicationFirewallPolicy; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingRules.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingRules.java deleted file mode 100644 index 2390e548d752..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingRules.java +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.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; - -/** - * Defines the contents of the log scrubbing rules. - */ -@Fluent -public final class WebApplicationFirewallScrubbingRules - implements JsonSerializable { - /* - * The variable to be scrubbed from the logs. - */ - private ScrubbingRuleEntryMatchVariable matchVariable; - - /* - * When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule - * applies to. - */ - private ScrubbingRuleEntryMatchOperator selectorMatchOperator; - - /* - * When matchVariable is a collection, operator used to specify which elements in the collection this rule applies - * to. - */ - private String selector; - - /* - * Defines the state of a log scrubbing rule. Default value is enabled. - */ - private ScrubbingRuleEntryState state; - - /** - * Creates an instance of WebApplicationFirewallScrubbingRules class. - */ - public WebApplicationFirewallScrubbingRules() { - } - - /** - * Get the matchVariable property: The variable to be scrubbed from the logs. - * - * @return the matchVariable value. - */ - public ScrubbingRuleEntryMatchVariable matchVariable() { - return this.matchVariable; - } - - /** - * Set the matchVariable property: The variable to be scrubbed from the logs. - * - * @param matchVariable the matchVariable value to set. - * @return the WebApplicationFirewallScrubbingRules object itself. - */ - public WebApplicationFirewallScrubbingRules withMatchVariable(ScrubbingRuleEntryMatchVariable matchVariable) { - this.matchVariable = matchVariable; - return this; - } - - /** - * Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify - * which elements in the collection this rule applies to. - * - * @return the selectorMatchOperator value. - */ - public ScrubbingRuleEntryMatchOperator selectorMatchOperator() { - return this.selectorMatchOperator; - } - - /** - * Set the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify - * which elements in the collection this rule applies to. - * - * @param selectorMatchOperator the selectorMatchOperator value to set. - * @return the WebApplicationFirewallScrubbingRules object itself. - */ - public WebApplicationFirewallScrubbingRules - withSelectorMatchOperator(ScrubbingRuleEntryMatchOperator selectorMatchOperator) { - this.selectorMatchOperator = selectorMatchOperator; - return this; - } - - /** - * Get the selector property: When matchVariable is a collection, operator used to specify which elements in the - * collection this rule applies to. - * - * @return the selector value. - */ - public String selector() { - return this.selector; - } - - /** - * Set the selector property: When matchVariable is a collection, operator used to specify which elements in the - * collection this rule applies to. - * - * @param selector the selector value to set. - * @return the WebApplicationFirewallScrubbingRules object itself. - */ - public WebApplicationFirewallScrubbingRules withSelector(String selector) { - this.selector = selector; - return this; - } - - /** - * Get the state property: Defines the state of a log scrubbing rule. Default value is enabled. - * - * @return the state value. - */ - public ScrubbingRuleEntryState state() { - return this.state; - } - - /** - * Set the state property: Defines the state of a log scrubbing rule. Default value is enabled. - * - * @param state the state value to set. - * @return the WebApplicationFirewallScrubbingRules object itself. - */ - public WebApplicationFirewallScrubbingRules withState(ScrubbingRuleEntryState state) { - this.state = state; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (matchVariable() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property matchVariable in model WebApplicationFirewallScrubbingRules")); - } - if (selectorMatchOperator() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property selectorMatchOperator in model WebApplicationFirewallScrubbingRules")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WebApplicationFirewallScrubbingRules.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("matchVariable", this.matchVariable == null ? null : this.matchVariable.toString()); - jsonWriter.writeStringField("selectorMatchOperator", - this.selectorMatchOperator == null ? null : this.selectorMatchOperator.toString()); - jsonWriter.writeStringField("selector", this.selector); - jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of WebApplicationFirewallScrubbingRules from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of WebApplicationFirewallScrubbingRules 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 WebApplicationFirewallScrubbingRules. - */ - public static WebApplicationFirewallScrubbingRules fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - WebApplicationFirewallScrubbingRules deserializedWebApplicationFirewallScrubbingRules - = new WebApplicationFirewallScrubbingRules(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("matchVariable".equals(fieldName)) { - deserializedWebApplicationFirewallScrubbingRules.matchVariable - = ScrubbingRuleEntryMatchVariable.fromString(reader.getString()); - } else if ("selectorMatchOperator".equals(fieldName)) { - deserializedWebApplicationFirewallScrubbingRules.selectorMatchOperator - = ScrubbingRuleEntryMatchOperator.fromString(reader.getString()); - } else if ("selector".equals(fieldName)) { - deserializedWebApplicationFirewallScrubbingRules.selector = reader.getString(); - } else if ("state".equals(fieldName)) { - deserializedWebApplicationFirewallScrubbingRules.state - = ScrubbingRuleEntryState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedWebApplicationFirewallScrubbingRules; - }); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingState.java b/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingState.java deleted file mode 100644 index 3a3fb27d2404..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingState.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.cdn.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * State of the log scrubbing config. Default value is Enabled. - */ -public final class WebApplicationFirewallScrubbingState - extends ExpandableStringEnum { - /** - * Static value Enabled for WebApplicationFirewallScrubbingState. - */ - public static final WebApplicationFirewallScrubbingState ENABLED = fromString("Enabled"); - - /** - * Static value Disabled for WebApplicationFirewallScrubbingState. - */ - public static final WebApplicationFirewallScrubbingState DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of WebApplicationFirewallScrubbingState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public WebApplicationFirewallScrubbingState() { - } - - /** - * Creates or finds a WebApplicationFirewallScrubbingState from its string representation. - * - * @param name a name to look for. - * @return the corresponding WebApplicationFirewallScrubbingState. - */ - public static WebApplicationFirewallScrubbingState fromString(String name) { - return fromString(name, WebApplicationFirewallScrubbingState.class); - } - - /** - * Gets known WebApplicationFirewallScrubbingState values. - * - * @return known WebApplicationFirewallScrubbingState values. - */ - public static Collection values() { - return values(WebApplicationFirewallScrubbingState.class); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/resources/META-INF/azure-resourcemanager-cdn_metadata.json b/sdk/cdn/azure-resourcemanager-cdn/src/main/resources/META-INF/azure-resourcemanager-cdn_metadata.json index 6755adaf03b2..45a241efa071 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/resources/META-INF/azure-resourcemanager-cdn_metadata.json +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/resources/META-INF/azure-resourcemanager-cdn_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.Cdn":"2025-09-01-preview"},"generatedFiles":["src/main/java/com/azure/resourcemanager/cdn/fluent/AfdCustomDomainsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/AfdEndpointsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/AfdOriginGroupsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/AfdOriginsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/AfdProfilesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/CdnManagementClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/CustomDomainsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/DeploymentVersionsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/EdgeNodesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/EndpointsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/KeyGroupsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/KnowledgeSourcesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/LogAnalyticsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/ManagedRuleSetsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/OriginGroupsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/OriginsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/PoliciesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/ProfileAgentsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/ProfilesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/ResourceUsagesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/RoutesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/RuleSetsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/RulesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/SecretsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/SecurityPoliciesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/WebAgentsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdDomainInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdDomainProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdDomainUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdEndpointInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdEndpointProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdEndpointPropertiesUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginGroupInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginGroupProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginGroupUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CanMigrateProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CanMigrateResultInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CdnWebApplicationFirewallPolicyInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CdnWebApplicationFirewallPolicyProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CheckEndpointNameAvailabilityOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CheckNameAvailabilityOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CompareDeploymentVersionsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ContinentsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CustomDomainInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CustomDomainProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CustomDomainPropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeepCreatedCustomDomainProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeepCreatedOriginGroupProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeepCreatedOriginProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeploymentVersionUpdateProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EdgeNodeInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EdgeNodeProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EndpointInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EndpointProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EndpointPropertiesUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/KeyGroupProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourceProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/KnowledgeSourcePropertiesUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ManagedRuleSetDefinitionInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ManagedRuleSetDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/MetricsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/MigrateResultInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/MigrateResultProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OperationProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginGroupInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginGroupProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginGroupUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/PolicySettingsLogScrubbing.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileAgentUpdateProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfilePropertiesUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RankingsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ResourceUsageInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ResourcesResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleSetInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleSetProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecretInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecretProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecurityPolicyInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecurityPolicyProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecurityPolicyUpdateProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SsoUriInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SupportedOptimizationTypesListResultInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ValidateCustomDomainOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ValidateProbeOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ValidateSecretOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/WafMetricsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/WafRankingsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebAgentPropertiesUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/WebApplicationFirewallPolicyProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/cdn/fluent/package-info.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdCustomDomainsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdEndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdOriginGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdOriginsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/CdnManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/cdn/implementation/CdnManagementClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/CustomDomainsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/DeploymentVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/EdgeNodesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/EndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/KeyGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/KnowledgeSourcesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/LogAnalyticsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/ManagedRuleSetsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/OriginGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/OriginsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/PoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/ProfileAgentsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/ProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/ResourceUsagesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/RoutesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/RuleSetsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/RulesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/SecretsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/SecurityPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/WebAgentsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/AFDDomainListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/AFDEndpointListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/AFDOriginGroupListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/AFDOriginListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/CdnWebApplicationFirewallPolicyList.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/CustomDomainListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/DeploymentVersionListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/EdgenodeResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/EndpointListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/KeyGroupListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/KnowledgeSourceList.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/ManagedRuleSetDefinitionList.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/OperationsListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/OriginGroupListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/OriginListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/ProfileAgentListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/ProfileListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/ResourceUsageListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/RouteListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/RuleListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/RuleSetListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/SecretListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/SecurityPolicyListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/UsagesListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/WebAgentList.java","src/main/java/com/azure/resourcemanager/cdn/models/ActionType.java","src/main/java/com/azure/resourcemanager/cdn/models/ActivatedResourceReference.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdCertificateType.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdCipherSuiteSetType.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdCustomizedCipherSuiteForTls12.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdCustomizedCipherSuiteForTls13.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainHttpsCustomizedCipherSuiteSet.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainHttpsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainMtlsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdEndpointProtocols.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdEndpointUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdMinimumTlsVersion.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdOriginGroupUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdOriginUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdPurgeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdQueryStringCachingBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdRouteCacheConfiguration.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdRouteGrpcState.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdSecretMtlsCertificateChain.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdStateProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdUrlSigningAction.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdUrlSigningActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AgentPath.java","src/main/java/com/azure/resourcemanager/cdn/models/AgentPathType.java","src/main/java/com/azure/resourcemanager/cdn/models/Algorithm.java","src/main/java/com/azure/resourcemanager/cdn/models/ApprovalStatus.java","src/main/java/com/azure/resourcemanager/cdn/models/AutoGeneratedDomainNameLabelScope.java","src/main/java/com/azure/resourcemanager/cdn/models/AzureFirstPartyManagedCertificate.java","src/main/java/com/azure/resourcemanager/cdn/models/AzureFirstPartyManagedCertificateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheConfiguration.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheExpirationActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheKeyQueryStringActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheType.java","src/main/java/com/azure/resourcemanager/cdn/models/CanMigrateDefaultSku.java","src/main/java/com/azure/resourcemanager/cdn/models/CanMigrateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CdnCertificateSourceParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CdnManagedHttpsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CdnMigrationToAfdParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CdnWebApplicationFirewallPolicyPatchParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/Certificate.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateRevocationCheckEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateSource.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateSourceParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateSourceParametersType.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateType.java","src/main/java/com/azure/resourcemanager/cdn/models/CheckEndpointNameAvailabilityInput.java","src/main/java/com/azure/resourcemanager/cdn/models/CheckHostnameAvailabilityInput.java","src/main/java/com/azure/resourcemanager/cdn/models/CheckNameAvailabilityInput.java","src/main/java/com/azure/resourcemanager/cdn/models/CidrIpAddress.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientCertificateRequiredAndOriginValidatesAdvancedSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientCertificateRequiredAndValidatedAdvancedSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientCertificateValidatedIfPresentedAdvancedSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientPortMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientPortOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/CompareDeploymentVersionsParameter.java","src/main/java/com/azure/resourcemanager/cdn/models/CompleteMtlsPassthroughToOriginAdvancedSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/CompressionSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/ContinentsResponseContinentsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/ContinentsResponseCountryOrRegionsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/CookiesMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CookiesOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomDomainHttpsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomDomainParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomDomainResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomHttpsProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomHttpsProvisioningSubstate.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomRule.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleAfd.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleList.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleListAfd.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomerCertificate.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomerCertificateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/DeepCreatedCustomDomain.java","src/main/java/com/azure/resourcemanager/cdn/models/DeepCreatedOrigin.java","src/main/java/com/azure/resourcemanager/cdn/models/DeepCreatedOriginGroup.java","src/main/java/com/azure/resourcemanager/cdn/models/DeleteRule.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRule.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleActionParametersType.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleActionValue.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleCacheExpirationAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleCacheKeyQueryStringAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleClientPortCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleConditionParametersType.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleCookiesCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleEdgeActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleHostnameCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleHttpVersionCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleIsDeviceCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRulePostArgsCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleQueryStringCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRemoteAddressCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestBodyCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestHeaderAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestHeaderCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestMethodCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestSchemeCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestUriCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleResponseHeaderAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRouteConfigurationOverrideAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleServerPortCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleSocketAddrCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleSslProtocolCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleUrlFileExtensionCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleUrlFileNameCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleUrlPathCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentRolloutStatus.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentStages.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentStatus.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginChange.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionAfdOriginGroupChange.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionChange.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRouteChange.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleChange.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionRuleSetChange.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionSecurityPolicyChange.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentVersionUpdate.java","src/main/java/com/azure/resourcemanager/cdn/models/DestinationProtocol.java","src/main/java/com/azure/resourcemanager/cdn/models/DimensionProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/DomainValidationProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/DomainValidationState.java","src/main/java/com/azure/resourcemanager/cdn/models/EdgeAction.java","src/main/java/com/azure/resourcemanager/cdn/models/EnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointPropertiesUpdateParametersDeliveryPolicy.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointResource.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/EnforceMtlsEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/ForwardingProtocol.java","src/main/java/com/azure/resourcemanager/cdn/models/FrontendEndpointLink.java","src/main/java/com/azure/resourcemanager/cdn/models/GeoFilter.java","src/main/java/com/azure/resourcemanager/cdn/models/GeoFilterActions.java","src/main/java/com/azure/resourcemanager/cdn/models/GroupByVariable.java","src/main/java/com/azure/resourcemanager/cdn/models/HeaderAction.java","src/main/java/com/azure/resourcemanager/cdn/models/HeaderActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HealthProbeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HealthProbeRequestType.java","src/main/java/com/azure/resourcemanager/cdn/models/HostnameMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HostnameOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/HttpErrorRangeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HttpVersionMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HttpVersionOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/HttpsRedirect.java","src/main/java/com/azure/resourcemanager/cdn/models/InvocationPoint.java","src/main/java/com/azure/resourcemanager/cdn/models/IpAddressGroup.java","src/main/java/com/azure/resourcemanager/cdn/models/IsDeviceMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/IsDeviceMatchConditionParametersMatchValuesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/IsDeviceOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/KeyGroupUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/KeyVaultCertificateSourceParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/KeyVaultSigningKeyParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/KeyVaultSigningKeyParametersType.java","src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceType.java","src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateFrequency.java","src/main/java/com/azure/resourcemanager/cdn/models/KnowledgeSourceUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/LinkToDefaultDomain.java","src/main/java/com/azure/resourcemanager/cdn/models/LoadBalancingSettingsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/LoadParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/LogMetric.java","src/main/java/com/azure/resourcemanager/cdn/models/LogMetricsGranularity.java","src/main/java/com/azure/resourcemanager/cdn/models/LogMetricsGroupBy.java","src/main/java/com/azure/resourcemanager/cdn/models/LogRanking.java","src/main/java/com/azure/resourcemanager/cdn/models/LogRankingMetric.java","src/main/java/com/azure/resourcemanager/cdn/models/LogSpecification.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedCertificate.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedCertificateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleDefinition.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusion.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionMatchVariable.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleExclusionSelectorMatchOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleGroupDefinition.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleGroupOverride.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleGroupOverrideAfd.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleOverride.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleOverrideAfd.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSet.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetActionType.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetAfd.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetList.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetListAfd.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/cdn/models/MatchCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/MatchConditionAfd.java","src/main/java/com/azure/resourcemanager/cdn/models/MatchProcessingBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/MatchVariable.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricAvailability.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricSpecification.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsGranularity.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsResponseSeriesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsResponseSeriesItemData.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsResponseSeriesPropertiesItemsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsSeriesUnit.java","src/main/java/com/azure/resourcemanager/cdn/models/MigrationEndpointMapping.java","src/main/java/com/azure/resourcemanager/cdn/models/MigrationErrorType.java","src/main/java/com/azure/resourcemanager/cdn/models/MigrationParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/MigrationWebApplicationFirewallMapping.java","src/main/java/com/azure/resourcemanager/cdn/models/MinimumTlsVersion.java","src/main/java/com/azure/resourcemanager/cdn/models/MtlsScenarioType.java","src/main/java/com/azure/resourcemanager/cdn/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/cdn/models/Operator.java","src/main/java/com/azure/resourcemanager/cdn/models/OptimizationType.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationType.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginCapacityResourceProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupOverride.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupOverrideAction.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupOverrideActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ParamIndicator.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicyEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicyMode.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicyRequestBodyCheck.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicyResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicySettings.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicySettingsAfd.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicySettingsDefaultCustomBlockResponseStatusCode.java","src/main/java/com/azure/resourcemanager/cdn/models/PostArgsMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/PostArgsOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/PreviewSupportedResourceType.java","src/main/java/com/azure/resourcemanager/cdn/models/PrivateEndpointStatus.java","src/main/java/com/azure/resourcemanager/cdn/models/ProbeProtocol.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileAgentUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileChangeSkuWafMapping.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileLogScrubbing.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileScrubbingRules.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileScrubbingState.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileUpgradeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ProtocolType.java","src/main/java/com/azure/resourcemanager/cdn/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/PurgeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/QueryStringBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/QueryStringCachingBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/QueryStringMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/QueryStringOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RankingsResponseTablesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RankingsResponseTablesPropertiesItemsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RankingsResponseTablesPropertiesItemsMetricsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RateLimitRule.java","src/main/java/com/azure/resourcemanager/cdn/models/RateLimitRuleList.java","src/main/java/com/azure/resourcemanager/cdn/models/RedirectType.java","src/main/java/com/azure/resourcemanager/cdn/models/RemoteAddressMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RemoteAddressOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestBodyMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestBodyOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestHeaderMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestHeaderOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestMethodMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestMethodMatchConditionParametersMatchValuesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestMethodOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestSchemeMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestSchemeMatchConditionParametersMatchValuesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestUriMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestUriOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourceReference.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourceType.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourceUsageUnit.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourcesResponseCustomDomainsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourcesResponseEndpointsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourcesResponseEndpointsPropertiesItemsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/ResponseBasedDetectedErrorTypes.java","src/main/java/com/azure/resourcemanager/cdn/models/ResponseBasedOriginErrorDetectionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RouteConfigurationOverrideActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RouteUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RoutingRuleLink.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleCacheBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleIsCompressionEnabled.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleQueryStringCachingBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateHeaders.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleSetsCreateResponse.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleType.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchVariable.java","src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryState.java","src/main/java/com/azure/resourcemanager/cdn/models/SecretParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SecretType.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyLink.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesWithEmbeddedWafPolicy.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyType.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallAssociation.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParametersWithEmbeddedWafPolicy.java","src/main/java/com/azure/resourcemanager/cdn/models/ServerPortMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ServerPortOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/ServiceSpecification.java","src/main/java/com/azure/resourcemanager/cdn/models/SharedPrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/SharedPrivateLinkResourceStatus.java","src/main/java/com/azure/resourcemanager/cdn/models/Sku.java","src/main/java/com/azure/resourcemanager/cdn/models/SkuName.java","src/main/java/com/azure/resourcemanager/cdn/models/SocketAddrMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SocketAddrOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/SslProtocol.java","src/main/java/com/azure/resourcemanager/cdn/models/SslProtocolMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SslProtocolOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/Status.java","src/main/java/com/azure/resourcemanager/cdn/models/Transform.java","src/main/java/com/azure/resourcemanager/cdn/models/TransformType.java","src/main/java/com/azure/resourcemanager/cdn/models/TypeName.java","src/main/java/com/azure/resourcemanager/cdn/models/UpdateRule.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlFileExtensionMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlFileExtensionOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlFileNameMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlFileNameOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlPathMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlPathOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlRedirectAction.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlRedirectActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlRewriteAction.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlRewriteActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningAction.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningKey.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningKeyParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningParamIdentifier.java","src/main/java/com/azure/resourcemanager/cdn/models/UsageName.java","src/main/java/com/azure/resourcemanager/cdn/models/UsageUnit.java","src/main/java/com/azure/resourcemanager/cdn/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/cdn/models/UserManagedHttpsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ValidateCustomDomainInput.java","src/main/java/com/azure/resourcemanager/cdn/models/ValidateProbeInput.java","src/main/java/com/azure/resourcemanager/cdn/models/ValidateSecretInput.java","src/main/java/com/azure/resourcemanager/cdn/models/VariableName.java","src/main/java/com/azure/resourcemanager/cdn/models/WafAction.java","src/main/java/com/azure/resourcemanager/cdn/models/WafGranularity.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMatchVariable.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetric.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsGranularity.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsResponseSeriesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsResponseSeriesItemData.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsResponseSeriesPropertiesItemsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsSeriesUnit.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRankingGroupBy.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRankingType.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRankingsResponseDataItem.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRankingsResponseDataItemMetric.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRuleType.java","src/main/java/com/azure/resourcemanager/cdn/models/WebAgentProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/WebAgentUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallPolicy.java","src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingRules.java","src/main/java/com/azure/resourcemanager/cdn/models/WebApplicationFirewallScrubbingState.java","src/main/java/com/azure/resourcemanager/cdn/models/package-info.java","src/main/java/com/azure/resourcemanager/cdn/package-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.Cdn":"2026-07-01"},"crossLanguagePackageId":"Microsoft.Cdn","crossLanguageVersion":"7defa0187edd","generatedFiles":["src/main/java/com/azure/resourcemanager/cdn/fluent/AfdCustomDomainsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/AfdEndpointsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/AfdOriginGroupsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/AfdOriginsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/AfdProfilesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/CdnManagementClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/CustomDomainsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/EdgeNodesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/EndpointsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/LogAnalyticsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/ManagedRuleSetsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/OriginGroupsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/OriginsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/PoliciesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/ProfilesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/ResourceUsagesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/RoutesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/RuleSetsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/RulesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/SecretsClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/SecurityPoliciesClient.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdDomainInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdDomainProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdDomainUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdEndpointInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdEndpointProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdEndpointPropertiesUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginGroupInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginGroupProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginGroupUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/AfdOriginUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CanMigrateProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CanMigrateResultInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CdnWebApplicationFirewallPolicyInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CdnWebApplicationFirewallPolicyProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CheckEndpointNameAvailabilityOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CheckNameAvailabilityOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ContinentsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CustomDomainInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CustomDomainProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/CustomDomainPropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeepCreatedCustomDomainProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeepCreatedOriginGroupProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/DeepCreatedOriginProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EdgeNodeInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EdgeNodeProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EndpointInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EndpointProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/EndpointPropertiesUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ManagedRuleSetDefinitionInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ManagedRuleSetDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/MetricsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/MigrateResultInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/MigrateResultProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OperationProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginGroupInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginGroupProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginGroupUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/OriginUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfileProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ProfilePropertiesUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RankingsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ResourceUsageInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ResourcesResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RouteUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleSetInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleSetProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/RuleUpdatePropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecretInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecretProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecurityPolicyInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecurityPolicyProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SecurityPolicyUpdateProperties.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SsoUriInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/SupportedOptimizationTypesListResultInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ValidateCustomDomainOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ValidateProbeOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/ValidateSecretOutputInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/WafMetricsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/WafRankingsResponseInner.java","src/main/java/com/azure/resourcemanager/cdn/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/cdn/fluent/package-info.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdCustomDomainsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdEndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdOriginGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdOriginsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/AfdProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/CdnManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/cdn/implementation/CdnManagementClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/CustomDomainsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/EdgeNodesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/EndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/LogAnalyticsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/ManagedRuleSetsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/OriginGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/OriginsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/PoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/ProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/ResourceUsagesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/RoutesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/RuleSetsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/RulesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/SecretsClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/SecurityPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/AFDDomainListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/AFDEndpointListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/AFDOriginGroupListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/AFDOriginListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/CdnWebApplicationFirewallPolicyList.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/CustomDomainListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/EdgenodeResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/EndpointListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/ManagedRuleSetDefinitionList.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/OperationsListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/OriginGroupListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/OriginListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/ProfileListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/ResourceUsageListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/RouteListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/RuleListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/RuleSetListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/SecretListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/SecurityPolicyListResult.java","src/main/java/com/azure/resourcemanager/cdn/implementation/models/UsagesListResult.java","src/main/java/com/azure/resourcemanager/cdn/models/ActionType.java","src/main/java/com/azure/resourcemanager/cdn/models/ActivatedResourceReference.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdCertificateType.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdCipherSuiteSetType.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdCustomizedCipherSuiteForTls12.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdCustomizedCipherSuiteForTls13.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainHttpsCustomizedCipherSuiteSet.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainHttpsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainMtlsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdDomainUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdEndpointProtocols.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdEndpointUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdMinimumTlsVersion.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdOriginGroupUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdOriginUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdPurgeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdQueryStringCachingBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdRouteCacheConfiguration.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdSecretMtlsCertificateChain.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroup.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdServerTlsGroupPolicy.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdStateProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdUrlSigningAction.java","src/main/java/com/azure/resourcemanager/cdn/models/AfdUrlSigningActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/Algorithm.java","src/main/java/com/azure/resourcemanager/cdn/models/AutoGeneratedDomainNameLabelScope.java","src/main/java/com/azure/resourcemanager/cdn/models/AzureFirstPartyManagedCertificate.java","src/main/java/com/azure/resourcemanager/cdn/models/AzureFirstPartyManagedCertificateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/BatchRuleProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheConfiguration.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheExpirationActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheKeyQueryStringActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CacheType.java","src/main/java/com/azure/resourcemanager/cdn/models/CanMigrateDefaultSku.java","src/main/java/com/azure/resourcemanager/cdn/models/CanMigrateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CdnCertificateSourceParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CdnManagedHttpsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CdnMigrationToAfdParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CdnWebApplicationFirewallPolicyPatchParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/Certificate.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateNameCheckValidationMode.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateRevocationCheckEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateSource.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateSourceParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateSourceParametersType.java","src/main/java/com/azure/resourcemanager/cdn/models/CertificateType.java","src/main/java/com/azure/resourcemanager/cdn/models/CheckEndpointNameAvailabilityInput.java","src/main/java/com/azure/resourcemanager/cdn/models/CheckHostnameAvailabilityInput.java","src/main/java/com/azure/resourcemanager/cdn/models/CheckNameAvailabilityInput.java","src/main/java/com/azure/resourcemanager/cdn/models/CidrIpAddress.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientCertificateRequiredAndOriginValidatesAdvancedSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientCertificateRequiredAndValidatedAdvancedSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientCertificateValidatedIfPresentedAdvancedSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientPortMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ClientPortOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/CompleteMtlsPassthroughToOriginAdvancedSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/CompressionSettings.java","src/main/java/com/azure/resourcemanager/cdn/models/ContinentsResponseContinentsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/ContinentsResponseCountryOrRegionsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/CookiesMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CookiesOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomDomainHttpsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomDomainParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomDomainResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomHttpsProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomHttpsProvisioningSubstate.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomRule.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomRuleList.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomerCertificate.java","src/main/java/com/azure/resourcemanager/cdn/models/CustomerCertificateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/DeepCreatedCustomDomain.java","src/main/java/com/azure/resourcemanager/cdn/models/DeepCreatedOrigin.java","src/main/java/com/azure/resourcemanager/cdn/models/DeepCreatedOriginGroup.java","src/main/java/com/azure/resourcemanager/cdn/models/DeleteRule.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRule.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleActionParametersType.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleActionValue.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleCacheExpirationAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleCacheKeyQueryStringAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleClientPortCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleConditionParametersType.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleCookiesCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleEdgeActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleHostnameCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleHttpVersionCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleIsDeviceCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRulePostArgsCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleQueryStringCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRemoteAddressCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestBodyCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestHeaderAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestHeaderCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestMethodCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestSchemeCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRequestUriCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleResponseHeaderAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleRouteConfigurationOverrideAction.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleServerPortCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleSocketAddrCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleSslProtocolCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleUrlFileExtensionCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleUrlFileNameCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeliveryRuleUrlPathCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/DeploymentStatus.java","src/main/java/com/azure/resourcemanager/cdn/models/DestinationProtocol.java","src/main/java/com/azure/resourcemanager/cdn/models/DimensionProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/DomainValidationProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/DomainValidationState.java","src/main/java/com/azure/resourcemanager/cdn/models/EdgeAction.java","src/main/java/com/azure/resourcemanager/cdn/models/EnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointPropertiesUpdateParametersDeliveryPolicy.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointResource.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/EndpointUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/EnforceMtlsEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/ForwardingProtocol.java","src/main/java/com/azure/resourcemanager/cdn/models/GeoFilter.java","src/main/java/com/azure/resourcemanager/cdn/models/GeoFilterActions.java","src/main/java/com/azure/resourcemanager/cdn/models/HeaderAction.java","src/main/java/com/azure/resourcemanager/cdn/models/HeaderActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HealthProbeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HealthProbeRequestType.java","src/main/java/com/azure/resourcemanager/cdn/models/HostnameMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HostnameOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/HttpErrorRangeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HttpVersionMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/HttpVersionOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/HttpsRedirect.java","src/main/java/com/azure/resourcemanager/cdn/models/InvocationPoint.java","src/main/java/com/azure/resourcemanager/cdn/models/IpAddressGroup.java","src/main/java/com/azure/resourcemanager/cdn/models/IsDeviceMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/IsDeviceMatchConditionParametersMatchValuesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/IsDeviceOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/KeyVaultCertificateSourceParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/KeyVaultSigningKeyParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/KeyVaultSigningKeyParametersType.java","src/main/java/com/azure/resourcemanager/cdn/models/LinkToDefaultDomain.java","src/main/java/com/azure/resourcemanager/cdn/models/LoadBalancingSettingsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/LoadParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/LogMetric.java","src/main/java/com/azure/resourcemanager/cdn/models/LogMetricsGranularity.java","src/main/java/com/azure/resourcemanager/cdn/models/LogMetricsGroupBy.java","src/main/java/com/azure/resourcemanager/cdn/models/LogRanking.java","src/main/java/com/azure/resourcemanager/cdn/models/LogRankingMetric.java","src/main/java/com/azure/resourcemanager/cdn/models/LogSpecification.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedCertificate.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedCertificateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleDefinition.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleGroupDefinition.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleGroupOverride.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleOverride.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSet.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedRuleSetList.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/cdn/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/cdn/models/MatchCondition.java","src/main/java/com/azure/resourcemanager/cdn/models/MatchProcessingBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/MatchVariable.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricAvailability.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricSpecification.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsGranularity.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsResponseSeriesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsResponseSeriesItemData.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsResponseSeriesPropertiesItemsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/MetricsSeriesUnit.java","src/main/java/com/azure/resourcemanager/cdn/models/MigrationEndpointMapping.java","src/main/java/com/azure/resourcemanager/cdn/models/MigrationErrorType.java","src/main/java/com/azure/resourcemanager/cdn/models/MigrationParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/MigrationWebApplicationFirewallMapping.java","src/main/java/com/azure/resourcemanager/cdn/models/MinimumTlsVersion.java","src/main/java/com/azure/resourcemanager/cdn/models/MtlsScenarioType.java","src/main/java/com/azure/resourcemanager/cdn/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/cdn/models/Operator.java","src/main/java/com/azure/resourcemanager/cdn/models/OptimizationType.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationTokenDestinationHeader.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginAuthenticationType.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupOverride.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupOverrideAction.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupOverrideActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginGroupUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/OriginUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ParamIndicator.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicyEnabledState.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicyMode.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicyResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicySettings.java","src/main/java/com/azure/resourcemanager/cdn/models/PolicySettingsDefaultCustomBlockResponseStatusCode.java","src/main/java/com/azure/resourcemanager/cdn/models/PostArgsMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/PostArgsOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/PrivateEndpointStatus.java","src/main/java/com/azure/resourcemanager/cdn/models/ProbeProtocol.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileChangeSkuWafMapping.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileLogScrubbing.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileResourceState.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileScrubbingRules.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileScrubbingState.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ProfileUpgradeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ProtocolType.java","src/main/java/com/azure/resourcemanager/cdn/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/cdn/models/PurgeParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/QueryStringBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/QueryStringCachingBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/QueryStringMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/QueryStringOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RankingsResponseTablesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RankingsResponseTablesPropertiesItemsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RankingsResponseTablesPropertiesItemsMetricsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RateLimitRule.java","src/main/java/com/azure/resourcemanager/cdn/models/RateLimitRuleList.java","src/main/java/com/azure/resourcemanager/cdn/models/RedirectType.java","src/main/java/com/azure/resourcemanager/cdn/models/RemoteAddressMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RemoteAddressOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestBodyMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestBodyOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestHeaderMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestHeaderOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestMethodMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestMethodMatchConditionParametersMatchValuesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestMethodOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestSchemeMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestSchemeMatchConditionParametersMatchValuesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestUriMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RequestUriOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourceReference.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourceType.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourceUsageUnit.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourcesResponseCustomDomainsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourcesResponseEndpointsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/ResourcesResponseEndpointsPropertiesItemsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/ResponseBasedDetectedErrorTypes.java","src/main/java/com/azure/resourcemanager/cdn/models/ResponseBasedOriginErrorDetectionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RouteConfigurationOverrideActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RouteUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleCacheBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleIsCompressionEnabled.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleQueryStringCachingBehavior.java","src/main/java/com/azure/resourcemanager/cdn/models/RuleUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryMatchVariable.java","src/main/java/com/azure/resourcemanager/cdn/models/ScrubbingRuleEntryState.java","src/main/java/com/azure/resourcemanager/cdn/models/SecretParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SecretType.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyPropertiesParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyType.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyUpdateParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallAssociation.java","src/main/java/com/azure/resourcemanager/cdn/models/SecurityPolicyWebApplicationFirewallParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ServerPortMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ServerPortOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/ServiceSpecification.java","src/main/java/com/azure/resourcemanager/cdn/models/SharedPrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/cdn/models/SharedPrivateLinkResourceStatus.java","src/main/java/com/azure/resourcemanager/cdn/models/Sku.java","src/main/java/com/azure/resourcemanager/cdn/models/SkuName.java","src/main/java/com/azure/resourcemanager/cdn/models/SocketAddrMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SocketAddrOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/SslProtocol.java","src/main/java/com/azure/resourcemanager/cdn/models/SslProtocolMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/SslProtocolOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/Status.java","src/main/java/com/azure/resourcemanager/cdn/models/Transform.java","src/main/java/com/azure/resourcemanager/cdn/models/TransformType.java","src/main/java/com/azure/resourcemanager/cdn/models/TypeName.java","src/main/java/com/azure/resourcemanager/cdn/models/UpdateRule.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlFileExtensionMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlFileExtensionOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlFileNameMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlFileNameOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlPathMatchConditionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlPathOperator.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlRedirectAction.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlRedirectActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlRewriteAction.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlRewriteActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningAction.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningActionParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningKey.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningKeyParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/UrlSigningParamIdentifier.java","src/main/java/com/azure/resourcemanager/cdn/models/UsageName.java","src/main/java/com/azure/resourcemanager/cdn/models/UsageUnit.java","src/main/java/com/azure/resourcemanager/cdn/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/cdn/models/UserManagedHttpsParameters.java","src/main/java/com/azure/resourcemanager/cdn/models/ValidateCustomDomainInput.java","src/main/java/com/azure/resourcemanager/cdn/models/ValidateProbeInput.java","src/main/java/com/azure/resourcemanager/cdn/models/ValidateSecretInput.java","src/main/java/com/azure/resourcemanager/cdn/models/WafAction.java","src/main/java/com/azure/resourcemanager/cdn/models/WafGranularity.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMatchVariable.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetric.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsGranularity.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsResponseSeriesItem.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsResponseSeriesItemData.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsResponseSeriesPropertiesItemsItem.java","src/main/java/com/azure/resourcemanager/cdn/models/WafMetricsSeriesUnit.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRankingGroupBy.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRankingType.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRankingsResponseDataItem.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRankingsResponseDataItemMetric.java","src/main/java/com/azure/resourcemanager/cdn/models/WafRuleType.java","src/main/java/com/azure/resourcemanager/cdn/models/package-info.java","src/main/java/com/azure/resourcemanager/cdn/package-info.java"]} \ No newline at end of file diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cdn/proxy-config.json b/sdk/cdn/azure-resourcemanager-cdn/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cdn/proxy-config.json index a94cd3141e53..ee3d459d326e 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cdn/proxy-config.json +++ b/sdk/cdn/azure-resourcemanager-cdn/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cdn/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.cdn.implementation.AfdCustomDomainsClientImpl$AfdCustomDomainsService"],["com.azure.resourcemanager.cdn.implementation.AfdEndpointsClientImpl$AfdEndpointsService"],["com.azure.resourcemanager.cdn.implementation.AfdOriginGroupsClientImpl$AfdOriginGroupsService"],["com.azure.resourcemanager.cdn.implementation.AfdOriginsClientImpl$AfdOriginsService"],["com.azure.resourcemanager.cdn.implementation.AfdProfilesClientImpl$AfdProfilesService"],["com.azure.resourcemanager.cdn.implementation.CdnManagementClientImpl$CdnManagementClientService"],["com.azure.resourcemanager.cdn.implementation.CustomDomainsClientImpl$CustomDomainsService"],["com.azure.resourcemanager.cdn.implementation.DeploymentVersionsClientImpl$DeploymentVersionsService"],["com.azure.resourcemanager.cdn.implementation.EdgeNodesClientImpl$EdgeNodesService"],["com.azure.resourcemanager.cdn.implementation.EndpointsClientImpl$EndpointsService"],["com.azure.resourcemanager.cdn.implementation.KeyGroupsClientImpl$KeyGroupsService"],["com.azure.resourcemanager.cdn.implementation.KnowledgeSourcesClientImpl$KnowledgeSourcesService"],["com.azure.resourcemanager.cdn.implementation.LogAnalyticsClientImpl$LogAnalyticsService"],["com.azure.resourcemanager.cdn.implementation.ManagedRuleSetsClientImpl$ManagedRuleSetsService"],["com.azure.resourcemanager.cdn.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.cdn.implementation.OriginGroupsClientImpl$OriginGroupsService"],["com.azure.resourcemanager.cdn.implementation.OriginsClientImpl$OriginsService"],["com.azure.resourcemanager.cdn.implementation.PoliciesClientImpl$PoliciesService"],["com.azure.resourcemanager.cdn.implementation.ProfileAgentsClientImpl$ProfileAgentsService"],["com.azure.resourcemanager.cdn.implementation.ProfilesClientImpl$ProfilesService"],["com.azure.resourcemanager.cdn.implementation.ResourceUsagesClientImpl$ResourceUsagesService"],["com.azure.resourcemanager.cdn.implementation.RoutesClientImpl$RoutesService"],["com.azure.resourcemanager.cdn.implementation.RuleSetsClientImpl$RuleSetsService"],["com.azure.resourcemanager.cdn.implementation.RulesClientImpl$RulesService"],["com.azure.resourcemanager.cdn.implementation.SecretsClientImpl$SecretsService"],["com.azure.resourcemanager.cdn.implementation.SecurityPoliciesClientImpl$SecurityPoliciesService"],["com.azure.resourcemanager.cdn.implementation.WebAgentsClientImpl$WebAgentsService"]] \ No newline at end of file +[["com.azure.resourcemanager.cdn.implementation.AfdCustomDomainsClientImpl$AfdCustomDomainsService"],["com.azure.resourcemanager.cdn.implementation.AfdEndpointsClientImpl$AfdEndpointsService"],["com.azure.resourcemanager.cdn.implementation.AfdOriginGroupsClientImpl$AfdOriginGroupsService"],["com.azure.resourcemanager.cdn.implementation.AfdOriginsClientImpl$AfdOriginsService"],["com.azure.resourcemanager.cdn.implementation.AfdProfilesClientImpl$AfdProfilesService"],["com.azure.resourcemanager.cdn.implementation.CdnManagementClientImpl$CdnManagementClientService"],["com.azure.resourcemanager.cdn.implementation.CustomDomainsClientImpl$CustomDomainsService"],["com.azure.resourcemanager.cdn.implementation.EdgeNodesClientImpl$EdgeNodesService"],["com.azure.resourcemanager.cdn.implementation.EndpointsClientImpl$EndpointsService"],["com.azure.resourcemanager.cdn.implementation.LogAnalyticsClientImpl$LogAnalyticsService"],["com.azure.resourcemanager.cdn.implementation.ManagedRuleSetsClientImpl$ManagedRuleSetsService"],["com.azure.resourcemanager.cdn.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.cdn.implementation.OriginGroupsClientImpl$OriginGroupsService"],["com.azure.resourcemanager.cdn.implementation.OriginsClientImpl$OriginsService"],["com.azure.resourcemanager.cdn.implementation.PoliciesClientImpl$PoliciesService"],["com.azure.resourcemanager.cdn.implementation.ProfilesClientImpl$ProfilesService"],["com.azure.resourcemanager.cdn.implementation.ResourceUsagesClientImpl$ResourceUsagesService"],["com.azure.resourcemanager.cdn.implementation.RoutesClientImpl$RoutesService"],["com.azure.resourcemanager.cdn.implementation.RuleSetsClientImpl$RuleSetsService"],["com.azure.resourcemanager.cdn.implementation.RulesClientImpl$RulesService"],["com.azure.resourcemanager.cdn.implementation.SecretsClientImpl$SecretsService"],["com.azure.resourcemanager.cdn.implementation.SecurityPoliciesClientImpl$SecurityPoliciesService"]] \ No newline at end of file diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsCreateSamples.java index dc715e599be4..4e61fe0a429a 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsCreateSamples.java @@ -12,7 +12,8 @@ import com.azure.resourcemanager.cdn.models.AfdDomainHttpsCustomizedCipherSuiteSet; import com.azure.resourcemanager.cdn.models.AfdDomainHttpsParameters; import com.azure.resourcemanager.cdn.models.AfdMinimumTlsVersion; -import com.azure.resourcemanager.cdn.models.ClientCertificateRequiredAndValidatedAdvancedSettings; +import com.azure.resourcemanager.cdn.models.AfdServerTlsGroup; +import com.azure.resourcemanager.cdn.models.AfdServerTlsGroupPolicy; import com.azure.resourcemanager.cdn.models.ResourceReference; import java.util.Arrays; @@ -21,7 +22,7 @@ */ public final class AfdCustomDomainsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDCustomDomains_Create.json + * x-ms-original-file: 2026-07-01/AFDCustomDomains_Create.json */ /** * Sample code: AFDCustomDomains_Create. @@ -31,26 +32,22 @@ public final class AfdCustomDomainsCreateSamples { public static void aFDCustomDomainsCreate(com.azure.resourcemanager.cdn.CdnManager manager) { manager.serviceClient() .getAfdCustomDomains() - .create("RG", "profile1", "domain1", - new AfdDomainInner() - .withTlsSettings( - new AfdDomainHttpsParameters().withCertificateType(AfdCertificateType.MANAGED_CERTIFICATE) - .withCipherSuiteSetType(AfdCipherSuiteSetType.CUSTOMIZED) - .withMinimumTlsVersion(AfdMinimumTlsVersion.TLS12) - .withCustomizedCipherSuiteSet(new AfdDomainHttpsCustomizedCipherSuiteSet() - .withCipherSuiteSetForTls12( - Arrays.asList(AfdCustomizedCipherSuiteForTls12.ECDHE_RSA_AES128_GCM_SHA256)) - .withCipherSuiteSetForTls13( - Arrays.asList(AfdCustomizedCipherSuiteForTls13.TLS_AES_128_GCM_SHA256, - AfdCustomizedCipherSuiteForTls13.TLS_AES_256_GCM_SHA384)))) - .withMtlsSettings(new ClientCertificateRequiredAndValidatedAdvancedSettings() - .withSecrets(Arrays.asList(new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/name1"), - new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/name2"))) - .withAllowedFqdns(Arrays.asList("foo.contoso.com"))) - .withAzureDnsZone(new ResourceReference().withId("")) - .withHostname("www.someDomain.net"), - com.azure.core.util.Context.NONE); + .create("RG", "profile1", "domain1", new AfdDomainInner() + .withTlsSettings( + new AfdDomainHttpsParameters().withCertificateType(AfdCertificateType.MANAGED_CERTIFICATE) + .withCipherSuiteSetType(AfdCipherSuiteSetType.CUSTOMIZED) + .withMinimumTlsVersion(AfdMinimumTlsVersion.TLS12) + .withCustomizedCipherSuiteSet(new AfdDomainHttpsCustomizedCipherSuiteSet() + .withCipherSuiteSetForTls12( + Arrays.asList(AfdCustomizedCipherSuiteForTls12.ECDHE_RSA_AES128_GCM_SHA256)) + .withCipherSuiteSetForTls13( + Arrays.asList(AfdCustomizedCipherSuiteForTls13.TLS_AES_128_GCM_SHA256, + AfdCustomizedCipherSuiteForTls13.TLS_AES_256_GCM_SHA384))) + .withServerTlsGroupPolicy(AfdServerTlsGroupPolicy.CUSTOM) + .withServerTlsGroups( + Arrays.asList(AfdServerTlsGroup.X25519MLKEM768, AfdServerTlsGroup.SEC_P256R1MLKEM768, + AfdServerTlsGroup.X25519, AfdServerTlsGroup.PRIME256V1))) + .withAzureDnsZone(new ResourceReference().withId("")) + .withHostname("www.someDomain.net"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsDeleteSamples.java index d4a11eaea78b..23792b92043e 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AfdCustomDomainsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDCustomDomains_Delete.json + * x-ms-original-file: 2026-07-01/AFDCustomDomains_Delete.json */ /** * Sample code: AFDCustomDomains_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsGetSamples.java index cebfd6cace7d..50e855c76856 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AfdCustomDomainsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDCustomDomains_Get.json + * x-ms-original-file: 2026-07-01/AFDCustomDomains_Get.json */ /** * Sample code: AFDCustomDomains_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsListByProfileSamples.java index 1e4b9910aa04..f0bd4d19c7a5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsListByProfileSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsListByProfileSamples.java @@ -9,7 +9,7 @@ */ public final class AfdCustomDomainsListByProfileSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDCustomDomains_ListByProfile.json + * x-ms-original-file: 2026-07-01/AFDCustomDomains_ListByProfile.json */ /** * Sample code: AFDCustomDomains_ListByProfile. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsRefreshValidationTokenSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsRefreshValidationTokenSamples.java index c8b53c6cf9ef..2b09f4dc7218 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsRefreshValidationTokenSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsRefreshValidationTokenSamples.java @@ -9,7 +9,7 @@ */ public final class AfdCustomDomainsRefreshValidationTokenSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDCustomDomains_RefreshValidationToken.json + * x-ms-original-file: 2026-07-01/AFDCustomDomains_RefreshValidationToken.json */ /** * Sample code: AFDCustomDomains_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsUpdateSamples.java index baa39b99d73c..60fa6940a925 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdCustomDomainsUpdateSamples.java @@ -12,7 +12,8 @@ import com.azure.resourcemanager.cdn.models.AfdDomainHttpsParameters; import com.azure.resourcemanager.cdn.models.AfdDomainUpdateParameters; import com.azure.resourcemanager.cdn.models.AfdMinimumTlsVersion; -import com.azure.resourcemanager.cdn.models.ClientCertificateRequiredAndValidatedAdvancedSettings; +import com.azure.resourcemanager.cdn.models.AfdServerTlsGroup; +import com.azure.resourcemanager.cdn.models.AfdServerTlsGroupPolicy; import com.azure.resourcemanager.cdn.models.ResourceReference; import java.util.Arrays; @@ -21,7 +22,7 @@ */ public final class AfdCustomDomainsUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDCustomDomains_Update.json + * x-ms-original-file: 2026-07-01/AFDCustomDomains_Update.json */ /** * Sample code: AFDCustomDomains_Update. @@ -31,23 +32,21 @@ public final class AfdCustomDomainsUpdateSamples { public static void aFDCustomDomainsUpdate(com.azure.resourcemanager.cdn.CdnManager manager) { manager.serviceClient() .getAfdCustomDomains() - .update("RG", "profile1", "domain1", - new AfdDomainUpdateParameters() - .withTlsSettings( - new AfdDomainHttpsParameters().withCertificateType(AfdCertificateType.MANAGED_CERTIFICATE) - .withCipherSuiteSetType(AfdCipherSuiteSetType.CUSTOMIZED) - .withMinimumTlsVersion(AfdMinimumTlsVersion.TLS12) - .withCustomizedCipherSuiteSet(new AfdDomainHttpsCustomizedCipherSuiteSet() - .withCipherSuiteSetForTls12( - Arrays.asList(AfdCustomizedCipherSuiteForTls12.ECDHE_RSA_AES128_GCM_SHA256)) - .withCipherSuiteSetForTls13( - Arrays.asList(AfdCustomizedCipherSuiteForTls13.TLS_AES_128_GCM_SHA256, - AfdCustomizedCipherSuiteForTls13.TLS_AES_256_GCM_SHA384)))) - .withMtlsSettings(new ClientCertificateRequiredAndValidatedAdvancedSettings() - .withSecrets(Arrays.asList(new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/mysecert"))) - .withAllowedFqdns(Arrays.asList("foo.contoso.com"))) - .withAzureDnsZone(new ResourceReference().withId("")), - com.azure.core.util.Context.NONE); + .update("RG", "profile1", "domain1", new AfdDomainUpdateParameters() + .withTlsSettings( + new AfdDomainHttpsParameters().withCertificateType(AfdCertificateType.MANAGED_CERTIFICATE) + .withCipherSuiteSetType(AfdCipherSuiteSetType.CUSTOMIZED) + .withMinimumTlsVersion(AfdMinimumTlsVersion.TLS12) + .withCustomizedCipherSuiteSet(new AfdDomainHttpsCustomizedCipherSuiteSet() + .withCipherSuiteSetForTls12( + Arrays.asList(AfdCustomizedCipherSuiteForTls12.ECDHE_RSA_AES128_GCM_SHA256)) + .withCipherSuiteSetForTls13( + Arrays.asList(AfdCustomizedCipherSuiteForTls13.TLS_AES_128_GCM_SHA256, + AfdCustomizedCipherSuiteForTls13.TLS_AES_256_GCM_SHA384))) + .withServerTlsGroupPolicy(AfdServerTlsGroupPolicy.CUSTOM) + .withServerTlsGroups( + Arrays.asList(AfdServerTlsGroup.X25519MLKEM768, AfdServerTlsGroup.SEC_P256R1MLKEM768, + AfdServerTlsGroup.X25519, AfdServerTlsGroup.PRIME256V1))) + .withAzureDnsZone(new ResourceReference().withId("")), com.azure.core.util.Context.NONE); } } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsCreateSamples.java index 561dc29e044d..90dc54d9ff52 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsCreateSamples.java @@ -7,7 +7,6 @@ import com.azure.resourcemanager.cdn.fluent.models.AfdEndpointInner; import com.azure.resourcemanager.cdn.models.AutoGeneratedDomainNameLabelScope; import com.azure.resourcemanager.cdn.models.EnabledState; -import com.azure.resourcemanager.cdn.models.EnforceMtlsEnabledState; import java.util.HashMap; import java.util.Map; @@ -16,7 +15,7 @@ */ public final class AfdEndpointsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDEndpoints_Create.json + * x-ms-original-file: 2026-07-01/AFDEndpoints_Create.json */ /** * Sample code: AFDEndpoints_Create. @@ -30,7 +29,6 @@ public static void aFDEndpointsCreate(com.azure.resourcemanager.cdn.CdnManager m new AfdEndpointInner().withLocation("global") .withTags(mapOf()) .withEnabledState(EnabledState.ENABLED) - .withEnforceMtls(EnforceMtlsEnabledState.DISABLED) .withAutoGeneratedDomainNameLabelScope(AutoGeneratedDomainNameLabelScope.TENANT_REUSE), com.azure.core.util.Context.NONE); } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsDeleteSamples.java index 7b1b5916bda6..2b0fca94465b 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AfdEndpointsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDEndpoints_Delete.json + * x-ms-original-file: 2026-07-01/AFDEndpoints_Delete.json */ /** * Sample code: AFDEndpoints_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsGetSamples.java index d100641b6d85..2ac160f9954a 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AfdEndpointsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDEndpoints_Get.json + * x-ms-original-file: 2026-07-01/AFDEndpoints_Get.json */ /** * Sample code: AFDEndpoints_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsListByProfileSamples.java index 139928f62124..07b468cb2458 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsListByProfileSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsListByProfileSamples.java @@ -9,7 +9,7 @@ */ public final class AfdEndpointsListByProfileSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDEndpoints_ListByProfile.json + * x-ms-original-file: 2026-07-01/AFDEndpoints_ListByProfile.json */ /** * Sample code: AFDEndpoints_ListByProfile. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsListResourceUsageSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsListResourceUsageSamples.java index 9826fba32e25..f9ebf4cb56db 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsListResourceUsageSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsListResourceUsageSamples.java @@ -9,7 +9,7 @@ */ public final class AfdEndpointsListResourceUsageSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDEndpoints_ListResourceUsage.json + * x-ms-original-file: 2026-07-01/AFDEndpoints_ListResourceUsage.json */ /** * Sample code: AFDEndpoints_ListResourceUsage. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsPurgeContentSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsPurgeContentSamples.java index 7faf04716fe3..10f6d908943a 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsPurgeContentSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsPurgeContentSamples.java @@ -12,7 +12,7 @@ */ public final class AfdEndpointsPurgeContentSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDEndpoints_PurgeContent.json + * x-ms-original-file: 2026-07-01/AFDEndpoints_PurgeContent.json */ /** * Sample code: AFDEndpoints_PurgeContent. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsUpdateSamples.java index b68284cfdf2e..0049d6fda27d 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsUpdateSamples.java @@ -6,7 +6,6 @@ import com.azure.resourcemanager.cdn.models.AfdEndpointUpdateParameters; import com.azure.resourcemanager.cdn.models.EnabledState; -import com.azure.resourcemanager.cdn.models.EnforceMtlsEnabledState; import java.util.HashMap; import java.util.Map; @@ -15,7 +14,7 @@ */ public final class AfdEndpointsUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDEndpoints_Update.json + * x-ms-original-file: 2026-07-01/AFDEndpoints_Update.json */ /** * Sample code: AFDEndpoints_Update. @@ -26,9 +25,7 @@ public static void aFDEndpointsUpdate(com.azure.resourcemanager.cdn.CdnManager m manager.serviceClient() .getAfdEndpoints() .update("RG", "profile1", "endpoint1", - new AfdEndpointUpdateParameters().withTags(mapOf()) - .withEnabledState(EnabledState.ENABLED) - .withEnforceMtls(EnforceMtlsEnabledState.DISABLED), + new AfdEndpointUpdateParameters().withTags(mapOf()).withEnabledState(EnabledState.ENABLED), com.azure.core.util.Context.NONE); } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsValidateCustomDomainSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsValidateCustomDomainSamples.java index 47c8eb2ed148..98d331df036c 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsValidateCustomDomainSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdEndpointsValidateCustomDomainSamples.java @@ -11,7 +11,7 @@ */ public final class AfdEndpointsValidateCustomDomainSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDEndpoints_ValidateCustomDomain.json + * x-ms-original-file: 2026-07-01/AFDEndpoints_ValidateCustomDomain.json */ /** * Sample code: Endpoints_ValidateCustomDomain. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsCreateSamples.java index ca28baf5e1a4..6e894d84f45a 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsCreateSamples.java @@ -18,7 +18,7 @@ */ public final class AfdOriginGroupsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOriginGroups_Create.json + * x-ms-original-file: 2026-07-01/AFDOriginGroups_Create.json */ /** * Sample code: AFDOriginGroups_Create. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsDeleteSamples.java index 93beaace95dc..012cc5f7be6b 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AfdOriginGroupsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOriginGroups_Delete.json + * x-ms-original-file: 2026-07-01/AFDOriginGroups_Delete.json */ /** * Sample code: AFDOriginGroups_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsGetSamples.java index d5bccca1d206..ac6e91b868a2 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AfdOriginGroupsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOriginGroups_Get.json + * x-ms-original-file: 2026-07-01/AFDOriginGroups_Get.json */ /** * Sample code: AFDOriginGroups_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsListByProfileSamples.java index 963bb80af3f7..2b0c2447595d 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsListByProfileSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsListByProfileSamples.java @@ -9,7 +9,7 @@ */ public final class AfdOriginGroupsListByProfileSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOriginGroups_ListByProfile.json + * x-ms-original-file: 2026-07-01/AFDOriginGroups_ListByProfile.json */ /** * Sample code: AFDOriginGroups_ListByProfile. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsListResourceUsageSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsListResourceUsageSamples.java index aca1a42d415f..b2365d00edd5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsListResourceUsageSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsListResourceUsageSamples.java @@ -9,7 +9,7 @@ */ public final class AfdOriginGroupsListResourceUsageSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOriginGroups_ListResourceUsage.json + * x-ms-original-file: 2026-07-01/AFDOriginGroups_ListResourceUsage.json */ /** * Sample code: AFDOriginGroups_ListResourceUsage. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsUpdateSamples.java index 64ada83a499d..196071326278 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginGroupsUpdateSamples.java @@ -18,7 +18,7 @@ */ public final class AfdOriginGroupsUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOriginGroups_Update.json + * x-ms-original-file: 2026-07-01/AFDOriginGroups_Update.json */ /** * Sample code: AFDOriginGroups_Update. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsCreateSamples.java index eed9285e1e03..ff96734a3805 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsCreateSamples.java @@ -5,15 +5,16 @@ package com.azure.resourcemanager.cdn.generated; import com.azure.resourcemanager.cdn.fluent.models.AfdOriginInner; +import com.azure.resourcemanager.cdn.models.CertificateNameCheckValidationMode; import com.azure.resourcemanager.cdn.models.EnabledState; -import com.azure.resourcemanager.cdn.models.OriginCapacityResourceProperties; +import java.util.Arrays; /** * Samples for AfdOrigins Create. */ public final class AfdOriginsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOrigins_Create.json + * x-ms-original-file: 2026-07-01/AFDOrigins_Create.json */ /** * Sample code: AFDOrigins_Create. @@ -28,11 +29,75 @@ public static void aFDOriginsCreate(com.azure.resourcemanager.cdn.CdnManager man .withHttpPort(80) .withHttpsPort(443) .withOriginHostHeader("host1.foo.com") - .withOriginCapacityResource(new OriginCapacityResourceProperties().withEnabled(EnabledState.ENABLED) - .withRegion("EastUs") - .withOriginRequestRateThreshold(1000L) - .withOriginIngressRateThreshold(10L)) .withEnabledState(EnabledState.ENABLED), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-07-01/AFDOrigins_Create_OriginHostname.json + */ + /** + * Sample code: AFDOrigins_Create_OriginHostname. + * + * @param manager Entry point to CdnManager. + */ + public static void aFDOriginsCreateOriginHostname(com.azure.resourcemanager.cdn.CdnManager manager) { + manager.serviceClient() + .getAfdOrigins() + .create("RG", "profile1", "origingroup1", "origin1", + new AfdOriginInner().withHostname("host1.blob.core.windows.net") + .withHttpPort(80) + .withHttpsPort(443) + .withOriginHostHeader("host1.foo.com") + .withEnabledState(EnabledState.ENABLED) + .withEnforceCertificateNameCheck(true) + .withCertificateNameCheckValidationMode(CertificateNameCheckValidationMode.ORIGIN_HOSTNAME), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-07-01/AFDOrigins_CreateWithIncomingHostHeaderValidation.json + */ + /** + * Sample code: AFDOrigins_Create_IncomingHostHeaderValidation. + * + * @param manager Entry point to CdnManager. + */ + public static void aFDOriginsCreateIncomingHostHeaderValidation(com.azure.resourcemanager.cdn.CdnManager manager) { + manager.serviceClient() + .getAfdOrigins() + .create("RG", "profile1", "origingroup1", "origin1", + new AfdOriginInner().withHostname("host1.blob.core.windows.net") + .withHttpPort(80) + .withHttpsPort(443) + .withOriginHostHeader("www.contoso.com") + .withEnabledState(EnabledState.ENABLED) + .withEnforceCertificateNameCheck(true) + .withCertificateNameCheckValidationMode(CertificateNameCheckValidationMode.INCOMING_HOST_HEADER), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-07-01/AFDOrigins_Create_CustomCertificateSubject.json + */ + /** + * Sample code: AFDOrigins_Create_CustomCertificateSubject. + * + * @param manager Entry point to CdnManager. + */ + public static void aFDOriginsCreateCustomCertificateSubject(com.azure.resourcemanager.cdn.CdnManager manager) { + manager.serviceClient() + .getAfdOrigins() + .create("RG", "profile1", "origingroup1", "origin1", + new AfdOriginInner().withHostname("host1.blob.core.windows.net") + .withHttpPort(80) + .withHttpsPort(443) + .withOriginHostHeader("host1.foo.com") + .withEnabledState(EnabledState.ENABLED) + .withEnforceCertificateNameCheck(true) + .withCertificateNameCheckValidationMode( + CertificateNameCheckValidationMode.CUSTOM_CERTIFICATE_SUBJECT) + .withCustomCertificateSubjects(Arrays.asList("host1.foo.com", "*.foo.com")), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsDeleteSamples.java index 8f61a6dab108..e2e09d606a75 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AfdOriginsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOrigins_Delete.json + * x-ms-original-file: 2026-07-01/AFDOrigins_Delete.json */ /** * Sample code: AFDOrigins_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsGetSamples.java index a4c31cac94cf..57ab53a6c6c9 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AfdOriginsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOrigins_Get.json + * x-ms-original-file: 2026-07-01/AFDOrigins_Get.json */ /** * Sample code: AFDOrigins_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsListByOriginGroupSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsListByOriginGroupSamples.java index bfe0c023a549..7e75b3fd4312 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsListByOriginGroupSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsListByOriginGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AfdOriginsListByOriginGroupSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOrigins_ListByOriginGroup.json + * x-ms-original-file: 2026-07-01/AFDOrigins_ListByOriginGroup.json */ /** * Sample code: AFDOrigins_ListByOriginGroup. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsUpdateSamples.java index fd124a69f1ba..39fa9c937342 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdOriginsUpdateSamples.java @@ -5,15 +5,16 @@ package com.azure.resourcemanager.cdn.generated; import com.azure.resourcemanager.cdn.models.AfdOriginUpdateParameters; +import com.azure.resourcemanager.cdn.models.CertificateNameCheckValidationMode; import com.azure.resourcemanager.cdn.models.EnabledState; -import com.azure.resourcemanager.cdn.models.OriginCapacityResourceProperties; +import java.util.Arrays; /** * Samples for AfdOrigins Update. */ public final class AfdOriginsUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDOrigins_Update.json + * x-ms-original-file: 2026-07-01/AFDOrigins_Update.json */ /** * Sample code: AFDOrigins_Update. @@ -27,11 +28,53 @@ public static void aFDOriginsUpdate(com.azure.resourcemanager.cdn.CdnManager man new AfdOriginUpdateParameters().withHostname("host1.blob.core.windows.net") .withHttpPort(80) .withHttpsPort(443) - .withOriginCapacityResource(new OriginCapacityResourceProperties().withEnabled(EnabledState.ENABLED) - .withRegion("EastUs") - .withOriginRequestRateThreshold(1000L) - .withOriginIngressRateThreshold(10L)) .withEnabledState(EnabledState.ENABLED), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-07-01/AFDOrigins_Update_CustomCertificateSubject.json + */ + /** + * Sample code: AFDOrigins_Update_CustomCertificateSubject. + * + * @param manager Entry point to CdnManager. + */ + public static void aFDOriginsUpdateCustomCertificateSubject(com.azure.resourcemanager.cdn.CdnManager manager) { + manager.serviceClient() + .getAfdOrigins() + .update("RG", "profile1", "origingroup1", "origin1", + new AfdOriginUpdateParameters().withHostname("host1.blob.core.windows.net") + .withHttpPort(80) + .withHttpsPort(443) + .withOriginHostHeader("host1.foo.com") + .withEnabledState(EnabledState.ENABLED) + .withEnforceCertificateNameCheck(true) + .withCertificateNameCheckValidationMode( + CertificateNameCheckValidationMode.CUSTOM_CERTIFICATE_SUBJECT) + .withCustomCertificateSubjects(Arrays.asList("host1.foo.com", "*.foo.com")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-07-01/AFDOrigins_Update_OriginHostname.json + */ + /** + * Sample code: AFDOrigins_Update_OriginHostname. + * + * @param manager Entry point to CdnManager. + */ + public static void aFDOriginsUpdateOriginHostname(com.azure.resourcemanager.cdn.CdnManager manager) { + manager.serviceClient() + .getAfdOrigins() + .update("RG", "profile1", "origingroup1", "origin1", + new AfdOriginUpdateParameters().withHostname("host1.blob.core.windows.net") + .withHttpPort(80) + .withHttpsPort(443) + .withOriginHostHeader("host1.foo.com") + .withEnabledState(EnabledState.ENABLED) + .withEnforceCertificateNameCheck(true) + .withCertificateNameCheckValidationMode(CertificateNameCheckValidationMode.ORIGIN_HOSTNAME), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesCheckEndpointNameAvailabilitySamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesCheckEndpointNameAvailabilitySamples.java index 6e9888219d06..20cc7e1b9e88 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesCheckEndpointNameAvailabilitySamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesCheckEndpointNameAvailabilitySamples.java @@ -13,7 +13,7 @@ */ public final class AfdProfilesCheckEndpointNameAvailabilitySamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDProfiles_CheckEndpointNameAvailability.json + * x-ms-original-file: 2026-07-01/AFDProfiles_CheckEndpointNameAvailability.json */ /** * Sample code: CheckEndpointNameAvailability. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesCheckHostnameAvailabilitySamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesCheckHostnameAvailabilitySamples.java index ca091e3043be..1fdf0db5a372 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesCheckHostnameAvailabilitySamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesCheckHostnameAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class AfdProfilesCheckHostnameAvailabilitySamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDProfiles_CheckHostNameAvailability.json + * x-ms-original-file: 2026-07-01/AFDProfiles_CheckHostNameAvailability.json */ /** * Sample code: AFDProfiles_CheckHostNameAvailability. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesListResourceUsageSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesListResourceUsageSamples.java index d6335aed1a64..da2d10542710 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesListResourceUsageSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesListResourceUsageSamples.java @@ -9,7 +9,7 @@ */ public final class AfdProfilesListResourceUsageSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDProfiles_ListResourceUsage.json + * x-ms-original-file: 2026-07-01/AFDProfiles_ListResourceUsage.json */ /** * Sample code: AFDProfiles_ListResourceUsage. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesUpgradeSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesUpgradeSamples.java index 64d4134742f7..7ce611b1718a 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesUpgradeSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesUpgradeSamples.java @@ -14,7 +14,7 @@ */ public final class AfdProfilesUpgradeSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDProfiles_Upgrade.json + * x-ms-original-file: 2026-07-01/AFDProfiles_Upgrade.json */ /** * Sample code: AFDProfiles_Upgrade. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesValidateSecretSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesValidateSecretSamples.java index 1b0e6e88b25d..29b5ebdd1028 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesValidateSecretSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/AfdProfilesValidateSecretSamples.java @@ -13,7 +13,7 @@ */ public final class AfdProfilesValidateSecretSamples { /* - * x-ms-original-file: 2025-09-01-preview/AFDProfiles_ValidateSecret.json + * x-ms-original-file: 2026-07-01/AFDProfiles_ValidateSecret.json */ /** * Sample code: Validate_Secret. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsCreateSamples.java index fe8243ae62e4..46578046cf55 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsCreateSamples.java @@ -11,7 +11,7 @@ */ public final class CustomDomainsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/CustomDomains_Create.json + * x-ms-original-file: 2026-07-01/CustomDomains_Create.json */ /** * Sample code: CustomDomains_Create. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsDeleteSamples.java index 45757141d8a7..e42cb082f967 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class CustomDomainsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/CustomDomains_Delete.json + * x-ms-original-file: 2026-07-01/CustomDomains_Delete.json */ /** * Sample code: CustomDomains_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsDisableCustomHttpsSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsDisableCustomHttpsSamples.java index b792bfa69104..543d6a2b1b5c 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsDisableCustomHttpsSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsDisableCustomHttpsSamples.java @@ -9,7 +9,7 @@ */ public final class CustomDomainsDisableCustomHttpsSamples { /* - * x-ms-original-file: 2025-09-01-preview/CustomDomains_DisableCustomHttps.json + * x-ms-original-file: 2026-07-01/CustomDomains_DisableCustomHttps.json */ /** * Sample code: CustomDomains_DisableCustomHttps. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsEnableCustomHttpsSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsEnableCustomHttpsSamples.java index f830cd88ef6d..af7e3c34e876 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsEnableCustomHttpsSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsEnableCustomHttpsSamples.java @@ -9,7 +9,7 @@ */ public final class CustomDomainsEnableCustomHttpsSamples { /* - * x-ms-original-file: 2025-09-01-preview/CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate.json + * x-ms-original-file: 2026-07-01/CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate.json */ /** * Sample code: CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate. @@ -25,7 +25,7 @@ public final class CustomDomainsEnableCustomHttpsSamples { } /* - * x-ms-original-file: 2025-09-01-preview/CustomDomains_EnableCustomHttpsUsingBYOC.json + * x-ms-original-file: 2026-07-01/CustomDomains_EnableCustomHttpsUsingBYOC.json */ /** * Sample code: CustomDomains_EnableCustomHttpsUsingYourOwnCertificate. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsGetSamples.java index cefc570c5b40..8ac8c8bd9fdd 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsGetSamples.java @@ -9,7 +9,7 @@ */ public final class CustomDomainsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/CustomDomains_Get.json + * x-ms-original-file: 2026-07-01/CustomDomains_Get.json */ /** * Sample code: CustomDomains_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsListByEndpointSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsListByEndpointSamples.java index 398ec5630fb8..c15da6f961d5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsListByEndpointSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/CustomDomainsListByEndpointSamples.java @@ -9,7 +9,7 @@ */ public final class CustomDomainsListByEndpointSamples { /* - * x-ms-original-file: 2025-09-01-preview/CustomDomains_ListByEndpoint.json + * x-ms-original-file: 2026-07-01/CustomDomains_ListByEndpoint.json */ /** * Sample code: CustomDomains_ListByEndpoint. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsApproveSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsApproveSamples.java deleted file mode 100644 index 34fcb025bd71..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsApproveSamples.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.cdn.generated; - -/** - * Samples for DeploymentVersions Approve. - */ -public final class DeploymentVersionsApproveSamples { - /* - * x-ms-original-file: 2025-09-01-preview/DeploymentVersions_Approve.json - */ - /** - * Sample code: DeploymentVersions_Approve. - * - * @param manager Entry point to CdnManager. - */ - public static void deploymentVersionsApprove(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getDeploymentVersions() - .approve("RG", "profile1", "dv1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsCompareSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsCompareSamples.java deleted file mode 100644 index 2201ea8c65a1..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsCompareSamples.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.cdn.generated; - -import com.azure.resourcemanager.cdn.models.CompareDeploymentVersionsParameter; - -/** - * Samples for DeploymentVersions Compare. - */ -public final class DeploymentVersionsCompareSamples { - /* - * x-ms-original-file: 2025-09-01-preview/DeploymentVersions_Compare.json - */ - /** - * Sample code: DeploymentVersions_Compare. - * - * @param manager Entry point to CdnManager. - */ - public static void deploymentVersionsCompare(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getDeploymentVersions() - .compareWithResponse("RG", "profile1", "dv1", - new CompareDeploymentVersionsParameter().withCompareTo("VersionName2"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsGetSamples.java deleted file mode 100644 index 3f1c185c13f7..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsGetSamples.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.cdn.generated; - -/** - * Samples for DeploymentVersions Get. - */ -public final class DeploymentVersionsGetSamples { - /* - * x-ms-original-file: 2025-09-01-preview/DeploymentVersions_Get.json - */ - /** - * Sample code: DeploymentVersions_Get. - * - * @param manager Entry point to CdnManager. - */ - public static void deploymentVersionsGet(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getDeploymentVersions() - .getWithResponse("RG", "profile1", "dv1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsListByProfileSamples.java deleted file mode 100644 index 2bfd4a4b4537..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsListByProfileSamples.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.cdn.generated; - -/** - * Samples for DeploymentVersions ListByProfile. - */ -public final class DeploymentVersionsListByProfileSamples { - /* - * x-ms-original-file: 2025-09-01-preview/DeploymentVersions_ListByProfile.json - */ - /** - * Sample code: DeploymentVersions_ListByProfile. - * - * @param manager Entry point to CdnManager. - */ - public static void deploymentVersionsListByProfile(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getDeploymentVersions() - .listByProfile("RG", "profile1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsUpdateSamples.java deleted file mode 100644 index a019196a2947..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/DeploymentVersionsUpdateSamples.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.cdn.generated; - -import com.azure.resourcemanager.cdn.models.DeploymentVersionUpdate; - -/** - * Samples for DeploymentVersions Update. - */ -public final class DeploymentVersionsUpdateSamples { - /* - * x-ms-original-file: 2025-09-01-preview/DeploymentVersions_Update.json - */ - /** - * Sample code: DeploymentVersions_Update. - * - * @param manager Entry point to CdnManager. - */ - public static void deploymentVersionsUpdate(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getDeploymentVersions() - .updateWithResponse("RG", "profile1", "dv1", - new DeploymentVersionUpdate().withDescription("test deployment"), com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EdgeNodesListSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EdgeNodesListSamples.java index a260d2280c6e..8d17f4ba1789 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EdgeNodesListSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EdgeNodesListSamples.java @@ -9,7 +9,7 @@ */ public final class EdgeNodesListSamples { /* - * x-ms-original-file: 2025-09-01-preview/EdgeNodes_List.json + * x-ms-original-file: 2026-07-01/EdgeNodes_List.json */ /** * Sample code: EdgeNodes_List. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsCreateSamples.java index c9168ca8d4a4..65efa93f5159 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsCreateSamples.java @@ -36,7 +36,7 @@ */ public final class EndpointsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_Create.json + * x-ms-original-file: 2026-07-01/Endpoints_Create.json */ /** * Sample code: Endpoints_Create. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsDeleteSamples.java index e97867dfcb04..57086c565b3a 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class EndpointsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_Delete.json + * x-ms-original-file: 2026-07-01/Endpoints_Delete.json */ /** * Sample code: Endpoints_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsGetSamples.java index 353f6a0a9c59..54ba0ae0a009 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsGetSamples.java @@ -9,7 +9,7 @@ */ public final class EndpointsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_Get.json + * x-ms-original-file: 2026-07-01/Endpoints_Get.json */ /** * Sample code: Endpoints_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsListByProfileSamples.java index 607b97632cf9..a1dc7a792b38 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsListByProfileSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsListByProfileSamples.java @@ -9,7 +9,7 @@ */ public final class EndpointsListByProfileSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_ListByProfile.json + * x-ms-original-file: 2026-07-01/Endpoints_ListByProfile.json */ /** * Sample code: Endpoints_ListByProfile. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsListResourceUsageSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsListResourceUsageSamples.java index 74f25d668ee6..a3393ce44749 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsListResourceUsageSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsListResourceUsageSamples.java @@ -9,7 +9,7 @@ */ public final class EndpointsListResourceUsageSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_ListResourceUsage.json + * x-ms-original-file: 2026-07-01/Endpoints_ListResourceUsage.json */ /** * Sample code: Endpoints_ListResourceUsage. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsLoadContentSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsLoadContentSamples.java index c1fcf12ea7d2..1b791f5101e0 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsLoadContentSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsLoadContentSamples.java @@ -12,7 +12,7 @@ */ public final class EndpointsLoadContentSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_LoadContent.json + * x-ms-original-file: 2026-07-01/Endpoints_LoadContent.json */ /** * Sample code: Endpoints_LoadContent. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsPurgeContentSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsPurgeContentSamples.java index 794bc59f1ae9..391b0128fa0e 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsPurgeContentSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsPurgeContentSamples.java @@ -12,7 +12,7 @@ */ public final class EndpointsPurgeContentSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_PurgeContent.json + * x-ms-original-file: 2026-07-01/Endpoints_PurgeContent.json */ /** * Sample code: Endpoints_PurgeContent. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsStartSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsStartSamples.java index 67730fbc22e8..479808321448 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsStartSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsStartSamples.java @@ -9,7 +9,7 @@ */ public final class EndpointsStartSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_Start.json + * x-ms-original-file: 2026-07-01/Endpoints_Start.json */ /** * Sample code: Endpoints_Start. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsStopSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsStopSamples.java index 93d83eb0eef9..3126bf37f6cb 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsStopSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsStopSamples.java @@ -9,7 +9,7 @@ */ public final class EndpointsStopSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_Stop.json + * x-ms-original-file: 2026-07-01/Endpoints_Stop.json */ /** * Sample code: Endpoints_Stop. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsUpdateSamples.java index 3b99d17a563c..62efc626f30b 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class EndpointsUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_Update.json + * x-ms-original-file: 2026-07-01/Endpoints_Update.json */ /** * Sample code: Endpoints_Update. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsValidateCustomDomainSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsValidateCustomDomainSamples.java index d046a833be46..224b85710d0d 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsValidateCustomDomainSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/EndpointsValidateCustomDomainSamples.java @@ -11,7 +11,7 @@ */ public final class EndpointsValidateCustomDomainSamples { /* - * x-ms-original-file: 2025-09-01-preview/Endpoints_ValidateCustomDomain.json + * x-ms-original-file: 2026-07-01/Endpoints_ValidateCustomDomain.json */ /** * Sample code: Endpoints_ValidateCustomDomain. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsCreateUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsCreateUpdateSamples.java deleted file mode 100644 index b1b7b4813a17..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsCreateUpdateSamples.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.cdn.generated; - -import com.azure.resourcemanager.cdn.fluent.models.KeyGroupInner; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import java.util.Arrays; - -/** - * Samples for KeyGroups CreateUpdate. - */ -public final class KeyGroupsCreateUpdateSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KeyGroups_Create.json - */ - /** - * Sample code: KeyGroups_Create. - * - * @param manager Entry point to CdnManager. - */ - public static void keyGroupsCreate(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getKeyGroups() - .createUpdate("RG", "profile1", "kg1", new KeyGroupInner().withKeyReferences(Arrays.asList( - new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret1"), - new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret2"), - new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret3"))), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsDeleteSamples.java deleted file mode 100644 index 37805f3b47d9..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsDeleteSamples.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.cdn.generated; - -/** - * Samples for KeyGroups Delete. - */ -public final class KeyGroupsDeleteSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KeyGroups_Delete.json - */ - /** - * Sample code: KeyGroups_Delete. - * - * @param manager Entry point to CdnManager. - */ - public static void keyGroupsDelete(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient().getKeyGroups().delete("RG", "profile1", "kg1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsGetSamples.java deleted file mode 100644 index d27f107738d7..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsGetSamples.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.cdn.generated; - -/** - * Samples for KeyGroups Get. - */ -public final class KeyGroupsGetSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KeyGroups_Get.json - */ - /** - * Sample code: KeyGroups_Get. - * - * @param manager Entry point to CdnManager. - */ - public static void keyGroupsGet(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getKeyGroups() - .getWithResponse("RG", "profile1", "kg1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsListByProfileSamples.java deleted file mode 100644 index 60699b841731..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsListByProfileSamples.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.cdn.generated; - -/** - * Samples for KeyGroups ListByProfile. - */ -public final class KeyGroupsListByProfileSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KeyGroups_ListByProfile.json - */ - /** - * Sample code: KeyGroups_ListByProfile. - * - * @param manager Entry point to CdnManager. - */ - public static void keyGroupsListByProfile(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient().getKeyGroups().listByProfile("RG", "profile1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsUpdateSamples.java deleted file mode 100644 index a0f97d824467..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KeyGroupsUpdateSamples.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.cdn.generated; - -import com.azure.resourcemanager.cdn.models.KeyGroupUpdatePropertiesParameters; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import java.util.Arrays; - -/** - * Samples for KeyGroups Update. - */ -public final class KeyGroupsUpdateSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KeyGroups_Update.json - */ - /** - * Sample code: KeyGroups_Update. - * - * @param manager Entry point to CdnManager. - */ - public static void keyGroupsUpdate(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getKeyGroups() - .update("RG", "profile1", "kg1", new KeyGroupUpdatePropertiesParameters().withKeyReferences(Arrays.asList( - new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret1"), - new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret2"), - new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret3"))), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesCreateOrUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesCreateOrUpdateSamples.java deleted file mode 100644 index fc7452ca33f9..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesCreateOrUpdateSamples.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.cdn.generated; - -import com.azure.resourcemanager.cdn.fluent.models.KnowledgeSourceInner; -import com.azure.resourcemanager.cdn.models.KnowledgeSourceType; -import com.azure.resourcemanager.cdn.models.KnowledgeSourceUpdateFrequency; - -/** - * Samples for KnowledgeSources CreateOrUpdate. - */ -public final class KnowledgeSourcesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KnowledgeSourceCreateOrUpdate.json - */ - /** - * Sample code: Create or Update Knowledge Source. - * - * @param manager Entry point to CdnManager. - */ - public static void createOrUpdateKnowledgeSource(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getKnowledgeSources() - .createOrUpdate("RG", "myWebAgent1", "myKnowledgeSource1", - new KnowledgeSourceInner().withDescription("Website knowledge source for FAQ content") - .withSourceType(KnowledgeSourceType.SCHEMA_ORG_MARKUP) - .withUrl("https://example.com/faq") - .withUpdateFrequency(KnowledgeSourceUpdateFrequency.EVERY_SIX_HOURS), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesDeleteSamples.java deleted file mode 100644 index 045b76d20965..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesDeleteSamples.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.cdn.generated; - -/** - * Samples for KnowledgeSources Delete. - */ -public final class KnowledgeSourcesDeleteSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KnowledgeSourceDelete.json - */ - /** - * Sample code: Delete Knowledge Source. - * - * @param manager Entry point to CdnManager. - */ - public static void deleteKnowledgeSource(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getKnowledgeSources() - .delete("RG", "myWebAgent1", "myKnowledgeSource1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesGetSamples.java deleted file mode 100644 index f4ae3985cd5e..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesGetSamples.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.cdn.generated; - -/** - * Samples for KnowledgeSources Get. - */ -public final class KnowledgeSourcesGetSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KnowledgeSourceGet.json - */ - /** - * Sample code: Get Knowledge Source. - * - * @param manager Entry point to CdnManager. - */ - public static void getKnowledgeSource(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getKnowledgeSources() - .getWithResponse("RG", "myWebAgent1", "myKnowledgeSource1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesListByWebAgentSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesListByWebAgentSamples.java deleted file mode 100644 index e34ba47c746d..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesListByWebAgentSamples.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.cdn.generated; - -/** - * Samples for KnowledgeSources ListByWebAgent. - */ -public final class KnowledgeSourcesListByWebAgentSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KnowledgeSourcesListByWebAgent.json - */ - /** - * Sample code: List Knowledge Sources in a Web Agent. - * - * @param manager Entry point to CdnManager. - */ - public static void listKnowledgeSourcesInAWebAgent(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getKnowledgeSources() - .listByWebAgent("RG", "myWebAgent1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesPurgeSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesPurgeSamples.java deleted file mode 100644 index 02f31115f430..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesPurgeSamples.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.cdn.generated; - -/** - * Samples for KnowledgeSources Purge. - */ -public final class KnowledgeSourcesPurgeSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KnowledgeSourcePurge.json - */ - /** - * Sample code: Purge Knowledge Source Cache. - * - * @param manager Entry point to CdnManager. - */ - public static void purgeKnowledgeSourceCache(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getKnowledgeSources() - .purge("RG", "myWebAgent1", "myKnowledgeSource1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesUpdateSamples.java deleted file mode 100644 index 9aca2034737c..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/KnowledgeSourcesUpdateSamples.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.cdn.generated; - -import com.azure.resourcemanager.cdn.models.KnowledgeSourceUpdateFrequency; -import com.azure.resourcemanager.cdn.models.KnowledgeSourceUpdateParameters; - -/** - * Samples for KnowledgeSources Update. - */ -public final class KnowledgeSourcesUpdateSamples { - /* - * x-ms-original-file: 2025-09-01-preview/KnowledgeSourceUpdate.json - */ - /** - * Sample code: Update Knowledge Source. - * - * @param manager Entry point to CdnManager. - */ - public static void updateKnowledgeSource(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getKnowledgeSources() - .update("RG", "myWebAgent1", "myKnowledgeSource1", - new KnowledgeSourceUpdateParameters() - .withDescription("Updated website knowledge source for FAQ and help content") - .withUrl("https://example.com/sitemap.xml") - .withUpdateFrequency(KnowledgeSourceUpdateFrequency.EVERY_SIX_HOURS), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsLocationsSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsLocationsSamples.java index 80fe3aec1570..b2eda9fa5429 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsLocationsSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsLocationsSamples.java @@ -9,7 +9,7 @@ */ public final class LogAnalyticsGetLogAnalyticsLocationsSamples { /* - * x-ms-original-file: 2025-09-01-preview/LogAnalytics_GetLogAnalyticsLocations.json + * x-ms-original-file: 2026-07-01/LogAnalytics_GetLogAnalyticsLocations.json */ /** * Sample code: LogAnalytics_GetLogAnalyticsLocations. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsMetricsSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsMetricsSamples.java index 38b300c36ff2..67c9301169a5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsMetricsSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsMetricsSamples.java @@ -15,7 +15,7 @@ */ public final class LogAnalyticsGetLogAnalyticsMetricsSamples { /* - * x-ms-original-file: 2025-09-01-preview/LogAnalytics_GetLogAnalyticsMetrics.json + * x-ms-original-file: 2026-07-01/LogAnalytics_GetLogAnalyticsMetrics.json */ /** * Sample code: LogAnalytics_GetLogAnalyticsMetrics. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsRankingsSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsRankingsSamples.java index 042dbe94c08b..a2573488858e 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsRankingsSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsRankingsSamples.java @@ -14,7 +14,7 @@ */ public final class LogAnalyticsGetLogAnalyticsRankingsSamples { /* - * x-ms-original-file: 2025-09-01-preview/LogAnalytics_GetLogAnalyticsRankings.json + * x-ms-original-file: 2026-07-01/LogAnalytics_GetLogAnalyticsRankings.json */ /** * Sample code: LogAnalytics_GetLogAnalyticsRankings. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsResourcesSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsResourcesSamples.java index d987f9bed963..9ac89eff75d5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsResourcesSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetLogAnalyticsResourcesSamples.java @@ -9,7 +9,7 @@ */ public final class LogAnalyticsGetLogAnalyticsResourcesSamples { /* - * x-ms-original-file: 2025-09-01-preview/LogAnalytics_GetLogAnalyticsResources.json + * x-ms-original-file: 2026-07-01/LogAnalytics_GetLogAnalyticsResources.json */ /** * Sample code: LogAnalytics_GetLogAnalyticsResources. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetWafLogAnalyticsMetricsSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetWafLogAnalyticsMetricsSamples.java index 10593334bf1d..1cc367685ce9 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetWafLogAnalyticsMetricsSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetWafLogAnalyticsMetricsSamples.java @@ -15,7 +15,7 @@ */ public final class LogAnalyticsGetWafLogAnalyticsMetricsSamples { /* - * x-ms-original-file: 2025-09-01-preview/LogAnalytics_GetWafLogAnalyticsMetrics.json + * x-ms-original-file: 2026-07-01/LogAnalytics_GetWafLogAnalyticsMetrics.json */ /** * Sample code: LogAnalytics_GetWafLogAnalyticsMetrics. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetWafLogAnalyticsRankingsSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetWafLogAnalyticsRankingsSamples.java index fa7d154b740d..d3582c78d0d9 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetWafLogAnalyticsRankingsSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/LogAnalyticsGetWafLogAnalyticsRankingsSamples.java @@ -14,7 +14,7 @@ */ public final class LogAnalyticsGetWafLogAnalyticsRankingsSamples { /* - * x-ms-original-file: 2025-09-01-preview/LogAnalytics_GetWafLogAnalyticsRankings.json + * x-ms-original-file: 2026-07-01/LogAnalytics_GetWafLogAnalyticsRankings.json */ /** * Sample code: LogAnalytics_GetWafLogAnalyticsRankings. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ManagedRuleSetsListSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ManagedRuleSetsListSamples.java index 09f4e5152b86..0be8d38382c7 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ManagedRuleSetsListSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ManagedRuleSetsListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedRuleSetsListSamples { /* - * x-ms-original-file: 2025-09-01-preview/WafListManagedRuleSets.json + * x-ms-original-file: 2026-07-01/WafListManagedRuleSets.json */ /** * Sample code: List Policies in a Resource Group. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OperationsListSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OperationsListSamples.java index 7807ec388acf..1c8b050bede4 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OperationsListSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-09-01-preview/Operations_List.json + * x-ms-original-file: 2026-07-01/Operations_List.json */ /** * Sample code: Operations_List. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsCreateSamples.java index 766f29bebd56..1a1aadcc78de 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsCreateSamples.java @@ -18,7 +18,7 @@ */ public final class OriginGroupsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/OriginGroups_Create.json + * x-ms-original-file: 2026-07-01/OriginGroups_Create.json */ /** * Sample code: OriginGroups_Create. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsDeleteSamples.java index 7591fe8df9c6..8cd2c0004b82 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class OriginGroupsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/OriginGroups_Delete.json + * x-ms-original-file: 2026-07-01/OriginGroups_Delete.json */ /** * Sample code: OriginGroups_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsGetSamples.java index 26b7af0b5ae5..b1dd6305a50a 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsGetSamples.java @@ -9,7 +9,7 @@ */ public final class OriginGroupsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/OriginGroups_Get.json + * x-ms-original-file: 2026-07-01/OriginGroups_Get.json */ /** * Sample code: OriginGroups_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsListByEndpointSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsListByEndpointSamples.java index 7a64778c87b4..749cd5966fda 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsListByEndpointSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsListByEndpointSamples.java @@ -9,7 +9,7 @@ */ public final class OriginGroupsListByEndpointSamples { /* - * x-ms-original-file: 2025-09-01-preview/OriginGroups_ListByEndpoint.json + * x-ms-original-file: 2026-07-01/OriginGroups_ListByEndpoint.json */ /** * Sample code: OriginsGroups_ListByEndpoint. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsUpdateSamples.java index 77239e373871..9a869da2aae5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginGroupsUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class OriginGroupsUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/OriginGroups_Update.json + * x-ms-original-file: 2026-07-01/OriginGroups_Update.json */ /** * Sample code: OriginGroups_Update. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsCreateSamples.java index 9b05016ca325..d40a22f80de5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsCreateSamples.java @@ -11,7 +11,7 @@ */ public final class OriginsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Origins_Create.json + * x-ms-original-file: 2026-07-01/Origins_Create.json */ /** * Sample code: Origins_Create. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsDeleteSamples.java index eac031c68cc0..78c2c518897f 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class OriginsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/Origins_Delete.json + * x-ms-original-file: 2026-07-01/Origins_Delete.json */ /** * Sample code: Origins_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsGetSamples.java index 4bba63cb6011..0f247655e455 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsGetSamples.java @@ -9,7 +9,7 @@ */ public final class OriginsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/Origins_Get.json + * x-ms-original-file: 2026-07-01/Origins_Get.json */ /** * Sample code: Origins_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsListByEndpointSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsListByEndpointSamples.java index b58054674d19..eb8cff4fc6e1 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsListByEndpointSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsListByEndpointSamples.java @@ -9,7 +9,7 @@ */ public final class OriginsListByEndpointSamples { /* - * x-ms-original-file: 2025-09-01-preview/Origins_ListByEndpoint.json + * x-ms-original-file: 2026-07-01/Origins_ListByEndpoint.json */ /** * Sample code: Origins_ListByEndpoint. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsUpdateSamples.java index 66d1adaad2a7..74ede83e755c 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/OriginsUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class OriginsUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Origins_Update.json + * x-ms-original-file: 2026-07-01/Origins_Update.json */ /** * Sample code: Origins_Update. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesCreateOrUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesCreateOrUpdateSamples.java index 113dd4659f57..2119442a0255 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesCreateOrUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesCreateOrUpdateSamples.java @@ -31,7 +31,7 @@ */ public final class PoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/WafPolicyCreateOrUpdate.json + * x-ms-original-file: 2026-07-01/WafPolicyCreateOrUpdate.json */ /** * Sample code: Creates specific policy. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesDeleteSamples.java index dcf2ac21de2c..05cbf283d553 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PoliciesDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/WafPolicyDelete.json + * x-ms-original-file: 2026-07-01/WafPolicyDelete.json */ /** * Sample code: Delete protection policy. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesGetByResourceGroupSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesGetByResourceGroupSamples.java index f1e1694ef61f..990fef4b4f8f 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesGetByResourceGroupSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class PoliciesGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-09-01-preview/WafPolicyGet.json + * x-ms-original-file: 2026-07-01/WafPolicyGet.json */ /** * Sample code: Get Policy. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesListByResourceGroupSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesListByResourceGroupSamples.java index 5d52c8beb7cb..2655988a5c86 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesListByResourceGroupSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class PoliciesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-09-01-preview/WafListPolicies.json + * x-ms-original-file: 2026-07-01/WafListPolicies.json */ /** * Sample code: List Policies in a Resource Group. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesUpdateSamples.java index cc88d02252d1..ffa38cba3d57 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/PoliciesUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class PoliciesUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/WafPatchPolicy.json + * x-ms-original-file: 2026-07-01/WafPatchPolicy.json */ /** * Sample code: Creates specific policy. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsCreateOrUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsCreateOrUpdateSamples.java deleted file mode 100644 index 21e8de8d6364..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsCreateOrUpdateSamples.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.cdn.generated; - -import com.azure.resourcemanager.cdn.fluent.models.ProfileAgentInner; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import java.util.Arrays; - -/** - * Samples for ProfileAgents CreateOrUpdate. - */ -public final class ProfileAgentsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-09-01-preview/ProfileAgents_CreateOrUpdate.json - */ - /** - * Sample code: ProfileAgents_CreateOrUpdate. - * - * @param manager Entry point to CdnManager. - */ - public static void profileAgentsCreateOrUpdate(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getProfileAgents() - .createOrUpdate("RG", "profile1", "agent1", new ProfileAgentInner() - .withWebAgent(new ResourceReference().withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/RG/providers/Microsoft.Cdn/webAgents/webagent1")) - .withCustomDomains(Arrays.asList(new ResourceReference().withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/mydomain.com"))), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsDeleteSamples.java deleted file mode 100644 index 7d0b644c8a36..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsDeleteSamples.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.cdn.generated; - -/** - * Samples for ProfileAgents Delete. - */ -public final class ProfileAgentsDeleteSamples { - /* - * x-ms-original-file: 2025-09-01-preview/ProfileAgents_Delete.json - */ - /** - * Sample code: ProfileAgents_Delete. - * - * @param manager Entry point to CdnManager. - */ - public static void profileAgentsDelete(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient().getProfileAgents().delete("RG", "profile1", "agent1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsGetSamples.java deleted file mode 100644 index 2db40ba6427d..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsGetSamples.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.cdn.generated; - -/** - * Samples for ProfileAgents Get. - */ -public final class ProfileAgentsGetSamples { - /* - * x-ms-original-file: 2025-09-01-preview/ProfileAgents_Get.json - */ - /** - * Sample code: ProfileAgents_Get. - * - * @param manager Entry point to CdnManager. - */ - public static void profileAgentsGet(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getProfileAgents() - .getWithResponse("RG", "profile1", "agent1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsListByProfileSamples.java deleted file mode 100644 index fe6be5aed361..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsListByProfileSamples.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.cdn.generated; - -/** - * Samples for ProfileAgents ListByProfile. - */ -public final class ProfileAgentsListByProfileSamples { - /* - * x-ms-original-file: 2025-09-01-preview/ProfileAgents_ListByProfile.json - */ - /** - * Sample code: ProfileAgents_ListByProfile. - * - * @param manager Entry point to CdnManager. - */ - public static void profileAgentsListByProfile(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient().getProfileAgents().listByProfile("RG", "profile1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsUpdateSamples.java deleted file mode 100644 index ed46ec754ac0..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfileAgentsUpdateSamples.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.cdn.generated; - -import com.azure.resourcemanager.cdn.models.ProfileAgentUpdateParameters; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import java.util.Arrays; - -/** - * Samples for ProfileAgents Update. - */ -public final class ProfileAgentsUpdateSamples { - /* - * x-ms-original-file: 2025-09-01-preview/ProfileAgents_Update.json - */ - /** - * Sample code: ProfileAgents_Update. - * - * @param manager Entry point to CdnManager. - */ - public static void profileAgentsUpdate(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getProfileAgents() - .update("RG", "profile1", "agent1", - new ProfileAgentUpdateParameters().withCustomDomains(Arrays.asList(new ResourceReference().withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customDomains/newdomain.com"))), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCanMigrateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCanMigrateSamples.java index d1a1e57b679c..8d7d72ea6bec 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCanMigrateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCanMigrateSamples.java @@ -12,7 +12,7 @@ */ public final class ProfilesCanMigrateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_CanMigrate.json + * x-ms-original-file: 2026-07-01/Profiles_CanMigrate.json */ /** * Sample code: Profiles_CanMigrate. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCdnCanMigrateToAfdSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCdnCanMigrateToAfdSamples.java index 6d279a8dadbd..ccd6273f7f6c 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCdnCanMigrateToAfdSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCdnCanMigrateToAfdSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesCdnCanMigrateToAfdSamples { /* - * x-ms-original-file: 2025-09-01-preview/CdnProfiles_CanMigrate.json + * x-ms-original-file: 2026-07-01/CdnProfiles_CanMigrate.json */ /** * Sample code: Profiles_CdnCanMigrate. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCdnMigrateToAfdSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCdnMigrateToAfdSamples.java index 6029031d8d81..79afb8584678 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCdnMigrateToAfdSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCdnMigrateToAfdSamples.java @@ -13,7 +13,7 @@ */ public final class ProfilesCdnMigrateToAfdSamples { /* - * x-ms-original-file: 2025-09-01-preview/CdnProfiles_Migrate.json + * x-ms-original-file: 2026-07-01/CdnProfiles_Migrate.json */ /** * Sample code: Profiles_CdnMigrate. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCreateSamples.java index a461f5394e7f..a46f7b366d89 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesCreateSamples.java @@ -13,7 +13,7 @@ */ public final class ProfilesCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_Create.json + * x-ms-original-file: 2026-07-01/Profiles_Create.json */ /** * Sample code: Profiles_Create. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesDeleteSamples.java index 04ddbaa05dcb..0b55ba4d2b51 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_Delete.json + * x-ms-original-file: 2026-07-01/Profiles_Delete.json */ /** * Sample code: Profiles_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesGenerateSsoUriSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesGenerateSsoUriSamples.java index ab7b720d3493..9061c495b4a1 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesGenerateSsoUriSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesGenerateSsoUriSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesGenerateSsoUriSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_GenerateSsoUri.json + * x-ms-original-file: 2026-07-01/Profiles_GenerateSsoUri.json */ /** * Sample code: Profiles_GenerateSsoUri. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesGetByResourceGroupSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesGetByResourceGroupSamples.java index 97985daa457b..c13d1871b251 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesGetByResourceGroupSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_Get.json + * x-ms-original-file: 2026-07-01/Profiles_Get.json */ /** * Sample code: Profiles_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListByResourceGroupSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListByResourceGroupSamples.java index 0d371d65442b..378e4398fa22 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListByResourceGroupSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_ListByResourceGroup.json + * x-ms-original-file: 2026-07-01/Profiles_ListByResourceGroup.json */ /** * Sample code: Profiles_ListByResourceGroup. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListResourceUsageSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListResourceUsageSamples.java index 7f45e4e90421..81f0149d0e84 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListResourceUsageSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListResourceUsageSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesListResourceUsageSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_ListResourceUsage.json + * x-ms-original-file: 2026-07-01/Profiles_ListResourceUsage.json */ /** * Sample code: Profiles_ListResourceUsage. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListSamples.java index 2cdbd3caace7..238c867c8139 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesListSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_List.json + * x-ms-original-file: 2026-07-01/Profiles_List.json */ /** * Sample code: Profiles_List. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListSupportedOptimizationTypesSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListSupportedOptimizationTypesSamples.java index 2f4622063082..1f429d8fde28 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListSupportedOptimizationTypesSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesListSupportedOptimizationTypesSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesListSupportedOptimizationTypesSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_ListSupportedOptimizationTypes.json + * x-ms-original-file: 2026-07-01/Profiles_ListSupportedOptimizationTypes.json */ /** * Sample code: Profiles_ListSupportedOptimizationTypes. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrateSamples.java index 7214804f68e8..69004687bfb5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrateSamples.java @@ -14,7 +14,7 @@ */ public final class ProfilesMigrateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_Migrate.json + * x-ms-original-file: 2026-07-01/Profiles_Migrate.json */ /** * Sample code: Profiles_Migrate. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrationAbortSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrationAbortSamples.java index 81cc8fcdb794..9778b737634e 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrationAbortSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrationAbortSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesMigrationAbortSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_MigrationAbort.json + * x-ms-original-file: 2026-07-01/Profiles_MigrationAbort.json */ /** * Sample code: Profiles_CdnMigrationCommit. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrationCommitSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrationCommitSamples.java index 1e53a0d65f8a..9e0bc69b2ebe 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrationCommitSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesMigrationCommitSamples.java @@ -9,7 +9,7 @@ */ public final class ProfilesMigrationCommitSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_MigrationCommit.json + * x-ms-original-file: 2026-07-01/Profiles_MigrationCommit.json */ /** * Sample code: Profiles_MigrationCommit. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesUpdateSamples.java index 103ae5109459..96b44ded68e5 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ProfilesUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ProfilesUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Profiles_Update.json + * x-ms-original-file: 2026-07-01/Profiles_Update.json */ /** * Sample code: Profiles_Update. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ResourceUsageListSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ResourceUsageListSamples.java index 071007381ad4..b8bd139a3bc6 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ResourceUsageListSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/ResourceUsageListSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceUsageListSamples { /* - * x-ms-original-file: 2025-09-01-preview/ResourceUsage_List.json + * x-ms-original-file: 2026-07-01/ResourceUsage_List.json */ /** * Sample code: ResourceUsage_List. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesCreateSamples.java index c164074409c9..f964e154f7b9 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesCreateSamples.java @@ -9,7 +9,6 @@ import com.azure.resourcemanager.cdn.models.AfdEndpointProtocols; import com.azure.resourcemanager.cdn.models.AfdQueryStringCachingBehavior; import com.azure.resourcemanager.cdn.models.AfdRouteCacheConfiguration; -import com.azure.resourcemanager.cdn.models.AfdRouteGrpcState; import com.azure.resourcemanager.cdn.models.CompressionSettings; import com.azure.resourcemanager.cdn.models.EnabledState; import com.azure.resourcemanager.cdn.models.ForwardingProtocol; @@ -23,7 +22,7 @@ */ public final class RoutesCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Routes_Create.json + * x-ms-original-file: 2026-07-01/Routes_Create.json */ /** * Sample code: Routes_Create. @@ -51,7 +50,6 @@ public static void routesCreate(com.azure.resourcemanager.cdn.CdnManager manager .withForwardingProtocol(ForwardingProtocol.MATCH_REQUEST) .withLinkToDefaultDomain(LinkToDefaultDomain.ENABLED) .withHttpsRedirect(HttpsRedirect.ENABLED) - .withEnabledState(EnabledState.ENABLED) - .withGrpcState(AfdRouteGrpcState.ENABLED), com.azure.core.util.Context.NONE); + .withEnabledState(EnabledState.ENABLED), com.azure.core.util.Context.NONE); } } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesDeleteSamples.java index b57460c5bc53..2abd5e37f133 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RoutesDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/Routes_Delete.json + * x-ms-original-file: 2026-07-01/Routes_Delete.json */ /** * Sample code: Routes_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesGetSamples.java index d409eea1244b..bfb17bd05920 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesGetSamples.java @@ -9,7 +9,7 @@ */ public final class RoutesGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/Routes_Get.json + * x-ms-original-file: 2026-07-01/Routes_Get.json */ /** * Sample code: Routes_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesListByEndpointSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesListByEndpointSamples.java index 1db92a03a9a1..0ece90236a82 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesListByEndpointSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesListByEndpointSamples.java @@ -9,7 +9,7 @@ */ public final class RoutesListByEndpointSamples { /* - * x-ms-original-file: 2025-09-01-preview/Routes_ListByEndpoint.json + * x-ms-original-file: 2026-07-01/Routes_ListByEndpoint.json */ /** * Sample code: Routes_ListByEndpoint. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesUpdateSamples.java index 947a488eb6d2..7880a27ce671 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RoutesUpdateSamples.java @@ -8,7 +8,6 @@ import com.azure.resourcemanager.cdn.models.AfdEndpointProtocols; import com.azure.resourcemanager.cdn.models.AfdQueryStringCachingBehavior; import com.azure.resourcemanager.cdn.models.AfdRouteCacheConfiguration; -import com.azure.resourcemanager.cdn.models.AfdRouteGrpcState; import com.azure.resourcemanager.cdn.models.CompressionSettings; import com.azure.resourcemanager.cdn.models.EnabledState; import com.azure.resourcemanager.cdn.models.ForwardingProtocol; @@ -23,7 +22,7 @@ */ public final class RoutesUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Routes_Update.json + * x-ms-original-file: 2026-07-01/Routes_Update.json */ /** * Sample code: Routes_Update. @@ -50,7 +49,6 @@ public static void routesUpdate(com.azure.resourcemanager.cdn.CdnManager manager .withForwardingProtocol(ForwardingProtocol.MATCH_REQUEST) .withLinkToDefaultDomain(LinkToDefaultDomain.ENABLED) .withHttpsRedirect(HttpsRedirect.ENABLED) - .withEnabledState(EnabledState.ENABLED) - .withGrpcState(AfdRouteGrpcState.ENABLED), com.azure.core.util.Context.NONE); + .withEnabledState(EnabledState.ENABLED), com.azure.core.util.Context.NONE); } } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsCreateSamples.java index b660620bbc29..457dbb19c364 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsCreateSamples.java @@ -9,7 +9,7 @@ */ public final class RuleSetsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/RuleSets_Create.json + * x-ms-original-file: 2026-07-01/RuleSets_Create.json */ /** * Sample code: RuleSets_Create. @@ -19,6 +19,6 @@ public final class RuleSetsCreateSamples { public static void ruleSetsCreate(com.azure.resourcemanager.cdn.CdnManager manager) { manager.serviceClient() .getRuleSets() - .createWithResponse("RG", "profile1", "ruleSet1", com.azure.core.util.Context.NONE); + .create("RG", "profile1", "ruleSet1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsDeleteSamples.java index d6aba99e3431..ab6ea8a43f5d 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RuleSetsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/RuleSets_Delete.json + * x-ms-original-file: 2026-07-01/RuleSets_Delete.json */ /** * Sample code: RuleSets_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsGetSamples.java index 64b97dd211c6..6827a74cc8b1 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RuleSetsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/RuleSets_Get.json + * x-ms-original-file: 2026-07-01/RuleSets_Get.json */ /** * Sample code: RuleSets_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsListByProfileSamples.java index fa3f55d43f37..946fe723dc6e 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsListByProfileSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsListByProfileSamples.java @@ -9,7 +9,7 @@ */ public final class RuleSetsListByProfileSamples { /* - * x-ms-original-file: 2025-09-01-preview/RuleSets_ListByProfile.json + * x-ms-original-file: 2026-07-01/RuleSets_ListByProfile.json */ /** * Sample code: RuleSets_ListByProfile. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsListResourceUsageSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsListResourceUsageSamples.java index c5f9e2e9958b..da6988d37672 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsListResourceUsageSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RuleSetsListResourceUsageSamples.java @@ -9,7 +9,7 @@ */ public final class RuleSetsListResourceUsageSamples { /* - * x-ms-original-file: 2025-09-01-preview/RuleSets_ListResourceUsage.json + * x-ms-original-file: 2026-07-01/RuleSets_ListResourceUsage.json */ /** * Sample code: RuleSets_ListResourceUsage. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesCreateSamples.java index 649eee4b9752..25548606b77f 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesCreateSamples.java @@ -5,20 +5,13 @@ package com.azure.resourcemanager.cdn.generated; import com.azure.resourcemanager.cdn.fluent.models.RuleInner; -import com.azure.resourcemanager.cdn.models.AfdUrlSigningAction; -import com.azure.resourcemanager.cdn.models.AfdUrlSigningActionParameters; -import com.azure.resourcemanager.cdn.models.Algorithm; import com.azure.resourcemanager.cdn.models.DeliveryRuleRequestMethodCondition; import com.azure.resourcemanager.cdn.models.DeliveryRuleResponseHeaderAction; import com.azure.resourcemanager.cdn.models.HeaderAction; import com.azure.resourcemanager.cdn.models.HeaderActionParameters; -import com.azure.resourcemanager.cdn.models.ParamIndicator; import com.azure.resourcemanager.cdn.models.RequestMethodMatchConditionParameters; import com.azure.resourcemanager.cdn.models.RequestMethodMatchConditionParametersMatchValuesItem; import com.azure.resourcemanager.cdn.models.RequestMethodOperator; -import com.azure.resourcemanager.cdn.models.ResourceReference; -import com.azure.resourcemanager.cdn.models.TypeName; -import com.azure.resourcemanager.cdn.models.UrlSigningParamIdentifier; import java.util.Arrays; /** @@ -26,36 +19,7 @@ */ public final class RulesCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Rules_Create_AfdUrlSigningAction.json - */ - /** - * Sample code: Rules_Create_AfdUrlSigningAction. - * - * @param manager Entry point to CdnManager. - */ - public static void rulesCreateAfdUrlSigningAction(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getRules() - .create("RG", "profile1", "ruleSet1", "rule1", new RuleInner().withOrder(1) - .withConditions(Arrays.asList(new DeliveryRuleRequestMethodCondition().withParameters( - new RequestMethodMatchConditionParameters().withOperator(RequestMethodOperator.EQUAL) - .withNegateCondition(false) - .withMatchValues(Arrays.asList(RequestMethodMatchConditionParametersMatchValuesItem.GET))))) - .withActions(Arrays.asList(new AfdUrlSigningAction().withParameters(new AfdUrlSigningActionParameters() - .withTypeName(TypeName.DELIVERY_RULE_AFD_URL_SIGNING_ACTION_PARAMETERS) - .withKeyGroupReference(new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/keygroups/kg1")) - .withAlgorithm(Algorithm.SHA256) - .withParameterNameOverride(Arrays.asList( - new UrlSigningParamIdentifier().withParamIndicator(ParamIndicator.EXPIRES) - .withParamName("Expiration-Date"), - new UrlSigningParamIdentifier().withParamIndicator(ParamIndicator.SIGNATURE) - .withParamName("Sig-Hash")))))), - com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2025-09-01-preview/Rules_Create.json + * x-ms-original-file: 2026-07-01/Rules_Create.json */ /** * Sample code: Rules_Create. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesDeleteSamples.java index 6c5e7870002b..f31a5b79ae0d 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RulesDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/Rules_Delete.json + * x-ms-original-file: 2026-07-01/Rules_Delete.json */ /** * Sample code: Rules_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesGetSamples.java index 2a2f11cfd375..190e53d87501 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesGetSamples.java @@ -9,7 +9,7 @@ */ public final class RulesGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/Rules_Get.json + * x-ms-original-file: 2026-07-01/Rules_Get.json */ /** * Sample code: Rules_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesListByRuleSetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesListByRuleSetSamples.java index cf77c5eff4d0..851331c46761 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesListByRuleSetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesListByRuleSetSamples.java @@ -9,7 +9,7 @@ */ public final class RulesListByRuleSetSamples { /* - * x-ms-original-file: 2025-09-01-preview/Rules_ListByRuleSet.json + * x-ms-original-file: 2026-07-01/Rules_ListByRuleSet.json */ /** * Sample code: Rules_ListByRuleSet. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesUpdateSamples.java index 1e83289b4e9c..ee27fe02b6c2 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesUpdateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/RulesUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class RulesUpdateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Rules_Update.json + * x-ms-original-file: 2026-07-01/Rules_Update.json */ /** * Sample code: Rules_Update. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsCreateSamples.java index 8d7c33979974..8e2be0e53a01 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsCreateSamples.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.cdn.generated; import com.azure.resourcemanager.cdn.fluent.models.SecretInner; -import com.azure.resourcemanager.cdn.models.AfdSecretMtlsCertificateChain; import com.azure.resourcemanager.cdn.models.CustomerCertificateParameters; import com.azure.resourcemanager.cdn.models.ResourceReference; import com.azure.resourcemanager.cdn.models.UrlSigningKeyParameters; @@ -15,7 +14,7 @@ */ public final class SecretsCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/Secrets_CreateUrlSigningKeyType.json + * x-ms-original-file: 2026-07-01/Secrets_CreateUrlSigningKeyType.json */ /** * Sample code: Secrets_CreateUrlSigningKeyType. @@ -33,14 +32,14 @@ public static void secretsCreateUrlSigningKeyType(com.azure.resourcemanager.cdn. } /* - * x-ms-original-file: 2025-09-01-preview/Secrets_CreateCustomerCertificateType.json + * x-ms-original-file: 2026-07-01/Secrets_Create.json */ /** - * Sample code: Secrets_CreateCustomerCertificateType. + * Sample code: Secrets_Create. * * @param manager Entry point to CdnManager. */ - public static void secretsCreateCustomerCertificateType(com.azure.resourcemanager.cdn.CdnManager manager) { + public static void secretsCreate(com.azure.resourcemanager.cdn.CdnManager manager) { manager.serviceClient() .getSecrets() .create("RG", "profile1", "secret1", new SecretInner().withParameters(new CustomerCertificateParameters() @@ -51,19 +50,20 @@ public static void secretsCreateCustomerCertificateType(com.azure.resourcemanage } /* - * x-ms-original-file: 2025-09-01-preview/Secrets_CreateMtlsCertificateChainType.json + * x-ms-original-file: 2026-07-01/Secrets_CreateCustomerCertificateType.json */ /** - * Sample code: Secrets_CreateMtlsCertificateChainType. + * Sample code: Secrets_CreateCustomerCertificateType. * * @param manager Entry point to CdnManager. */ - public static void secretsCreateMtlsCertificateChainType(com.azure.resourcemanager.cdn.CdnManager manager) { + public static void secretsCreateCustomerCertificateType(com.azure.resourcemanager.cdn.CdnManager manager) { manager.serviceClient() .getSecrets() - .create("RG", "profile1", "secret1", new SecretInner().withParameters(new AfdSecretMtlsCertificateChain() + .create("RG", "profile1", "secret1", new SecretInner().withParameters(new CustomerCertificateParameters() .withSecretSource(new ResourceReference().withId( - "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vaults/kvName/secrets/mTLSCertificateChainname")) - .withSecretVersion("fakeTokenPlaceholder")), com.azure.core.util.Context.NONE); + "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/secrets/certificatename")) + .withSecretVersion("fakeTokenPlaceholder") + .withUseLatestVersion(false)), com.azure.core.util.Context.NONE); } } diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsDeleteSamples.java index df95caf70028..3cc41f71435d 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SecretsDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/Secrets_Delete.json + * x-ms-original-file: 2026-07-01/Secrets_Delete.json */ /** * Sample code: Secrets_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsGetSamples.java index 1ee8ab667a48..434e184bc2be 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsGetSamples.java @@ -9,7 +9,7 @@ */ public final class SecretsGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/Secrets_Get.json + * x-ms-original-file: 2026-07-01/Secrets_Get.json */ /** * Sample code: Secrets_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsListByProfileSamples.java index eaaac9a4db08..dd82ce8325f9 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsListByProfileSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecretsListByProfileSamples.java @@ -9,7 +9,7 @@ */ public final class SecretsListByProfileSamples { /* - * x-ms-original-file: 2025-09-01-preview/Secrets_ListByProfile.json + * x-ms-original-file: 2026-07-01/Secrets_ListByProfile.json */ /** * Sample code: Secrets_ListByProfile. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesCreateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesCreateSamples.java index 1ea0f04b9a93..fa17671e6c9d 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesCreateSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesCreateSamples.java @@ -16,7 +16,7 @@ */ public final class SecurityPoliciesCreateSamples { /* - * x-ms-original-file: 2025-09-01-preview/SecurityPolicies_Create.json + * x-ms-original-file: 2026-07-01/SecurityPolicies_Create.json */ /** * Sample code: SecurityPolicies_Create. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesDeleteSamples.java index 3b09c7733d18..30234cea097c 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesDeleteSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SecurityPoliciesDeleteSamples { /* - * x-ms-original-file: 2025-09-01-preview/SecurityPolicies_Delete.json + * x-ms-original-file: 2026-07-01/SecurityPolicies_Delete.json */ /** * Sample code: SecurityPolicies_Delete. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesGetSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesGetSamples.java index d5f600ce5d9d..8ba716233819 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesGetSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class SecurityPoliciesGetSamples { /* - * x-ms-original-file: 2025-09-01-preview/SecurityPolicies_Get.json + * x-ms-original-file: 2026-07-01/SecurityPolicies_Get.json */ /** * Sample code: SecurityPolicies_Get. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesListByProfileSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesListByProfileSamples.java index 8e1f9357e885..256e46f34490 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesListByProfileSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesListByProfileSamples.java @@ -9,7 +9,7 @@ */ public final class SecurityPoliciesListByProfileSamples { /* - * x-ms-original-file: 2025-09-01-preview/SecurityPolicies_ListByProfile.json + * x-ms-original-file: 2026-07-01/SecurityPolicies_ListByProfile.json */ /** * Sample code: SecurityPolicies_ListByProfile. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesPatchSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesPatchSamples.java index e176a2a704aa..6476a48c6d33 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesPatchSamples.java +++ b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/SecurityPoliciesPatchSamples.java @@ -16,7 +16,7 @@ */ public final class SecurityPoliciesPatchSamples { /* - * x-ms-original-file: 2025-09-01-preview/SecurityPolicies_Patch.json + * x-ms-original-file: 2026-07-01/SecurityPolicies_Patch.json */ /** * Sample code: SecurityPolicies_Patch. diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsCreateOrUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsCreateOrUpdateSamples.java deleted file mode 100644 index 7c1ac100cb6b..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsCreateOrUpdateSamples.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.generated; - -import com.azure.resourcemanager.cdn.fluent.models.WebAgentInner; -import com.azure.resourcemanager.cdn.models.AgentPath; -import com.azure.resourcemanager.cdn.models.AgentPathType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for WebAgents CreateOrUpdate. - */ -public final class WebAgentsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2025-09-01-preview/WebAgentCreateOrUpdate.json - */ - /** - * Sample code: Create or Update Web Agent. - * - * @param manager Entry point to CdnManager. - */ - public static void createOrUpdateWebAgent(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getWebAgents() - .createOrUpdate("RG", "myWebAgent1", new WebAgentInner().withLocation("WestUs") - .withTags(mapOf("key1", "fakeTokenPlaceholder")) - .withDescription("Primary web agent for content processing") - .withSystemPrompt( - "You are a helpful AI assistant for customer support. Please provide accurate and friendly responses.") - .withPaths(Arrays.asList(new AgentPath().withType(AgentPathType.CHAT).withPath("/chat"), - new AgentPath().withType(AgentPathType.MCP_SERVER).withPath("/mcp"))), - 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/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsDeleteSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsDeleteSamples.java deleted file mode 100644 index 3d43564e155a..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsDeleteSamples.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.cdn.generated; - -/** - * Samples for WebAgents Delete. - */ -public final class WebAgentsDeleteSamples { - /* - * x-ms-original-file: 2025-09-01-preview/WebAgentDelete.json - */ - /** - * Sample code: Delete Web Agent. - * - * @param manager Entry point to CdnManager. - */ - public static void deleteWebAgent(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient().getWebAgents().delete("RG", "myWebAgent1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsGetByResourceGroupSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsGetByResourceGroupSamples.java deleted file mode 100644 index bbad10386561..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsGetByResourceGroupSamples.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.cdn.generated; - -/** - * Samples for WebAgents GetByResourceGroup. - */ -public final class WebAgentsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2025-09-01-preview/WebAgentGet.json - */ - /** - * Sample code: Get Web Agent. - * - * @param manager Entry point to CdnManager. - */ - public static void getWebAgent(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getWebAgents() - .getByResourceGroupWithResponse("RG", "myWebAgent1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsListByResourceGroupSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsListByResourceGroupSamples.java deleted file mode 100644 index 4202f964d571..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsListByResourceGroupSamples.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.cdn.generated; - -/** - * Samples for WebAgents ListByResourceGroup. - */ -public final class WebAgentsListByResourceGroupSamples { - /* - * x-ms-original-file: 2025-09-01-preview/WebAgentsListByResourceGroup.json - */ - /** - * Sample code: List Web Agents in a Resource Group. - * - * @param manager Entry point to CdnManager. - */ - public static void listWebAgentsInAResourceGroup(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient().getWebAgents().listByResourceGroup("RG", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsListSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsListSamples.java deleted file mode 100644 index 4df9767469a1..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsListSamples.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.cdn.generated; - -/** - * Samples for WebAgents List. - */ -public final class WebAgentsListSamples { - /* - * x-ms-original-file: 2025-09-01-preview/WebAgentsListBySubscription.json - */ - /** - * Sample code: List Web Agents in a Subscription. - * - * @param manager Entry point to CdnManager. - */ - public static void listWebAgentsInASubscription(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient().getWebAgents().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsUpdateSamples.java b/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsUpdateSamples.java deleted file mode 100644 index cf02d8aae068..000000000000 --- a/sdk/cdn/azure-resourcemanager-cdn/src/samples/java/com/azure/resourcemanager/cdn/generated/WebAgentsUpdateSamples.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cdn.generated; - -import com.azure.resourcemanager.cdn.models.AgentPath; -import com.azure.resourcemanager.cdn.models.AgentPathType; -import com.azure.resourcemanager.cdn.models.WebAgentUpdateParameters; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for WebAgents Update. - */ -public final class WebAgentsUpdateSamples { - /* - * x-ms-original-file: 2025-09-01-preview/WebAgentUpdate.json - */ - /** - * Sample code: Update Web Agent. - * - * @param manager Entry point to CdnManager. - */ - public static void updateWebAgent(com.azure.resourcemanager.cdn.CdnManager manager) { - manager.serviceClient() - .getWebAgents() - .update("RG", "myWebAgent1", new WebAgentUpdateParameters() - .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withDescription("Updated web agent description") - .withSystemPrompt( - "You are an expert AI assistant for advanced customer support. Provide detailed and helpful responses with examples when appropriate.") - .withPaths(Arrays.asList(new AgentPath().withType(AgentPathType.CHAT).withPath("/chat/v2"), - new AgentPath().withType(AgentPathType.MCP_SERVER).withPath("/mcp/v2"))), - 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/cdn/azure-resourcemanager-cdn/tsp-location.yaml b/sdk/cdn/azure-resourcemanager-cdn/tsp-location.yaml index 7e86fcd49c3f..c5502744914b 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/tsp-location.yaml +++ b/sdk/cdn/azure-resourcemanager-cdn/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/cdn/resource-manager/Microsoft.Cdn/Cdn -commit: 1616c604cc8cd27e33f9d834030d099570566ca1 +commit: 3341e9a7c51cfeb60ebd1cf2c4c77dfc960352b9 repo: Azure/azure-rest-api-specs additionalDirectories: From 7043a19f9f155f5f5023f717547160594cf8a3bd Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Fri, 21 Aug 2026 10:47:43 +0800 Subject: [PATCH 2/2] Update CHANGELOG.md --- .../azure-resourcemanager-cdn/CHANGELOG.md | 402 ------------------ 1 file changed, 402 deletions(-) diff --git a/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md b/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md index d12610e821b6..a5abb1d1851a 100644 --- a/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md +++ b/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md @@ -4,408 +4,6 @@ - Package api-version 2026-07-01. -### Breaking Changes - -#### `models.RuleListResult` was removed - -#### `models.UsagesListResult` was removed - -#### `models.SecurityPolicyListResult` was removed - -#### `models.OperationsListResult` was removed - -#### `models.RuleSetListResult` was removed - -#### `models.CdnWebApplicationFirewallPolicyList` was removed - -#### `models.ManagedRuleSetDefinitionList` was removed - -#### `models.AfdDomainListResult` was removed - -#### `models.ResourceUsageListResult` was removed - -#### `models.AfdEndpointListResult` was removed - -#### `models.RouteListResult` was removed - -#### `models.AfdOriginGroupListResult` was removed - -#### `models.OriginGroupListResult` was removed - -#### `models.EndpointListResult` was removed - -#### `models.ProfileListResult` was removed - -#### `models.EdgenodeResult` was removed - -#### `models.SecretListResult` was removed - -#### `models.OriginListResult` was removed - -#### `models.AfdOriginListResult` was removed - -#### `models.CustomDomainListResult` was removed - -#### `models.DeepCreatedCustomDomain` was modified - -* `DeepCreatedCustomDomain()` was changed to private access -* `withHostname(java.lang.String)` was removed -* `withValidationData(java.lang.String)` was removed -* `withName(java.lang.String)` was removed - -#### `models.RequestSchemeMatchConditionParameters` was modified - -* `withOperator(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.RequestUriMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.WafMetricsResponseSeriesItem` was modified - -* `WafMetricsResponseSeriesItem()` was changed to private access -* `withUnit(models.WafMetricsSeriesUnit)` was removed -* `withData(java.util.List)` was removed -* `withMetric(java.lang.String)` was removed -* `withGroups(java.util.List)` was removed - -#### `models.RankingsResponseTablesPropertiesItemsItem` was modified - -* `RankingsResponseTablesPropertiesItemsItem()` was changed to private access -* `withMetrics(java.util.List)` was removed -* `withName(java.lang.String)` was removed - -#### `models.EndpointResource` was modified - -* `EndpointResource()` was changed to private access -* `withId(java.lang.String)` was removed - -#### `models.KeyVaultCertificateSourceParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.CertificateSourceParametersType typeName()` - -#### `models.KeyVaultSigningKeyParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.KeyVaultSigningKeyParametersType typeName()` - -#### `models.MetricsResponseSeriesItem` was modified - -* `MetricsResponseSeriesItem()` was changed to private access -* `withGroups(java.util.List)` was removed -* `withData(java.util.List)` was removed -* `withUnit(models.MetricsSeriesUnit)` was removed -* `withMetric(java.lang.String)` was removed - -#### `models.IpAddressGroup` was modified - -* `IpAddressGroup()` was changed to private access -* `withIpv4Addresses(java.util.List)` was removed -* `withDeliveryRegion(java.lang.String)` was removed -* `withIpv6Addresses(java.util.List)` was removed - -#### `models.RequestMethodMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.RankingsResponseTablesItem` was modified - -* `RankingsResponseTablesItem()` was changed to private access -* `withRanking(java.lang.String)` was removed -* `withData(java.util.List)` was removed - -#### `models.RankingsResponseTablesPropertiesItemsMetricsItem` was modified - -* `RankingsResponseTablesPropertiesItemsMetricsItem()` was changed to private access -* `withMetric(java.lang.String)` was removed -* `withPercentage(java.lang.Float)` was removed -* `withValue(java.lang.Long)` was removed - -#### `models.UrlFileNameMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.RouteConfigurationOverrideActionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` - -#### `models.ContinentsResponseCountryOrRegionsItem` was modified - -* `ContinentsResponseCountryOrRegionsItem()` was changed to private access -* `withContinentId(java.lang.String)` was removed -* `withId(java.lang.String)` was removed - -#### `models.UrlRedirectActionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.SslProtocolMatchConditionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` - -#### `models.RequestHeaderMatchConditionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` - -#### `models.CacheKeyQueryStringActionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` - -#### `models.HttpVersionMatchConditionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` - -#### `models.MetricsResponseSeriesPropertiesItemsItem` was modified - -* `MetricsResponseSeriesPropertiesItemsItem()` was changed to private access -* `withName(java.lang.String)` was removed -* `withValue(java.lang.String)` was removed - -#### `models.UsageName` was modified - -* `UsageName()` was changed to private access -* `withValue(java.lang.String)` was removed -* `withLocalizedValue(java.lang.String)` was removed - -#### `models.PolicySettingsDefaultCustomBlockResponseStatusCode` was modified - -* `PolicySettingsDefaultCustomBlockResponseStatusCode()` was removed -* `fromInt(int)` was removed - -#### `models.ResourcesResponseCustomDomainsItem` was modified - -* `ResourcesResponseCustomDomainsItem()` was changed to private access -* `withEndpointId(java.lang.String)` was removed -* `withId(java.lang.String)` was removed -* `withName(java.lang.String)` was removed -* `withHistory(java.lang.Boolean)` was removed - -#### `models.CookiesMatchConditionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` - -#### `models.MigrationErrorType` was modified - -* `MigrationErrorType()` was changed to private access - -#### `models.IsDeviceMatchConditionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` - -#### `models.ManagedRuleGroupDefinition` was modified - -* `ManagedRuleGroupDefinition()` was changed to private access - -#### `models.UrlPathMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.HostnameMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.ResourcesResponseEndpointsItem` was modified - -* `ResourcesResponseEndpointsItem()` was changed to private access -* `withHistory(java.lang.Boolean)` was removed -* `withName(java.lang.String)` was removed -* `withId(java.lang.String)` was removed -* `withCustomDomains(java.util.List)` was removed - -#### `models.MetricsResponseSeriesItemData` was modified - -* `MetricsResponseSeriesItemData()` was changed to private access -* `withDateTime(java.time.OffsetDateTime)` was removed -* `withValue(java.lang.Float)` was removed - -#### `models.QueryStringMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.WafMetricsResponseSeriesPropertiesItemsItem` was modified - -* `WafMetricsResponseSeriesPropertiesItemsItem()` was changed to private access -* `withValue(java.lang.String)` was removed -* `withName(java.lang.String)` was removed - -#### `models.ContinentsResponseContinentsItem` was modified - -* `ContinentsResponseContinentsItem()` was changed to private access -* `withId(java.lang.String)` was removed - -#### `models.HeaderActionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` - -#### `models.SocketAddrMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.LogSpecification` was modified - -* `LogSpecification()` was changed to private access -* `withDisplayName(java.lang.String)` was removed -* `withName(java.lang.String)` was removed -* `withLogFilterPattern(java.lang.String)` was removed -* `withBlobDuration(java.lang.String)` was removed - -#### `models.RemoteAddressMatchConditionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` - -#### `models.WafMetricsResponseSeriesItemData` was modified - -* `WafMetricsResponseSeriesItemData()` was changed to private access -* `withDateTime(java.time.OffsetDateTime)` was removed -* `withValue(java.lang.Float)` was removed - -#### `models.MetricAvailability` was modified - -* `MetricAvailability()` was changed to private access -* `withBlobDuration(java.lang.String)` was removed -* `withTimeGrain(java.lang.String)` was removed - -#### `models.WafRankingsResponseDataItemMetric` was modified - -* `WafRankingsResponseDataItemMetric()` was changed to private access -* `withValue(java.lang.Long)` was removed -* `withMetric(java.lang.String)` was removed -* `withPercentage(java.lang.Double)` was removed - -#### `models.DimensionProperties` was modified - -* `DimensionProperties()` was changed to private access -* `withInternalName(java.lang.String)` was removed -* `withName(java.lang.String)` was removed -* `withDisplayName(java.lang.String)` was removed - -#### `models.ServiceSpecification` was modified - -* `ServiceSpecification()` was changed to private access -* `withMetricSpecifications(java.util.List)` was removed -* `withLogSpecifications(java.util.List)` was removed - -#### `models.WafRankingsResponseDataItem` was modified - -* `WafRankingsResponseDataItem()` was changed to private access -* `withGroupValues(java.util.List)` was removed -* `withMetrics(java.util.List)` was removed - -#### `models.CustomerCertificateParameters` was modified - -* `withSubjectAlternativeNames(java.util.List)` was removed - -#### `models.ClientPortMatchConditionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` - -#### `models.ServerPortMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.DomainValidationProperties` was modified - -* `DomainValidationProperties()` was changed to private access - -#### `models.OperationDisplay` was modified - -* `OperationDisplay()` was changed to private access - -#### `models.UrlFileExtensionMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.MetricSpecification` was modified - -* `MetricSpecification()` was changed to private access -* `withUnit(java.lang.String)` was removed -* `withDimensions(java.util.List)` was removed -* `withDisplayDescription(java.lang.String)` was removed -* `withAvailabilities(java.util.List)` was removed -* `withAggregationType(java.lang.String)` was removed -* `withName(java.lang.String)` was removed -* `withFillGapWithZero(java.lang.Boolean)` was removed -* `withMetricFilterPattern(java.lang.String)` was removed -* `withSupportedTimeGrainTypes(java.util.List)` was removed -* `withIsInternal(java.lang.Boolean)` was removed -* `withDisplayName(java.lang.String)` was removed - -#### `models.CacheExpirationActionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.UrlRewriteActionParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` - -#### `models.OriginGroupOverrideActionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.UrlSigningActionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleActionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.ManagedRuleDefinition` was modified - -* `ManagedRuleDefinition()` was changed to private access - -#### `models.ResourcesResponseEndpointsPropertiesItemsItem` was modified - -* `ResourcesResponseEndpointsPropertiesItemsItem()` was changed to private access -* `withEndpointId(java.lang.String)` was removed -* `withName(java.lang.String)` was removed -* `withId(java.lang.String)` was removed -* `withHistory(java.lang.Boolean)` was removed - -#### `models.RequestBodyMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.PostArgsMatchConditionParameters` was modified - -* `java.lang.String typeName()` -> `models.DeliveryRuleConditionParametersType typeName()` -* `withTypeName(java.lang.String)` was removed - -#### `models.CdnCertificateSourceParameters` was modified - -* `withTypeName(java.lang.String)` was removed -* `java.lang.String typeName()` -> `models.CertificateSourceParametersType typeName()` - -#### `models.CidrIpAddress` was modified - -* `CidrIpAddress()` was changed to private access -* `withPrefixLength(java.lang.Integer)` was removed -* `withBaseIpAddress(java.lang.String)` was removed - ### Features Added * `models.EnforceMtlsEnabledState` was added