diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index bed19a288235..3993e48ebfcb 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -280,7 +280,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.1;2.57.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-authorization;2.53.12;2.54.0-beta.2
-com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.10;2.54.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.10;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.13;2.54.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.55.4;2.56.0-beta.3
diff --git a/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md b/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md
index 52a35eb383bf..c1db404144af 100644
--- a/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md
+++ b/sdk/cdn/azure-resourcemanager-cdn/CHANGELOG.md
@@ -1,16 +1,266 @@
# Release History
-## 2.54.0-beta.1 (Unreleased)
+## 2.54.0 (2026-08-20)
+
+- Package api-version 2026-07-01.
### 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.10 (2026-08-18)
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 98a81ba83d17..6a1f70098787 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.