diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index e8d11e20bb275..9828d99ce6eee 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -322,7 +322,7 @@ com.azure.resourcemanager:azure-resourcemanager-synapse;1.0.0-beta.8;1.0.0-beta.
com.azure.resourcemanager:azure-resourcemanager-resourcehealth;1.0.0;1.1.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-databricks;1.0.0-beta.5;1.0.0-beta.6
com.azure.resourcemanager:azure-resourcemanager-databoxedge;1.0.0-beta.3;1.0.0-beta.4
-com.azure.resourcemanager:azure-resourcemanager-frontdoor;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-frontdoor;1.0.0;1.1.0
com.azure.resourcemanager:azure-resourcemanager-mixedreality;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-automation;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-resourcemover;1.2.0;1.3.0-beta.1
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/CHANGELOG.md b/sdk/frontdoor/azure-resourcemanager-frontdoor/CHANGELOG.md
index 7fda95e2e1e6b..8caa03fa40538 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/CHANGELOG.md
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/CHANGELOG.md
@@ -1,14 +1,21 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.1.0 (2024-12-19)
-### Features Added
+- Azure Resource Manager FrontDoor client library for Java. This package contains Microsoft Azure SDK for FrontDoor Management SDK. FrontDoor Client. Package tag package-2024-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### Serialization/Deserialization change
+
+- `Jackson` is removed from dependency and no longer supported.
+
+##### Migration Guide
-### Other Changes
+If you are using `Jackson`/`ObjectMapper` for manual serialization/deserialization, configure your `ObjectMapper` for backward compatibility:
+```java
+objectMapper.registerModule(com.azure.core.serializer.json.jackson.JacksonJsonProvider.getJsonSerializableDatabindModule());
+```
## 1.0.0 (2024-04-15)
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/README.md b/sdk/frontdoor/azure-resourcemanager-frontdoor/README.md
index 89f6b25b44ead..4bebdcabd5436 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/README.md
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-frontdoor
- 1.0.0
+ 1.1.0
```
[//]: # ({x-version-update-end})
@@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
### Authentication
-By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
+Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
-- `AZURE_CLIENT_ID` for Azure client ID.
-- `AZURE_TENANT_ID` for Azure tenant ID.
-- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-
-With above configuration, `azure` client can be authenticated using the following code:
+Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -93,56 +89,50 @@ String loadBalancingSettingsId = getResourceId("loadBalancingSettings", loadBala
String healthProbeSettingsId = getResourceId("healthProbeSettings", healthProbeName);
String backendPoolsId = getResourceId("backendPools", backendPoolName);
-FrontDoor frontDoor = manager.frontDoors().define(fdName)
+FrontDoor frontDoor = manager.frontDoors()
+ .define(fdName)
.withRegion("global")
.withExistingResourceGroup(resourceGroupName)
- .withFrontendEndpoints(Collections.singletonList(
- new FrontendEndpointInner()
- .withName(frontendName)
- .withHostname(fdName + ".azurefd.net")
- .withSessionAffinityEnabledState(SessionAffinityEnabledState.DISABLED)
- ))
- .withBackendPools(Collections.singletonList(
- new BackendPool().withName(backendPoolName).withBackends(Collections.singletonList(
- new Backend()
- .withAddress(backendAddress)
- .withEnabledState(BackendEnabledState.ENABLED)
- .withBackendHostHeader(backendAddress)
- .withHttpPort(80)
- .withHttpsPort(443)
- .withPriority(1)
- .withWeight(50)
- ))
- .withLoadBalancingSettings(new SubResource().withId(loadBalancingSettingsId))
- .withHealthProbeSettings(new SubResource().withId(healthProbeSettingsId))
- ))
- .withLoadBalancingSettings(Collections.singletonList(
- new LoadBalancingSettingsModel()
- .withName(loadBalancingName)
+ .withFrontendEndpoints(Collections.singletonList(new FrontendEndpointInner().withName(frontendName)
+ .withHostname(fdName + ".azurefd.net")
+ .withSessionAffinityEnabledState(SessionAffinityEnabledState.DISABLED)))
+ .withBackendPools(Collections.singletonList(new BackendPool().withName(backendPoolName)
+ .withBackends(Collections.singletonList(new Backend().withAddress(backendAddress)
+ .withEnabledState(BackendEnabledState.ENABLED)
+ .withBackendHostHeader(backendAddress)
+ .withHttpPort(80)
+ .withHttpsPort(443)
+ .withPriority(1)
+ .withWeight(50)))
+ .withLoadBalancingSettings(new SubResource().withId(loadBalancingSettingsId))
+ .withHealthProbeSettings(new SubResource().withId(healthProbeSettingsId))))
+ .withLoadBalancingSettings(
+ Collections.singletonList(new LoadBalancingSettingsModel().withName(loadBalancingName)
.withSampleSize(4)
.withSuccessfulSamplesRequired(2)
- .withAdditionalLatencyMilliseconds(0)
- ))
- .withHealthProbeSettings(Collections.singletonList(
- new HealthProbeSettingsModel()
- .withName(healthProbeName)
+ .withAdditionalLatencyMilliseconds(0)))
+ .withHealthProbeSettings(
+ Collections.singletonList(new HealthProbeSettingsModel().withName(healthProbeName)
.withEnabledState(HealthProbeEnabled.ENABLED)
.withPath("/")
.withProtocol(FrontDoorProtocol.HTTPS)
.withHealthProbeMethod(FrontDoorHealthProbeMethod.HEAD)
- .withIntervalInSeconds(30)
- ))
- .withRoutingRules(Collections.singletonList(
- new RoutingRule()
- .withName(routingRuleName)
- .withEnabledState(RoutingRuleEnabledState.ENABLED)
- .withFrontendEndpoints(Collections.singletonList(new SubResource().withId(frontendEndpointsId)))
- .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTP, FrontDoorProtocol.HTTPS))
- .withPatternsToMatch(Collections.singletonList("/*"))
- .withRouteConfiguration(new ForwardingConfiguration()
- .withForwardingProtocol(FrontDoorForwardingProtocol.HTTPS_ONLY)
- .withBackendPool(new SubResource().withId(backendPoolsId)))
- ))
+ .withIntervalInSeconds(30)))
+ .withRoutingRules(Collections.singletonList(new RoutingRule().withName(routingRuleName)
+ .withEnabledState(RoutingRuleEnabledState.ENABLED)
+ .withFrontendEndpoints(Collections.singletonList(new SubResource().withId(frontendEndpointsId)))
+ .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTP, FrontDoorProtocol.HTTPS))
+ .withPatternsToMatch(Collections.singletonList("/*"))
+ .withRouteConfiguration(
+ new ForwardingConfiguration().withForwardingProtocol(FrontDoorForwardingProtocol.HTTPS_ONLY)
+ .withBackendPool(new SubResource().withId(backendPoolsId)))))
+ .create();
+```
+```java
+policy = frontDoorManager.policies()
+ .define(policyName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
.create();
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/frontdoor/azure-resourcemanager-frontdoor/SAMPLE.md)
@@ -168,6 +158,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/SAMPLE.md b/sdk/frontdoor/azure-resourcemanager-frontdoor/SAMPLE.md
index b62e313b8a0d9..74de4d770075b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/SAMPLE.md
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/SAMPLE.md
@@ -85,7 +85,8 @@ import java.util.Arrays;
*/
public final class EndpointsPurgeContentSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorPurgeContent.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorPurgeContent.json
*/
/**
* Sample code: Purge content from Front Door.
@@ -112,7 +113,8 @@ import com.azure.resourcemanager.frontdoor.models.State;
*/
public final class ExperimentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentCreateExperiment.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentCreateExperiment.json
*/
/**
* Sample code: Creates an Experiment.
@@ -141,7 +143,8 @@ public final class ExperimentsCreateOrUpdateSamples {
*/
public final class ExperimentsDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentDeleteExperiment.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentDeleteExperiment.json
*/
/**
* Sample code: Deletes an Experiment.
@@ -162,7 +165,8 @@ public final class ExperimentsDeleteSamples {
*/
public final class ExperimentsGetSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetExperiment.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentGetExperiment.json
*/
/**
* Sample code: Gets an Experiment by ExperimentName.
@@ -184,7 +188,8 @@ public final class ExperimentsGetSamples {
*/
public final class ExperimentsListByProfileSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentListExperiments.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentListExperiments.json
*/
/**
* Sample code: Gets a list of Experiments.
@@ -208,7 +213,8 @@ import com.azure.resourcemanager.frontdoor.models.State;
*/
public final class ExperimentsUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentUpdateExperiment.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentUpdateExperiment.json
*/
/**
* Sample code: Updates an Experiment.
@@ -235,7 +241,8 @@ import com.azure.resourcemanager.frontdoor.models.ResourceType;
*/
public final class FrontDoorNameAvailabilityCheckSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/CheckFrontdoorNameAvailability.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * CheckFrontdoorNameAvailability.json
*/
/**
* Sample code: CheckNameAvailability.
@@ -261,7 +268,8 @@ import com.azure.resourcemanager.frontdoor.models.ResourceType;
*/
public final class FrontDoorNameAvailabilityWithSubscriptionCheckSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/CheckFrontdoorNameAvailabilityWithSubscription.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * CheckFrontdoorNameAvailabilityWithSubscription.json
*/
/**
* Sample code: CheckNameAvailabilityWithSubscription.
@@ -309,7 +317,8 @@ import java.util.Map;
*/
public final class FrontDoorsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorCreate.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorCreate.json
*/
/**
* Sample code: Create or update specific Front Door.
@@ -411,7 +420,8 @@ public final class FrontDoorsCreateOrUpdateSamples {
*/
public final class FrontDoorsDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDelete.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDelete.json
*/
/**
* Sample code: Delete Front Door.
@@ -432,7 +442,8 @@ public final class FrontDoorsDeleteSamples {
*/
public final class FrontDoorsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorGet.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorGet.json
*/
/**
* Sample code: Get Front Door.
@@ -453,7 +464,8 @@ public final class FrontDoorsGetByResourceGroupSamples {
*/
public final class FrontDoorsListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorListAll.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorListAll.json
*/
/**
* Sample code: List all Front Doors.
@@ -474,7 +486,8 @@ public final class FrontDoorsListSamples {
*/
public final class FrontDoorsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorList.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorList.json
*/
/**
* Sample code: List Front Doors in a Resource Group.
@@ -497,7 +510,8 @@ import com.azure.resourcemanager.frontdoor.models.ValidateCustomDomainInput;
*/
public final class FrontDoorsValidateCustomDomainSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorValidateCustomDomain.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * FrontdoorValidateCustomDomain.json
*/
/**
* Sample code: FrontDoor_ValidateCustomDomain.
@@ -520,7 +534,8 @@ public final class FrontDoorsValidateCustomDomainSamples {
*/
public final class FrontendEndpointsDisableHttpsSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDisableHttps.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDisableHttps.json
*/
/**
* Sample code: FrontendEndpoints_DisableHttps.
@@ -548,7 +563,8 @@ import com.azure.resourcemanager.frontdoor.models.MinimumTlsVersion;
*/
public final class FrontendEndpointsEnableHttpsSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorEnableHttps.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorEnableHttps.json
*/
/**
* Sample code: FrontendEndpoints_EnableHttps.
@@ -578,7 +594,8 @@ public final class FrontendEndpointsEnableHttpsSamples {
*/
public final class FrontendEndpointsGetSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorFrontendEndpointGet.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * FrontdoorFrontendEndpointGet.json
*/
/**
* Sample code: Get Frontend Endpoint.
@@ -600,7 +617,8 @@ public final class FrontendEndpointsGetSamples {
*/
public final class FrontendEndpointsListByFrontDoorSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorFrontendEndpointList.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * FrontdoorFrontendEndpointList.json
*/
/**
* Sample code: List Frontend endpoints in a Front Door.
@@ -621,7 +639,8 @@ public final class FrontendEndpointsListByFrontDoorSamples {
*/
public final class ManagedRuleSetsListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListManagedRuleSets.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListManagedRuleSets.json
*/
/**
* Sample code: List Policies ManagedRuleSets in a Resource Group.
@@ -645,7 +664,8 @@ import com.azure.resourcemanager.frontdoor.models.State;
*/
public final class NetworkExperimentProfilesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentCreateProfile.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentCreateProfile.json
*/
/**
* Sample code: Creates an NetworkExperiment Profile in a Resource Group.
@@ -672,7 +692,8 @@ public final class NetworkExperimentProfilesCreateOrUpdateSamples {
*/
public final class NetworkExperimentProfilesDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentDeleteProfile.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentDeleteProfile.json
*/
/**
* Sample code: Deletes an NetworkExperiment Profile by ProfileName.
@@ -694,7 +715,9 @@ public final class NetworkExperimentProfilesDeleteSamples {
*/
public final class NetworkExperimentProfilesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetProfile.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetProfile
+ * .json
*/
/**
* Sample code: Gets an NetworkExperiment Profile by Profile Id.
@@ -717,7 +740,8 @@ public final class NetworkExperimentProfilesGetByResourceGroupSamples {
*/
public final class NetworkExperimentProfilesListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentListProfiles.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentListProfiles.json
*/
/**
* Sample code: List NetworkExperiment Profiles in a Resource Group.
@@ -739,7 +763,8 @@ public final class NetworkExperimentProfilesListSamples {
*/
public final class NetworkExperimentProfilesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentListProfiles.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentListProfiles.json
*/
/**
* Sample code: List NetworkExperiment Profiles in a Resource Group.
@@ -766,7 +791,8 @@ import java.util.Map;
*/
public final class NetworkExperimentProfilesUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentUpdateProfile.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentUpdateProfile.json
*/
/**
* Sample code: Updates an Experiment.
@@ -835,7 +861,9 @@ import java.util.Arrays;
*/
public final class PoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyCreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyCreateOrUpdate.
+ * json
*/
/**
* Sample code: Creates specific policy.
@@ -927,7 +955,8 @@ public final class PoliciesCreateOrUpdateSamples {
*/
public final class PoliciesDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyDelete.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyDelete.json
*/
/**
* Sample code: Delete protection policy.
@@ -948,7 +977,8 @@ public final class PoliciesDeleteSamples {
*/
public final class PoliciesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyGet.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyGet.json
*/
/**
* Sample code: Get Policy.
@@ -969,7 +999,8 @@ public final class PoliciesGetByResourceGroupSamples {
*/
public final class PoliciesListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListPoliciesUnderSubscription.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/
+ * WafListPoliciesUnderSubscription.json
*/
/**
* Sample code: Get all Policies in a Resource Group.
@@ -990,7 +1021,8 @@ public final class PoliciesListSamples {
*/
public final class PoliciesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListPolicies.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListPolicies.json
*/
/**
* Sample code: Get all Policies in a Resource Group.
@@ -1015,7 +1047,8 @@ import java.util.Map;
*/
public final class PoliciesUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyPatch.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyPatch.json
*/
/**
* Sample code: Patches specific policy.
@@ -1051,7 +1084,8 @@ public final class PoliciesUpdateSamples {
*/
public final class PreconfiguredEndpointsListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetPreconfiguredEndpoints.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentGetPreconfiguredEndpoints.json
*/
/**
* Sample code: Gets a list of Preconfigured Endpoints.
@@ -1074,7 +1108,8 @@ import com.azure.resourcemanager.frontdoor.models.LatencyScorecardAggregationInt
*/
public final class ReportsGetLatencyScorecardsSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetLatencyScorecard.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentGetLatencyScorecard.json
*/
/**
* Sample code: Gets a Latency Scorecard for a given Experiment.
@@ -1102,7 +1137,8 @@ import java.time.OffsetDateTime;
*/
public final class ReportsGetTimeseriesSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetTimeseries.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentGetTimeseries.json
*/
/**
* Sample code: Gets a Timeseries for a given Experiment.
@@ -1149,7 +1185,9 @@ import java.util.Arrays;
*/
public final class RulesEnginesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineCreate.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineCreate.
+ * json
*/
/**
* Sample code: Create or update a specific Rules Engine Configuration.
@@ -1218,7 +1256,9 @@ public final class RulesEnginesCreateOrUpdateSamples {
*/
public final class RulesEnginesDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineDelete.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineDelete.
+ * json
*/
/**
* Sample code: Delete Rules Engine Configuration.
@@ -1239,7 +1279,9 @@ public final class RulesEnginesDeleteSamples {
*/
public final class RulesEnginesGetSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineGet.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineGet.
+ * json
*/
/**
* Sample code: Get Rules Engine Configuration.
@@ -1260,7 +1302,9 @@ public final class RulesEnginesGetSamples {
*/
public final class RulesEnginesListByFrontDoorSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineList.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineList.
+ * json
*/
/**
* Sample code: List Rules Engine Configurations in a Front Door.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/pom.xml b/sdk/frontdoor/azure-resourcemanager-frontdoor/pom.xml
index ee90d8baf2a03..95c6f23456d47 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/pom.xml
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/pom.xml
@@ -14,7 +14,7 @@
com.azure.resourcemanager
azure-resourcemanager-frontdoor
- 1.1.0-beta.1
+ 1.1.0
jar
Microsoft Azure SDK for FrontDoor Management
@@ -45,6 +45,7 @@
UTF-8
0
0
+ false
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/FrontDoorManager.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/FrontDoorManager.java
index 62c7b7c4557fb..18adbada3126d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/FrontDoorManager.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/FrontDoorManager.java
@@ -11,15 +11,15 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -249,7 +249,7 @@ public FrontDoorManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.frontdoor")
.append("/")
- .append("1.0.0");
+ .append("1.1.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -282,7 +282,7 @@ public FrontDoorManager authenticate(TokenCredential credential, AzureProfile pr
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/BackendPoolProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/BackendPoolProperties.java
index 0dabc9e530dd3..fec8e5d458c76 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/BackendPoolProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/BackendPoolProperties.java
@@ -6,10 +6,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.Backend;
import com.azure.resourcemanager.frontdoor.models.BackendPoolUpdateParameters;
import com.azure.resourcemanager.frontdoor.models.FrontDoorResourceState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -18,11 +21,8 @@
@Fluent
public final class BackendPoolProperties extends BackendPoolUpdateParameters {
/*
- * Resource status of the Front Door or Front Door SubResource.
- *
* Resource status.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private FrontDoorResourceState resourceState;
/**
@@ -32,9 +32,7 @@ public BackendPoolProperties() {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -76,6 +74,54 @@ public BackendPoolProperties withHealthProbeSettings(SubResource healthProbeSett
*/
@Override
public void validate() {
- super.validate();
+ if (backends() != null) {
+ backends().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("backends", backends(), (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("loadBalancingSettings", loadBalancingSettings());
+ jsonWriter.writeJsonField("healthProbeSettings", healthProbeSettings());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BackendPoolProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BackendPoolProperties 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 BackendPoolProperties.
+ */
+ public static BackendPoolProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BackendPoolProperties deserializedBackendPoolProperties = new BackendPoolProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("backends".equals(fieldName)) {
+ List backends = reader.readArray(reader1 -> Backend.fromJson(reader1));
+ deserializedBackendPoolProperties.withBackends(backends);
+ } else if ("loadBalancingSettings".equals(fieldName)) {
+ deserializedBackendPoolProperties.withLoadBalancingSettings(SubResource.fromJson(reader));
+ } else if ("healthProbeSettings".equals(fieldName)) {
+ deserializedBackendPoolProperties.withHealthProbeSettings(SubResource.fromJson(reader));
+ } else if ("resourceState".equals(fieldName)) {
+ deserializedBackendPoolProperties.resourceState
+ = FrontDoorResourceState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBackendPoolProperties;
+ });
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/CheckNameAvailabilityOutputInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/CheckNameAvailabilityOutputInner.java
index 730c3bc9ef4f0..3edef3a84f6da 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/CheckNameAvailabilityOutputInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/CheckNameAvailabilityOutputInner.java
@@ -5,30 +5,31 @@
package com.azure.resourcemanager.frontdoor.fluent.models;
import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.Availability;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Output of check name availability API.
*/
@Immutable
-public final class CheckNameAvailabilityOutputInner {
+public final class CheckNameAvailabilityOutputInner implements JsonSerializable {
/*
* Indicates whether the name is available.
*/
- @JsonProperty(value = "nameAvailability", access = JsonProperty.Access.WRITE_ONLY)
private Availability nameAvailability;
/*
* The reason why the name is not available.
*/
- @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
private String reason;
/*
* The detailed error message describing why the name is not available.
*/
- @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;
/**
@@ -71,4 +72,45 @@ public String message() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CheckNameAvailabilityOutputInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CheckNameAvailabilityOutputInner 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 CheckNameAvailabilityOutputInner.
+ */
+ public static CheckNameAvailabilityOutputInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CheckNameAvailabilityOutputInner deserializedCheckNameAvailabilityOutputInner
+ = new CheckNameAvailabilityOutputInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("nameAvailability".equals(fieldName)) {
+ deserializedCheckNameAvailabilityOutputInner.nameAvailability
+ = Availability.fromString(reader.getString());
+ } else if ("reason".equals(fieldName)) {
+ deserializedCheckNameAvailabilityOutputInner.reason = reader.getString();
+ } else if ("message".equals(fieldName)) {
+ deserializedCheckNameAvailabilityOutputInner.message = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCheckNameAvailabilityOutputInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentInner.java
index b7df5ca7b7dfb..a0352975532cc 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentInner.java
@@ -6,10 +6,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.Endpoint;
import com.azure.resourcemanager.frontdoor.models.NetworkExperimentResourceState;
import com.azure.resourcemanager.frontdoor.models.State;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
@@ -20,9 +23,23 @@ public final class ExperimentInner extends Resource {
/*
* The properties of an Experiment
*/
- @JsonProperty(value = "properties")
private ExperimentProperties innerProperties;
+ /*
+ * 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 ExperimentInner class.
*/
@@ -38,6 +55,36 @@ private ExperimentProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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}
*/
@@ -185,4 +232,54 @@ public void validate() {
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 ExperimentInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExperimentInner 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 ExperimentInner.
+ */
+ public static ExperimentInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExperimentInner deserializedExperimentInner = new ExperimentInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedExperimentInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedExperimentInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedExperimentInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedExperimentInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedExperimentInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedExperimentInner.innerProperties = ExperimentProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExperimentInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentProperties.java
index 908de9a109326..45a9d8585a2fe 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentProperties.java
@@ -5,56 +5,53 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.Endpoint;
import com.azure.resourcemanager.frontdoor.models.NetworkExperimentResourceState;
import com.azure.resourcemanager.frontdoor.models.State;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Defines the properties of an experiment.
*/
@Fluent
-public final class ExperimentProperties {
+public final class ExperimentProperties implements JsonSerializable {
/*
* The description of the details or intents of the Experiment
*/
- @JsonProperty(value = "description")
private String description;
/*
* The endpoint A of an experiment
*/
- @JsonProperty(value = "endpointA")
private Endpoint endpointA;
/*
* The endpoint B of an experiment
*/
- @JsonProperty(value = "endpointB")
private Endpoint endpointB;
/*
* The state of the Experiment
*/
- @JsonProperty(value = "enabledState")
private State enabledState;
/*
* Resource status.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private NetworkExperimentResourceState resourceState;
/*
* The description of Experiment status from the server side
*/
- @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
private String status;
/*
* The uri to the Script used in the Experiment
*/
- @JsonProperty(value = "scriptFileUri", access = JsonProperty.Access.WRITE_ONLY)
private String scriptFileUri;
/**
@@ -183,4 +180,56 @@ public void validate() {
endpointB().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeJsonField("endpointA", this.endpointA);
+ jsonWriter.writeJsonField("endpointB", this.endpointB);
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ExperimentProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExperimentProperties 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 ExperimentProperties.
+ */
+ public static ExperimentProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExperimentProperties deserializedExperimentProperties = new ExperimentProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedExperimentProperties.description = reader.getString();
+ } else if ("endpointA".equals(fieldName)) {
+ deserializedExperimentProperties.endpointA = Endpoint.fromJson(reader);
+ } else if ("endpointB".equals(fieldName)) {
+ deserializedExperimentProperties.endpointB = Endpoint.fromJson(reader);
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedExperimentProperties.enabledState = State.fromString(reader.getString());
+ } else if ("resourceState".equals(fieldName)) {
+ deserializedExperimentProperties.resourceState
+ = NetworkExperimentResourceState.fromString(reader.getString());
+ } else if ("status".equals(fieldName)) {
+ deserializedExperimentProperties.status = reader.getString();
+ } else if ("scriptFileUri".equals(fieldName)) {
+ deserializedExperimentProperties.scriptFileUri = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExperimentProperties;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentUpdateProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentUpdateProperties.java
index 60493a2e005d6..2cc48f9055ca3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentUpdateProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ExperimentUpdateProperties.java
@@ -5,24 +5,26 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.State;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Defines the properties of an experiment.
*/
@Fluent
-public final class ExperimentUpdateProperties {
+public final class ExperimentUpdateProperties implements JsonSerializable {
/*
* The description of the intent or details of the Experiment
*/
- @JsonProperty(value = "description")
private String description;
/*
* The state of the Experiment
*/
- @JsonProperty(value = "enabledState")
private State enabledState;
/**
@@ -78,4 +80,43 @@ public ExperimentUpdateProperties withEnabledState(State enabledState) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ExperimentUpdateProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExperimentUpdateProperties 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 ExperimentUpdateProperties.
+ */
+ public static ExperimentUpdateProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExperimentUpdateProperties deserializedExperimentUpdateProperties = new ExperimentUpdateProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedExperimentUpdateProperties.description = reader.getString();
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedExperimentUpdateProperties.enabledState = State.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExperimentUpdateProperties;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorCertificateSourceParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorCertificateSourceParameters.java
index 404bdb02ef522..3c3c7474db28e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorCertificateSourceParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorCertificateSourceParameters.java
@@ -5,18 +5,22 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.FrontDoorCertificateType;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Parameters required for enabling SSL with Front Door-managed certificates.
*/
@Fluent
-public final class FrontDoorCertificateSourceParameters {
+public final class FrontDoorCertificateSourceParameters
+ implements JsonSerializable {
/*
* Defines the type of the certificate used for secure connections to a frontendEndpoint
*/
- @JsonProperty(value = "certificateType")
private FrontDoorCertificateType certificateType;
/**
@@ -54,4 +58,43 @@ public FrontDoorCertificateSourceParameters withCertificateType(FrontDoorCertifi
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("certificateType",
+ this.certificateType == null ? null : this.certificateType.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontDoorCertificateSourceParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontDoorCertificateSourceParameters 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 FrontDoorCertificateSourceParameters.
+ */
+ public static FrontDoorCertificateSourceParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontDoorCertificateSourceParameters deserializedFrontDoorCertificateSourceParameters
+ = new FrontDoorCertificateSourceParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("certificateType".equals(fieldName)) {
+ deserializedFrontDoorCertificateSourceParameters.certificateType
+ = FrontDoorCertificateType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontDoorCertificateSourceParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorInner.java
index 1d100f17596cc..3f4f0518f1400 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorInner.java
@@ -6,6 +6,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.BackendPool;
import com.azure.resourcemanager.frontdoor.models.BackendPoolsSettings;
import com.azure.resourcemanager.frontdoor.models.FrontDoorEnabledState;
@@ -13,7 +16,7 @@
import com.azure.resourcemanager.frontdoor.models.HealthProbeSettingsModel;
import com.azure.resourcemanager.frontdoor.models.LoadBalancingSettingsModel;
import com.azure.resourcemanager.frontdoor.models.RoutingRule;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -26,9 +29,23 @@ public final class FrontDoorInner extends Resource {
/*
* Properties of the Front Door Load Balancer
*/
- @JsonProperty(value = "properties")
private FrontDoorProperties innerProperties;
+ /*
+ * 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 FrontDoorInner class.
*/
@@ -44,6 +61,36 @@ private FrontDoorProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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}
*/
@@ -63,9 +110,7 @@ public FrontDoorInner withTags(Map tags) {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status of the Front Door.
+ * Get the resourceState property: Resource status of the Front Door.
*
* @return the resourceState value.
*/
@@ -314,4 +359,54 @@ public void validate() {
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 FrontDoorInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontDoorInner 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 FrontDoorInner.
+ */
+ public static FrontDoorInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontDoorInner deserializedFrontDoorInner = new FrontDoorInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedFrontDoorInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedFrontDoorInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedFrontDoorInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedFrontDoorInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedFrontDoorInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedFrontDoorInner.innerProperties = FrontDoorProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontDoorInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorProperties.java
index aef485e18aeba..8755ed752fa87 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontDoorProperties.java
@@ -5,6 +5,9 @@
package com.azure.resourcemanager.frontdoor.fluent.models;
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.frontdoor.models.BackendPool;
import com.azure.resourcemanager.frontdoor.models.BackendPoolsSettings;
import com.azure.resourcemanager.frontdoor.models.FrontDoorEnabledState;
@@ -13,8 +16,7 @@
import com.azure.resourcemanager.frontdoor.models.HealthProbeSettingsModel;
import com.azure.resourcemanager.frontdoor.models.LoadBalancingSettingsModel;
import com.azure.resourcemanager.frontdoor.models.RoutingRule;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -24,42 +26,33 @@
@Fluent
public final class FrontDoorProperties extends FrontDoorUpdateParameters {
/*
- * Resource status of the Front Door or Front Door SubResource.
- *
* Resource status of the Front Door.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private FrontDoorResourceState resourceState;
/*
* Provisioning state of the Front Door.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
/*
* The host that each frontendEndpoint must CNAME to.
*/
- @JsonProperty(value = "cname", access = JsonProperty.Access.WRITE_ONLY)
private String cname;
/*
* The Id of the frontdoor.
*/
- @JsonProperty(value = "frontdoorId", access = JsonProperty.Access.WRITE_ONLY)
private String frontdoorId;
/*
* Rules Engine Configurations available to routing rules.
*/
- @JsonProperty(value = "rulesEngines", access = JsonProperty.Access.WRITE_ONLY)
private List rulesEngines;
/*
* Key-Value pair representing additional properties for frontdoor.
*/
- @JsonProperty(value = "extendedProperties", access = JsonProperty.Access.WRITE_ONLY)
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map extendedProperties;
/**
@@ -69,9 +62,7 @@ public FrontDoorProperties() {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status of the Front Door.
+ * Get the resourceState property: Resource status of the Front Door.
*
* @return the resourceState value.
*/
@@ -203,9 +194,111 @@ public FrontDoorProperties withEnabledState(FrontDoorEnabledState enabledState)
*/
@Override
public void validate() {
- super.validate();
if (rulesEngines() != null) {
rulesEngines().forEach(e -> e.validate());
}
+ if (routingRules() != null) {
+ routingRules().forEach(e -> e.validate());
+ }
+ if (loadBalancingSettings() != null) {
+ loadBalancingSettings().forEach(e -> e.validate());
+ }
+ if (healthProbeSettings() != null) {
+ healthProbeSettings().forEach(e -> e.validate());
+ }
+ if (backendPools() != null) {
+ backendPools().forEach(e -> e.validate());
+ }
+ if (frontendEndpoints() != null) {
+ frontendEndpoints().forEach(e -> e.validate());
+ }
+ if (backendPoolsSettings() != null) {
+ backendPoolsSettings().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("friendlyName", friendlyName());
+ jsonWriter.writeArrayField("routingRules", routingRules(), (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("loadBalancingSettings", loadBalancingSettings(),
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("healthProbeSettings", healthProbeSettings(),
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("backendPools", backendPools(), (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("frontendEndpoints", frontendEndpoints(),
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("backendPoolsSettings", backendPoolsSettings());
+ jsonWriter.writeStringField("enabledState", enabledState() == null ? null : enabledState().toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontDoorProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontDoorProperties 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 FrontDoorProperties.
+ */
+ public static FrontDoorProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontDoorProperties deserializedFrontDoorProperties = new FrontDoorProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("friendlyName".equals(fieldName)) {
+ deserializedFrontDoorProperties.withFriendlyName(reader.getString());
+ } else if ("routingRules".equals(fieldName)) {
+ List routingRules = reader.readArray(reader1 -> RoutingRule.fromJson(reader1));
+ deserializedFrontDoorProperties.withRoutingRules(routingRules);
+ } else if ("loadBalancingSettings".equals(fieldName)) {
+ List loadBalancingSettings
+ = reader.readArray(reader1 -> LoadBalancingSettingsModel.fromJson(reader1));
+ deserializedFrontDoorProperties.withLoadBalancingSettings(loadBalancingSettings);
+ } else if ("healthProbeSettings".equals(fieldName)) {
+ List healthProbeSettings
+ = reader.readArray(reader1 -> HealthProbeSettingsModel.fromJson(reader1));
+ deserializedFrontDoorProperties.withHealthProbeSettings(healthProbeSettings);
+ } else if ("backendPools".equals(fieldName)) {
+ List backendPools = reader.readArray(reader1 -> BackendPool.fromJson(reader1));
+ deserializedFrontDoorProperties.withBackendPools(backendPools);
+ } else if ("frontendEndpoints".equals(fieldName)) {
+ List frontendEndpoints
+ = reader.readArray(reader1 -> FrontendEndpointInner.fromJson(reader1));
+ deserializedFrontDoorProperties.withFrontendEndpoints(frontendEndpoints);
+ } else if ("backendPoolsSettings".equals(fieldName)) {
+ deserializedFrontDoorProperties.withBackendPoolsSettings(BackendPoolsSettings.fromJson(reader));
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedFrontDoorProperties
+ .withEnabledState(FrontDoorEnabledState.fromString(reader.getString()));
+ } else if ("resourceState".equals(fieldName)) {
+ deserializedFrontDoorProperties.resourceState
+ = FrontDoorResourceState.fromString(reader.getString());
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedFrontDoorProperties.provisioningState = reader.getString();
+ } else if ("cname".equals(fieldName)) {
+ deserializedFrontDoorProperties.cname = reader.getString();
+ } else if ("frontdoorId".equals(fieldName)) {
+ deserializedFrontDoorProperties.frontdoorId = reader.getString();
+ } else if ("rulesEngines".equals(fieldName)) {
+ List rulesEngines
+ = reader.readArray(reader1 -> RulesEngineInner.fromJson(reader1));
+ deserializedFrontDoorProperties.rulesEngines = rulesEngines;
+ } else if ("extendedProperties".equals(fieldName)) {
+ Map extendedProperties = reader.readMap(reader1 -> reader1.getString());
+ deserializedFrontDoorProperties.extendedProperties = extendedProperties;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontDoorProperties;
+ });
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontendEndpointInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontendEndpointInner.java
index e96da9de82d3c..49912ea617cb8 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontendEndpointInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontendEndpointInner.java
@@ -6,13 +6,16 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.CustomHttpsConfiguration;
import com.azure.resourcemanager.frontdoor.models.CustomHttpsProvisioningState;
import com.azure.resourcemanager.frontdoor.models.CustomHttpsProvisioningSubstate;
import com.azure.resourcemanager.frontdoor.models.FrontDoorResourceState;
import com.azure.resourcemanager.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink;
import com.azure.resourcemanager.frontdoor.models.SessionAffinityEnabledState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* A frontend endpoint used for routing.
@@ -22,19 +25,16 @@ public final class FrontendEndpointInner extends SubResource {
/*
* Properties of the Frontend endpoint
*/
- @JsonProperty(value = "properties")
private FrontendEndpointProperties innerProperties;
/*
* Resource name.
*/
- @JsonProperty(value = "name")
private String name;
/*
* Resource type.
*/
- @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
@@ -91,9 +91,7 @@ public FrontendEndpointInner withId(String id) {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -239,4 +237,48 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", id());
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("name", this.name);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontendEndpointInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontendEndpointInner 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 FrontendEndpointInner.
+ */
+ public static FrontendEndpointInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontendEndpointInner deserializedFrontendEndpointInner = new FrontendEndpointInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedFrontendEndpointInner.withId(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedFrontendEndpointInner.innerProperties = FrontendEndpointProperties.fromJson(reader);
+ } else if ("name".equals(fieldName)) {
+ deserializedFrontendEndpointInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedFrontendEndpointInner.type = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontendEndpointInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontendEndpointProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontendEndpointProperties.java
index ae8815dc66c6c..e1fab1708a2e6 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontendEndpointProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/FrontendEndpointProperties.java
@@ -5,6 +5,9 @@
package com.azure.resourcemanager.frontdoor.fluent.models;
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.frontdoor.models.CustomHttpsConfiguration;
import com.azure.resourcemanager.frontdoor.models.CustomHttpsProvisioningState;
import com.azure.resourcemanager.frontdoor.models.CustomHttpsProvisioningSubstate;
@@ -12,7 +15,7 @@
import com.azure.resourcemanager.frontdoor.models.FrontendEndpointUpdateParameters;
import com.azure.resourcemanager.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink;
import com.azure.resourcemanager.frontdoor.models.SessionAffinityEnabledState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* The JSON object that contains the properties required to create a frontend endpoint.
@@ -20,29 +23,23 @@
@Fluent
public final class FrontendEndpointProperties extends FrontendEndpointUpdateParameters {
/*
- * Resource status of the Front Door or Front Door SubResource.
- *
* Resource status.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private FrontDoorResourceState resourceState;
/*
* Provisioning status of Custom Https of the frontendEndpoint.
*/
- @JsonProperty(value = "customHttpsProvisioningState", access = JsonProperty.Access.WRITE_ONLY)
private CustomHttpsProvisioningState customHttpsProvisioningState;
/*
* Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.
*/
- @JsonProperty(value = "customHttpsProvisioningSubstate", access = JsonProperty.Access.WRITE_ONLY)
private CustomHttpsProvisioningSubstate customHttpsProvisioningSubstate;
/*
* The configuration specifying how to enable HTTPS
*/
- @JsonProperty(value = "customHttpsConfiguration", access = JsonProperty.Access.WRITE_ONLY)
private CustomHttpsConfiguration customHttpsConfiguration;
/**
@@ -52,9 +49,7 @@ public FrontendEndpointProperties() {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -135,9 +130,72 @@ public FrontendEndpointProperties withWebApplicationFirewallPolicyLink(
*/
@Override
public void validate() {
- super.validate();
if (customHttpsConfiguration() != null) {
customHttpsConfiguration().validate();
}
+ if (webApplicationFirewallPolicyLink() != null) {
+ webApplicationFirewallPolicyLink().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("hostName", hostname());
+ jsonWriter.writeStringField("sessionAffinityEnabledState",
+ sessionAffinityEnabledState() == null ? null : sessionAffinityEnabledState().toString());
+ jsonWriter.writeNumberField("sessionAffinityTtlSeconds", sessionAffinityTtlSeconds());
+ jsonWriter.writeJsonField("webApplicationFirewallPolicyLink", webApplicationFirewallPolicyLink());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontendEndpointProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontendEndpointProperties 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 FrontendEndpointProperties.
+ */
+ public static FrontendEndpointProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontendEndpointProperties deserializedFrontendEndpointProperties = new FrontendEndpointProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("hostName".equals(fieldName)) {
+ deserializedFrontendEndpointProperties.withHostname(reader.getString());
+ } else if ("sessionAffinityEnabledState".equals(fieldName)) {
+ deserializedFrontendEndpointProperties
+ .withSessionAffinityEnabledState(SessionAffinityEnabledState.fromString(reader.getString()));
+ } else if ("sessionAffinityTtlSeconds".equals(fieldName)) {
+ deserializedFrontendEndpointProperties
+ .withSessionAffinityTtlSeconds(reader.getNullable(JsonReader::getInt));
+ } else if ("webApplicationFirewallPolicyLink".equals(fieldName)) {
+ deserializedFrontendEndpointProperties.withWebApplicationFirewallPolicyLink(
+ FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.fromJson(reader));
+ } else if ("resourceState".equals(fieldName)) {
+ deserializedFrontendEndpointProperties.resourceState
+ = FrontDoorResourceState.fromString(reader.getString());
+ } else if ("customHttpsProvisioningState".equals(fieldName)) {
+ deserializedFrontendEndpointProperties.customHttpsProvisioningState
+ = CustomHttpsProvisioningState.fromString(reader.getString());
+ } else if ("customHttpsProvisioningSubstate".equals(fieldName)) {
+ deserializedFrontendEndpointProperties.customHttpsProvisioningSubstate
+ = CustomHttpsProvisioningSubstate.fromString(reader.getString());
+ } else if ("customHttpsConfiguration".equals(fieldName)) {
+ deserializedFrontendEndpointProperties.customHttpsConfiguration
+ = CustomHttpsConfiguration.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontendEndpointProperties;
+ });
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/HealthProbeSettingsProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/HealthProbeSettingsProperties.java
index 5c071c43cc744..0f6ea12d0b840 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/HealthProbeSettingsProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/HealthProbeSettingsProperties.java
@@ -5,12 +5,15 @@
package com.azure.resourcemanager.frontdoor.fluent.models;
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.frontdoor.models.FrontDoorHealthProbeMethod;
import com.azure.resourcemanager.frontdoor.models.FrontDoorProtocol;
import com.azure.resourcemanager.frontdoor.models.FrontDoorResourceState;
import com.azure.resourcemanager.frontdoor.models.HealthProbeEnabled;
import com.azure.resourcemanager.frontdoor.models.HealthProbeSettingsUpdateParameters;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* The JSON object that contains the properties required to create a health probe settings.
@@ -18,11 +21,8 @@
@Fluent
public final class HealthProbeSettingsProperties extends HealthProbeSettingsUpdateParameters {
/*
- * Resource status of the Front Door or Front Door SubResource.
- *
* Resource status.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private FrontDoorResourceState resourceState;
/**
@@ -32,9 +32,7 @@ public HealthProbeSettingsProperties() {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -94,6 +92,62 @@ public HealthProbeSettingsProperties withEnabledState(HealthProbeEnabled enabled
*/
@Override
public void validate() {
- super.validate();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("path", path());
+ jsonWriter.writeStringField("protocol", protocol() == null ? null : protocol().toString());
+ jsonWriter.writeNumberField("intervalInSeconds", intervalInSeconds());
+ jsonWriter.writeStringField("healthProbeMethod",
+ healthProbeMethod() == null ? null : healthProbeMethod().toString());
+ jsonWriter.writeStringField("enabledState", enabledState() == null ? null : enabledState().toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of HealthProbeSettingsProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of HealthProbeSettingsProperties 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 HealthProbeSettingsProperties.
+ */
+ public static HealthProbeSettingsProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ HealthProbeSettingsProperties deserializedHealthProbeSettingsProperties
+ = new HealthProbeSettingsProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("path".equals(fieldName)) {
+ deserializedHealthProbeSettingsProperties.withPath(reader.getString());
+ } else if ("protocol".equals(fieldName)) {
+ deserializedHealthProbeSettingsProperties
+ .withProtocol(FrontDoorProtocol.fromString(reader.getString()));
+ } else if ("intervalInSeconds".equals(fieldName)) {
+ deserializedHealthProbeSettingsProperties
+ .withIntervalInSeconds(reader.getNullable(JsonReader::getInt));
+ } else if ("healthProbeMethod".equals(fieldName)) {
+ deserializedHealthProbeSettingsProperties
+ .withHealthProbeMethod(FrontDoorHealthProbeMethod.fromString(reader.getString()));
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedHealthProbeSettingsProperties
+ .withEnabledState(HealthProbeEnabled.fromString(reader.getString()));
+ } else if ("resourceState".equals(fieldName)) {
+ deserializedHealthProbeSettingsProperties.resourceState
+ = FrontDoorResourceState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedHealthProbeSettingsProperties;
+ });
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/KeyVaultCertificateSourceParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/KeyVaultCertificateSourceParameters.java
index e94204e2ae689..02ac5b6c69c53 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/KeyVaultCertificateSourceParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/KeyVaultCertificateSourceParameters.java
@@ -5,30 +5,32 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.KeyVaultCertificateSourceParametersVault;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Parameters required for bring-your-own-certification via Key Vault.
*/
@Fluent
-public final class KeyVaultCertificateSourceParameters {
+public final class KeyVaultCertificateSourceParameters
+ implements JsonSerializable {
/*
* The Key Vault containing the SSL certificate
*/
- @JsonProperty(value = "vault")
private KeyVaultCertificateSourceParametersVault vault;
/*
* The name of the Key Vault secret representing the full certificate PFX
*/
- @JsonProperty(value = "secretName")
private String secretName;
/*
* The version of the Key Vault secret representing the full certificate PFX
*/
- @JsonProperty(value = "secretVersion")
private String secretVersion;
/**
@@ -107,4 +109,48 @@ public void validate() {
vault().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("vault", this.vault);
+ jsonWriter.writeStringField("secretName", this.secretName);
+ jsonWriter.writeStringField("secretVersion", this.secretVersion);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of KeyVaultCertificateSourceParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of KeyVaultCertificateSourceParameters 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 KeyVaultCertificateSourceParameters.
+ */
+ public static KeyVaultCertificateSourceParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ KeyVaultCertificateSourceParameters deserializedKeyVaultCertificateSourceParameters
+ = new KeyVaultCertificateSourceParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("vault".equals(fieldName)) {
+ deserializedKeyVaultCertificateSourceParameters.vault
+ = KeyVaultCertificateSourceParametersVault.fromJson(reader);
+ } else if ("secretName".equals(fieldName)) {
+ deserializedKeyVaultCertificateSourceParameters.secretName = reader.getString();
+ } else if ("secretVersion".equals(fieldName)) {
+ deserializedKeyVaultCertificateSourceParameters.secretVersion = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedKeyVaultCertificateSourceParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LatencyScorecardInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LatencyScorecardInner.java
index d2cc8a6ca1331..1bd723ba62236 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LatencyScorecardInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LatencyScorecardInner.java
@@ -6,8 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.LatencyMetric;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;
@@ -20,9 +23,23 @@ public final class LatencyScorecardInner extends Resource {
/*
* The properties of a latency scorecard
*/
- @JsonProperty(value = "properties")
private LatencyScorecardProperties innerProperties;
+ /*
+ * 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 LatencyScorecardInner class.
*/
@@ -38,6 +55,36 @@ private LatencyScorecardProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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}
*/
@@ -162,4 +209,54 @@ public void validate() {
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 LatencyScorecardInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LatencyScorecardInner 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 LatencyScorecardInner.
+ */
+ public static LatencyScorecardInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LatencyScorecardInner deserializedLatencyScorecardInner = new LatencyScorecardInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedLatencyScorecardInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedLatencyScorecardInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedLatencyScorecardInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedLatencyScorecardInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedLatencyScorecardInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedLatencyScorecardInner.innerProperties = LatencyScorecardProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLatencyScorecardInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LatencyScorecardProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LatencyScorecardProperties.java
index 41b275afd1239..2f765dea378a0 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LatencyScorecardProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LatencyScorecardProperties.java
@@ -5,8 +5,13 @@
package com.azure.resourcemanager.frontdoor.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.LatencyMetric;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.List;
@@ -14,59 +19,51 @@
* Defines a the properties of a Latency Scorecard.
*/
@Fluent
-public final class LatencyScorecardProperties {
+public final class LatencyScorecardProperties implements JsonSerializable {
/*
* The unique identifier of the Latency Scorecard
*/
- @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/*
* The name of the Latency Scorecard
*/
- @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* The description of the Latency Scorecard
*/
- @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
private String description;
/*
* The A endpoint in the scorecard
*/
- @JsonProperty(value = "endpointA", access = JsonProperty.Access.WRITE_ONLY)
private String endpointA;
/*
* The B endpoint in the scorecard
*/
- @JsonProperty(value = "endpointB", access = JsonProperty.Access.WRITE_ONLY)
private String endpointB;
/*
* The start time of the Latency Scorecard in UTC
*/
- @JsonProperty(value = "startDateTimeUTC", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime startDateTimeUtc;
/*
* The end time of the Latency Scorecard in UTC
*/
- @JsonProperty(value = "endDateTimeUTC", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime endDateTimeUtc;
/*
- * The country associated with the Latency Scorecard. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html
+ * The country associated with the Latency Scorecard. Values are country ISO codes as specified here-
+ * https://www.iso.org/iso-3166-country-codes.html
*/
- @JsonProperty(value = "country", access = JsonProperty.Access.WRITE_ONLY)
private String country;
/*
* The latency metrics of the Latency Scorecard
*/
- @JsonProperty(value = "latencyMetrics")
private List latencyMetrics;
/**
@@ -178,4 +175,60 @@ public void validate() {
latencyMetrics().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("latencyMetrics", this.latencyMetrics,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LatencyScorecardProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LatencyScorecardProperties 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 LatencyScorecardProperties.
+ */
+ public static LatencyScorecardProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LatencyScorecardProperties deserializedLatencyScorecardProperties = new LatencyScorecardProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedLatencyScorecardProperties.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedLatencyScorecardProperties.name = reader.getString();
+ } else if ("description".equals(fieldName)) {
+ deserializedLatencyScorecardProperties.description = reader.getString();
+ } else if ("endpointA".equals(fieldName)) {
+ deserializedLatencyScorecardProperties.endpointA = reader.getString();
+ } else if ("endpointB".equals(fieldName)) {
+ deserializedLatencyScorecardProperties.endpointB = reader.getString();
+ } else if ("startDateTimeUTC".equals(fieldName)) {
+ deserializedLatencyScorecardProperties.startDateTimeUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("endDateTimeUTC".equals(fieldName)) {
+ deserializedLatencyScorecardProperties.endDateTimeUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("country".equals(fieldName)) {
+ deserializedLatencyScorecardProperties.country = reader.getString();
+ } else if ("latencyMetrics".equals(fieldName)) {
+ List latencyMetrics = reader.readArray(reader1 -> LatencyMetric.fromJson(reader1));
+ deserializedLatencyScorecardProperties.latencyMetrics = latencyMetrics;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLatencyScorecardProperties;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LoadBalancingSettingsProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LoadBalancingSettingsProperties.java
index 033a546a8b8a9..f0eac5f88bdd3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LoadBalancingSettingsProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/LoadBalancingSettingsProperties.java
@@ -5,9 +5,12 @@
package com.azure.resourcemanager.frontdoor.fluent.models;
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.frontdoor.models.FrontDoorResourceState;
import com.azure.resourcemanager.frontdoor.models.LoadBalancingSettingsUpdateParameters;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* The JSON object that contains the properties required to create load balancing settings.
@@ -15,11 +18,8 @@
@Fluent
public final class LoadBalancingSettingsProperties extends LoadBalancingSettingsUpdateParameters {
/*
- * Resource status of the Front Door or Front Door SubResource.
- *
* Resource status.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private FrontDoorResourceState resourceState;
/**
@@ -29,9 +29,7 @@ public LoadBalancingSettingsProperties() {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -73,6 +71,53 @@ public LoadBalancingSettingsProperties withAdditionalLatencyMilliseconds(Integer
*/
@Override
public void validate() {
- super.validate();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeNumberField("sampleSize", sampleSize());
+ jsonWriter.writeNumberField("successfulSamplesRequired", successfulSamplesRequired());
+ jsonWriter.writeNumberField("additionalLatencyMilliseconds", additionalLatencyMilliseconds());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LoadBalancingSettingsProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LoadBalancingSettingsProperties 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 LoadBalancingSettingsProperties.
+ */
+ public static LoadBalancingSettingsProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LoadBalancingSettingsProperties deserializedLoadBalancingSettingsProperties
+ = new LoadBalancingSettingsProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("sampleSize".equals(fieldName)) {
+ deserializedLoadBalancingSettingsProperties.withSampleSize(reader.getNullable(JsonReader::getInt));
+ } else if ("successfulSamplesRequired".equals(fieldName)) {
+ deserializedLoadBalancingSettingsProperties
+ .withSuccessfulSamplesRequired(reader.getNullable(JsonReader::getInt));
+ } else if ("additionalLatencyMilliseconds".equals(fieldName)) {
+ deserializedLoadBalancingSettingsProperties
+ .withAdditionalLatencyMilliseconds(reader.getNullable(JsonReader::getInt));
+ } else if ("resourceState".equals(fieldName)) {
+ deserializedLoadBalancingSettingsProperties.resourceState
+ = FrontDoorResourceState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLoadBalancingSettingsProperties;
+ });
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ManagedRuleSetDefinitionInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ManagedRuleSetDefinitionInner.java
index f7e46fb5f1d28..25265f2dac5bb 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ManagedRuleSetDefinitionInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ManagedRuleSetDefinitionInner.java
@@ -6,8 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.ManagedRuleGroupDefinition;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -19,9 +22,23 @@ public final class ManagedRuleSetDefinitionInner extends Resource {
/*
* Properties for a managed rule set definition.
*/
- @JsonProperty(value = "properties")
private ManagedRuleSetDefinitionProperties innerProperties;
+ /*
+ * 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 ManagedRuleSetDefinitionInner class.
*/
@@ -37,6 +54,36 @@ private ManagedRuleSetDefinitionProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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}
*/
@@ -110,4 +157,56 @@ public void validate() {
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 ManagedRuleSetDefinitionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleSetDefinitionInner 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 ManagedRuleSetDefinitionInner.
+ */
+ public static ManagedRuleSetDefinitionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleSetDefinitionInner deserializedManagedRuleSetDefinitionInner
+ = new ManagedRuleSetDefinitionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedManagedRuleSetDefinitionInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionInner.innerProperties
+ = ManagedRuleSetDefinitionProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleSetDefinitionInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ManagedRuleSetDefinitionProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ManagedRuleSetDefinitionProperties.java
index 8e088ed738a2a..f462341c22b6d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ManagedRuleSetDefinitionProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ManagedRuleSetDefinitionProperties.java
@@ -5,43 +5,42 @@
package com.azure.resourcemanager.frontdoor.fluent.models;
import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.ManagedRuleGroupDefinition;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Properties for a managed rule set definition.
*/
@Immutable
-public final class ManagedRuleSetDefinitionProperties {
+public final class ManagedRuleSetDefinitionProperties implements JsonSerializable {
/*
* Provisioning state of the managed rule set.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
/*
* Id of the managed rule set.
*/
- @JsonProperty(value = "ruleSetId", access = JsonProperty.Access.WRITE_ONLY)
private String ruleSetId;
/*
* Type of the managed rule set.
*/
- @JsonProperty(value = "ruleSetType", access = JsonProperty.Access.WRITE_ONLY)
private String ruleSetType;
/*
* Version of the managed rule set type.
*/
- @JsonProperty(value = "ruleSetVersion", access = JsonProperty.Access.WRITE_ONLY)
private String ruleSetVersion;
/*
* Rule groups of the managed rule set.
*/
- @JsonProperty(value = "ruleGroups", access = JsonProperty.Access.WRITE_ONLY)
private List ruleGroups;
/**
@@ -105,4 +104,50 @@ public void validate() {
ruleGroups().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedRuleSetDefinitionProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleSetDefinitionProperties 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 ManagedRuleSetDefinitionProperties.
+ */
+ public static ManagedRuleSetDefinitionProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleSetDefinitionProperties deserializedManagedRuleSetDefinitionProperties
+ = new ManagedRuleSetDefinitionProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provisioningState".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionProperties.provisioningState = reader.getString();
+ } else if ("ruleSetId".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionProperties.ruleSetId = reader.getString();
+ } else if ("ruleSetType".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionProperties.ruleSetType = reader.getString();
+ } else if ("ruleSetVersion".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionProperties.ruleSetVersion = reader.getString();
+ } else if ("ruleGroups".equals(fieldName)) {
+ List ruleGroups
+ = reader.readArray(reader1 -> ManagedRuleGroupDefinition.fromJson(reader1));
+ deserializedManagedRuleSetDefinitionProperties.ruleGroups = ruleGroups;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleSetDefinitionProperties;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PolicySettingsLogScrubbing.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PolicySettingsLogScrubbing.java
index d95d27097d959..6b6fb18509cc2 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PolicySettingsLogScrubbing.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PolicySettingsLogScrubbing.java
@@ -5,26 +5,28 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.WebApplicationFirewallScrubbingRules;
import com.azure.resourcemanager.frontdoor.models.WebApplicationFirewallScrubbingState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 {
+public final class PolicySettingsLogScrubbing implements JsonSerializable {
/*
* State of the log scrubbing config. Default value is Enabled.
*/
- @JsonProperty(value = "state")
private WebApplicationFirewallScrubbingState state;
/*
* List of log scrubbing rules applied to the Web Application Firewall logs.
*/
- @JsonProperty(value = "scrubbingRules")
private List scrubbingRules;
/**
@@ -83,4 +85,47 @@ public void validate() {
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/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PreconfiguredEndpointInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PreconfiguredEndpointInner.java
index ebd4f87b2949b..0bd7e0de5359c 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PreconfiguredEndpointInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PreconfiguredEndpointInner.java
@@ -6,8 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.EndpointType;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
@@ -18,9 +21,23 @@ public final class PreconfiguredEndpointInner extends Resource {
/*
* The properties of a preconfiguredEndpoint
*/
- @JsonProperty(value = "properties")
private PreconfiguredEndpointProperties innerProperties;
+ /*
+ * 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 PreconfiguredEndpointInner class.
*/
@@ -36,6 +53,36 @@ private PreconfiguredEndpointProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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}
*/
@@ -156,4 +203,55 @@ public void validate() {
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 PreconfiguredEndpointInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PreconfiguredEndpointInner 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 PreconfiguredEndpointInner.
+ */
+ public static PreconfiguredEndpointInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PreconfiguredEndpointInner deserializedPreconfiguredEndpointInner = new PreconfiguredEndpointInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPreconfiguredEndpointInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPreconfiguredEndpointInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPreconfiguredEndpointInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedPreconfiguredEndpointInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedPreconfiguredEndpointInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedPreconfiguredEndpointInner.innerProperties
+ = PreconfiguredEndpointProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPreconfiguredEndpointInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PreconfiguredEndpointProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PreconfiguredEndpointProperties.java
index 91362ede00216..d111c544f253b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PreconfiguredEndpointProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/PreconfiguredEndpointProperties.java
@@ -5,36 +5,36 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.EndpointType;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Defines the properties of a preconfigured endpoint.
*/
@Fluent
-public final class PreconfiguredEndpointProperties {
+public final class PreconfiguredEndpointProperties implements JsonSerializable {
/*
* The description of the endpoint
*/
- @JsonProperty(value = "description")
private String description;
/*
* The endpoint that is preconfigured
*/
- @JsonProperty(value = "endpoint")
private String endpoint;
/*
* The type of endpoint
*/
- @JsonProperty(value = "endpointType")
private EndpointType endpointType;
/*
* The preconfigured endpoint backend
*/
- @JsonProperty(value = "backend")
private String backend;
/**
@@ -130,4 +130,51 @@ public PreconfiguredEndpointProperties withBackend(String backend) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("endpoint", this.endpoint);
+ jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString());
+ jsonWriter.writeStringField("backend", this.backend);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PreconfiguredEndpointProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PreconfiguredEndpointProperties 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 PreconfiguredEndpointProperties.
+ */
+ public static PreconfiguredEndpointProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PreconfiguredEndpointProperties deserializedPreconfiguredEndpointProperties
+ = new PreconfiguredEndpointProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedPreconfiguredEndpointProperties.description = reader.getString();
+ } else if ("endpoint".equals(fieldName)) {
+ deserializedPreconfiguredEndpointProperties.endpoint = reader.getString();
+ } else if ("endpointType".equals(fieldName)) {
+ deserializedPreconfiguredEndpointProperties.endpointType
+ = EndpointType.fromString(reader.getString());
+ } else if ("backend".equals(fieldName)) {
+ deserializedPreconfiguredEndpointProperties.backend = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPreconfiguredEndpointProperties;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileInner.java
index 3d3c45d96eaad..0c50045f9a3c0 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileInner.java
@@ -6,9 +6,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.NetworkExperimentResourceState;
import com.azure.resourcemanager.frontdoor.models.State;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
@@ -19,15 +22,28 @@ public final class ProfileInner extends Resource {
/*
* The properties of a Profile
*/
- @JsonProperty(value = "properties")
private ProfileProperties innerProperties;
/*
* Gets a unique read-only string that changes whenever the resource is updated.
*/
- @JsonProperty(value = "etag")
private String etag;
+ /*
+ * 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 ProfileInner class.
*/
@@ -63,6 +79,36 @@ public ProfileInner withEtag(String etag) {
return this;
}
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
/**
* {@inheritDoc}
*/
@@ -123,4 +169,57 @@ public void validate() {
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);
+ jsonWriter.writeStringField("etag", this.etag);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ProfileInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ProfileInner 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 ProfileInner.
+ */
+ public static ProfileInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ProfileInner deserializedProfileInner = new ProfileInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedProfileInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedProfileInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedProfileInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedProfileInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedProfileInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedProfileInner.innerProperties = ProfileProperties.fromJson(reader);
+ } else if ("etag".equals(fieldName)) {
+ deserializedProfileInner.etag = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedProfileInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileProperties.java
index 7732e86abd5a2..75859c2dd1c8a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileProperties.java
@@ -5,25 +5,27 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.NetworkExperimentResourceState;
import com.azure.resourcemanager.frontdoor.models.State;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Defines the properties of an experiment.
*/
@Fluent
-public final class ProfileProperties {
+public final class ProfileProperties implements JsonSerializable {
/*
* Resource status.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private NetworkExperimentResourceState resourceState;
/*
* The state of the Experiment
*/
- @JsonProperty(value = "enabledState")
private State enabledState;
/**
@@ -68,4 +70,43 @@ public ProfileProperties withEnabledState(State enabledState) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ProfileProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ProfileProperties 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 ProfileProperties.
+ */
+ public static ProfileProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ProfileProperties deserializedProfileProperties = new ProfileProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceState".equals(fieldName)) {
+ deserializedProfileProperties.resourceState
+ = NetworkExperimentResourceState.fromString(reader.getString());
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedProfileProperties.enabledState = State.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedProfileProperties;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileUpdateProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileUpdateProperties.java
index 783ce53026f6b..c3a105646dcb3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileUpdateProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ProfileUpdateProperties.java
@@ -5,18 +5,21 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.State;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Defines the properties of an experiment.
*/
@Fluent
-public final class ProfileUpdateProperties {
+public final class ProfileUpdateProperties implements JsonSerializable {
/*
* The enabled state of the Profile
*/
- @JsonProperty(value = "enabledState")
private State enabledState;
/**
@@ -52,4 +55,40 @@ public ProfileUpdateProperties withEnabledState(State enabledState) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ProfileUpdateProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ProfileUpdateProperties 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 ProfileUpdateProperties.
+ */
+ public static ProfileUpdateProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ProfileUpdateProperties deserializedProfileUpdateProperties = new ProfileUpdateProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("enabledState".equals(fieldName)) {
+ deserializedProfileUpdateProperties.enabledState = State.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedProfileUpdateProperties;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RoutingRuleProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RoutingRuleProperties.java
index 10f115cb095e4..1cd115249ac23 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RoutingRuleProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RoutingRuleProperties.java
@@ -6,13 +6,16 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.FrontDoorProtocol;
import com.azure.resourcemanager.frontdoor.models.FrontDoorResourceState;
import com.azure.resourcemanager.frontdoor.models.RouteConfiguration;
import com.azure.resourcemanager.frontdoor.models.RoutingRuleEnabledState;
import com.azure.resourcemanager.frontdoor.models.RoutingRuleUpdateParameters;
import com.azure.resourcemanager.frontdoor.models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -21,11 +24,8 @@
@Fluent
public final class RoutingRuleProperties extends RoutingRuleUpdateParameters {
/*
- * Resource status of the Front Door or Front Door SubResource.
- *
* Resource status.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private FrontDoorResourceState resourceState;
/**
@@ -35,9 +35,7 @@ public RoutingRuleProperties() {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -116,6 +114,77 @@ public RoutingRuleProperties withWebApplicationFirewallPolicyLink(
*/
@Override
public void validate() {
- super.validate();
+ if (routeConfiguration() != null) {
+ routeConfiguration().validate();
+ }
+ if (webApplicationFirewallPolicyLink() != null) {
+ webApplicationFirewallPolicyLink().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("frontendEndpoints", frontendEndpoints(),
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("acceptedProtocols", acceptedProtocols(),
+ (writer, element) -> writer.writeString(element == null ? null : element.toString()));
+ jsonWriter.writeArrayField("patternsToMatch", patternsToMatch(),
+ (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("enabledState", enabledState() == null ? null : enabledState().toString());
+ jsonWriter.writeJsonField("routeConfiguration", routeConfiguration());
+ jsonWriter.writeJsonField("rulesEngine", rulesEngine());
+ jsonWriter.writeJsonField("webApplicationFirewallPolicyLink", webApplicationFirewallPolicyLink());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RoutingRuleProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RoutingRuleProperties 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 RoutingRuleProperties.
+ */
+ public static RoutingRuleProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RoutingRuleProperties deserializedRoutingRuleProperties = new RoutingRuleProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("frontendEndpoints".equals(fieldName)) {
+ List frontendEndpoints = reader.readArray(reader1 -> SubResource.fromJson(reader1));
+ deserializedRoutingRuleProperties.withFrontendEndpoints(frontendEndpoints);
+ } else if ("acceptedProtocols".equals(fieldName)) {
+ List acceptedProtocols
+ = reader.readArray(reader1 -> FrontDoorProtocol.fromString(reader1.getString()));
+ deserializedRoutingRuleProperties.withAcceptedProtocols(acceptedProtocols);
+ } else if ("patternsToMatch".equals(fieldName)) {
+ List patternsToMatch = reader.readArray(reader1 -> reader1.getString());
+ deserializedRoutingRuleProperties.withPatternsToMatch(patternsToMatch);
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedRoutingRuleProperties
+ .withEnabledState(RoutingRuleEnabledState.fromString(reader.getString()));
+ } else if ("routeConfiguration".equals(fieldName)) {
+ deserializedRoutingRuleProperties.withRouteConfiguration(RouteConfiguration.fromJson(reader));
+ } else if ("rulesEngine".equals(fieldName)) {
+ deserializedRoutingRuleProperties.withRulesEngine(SubResource.fromJson(reader));
+ } else if ("webApplicationFirewallPolicyLink".equals(fieldName)) {
+ deserializedRoutingRuleProperties.withWebApplicationFirewallPolicyLink(
+ RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.fromJson(reader));
+ } else if ("resourceState".equals(fieldName)) {
+ deserializedRoutingRuleProperties.resourceState
+ = FrontDoorResourceState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRoutingRuleProperties;
+ });
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RulesEngineInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RulesEngineInner.java
index 04c160cb16497..c267281bfa3b3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RulesEngineInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RulesEngineInner.java
@@ -6,9 +6,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.FrontDoorResourceState;
import com.azure.resourcemanager.frontdoor.models.RulesEngineRule;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -20,9 +23,23 @@ public final class RulesEngineInner extends ProxyResource {
/*
* Properties of the Rules Engine Configuration.
*/
- @JsonProperty(value = "properties")
private RulesEngineProperties innerProperties;
+ /*
+ * 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 RulesEngineInner class.
*/
@@ -39,9 +56,37 @@ private RulesEngineProperties innerProperties() {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
+ * 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.
*
- * Resource status.
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -82,4 +127,47 @@ public void validate() {
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 RulesEngineInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RulesEngineInner 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 RulesEngineInner.
+ */
+ public static RulesEngineInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RulesEngineInner deserializedRulesEngineInner = new RulesEngineInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRulesEngineInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedRulesEngineInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedRulesEngineInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedRulesEngineInner.innerProperties = RulesEngineProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRulesEngineInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RulesEngineProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RulesEngineProperties.java
index 26990d488a4d0..9261c0cff01c1 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RulesEngineProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/RulesEngineProperties.java
@@ -5,10 +5,13 @@
package com.azure.resourcemanager.frontdoor.fluent.models;
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.frontdoor.models.FrontDoorResourceState;
import com.azure.resourcemanager.frontdoor.models.RulesEngineRule;
import com.azure.resourcemanager.frontdoor.models.RulesEngineUpdateParameters;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -17,11 +20,8 @@
@Fluent
public final class RulesEngineProperties extends RulesEngineUpdateParameters {
/*
- * Resource status of the Front Door or Front Door SubResource.
- *
* Resource status.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private FrontDoorResourceState resourceState;
/**
@@ -31,9 +31,7 @@ public RulesEngineProperties() {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -57,6 +55,48 @@ public RulesEngineProperties withRules(List rules) {
*/
@Override
public void validate() {
- super.validate();
+ if (rules() != null) {
+ rules().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("rules", rules(), (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RulesEngineProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RulesEngineProperties 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 RulesEngineProperties.
+ */
+ public static RulesEngineProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RulesEngineProperties deserializedRulesEngineProperties = new RulesEngineProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("rules".equals(fieldName)) {
+ List rules = reader.readArray(reader1 -> RulesEngineRule.fromJson(reader1));
+ deserializedRulesEngineProperties.withRules(rules);
+ } else if ("resourceState".equals(fieldName)) {
+ deserializedRulesEngineProperties.resourceState
+ = FrontDoorResourceState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRulesEngineProperties;
+ });
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/TimeseriesInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/TimeseriesInner.java
index db857ca33ae52..591894210148c 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/TimeseriesInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/TimeseriesInner.java
@@ -6,10 +6,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.AggregationInterval;
import com.azure.resourcemanager.frontdoor.models.TimeseriesDataPoint;
import com.azure.resourcemanager.frontdoor.models.TimeseriesType;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -21,9 +24,23 @@ public final class TimeseriesInner extends Resource {
/*
* The properties of a Timeseries
*/
- @JsonProperty(value = "properties")
private TimeseriesProperties innerProperties;
+ /*
+ * 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 TimeseriesInner class.
*/
@@ -39,6 +56,36 @@ private TimeseriesProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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}
*/
@@ -230,4 +277,54 @@ public void validate() {
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 TimeseriesInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TimeseriesInner 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 TimeseriesInner.
+ */
+ public static TimeseriesInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TimeseriesInner deserializedTimeseriesInner = new TimeseriesInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedTimeseriesInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedTimeseriesInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedTimeseriesInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedTimeseriesInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedTimeseriesInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedTimeseriesInner.innerProperties = TimeseriesProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTimeseriesInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/TimeseriesProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/TimeseriesProperties.java
index 8d6e368d208db..e9f51886cc843 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/TimeseriesProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/TimeseriesProperties.java
@@ -5,57 +5,55 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.AggregationInterval;
import com.azure.resourcemanager.frontdoor.models.TimeseriesDataPoint;
import com.azure.resourcemanager.frontdoor.models.TimeseriesType;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Defines the properties of a timeseries.
*/
@Fluent
-public final class TimeseriesProperties {
+public final class TimeseriesProperties implements JsonSerializable {
/*
* The endpoint associated with the Timeseries data point
*/
- @JsonProperty(value = "endpoint")
private String endpoint;
/*
* The start DateTime of the Timeseries in UTC
*/
- @JsonProperty(value = "startDateTimeUTC")
private String startDateTimeUtc;
/*
* The end DateTime of the Timeseries in UTC
*/
- @JsonProperty(value = "endDateTimeUTC")
private String endDateTimeUtc;
/*
* The aggregation interval of the Timeseries
*/
- @JsonProperty(value = "aggregationInterval")
private AggregationInterval aggregationInterval;
/*
* The type of Timeseries
*/
- @JsonProperty(value = "timeseriesType")
private TimeseriesType timeseriesType;
/*
- * The country associated with the Timeseries. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html
+ * The country associated with the Timeseries. Values are country ISO codes as specified here-
+ * https://www.iso.org/iso-3166-country-codes.html
*/
- @JsonProperty(value = "country")
private String country;
/*
* The set of data points for the timeseries
*/
- @JsonProperty(value = "timeseriesData")
private List timeseriesData;
/**
@@ -216,4 +214,64 @@ public void validate() {
timeseriesData().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("endpoint", this.endpoint);
+ jsonWriter.writeStringField("startDateTimeUTC", this.startDateTimeUtc);
+ jsonWriter.writeStringField("endDateTimeUTC", this.endDateTimeUtc);
+ jsonWriter.writeStringField("aggregationInterval",
+ this.aggregationInterval == null ? null : this.aggregationInterval.toString());
+ jsonWriter.writeStringField("timeseriesType",
+ this.timeseriesType == null ? null : this.timeseriesType.toString());
+ jsonWriter.writeStringField("country", this.country);
+ jsonWriter.writeArrayField("timeseriesData", this.timeseriesData,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of TimeseriesProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TimeseriesProperties 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 TimeseriesProperties.
+ */
+ public static TimeseriesProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TimeseriesProperties deserializedTimeseriesProperties = new TimeseriesProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("endpoint".equals(fieldName)) {
+ deserializedTimeseriesProperties.endpoint = reader.getString();
+ } else if ("startDateTimeUTC".equals(fieldName)) {
+ deserializedTimeseriesProperties.startDateTimeUtc = reader.getString();
+ } else if ("endDateTimeUTC".equals(fieldName)) {
+ deserializedTimeseriesProperties.endDateTimeUtc = reader.getString();
+ } else if ("aggregationInterval".equals(fieldName)) {
+ deserializedTimeseriesProperties.aggregationInterval
+ = AggregationInterval.fromString(reader.getString());
+ } else if ("timeseriesType".equals(fieldName)) {
+ deserializedTimeseriesProperties.timeseriesType = TimeseriesType.fromString(reader.getString());
+ } else if ("country".equals(fieldName)) {
+ deserializedTimeseriesProperties.country = reader.getString();
+ } else if ("timeseriesData".equals(fieldName)) {
+ List timeseriesData
+ = reader.readArray(reader1 -> TimeseriesDataPoint.fromJson(reader1));
+ deserializedTimeseriesProperties.timeseriesData = timeseriesData;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTimeseriesProperties;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ValidateCustomDomainOutputInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ValidateCustomDomainOutputInner.java
index 78c8db6432192..8b5f35a53f0df 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ValidateCustomDomainOutputInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/ValidateCustomDomainOutputInner.java
@@ -5,29 +5,30 @@
package com.azure.resourcemanager.frontdoor.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Output of custom domain validation.
*/
@Immutable
-public final class ValidateCustomDomainOutputInner {
+public final class ValidateCustomDomainOutputInner implements JsonSerializable {
/*
* Indicates whether the custom domain is valid or not.
*/
- @JsonProperty(value = "customDomainValidated", access = JsonProperty.Access.WRITE_ONLY)
private Boolean customDomainValidated;
/*
* The reason why the custom domain is not valid.
*/
- @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
private String reason;
/*
* Error message describing why the custom domain is not valid.
*/
- @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;
/**
@@ -70,4 +71,45 @@ public String message() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ValidateCustomDomainOutputInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ValidateCustomDomainOutputInner 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 ValidateCustomDomainOutputInner.
+ */
+ public static ValidateCustomDomainOutputInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ValidateCustomDomainOutputInner deserializedValidateCustomDomainOutputInner
+ = new ValidateCustomDomainOutputInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("customDomainValidated".equals(fieldName)) {
+ deserializedValidateCustomDomainOutputInner.customDomainValidated
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("reason".equals(fieldName)) {
+ deserializedValidateCustomDomainOutputInner.reason = reader.getString();
+ } else if ("message".equals(fieldName)) {
+ deserializedValidateCustomDomainOutputInner.message = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedValidateCustomDomainOutputInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/WebApplicationFirewallPolicyInner.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/WebApplicationFirewallPolicyInner.java
index 394563938a889..36a2b311d9b3a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/WebApplicationFirewallPolicyInner.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/WebApplicationFirewallPolicyInner.java
@@ -6,6 +6,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.models.CustomRuleList;
import com.azure.resourcemanager.frontdoor.models.FrontendEndpointLink;
import com.azure.resourcemanager.frontdoor.models.ManagedRuleSetList;
@@ -14,7 +17,7 @@
import com.azure.resourcemanager.frontdoor.models.RoutingRuleLink;
import com.azure.resourcemanager.frontdoor.models.SecurityPolicyLink;
import com.azure.resourcemanager.frontdoor.models.Sku;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -26,21 +29,33 @@ public final class WebApplicationFirewallPolicyInner extends Resource {
/*
* Properties of the web application firewall policy.
*/
- @JsonProperty(value = "properties")
private WebApplicationFirewallPolicyProperties innerProperties;
/*
* Gets a unique read-only string that changes whenever the resource is updated.
*/
- @JsonProperty(value = "etag")
private String etag;
/*
* The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified.
*/
- @JsonProperty(value = "sku")
private Sku sku;
+ /*
+ * 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 WebApplicationFirewallPolicyInner class.
*/
@@ -98,6 +113,36 @@ public WebApplicationFirewallPolicyInner withSku(Sku sku) {
return this;
}
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
/**
* {@inheritDoc}
*/
@@ -245,4 +290,62 @@ public void validate() {
sku().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);
+ jsonWriter.writeStringField("etag", this.etag);
+ jsonWriter.writeJsonField("sku", this.sku);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WebApplicationFirewallPolicyInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WebApplicationFirewallPolicyInner 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 WebApplicationFirewallPolicyInner.
+ */
+ public static WebApplicationFirewallPolicyInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WebApplicationFirewallPolicyInner deserializedWebApplicationFirewallPolicyInner
+ = new WebApplicationFirewallPolicyInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedWebApplicationFirewallPolicyInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyInner.innerProperties
+ = WebApplicationFirewallPolicyProperties.fromJson(reader);
+ } else if ("etag".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyInner.etag = reader.getString();
+ } else if ("sku".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyInner.sku = Sku.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWebApplicationFirewallPolicyInner;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/WebApplicationFirewallPolicyProperties.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/WebApplicationFirewallPolicyProperties.java
index c9c00b031a967..59026eeb2bb52 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/WebApplicationFirewallPolicyProperties.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/fluent/models/WebApplicationFirewallPolicyProperties.java
@@ -5,6 +5,10 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.models.CustomRuleList;
import com.azure.resourcemanager.frontdoor.models.FrontendEndpointLink;
import com.azure.resourcemanager.frontdoor.models.ManagedRuleSetList;
@@ -12,60 +16,53 @@
import com.azure.resourcemanager.frontdoor.models.PolicySettings;
import com.azure.resourcemanager.frontdoor.models.RoutingRuleLink;
import com.azure.resourcemanager.frontdoor.models.SecurityPolicyLink;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Defines web application firewall policy properties.
*/
@Fluent
-public final class WebApplicationFirewallPolicyProperties {
+public final class WebApplicationFirewallPolicyProperties
+ implements JsonSerializable {
/*
* Describes settings for the policy.
*/
- @JsonProperty(value = "policySettings")
private PolicySettings policySettings;
/*
* Describes custom rules inside the policy.
*/
- @JsonProperty(value = "customRules")
private CustomRuleList customRules;
/*
* Describes managed rules inside the policy.
*/
- @JsonProperty(value = "managedRules")
private ManagedRuleSetList managedRules;
/*
* Describes Frontend Endpoints associated with this Web Application Firewall policy.
*/
- @JsonProperty(value = "frontendEndpointLinks", access = JsonProperty.Access.WRITE_ONLY)
private List frontendEndpointLinks;
/*
* Describes Routing Rules associated with this Web Application Firewall policy.
*/
- @JsonProperty(value = "routingRuleLinks", access = JsonProperty.Access.WRITE_ONLY)
private List routingRuleLinks;
/*
* Describes Security Policy associated with this Web Application Firewall policy.
*/
- @JsonProperty(value = "securityPolicyLinks", access = JsonProperty.Access.WRITE_ONLY)
private List securityPolicyLinks;
/*
* Provisioning state of the policy.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
/*
* Resource status of the policy.
*/
- @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
private PolicyResourceState resourceState;
/**
@@ -206,4 +203,65 @@ public void validate() {
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 = PolicySettings.fromJson(reader);
+ } else if ("customRules".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyProperties.customRules = CustomRuleList.fromJson(reader);
+ } else if ("managedRules".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyProperties.managedRules
+ = ManagedRuleSetList.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/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/ExperimentsClientImpl.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/ExperimentsClientImpl.java
index a584150faf1e1..39b8b879d7462 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/ExperimentsClientImpl.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/ExperimentsClientImpl.java
@@ -1153,9 +1153,7 @@ public void delete(String resourceGroupName, String profileName, String experime
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1181,9 +1179,7 @@ private Mono> listByProfileNextSinglePageAsync(St
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorManagementClientBuilder.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorManagementClientBuilder.java
index 2f84925a13cea..5e35228fcbe1e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorManagementClientBuilder.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorManagementClientBuilder.java
@@ -20,7 +20,8 @@
@ServiceClientBuilder(serviceClients = { FrontDoorManagementClientImpl.class })
public final class FrontDoorManagementClientBuilder {
/*
- * The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+ * The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
*/
private String subscriptionId;
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorManagementClientImpl.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorManagementClientImpl.java
index 4cff769e8a84e..499db4c7248ef 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorManagementClientImpl.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorManagementClientImpl.java
@@ -13,8 +13,8 @@
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollerFactory;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorsClientImpl.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorsClientImpl.java
index 92bd994d986b6..00926989c27b5 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorsClientImpl.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontDoorsClientImpl.java
@@ -1102,9 +1102,7 @@ public ValidateCustomDomainOutputInner validateCustomDomain(String resourceGroup
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1130,9 +1128,7 @@ private Mono> listNextSinglePageAsync(String nextL
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1159,9 +1155,7 @@ private Mono> listNextSinglePageAsync(String nextL
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1189,9 +1183,7 @@ private Mono> listByResourceGroupNextSinglePageAsy
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontendEndpointsClientImpl.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontendEndpointsClientImpl.java
index 1e7f14fa93682..014baae447ef2 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontendEndpointsClientImpl.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/FrontendEndpointsClientImpl.java
@@ -893,9 +893,7 @@ public void disableHttps(String resourceGroupName, String frontDoorName, String
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -922,9 +920,7 @@ private Mono> listByFrontDoorNextSinglePage
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/ManagedRuleSetsClientImpl.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/ManagedRuleSetsClientImpl.java
index 2d510ac2296e0..a3e88605a4ffb 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/ManagedRuleSetsClientImpl.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/ManagedRuleSetsClientImpl.java
@@ -195,9 +195,7 @@ public PagedIterable list(Context context) {
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -223,9 +221,7 @@ private Mono> listNextSinglePageAsy
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/NetworkExperimentProfilesClientImpl.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/NetworkExperimentProfilesClientImpl.java
index 7bf42834bb1d7..a67aeeef41b5f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/NetworkExperimentProfilesClientImpl.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/NetworkExperimentProfilesClientImpl.java
@@ -1201,9 +1201,7 @@ public void delete(String resourceGroupName, String profileName, Context context
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1228,9 +1226,7 @@ private Mono> listNextSinglePageAsync(String nextLin
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1256,9 +1252,7 @@ private Mono> listNextSinglePageAsync(String nextLin
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1285,9 +1279,7 @@ private Mono> listByResourceGroupNextSinglePageAsync
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/PoliciesClientImpl.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/PoliciesClientImpl.java
index 0adf6c93f361e..5b3d99f4fbb51 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/PoliciesClientImpl.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/PoliciesClientImpl.java
@@ -1197,9 +1197,7 @@ public void delete(String resourceGroupName, String policyName, Context context)
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1225,9 +1223,7 @@ private Mono> listNextSinglePag
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1255,9 +1251,7 @@ private Mono> listNextSinglePag
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1286,9 +1280,7 @@ private Mono> listNextSinglePag
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/PreconfiguredEndpointsClientImpl.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/PreconfiguredEndpointsClientImpl.java
index 19f7851a8d874..262480d6178de 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/PreconfiguredEndpointsClientImpl.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/PreconfiguredEndpointsClientImpl.java
@@ -228,9 +228,7 @@ public PagedIterable list(String resourceGroupName,
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -256,9 +254,7 @@ private Mono> listNextSinglePageAsync(
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/RulesEnginesClientImpl.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/RulesEnginesClientImpl.java
index ad3f124dd12fd..b833ecf7a31fb 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/RulesEnginesClientImpl.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/implementation/RulesEnginesClientImpl.java
@@ -911,9 +911,7 @@ public void delete(String resourceGroupName, String frontDoorName, String rulesE
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -940,9 +938,7 @@ private Mono> listByFrontDoorNextSinglePageAsync
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ActionType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ActionType.java
index 1d770dee00cf1..7daf16f31553c 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ActionType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ActionType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -57,7 +56,6 @@ public ActionType() {
* @param name a name to look for.
* @return the corresponding ActionType.
*/
- @JsonCreator
public static ActionType fromString(String name) {
return fromString(name, ActionType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/AggregationInterval.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/AggregationInterval.java
index 18ad3b78d4f76..b3d4e69be20c9 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/AggregationInterval.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/AggregationInterval.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public AggregationInterval() {
* @param name a name to look for.
* @return the corresponding AggregationInterval.
*/
- @JsonCreator
public static AggregationInterval fromString(String name) {
return fromString(name, AggregationInterval.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Availability.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Availability.java
index 3312e991c94a6..9ebb357dadbd4 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Availability.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Availability.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public Availability() {
* @param name a name to look for.
* @return the corresponding Availability.
*/
- @JsonCreator
public static Availability fromString(String name) {
return fromString(name, Availability.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Backend.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Backend.java
index 0a96823e4962b..451a622d0fcf8 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Backend.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Backend.java
@@ -5,83 +5,78 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Backend address of a frontDoor load balancer.
*/
@Fluent
-public final class Backend {
+public final class Backend implements JsonSerializable {
/*
* Location of the backend (IP address or FQDN)
*/
- @JsonProperty(value = "address")
private String address;
/*
* The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private'
*/
- @JsonProperty(value = "privateLinkAlias")
private String privateLinkAlias;
/*
- * The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'
+ * The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is
+ * 'Private'
*/
- @JsonProperty(value = "privateLinkResourceId")
private String privateLinkResourceId;
/*
* The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated
*/
- @JsonProperty(value = "privateLinkLocation")
private String privateLinkLocation;
/*
* The Approval status for the connection to the Private Link
*/
- @JsonProperty(value = "privateEndpointStatus", access = JsonProperty.Access.WRITE_ONLY)
private PrivateEndpointStatus privateEndpointStatus;
/*
* A custom message to be included in the approval request to connect to the Private Link
*/
- @JsonProperty(value = "privateLinkApprovalMessage")
private String privateLinkApprovalMessage;
/*
* The HTTP TCP port number. Must be between 1 and 65535.
*/
- @JsonProperty(value = "httpPort")
private Integer httpPort;
/*
* The HTTPS TCP port number. Must be between 1 and 65535.
*/
- @JsonProperty(value = "httpsPort")
private Integer httpsPort;
/*
* Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'
*/
- @JsonProperty(value = "enabledState")
private BackendEnabledState enabledState;
/*
- * Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy.
+ * Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority
+ * backend is healthy.
*/
- @JsonProperty(value = "priority")
private Integer priority;
/*
* Weight of this endpoint for load balancing purposes.
*/
- @JsonProperty(value = "weight")
private Integer weight;
/*
- * The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host.
+ * The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming
+ * host.
*/
- @JsonProperty(value = "backendHostHeader")
private String backendHostHeader;
/**
@@ -340,4 +335,72 @@ public Backend withBackendHostHeader(String backendHostHeader) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("address", this.address);
+ jsonWriter.writeStringField("privateLinkAlias", this.privateLinkAlias);
+ jsonWriter.writeStringField("privateLinkResourceId", this.privateLinkResourceId);
+ jsonWriter.writeStringField("privateLinkLocation", this.privateLinkLocation);
+ jsonWriter.writeStringField("privateLinkApprovalMessage", this.privateLinkApprovalMessage);
+ jsonWriter.writeNumberField("httpPort", this.httpPort);
+ jsonWriter.writeNumberField("httpsPort", this.httpsPort);
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ jsonWriter.writeNumberField("priority", this.priority);
+ jsonWriter.writeNumberField("weight", this.weight);
+ jsonWriter.writeStringField("backendHostHeader", this.backendHostHeader);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of Backend from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of Backend 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 Backend.
+ */
+ public static Backend fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ Backend deserializedBackend = new Backend();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("address".equals(fieldName)) {
+ deserializedBackend.address = reader.getString();
+ } else if ("privateLinkAlias".equals(fieldName)) {
+ deserializedBackend.privateLinkAlias = reader.getString();
+ } else if ("privateLinkResourceId".equals(fieldName)) {
+ deserializedBackend.privateLinkResourceId = reader.getString();
+ } else if ("privateLinkLocation".equals(fieldName)) {
+ deserializedBackend.privateLinkLocation = reader.getString();
+ } else if ("privateEndpointStatus".equals(fieldName)) {
+ deserializedBackend.privateEndpointStatus = PrivateEndpointStatus.fromString(reader.getString());
+ } else if ("privateLinkApprovalMessage".equals(fieldName)) {
+ deserializedBackend.privateLinkApprovalMessage = reader.getString();
+ } else if ("httpPort".equals(fieldName)) {
+ deserializedBackend.httpPort = reader.getNullable(JsonReader::getInt);
+ } else if ("httpsPort".equals(fieldName)) {
+ deserializedBackend.httpsPort = reader.getNullable(JsonReader::getInt);
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedBackend.enabledState = BackendEnabledState.fromString(reader.getString());
+ } else if ("priority".equals(fieldName)) {
+ deserializedBackend.priority = reader.getNullable(JsonReader::getInt);
+ } else if ("weight".equals(fieldName)) {
+ deserializedBackend.weight = reader.getNullable(JsonReader::getInt);
+ } else if ("backendHostHeader".equals(fieldName)) {
+ deserializedBackend.backendHostHeader = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBackend;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendEnabledState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendEnabledState.java
index 10640453a2b76..4249686106417 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendEnabledState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendEnabledState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public BackendEnabledState() {
* @param name a name to look for.
* @return the corresponding BackendEnabledState.
*/
- @JsonCreator
public static BackendEnabledState fromString(String name) {
return fromString(name, BackendEnabledState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPool.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPool.java
index a2cabb3ef398c..745499166a6c4 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPool.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPool.java
@@ -6,8 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.fluent.models.BackendPoolProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -18,19 +21,16 @@ public final class BackendPool extends SubResource {
/*
* Properties of the Front Door Backend Pool
*/
- @JsonProperty(value = "properties")
private BackendPoolProperties innerProperties;
/*
* Resource name.
*/
- @JsonProperty(value = "name")
private String name;
/*
* Resource type.
*/
- @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
@@ -87,9 +87,7 @@ public BackendPool withId(String id) {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -176,4 +174,48 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", id());
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("name", this.name);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BackendPool from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BackendPool 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 BackendPool.
+ */
+ public static BackendPool fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BackendPool deserializedBackendPool = new BackendPool();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedBackendPool.withId(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedBackendPool.innerProperties = BackendPoolProperties.fromJson(reader);
+ } else if ("name".equals(fieldName)) {
+ deserializedBackendPool.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedBackendPool.type = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBackendPool;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPoolUpdateParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPoolUpdateParameters.java
index 43249b6ceef24..7acebead69b42 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPoolUpdateParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPoolUpdateParameters.java
@@ -6,30 +6,31 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* A collection of backends that can be routed to.
*/
@Fluent
-public class BackendPoolUpdateParameters {
+public class BackendPoolUpdateParameters implements JsonSerializable {
/*
* The set of backends for this pool
*/
- @JsonProperty(value = "backends")
private List backends;
/*
* Load balancing settings for a backend pool
*/
- @JsonProperty(value = "loadBalancingSettings")
private SubResource loadBalancingSettings;
/*
* L7 health probe settings for a backend pool
*/
- @JsonProperty(value = "healthProbeSettings")
private SubResource healthProbeSettings;
/**
@@ -108,4 +109,47 @@ public void validate() {
backends().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("backends", this.backends, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("loadBalancingSettings", this.loadBalancingSettings);
+ jsonWriter.writeJsonField("healthProbeSettings", this.healthProbeSettings);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BackendPoolUpdateParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BackendPoolUpdateParameters 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 BackendPoolUpdateParameters.
+ */
+ public static BackendPoolUpdateParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BackendPoolUpdateParameters deserializedBackendPoolUpdateParameters = new BackendPoolUpdateParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("backends".equals(fieldName)) {
+ List backends = reader.readArray(reader1 -> Backend.fromJson(reader1));
+ deserializedBackendPoolUpdateParameters.backends = backends;
+ } else if ("loadBalancingSettings".equals(fieldName)) {
+ deserializedBackendPoolUpdateParameters.loadBalancingSettings = SubResource.fromJson(reader);
+ } else if ("healthProbeSettings".equals(fieldName)) {
+ deserializedBackendPoolUpdateParameters.healthProbeSettings = SubResource.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBackendPoolUpdateParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPoolsSettings.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPoolsSettings.java
index 6a6f7692636e3..94029e091947f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPoolsSettings.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/BackendPoolsSettings.java
@@ -5,23 +5,27 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Settings that apply to all backend pools.
*/
@Fluent
-public final class BackendPoolsSettings {
+public final class BackendPoolsSettings implements JsonSerializable {
/*
- * Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.
+ * Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS
+ * requests.
*/
- @JsonProperty(value = "enforceCertificateNameCheck")
private EnforceCertificateNameCheckEnabledState enforceCertificateNameCheck;
/*
- * Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.
+ * Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and
+ * returns.
*/
- @JsonProperty(value = "sendRecvTimeoutSeconds")
private Integer sendRecvTimeoutSeconds;
/**
@@ -82,4 +86,45 @@ public BackendPoolsSettings withSendRecvTimeoutSeconds(Integer sendRecvTimeoutSe
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("enforceCertificateNameCheck",
+ this.enforceCertificateNameCheck == null ? null : this.enforceCertificateNameCheck.toString());
+ jsonWriter.writeNumberField("sendRecvTimeoutSeconds", this.sendRecvTimeoutSeconds);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BackendPoolsSettings from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BackendPoolsSettings 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 BackendPoolsSettings.
+ */
+ public static BackendPoolsSettings fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BackendPoolsSettings deserializedBackendPoolsSettings = new BackendPoolsSettings();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("enforceCertificateNameCheck".equals(fieldName)) {
+ deserializedBackendPoolsSettings.enforceCertificateNameCheck
+ = EnforceCertificateNameCheckEnabledState.fromString(reader.getString());
+ } else if ("sendRecvTimeoutSeconds".equals(fieldName)) {
+ deserializedBackendPoolsSettings.sendRecvTimeoutSeconds = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBackendPoolsSettings;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CacheConfiguration.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CacheConfiguration.java
index 55a124f119335..2acdd16a6b637 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CacheConfiguration.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CacheConfiguration.java
@@ -5,36 +5,38 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.time.Duration;
/**
* Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.
*/
@Fluent
-public final class CacheConfiguration {
+public final class CacheConfiguration implements JsonSerializable {
/*
* Treatment of URL query terms when forming the cache key.
*/
- @JsonProperty(value = "queryParameterStripDirective")
private FrontDoorQuery queryParameterStripDirective;
/*
* query parameters to include or exclude (comma separated).
*/
- @JsonProperty(value = "queryParameters")
private String queryParameters;
/*
* Whether to use dynamic compression for cached content
*/
- @JsonProperty(value = "dynamicCompression")
private DynamicCompressionEnabled dynamicCompression;
/*
- * The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year
+ * The duration for which the content needs to be cached. Allowed format is in ISO 8601 format
+ * (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year
*/
- @JsonProperty(value = "cacheDuration")
private Duration cacheDuration;
/**
@@ -132,4 +134,54 @@ public CacheConfiguration withCacheDuration(Duration cacheDuration) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("queryParameterStripDirective",
+ this.queryParameterStripDirective == null ? null : this.queryParameterStripDirective.toString());
+ jsonWriter.writeStringField("queryParameters", this.queryParameters);
+ jsonWriter.writeStringField("dynamicCompression",
+ this.dynamicCompression == null ? null : this.dynamicCompression.toString());
+ jsonWriter.writeStringField("cacheDuration", CoreUtils.durationToStringWithDays(this.cacheDuration));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CacheConfiguration from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CacheConfiguration 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 CacheConfiguration.
+ */
+ public static CacheConfiguration fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CacheConfiguration deserializedCacheConfiguration = new CacheConfiguration();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("queryParameterStripDirective".equals(fieldName)) {
+ deserializedCacheConfiguration.queryParameterStripDirective
+ = FrontDoorQuery.fromString(reader.getString());
+ } else if ("queryParameters".equals(fieldName)) {
+ deserializedCacheConfiguration.queryParameters = reader.getString();
+ } else if ("dynamicCompression".equals(fieldName)) {
+ deserializedCacheConfiguration.dynamicCompression
+ = DynamicCompressionEnabled.fromString(reader.getString());
+ } else if ("cacheDuration".equals(fieldName)) {
+ deserializedCacheConfiguration.cacheDuration
+ = reader.getNullable(nonNullReader -> Duration.parse(nonNullReader.getString()));
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCacheConfiguration;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CheckNameAvailabilityInput.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CheckNameAvailabilityInput.java
index 21588207bff42..a916197547276 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CheckNameAvailabilityInput.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CheckNameAvailabilityInput.java
@@ -6,23 +6,25 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Input of CheckNameAvailability API.
*/
@Fluent
-public final class CheckNameAvailabilityInput {
+public final class CheckNameAvailabilityInput implements JsonSerializable {
/*
* The resource name to validate.
*/
- @JsonProperty(value = "name", required = true)
private String name;
/*
* The type of the resource whose name is to be validated.
*/
- @JsonProperty(value = "type", required = true)
private ResourceType type;
/**
@@ -90,4 +92,44 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailabilityInput.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CheckNameAvailabilityInput from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CheckNameAvailabilityInput 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 CheckNameAvailabilityInput.
+ */
+ public static CheckNameAvailabilityInput fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CheckNameAvailabilityInput deserializedCheckNameAvailabilityInput = new CheckNameAvailabilityInput();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedCheckNameAvailabilityInput.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedCheckNameAvailabilityInput.type = ResourceType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCheckNameAvailabilityInput;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsConfiguration.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsConfiguration.java
index f12111d1364c4..d48be57aedf09 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsConfiguration.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsConfiguration.java
@@ -6,43 +6,42 @@
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.frontdoor.fluent.models.FrontDoorCertificateSourceParameters;
import com.azure.resourcemanager.frontdoor.fluent.models.KeyVaultCertificateSourceParameters;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Https settings for a domain.
*/
@Fluent
-public final class CustomHttpsConfiguration {
+public final class CustomHttpsConfiguration implements JsonSerializable {
/*
* Defines the source of the SSL certificate
*/
- @JsonProperty(value = "certificateSource", required = true)
private FrontDoorCertificateSource certificateSource;
/*
* Defines the TLS extension protocol that is used for secure delivery
*/
- @JsonProperty(value = "protocolType", required = true)
private FrontDoorTlsProtocolType protocolType;
/*
* The minimum TLS version required from the clients to establish an SSL handshake with Front Door.
*/
- @JsonProperty(value = "minimumTlsVersion", required = true)
private MinimumTlsVersion minimumTlsVersion;
/*
* KeyVault certificate source parameters (if certificateSource=AzureKeyVault)
*/
- @JsonProperty(value = "keyVaultCertificateSourceParameters")
private KeyVaultCertificateSourceParameters innerKeyVaultCertificateSourceParameters;
/*
* Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor)
*/
- @JsonProperty(value = "frontDoorCertificateSourceParameters")
private FrontDoorCertificateSourceParameters innerFrontDoorCertificateSourceParameters;
/**
@@ -265,4 +264,61 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(CustomHttpsConfiguration.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("certificateSource",
+ this.certificateSource == null ? null : this.certificateSource.toString());
+ jsonWriter.writeStringField("protocolType", this.protocolType == null ? null : this.protocolType.toString());
+ jsonWriter.writeStringField("minimumTlsVersion",
+ this.minimumTlsVersion == null ? null : this.minimumTlsVersion.toString());
+ jsonWriter.writeJsonField("keyVaultCertificateSourceParameters", this.innerKeyVaultCertificateSourceParameters);
+ jsonWriter.writeJsonField("frontDoorCertificateSourceParameters",
+ this.innerFrontDoorCertificateSourceParameters);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CustomHttpsConfiguration from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CustomHttpsConfiguration 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 CustomHttpsConfiguration.
+ */
+ public static CustomHttpsConfiguration fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CustomHttpsConfiguration deserializedCustomHttpsConfiguration = new CustomHttpsConfiguration();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("certificateSource".equals(fieldName)) {
+ deserializedCustomHttpsConfiguration.certificateSource
+ = FrontDoorCertificateSource.fromString(reader.getString());
+ } else if ("protocolType".equals(fieldName)) {
+ deserializedCustomHttpsConfiguration.protocolType
+ = FrontDoorTlsProtocolType.fromString(reader.getString());
+ } else if ("minimumTlsVersion".equals(fieldName)) {
+ deserializedCustomHttpsConfiguration.minimumTlsVersion
+ = MinimumTlsVersion.fromString(reader.getString());
+ } else if ("keyVaultCertificateSourceParameters".equals(fieldName)) {
+ deserializedCustomHttpsConfiguration.innerKeyVaultCertificateSourceParameters
+ = KeyVaultCertificateSourceParameters.fromJson(reader);
+ } else if ("frontDoorCertificateSourceParameters".equals(fieldName)) {
+ deserializedCustomHttpsConfiguration.innerFrontDoorCertificateSourceParameters
+ = FrontDoorCertificateSourceParameters.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCustomHttpsConfiguration;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsProvisioningState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsProvisioningState.java
index e7e66186db3fd..98db2f7799ca7 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsProvisioningState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsProvisioningState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -52,7 +51,6 @@ public CustomHttpsProvisioningState() {
* @param name a name to look for.
* @return the corresponding CustomHttpsProvisioningState.
*/
- @JsonCreator
public static CustomHttpsProvisioningState fromString(String name) {
return fromString(name, CustomHttpsProvisioningState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsProvisioningSubstate.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsProvisioningSubstate.java
index be4462ec6f2ec..0b0efd1f7fafe 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsProvisioningSubstate.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomHttpsProvisioningSubstate.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -82,7 +81,6 @@ public CustomHttpsProvisioningSubstate() {
* @param name a name to look for.
* @return the corresponding CustomHttpsProvisioningSubstate.
*/
- @JsonCreator
public static CustomHttpsProvisioningSubstate fromString(String name) {
return fromString(name, CustomHttpsProvisioningSubstate.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRule.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRule.java
index af32a447b7141..14c68d0304d10 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRule.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRule.java
@@ -6,66 +6,61 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Defines contents of a web application rule.
*/
@Fluent
-public final class CustomRule {
+public final class CustomRule implements JsonSerializable {
/*
* Describes the name of the rule.
*/
- @JsonProperty(value = "name")
private String name;
/*
* Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
*/
- @JsonProperty(value = "priority", required = true)
private int priority;
/*
* Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
*/
- @JsonProperty(value = "enabledState")
private CustomRuleEnabledState enabledState;
/*
* Describes type of rule.
*/
- @JsonProperty(value = "ruleType", required = true)
private RuleType ruleType;
/*
* Time window for resetting the rate limit count. Default is 1 minute.
*/
- @JsonProperty(value = "rateLimitDurationInMinutes")
private Integer rateLimitDurationInMinutes;
/*
* Number of allowed requests per client within the time window.
*/
- @JsonProperty(value = "rateLimitThreshold")
private Integer rateLimitThreshold;
/*
* Describes the list of variables to group the rate limit requests
*/
- @JsonProperty(value = "groupBy")
private List groupBy;
/*
* List of match conditions.
*/
- @JsonProperty(value = "matchConditions", required = true)
private List matchConditions;
/*
* Describes what action to be applied when rule matches.
*/
- @JsonProperty(value = "action", required = true)
private ActionType action;
/**
@@ -284,4 +279,69 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(CustomRule.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeIntField("priority", this.priority);
+ jsonWriter.writeStringField("ruleType", this.ruleType == null ? null : this.ruleType.toString());
+ jsonWriter.writeArrayField("matchConditions", this.matchConditions,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("action", this.action == null ? null : this.action.toString());
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ jsonWriter.writeNumberField("rateLimitDurationInMinutes", this.rateLimitDurationInMinutes);
+ jsonWriter.writeNumberField("rateLimitThreshold", this.rateLimitThreshold);
+ jsonWriter.writeArrayField("groupBy", this.groupBy, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CustomRule from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CustomRule 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 CustomRule.
+ */
+ public static CustomRule fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CustomRule deserializedCustomRule = new CustomRule();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("priority".equals(fieldName)) {
+ deserializedCustomRule.priority = reader.getInt();
+ } else if ("ruleType".equals(fieldName)) {
+ deserializedCustomRule.ruleType = RuleType.fromString(reader.getString());
+ } else if ("matchConditions".equals(fieldName)) {
+ List matchConditions
+ = reader.readArray(reader1 -> MatchCondition.fromJson(reader1));
+ deserializedCustomRule.matchConditions = matchConditions;
+ } else if ("action".equals(fieldName)) {
+ deserializedCustomRule.action = ActionType.fromString(reader.getString());
+ } else if ("name".equals(fieldName)) {
+ deserializedCustomRule.name = reader.getString();
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedCustomRule.enabledState = CustomRuleEnabledState.fromString(reader.getString());
+ } else if ("rateLimitDurationInMinutes".equals(fieldName)) {
+ deserializedCustomRule.rateLimitDurationInMinutes = reader.getNullable(JsonReader::getInt);
+ } else if ("rateLimitThreshold".equals(fieldName)) {
+ deserializedCustomRule.rateLimitThreshold = reader.getNullable(JsonReader::getInt);
+ } else if ("groupBy".equals(fieldName)) {
+ List groupBy = reader.readArray(reader1 -> GroupByVariable.fromJson(reader1));
+ deserializedCustomRule.groupBy = groupBy;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCustomRule;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRuleEnabledState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRuleEnabledState.java
index 05aa1a367b0f0..b816e274d96ca 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRuleEnabledState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRuleEnabledState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public CustomRuleEnabledState() {
* @param name a name to look for.
* @return the corresponding CustomRuleEnabledState.
*/
- @JsonCreator
public static CustomRuleEnabledState fromString(String name) {
return fromString(name, CustomRuleEnabledState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRuleList.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRuleList.java
index c15d938612a09..056579b013d80 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRuleList.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/CustomRuleList.java
@@ -5,18 +5,21 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Defines contents of custom rules.
*/
@Fluent
-public final class CustomRuleList {
+public final class CustomRuleList implements JsonSerializable {
/*
* List of rules
*/
- @JsonProperty(value = "rules")
private List rules;
/**
@@ -55,4 +58,41 @@ public void validate() {
rules().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("rules", this.rules, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CustomRuleList from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CustomRuleList 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 CustomRuleList.
+ */
+ public static CustomRuleList fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CustomRuleList deserializedCustomRuleList = new CustomRuleList();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("rules".equals(fieldName)) {
+ List rules = reader.readArray(reader1 -> CustomRule.fromJson(reader1));
+ deserializedCustomRuleList.rules = rules;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCustomRuleList;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/DynamicCompressionEnabled.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/DynamicCompressionEnabled.java
index ff51607861a83..1d3b83b3e8ff9 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/DynamicCompressionEnabled.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/DynamicCompressionEnabled.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public DynamicCompressionEnabled() {
* @param name a name to look for.
* @return the corresponding DynamicCompressionEnabled.
*/
- @JsonCreator
public static DynamicCompressionEnabled fromString(String name) {
return fromString(name, DynamicCompressionEnabled.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Endpoint.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Endpoint.java
index c0dbe216098cc..e3c79f7ecb477 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Endpoint.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Endpoint.java
@@ -5,23 +5,25 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Defines the endpoint properties.
*/
@Fluent
-public final class Endpoint {
+public final class Endpoint implements JsonSerializable {
/*
* The name of the endpoint
*/
- @JsonProperty(value = "name")
private String name;
/*
* The endpoint URL
*/
- @JsonProperty(value = "endpoint")
private String endpoint;
/**
@@ -77,4 +79,43 @@ public Endpoint withEndpoint(String endpoint) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeStringField("endpoint", this.endpoint);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of Endpoint from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of Endpoint 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 Endpoint.
+ */
+ public static Endpoint fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ Endpoint deserializedEndpoint = new Endpoint();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedEndpoint.name = reader.getString();
+ } else if ("endpoint".equals(fieldName)) {
+ deserializedEndpoint.endpoint = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEndpoint;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/EndpointType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/EndpointType.java
index 5ebaec5ec3739..a1059ace9dc04 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/EndpointType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/EndpointType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -47,7 +46,6 @@ public EndpointType() {
* @param name a name to look for.
* @return the corresponding EndpointType.
*/
- @JsonCreator
public static EndpointType fromString(String name) {
return fromString(name, EndpointType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/EnforceCertificateNameCheckEnabledState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/EnforceCertificateNameCheckEnabledState.java
index 7cdfa7585c863..d520257491e73 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/EnforceCertificateNameCheckEnabledState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/EnforceCertificateNameCheckEnabledState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -38,7 +37,6 @@ public EnforceCertificateNameCheckEnabledState() {
* @param name a name to look for.
* @return the corresponding EnforceCertificateNameCheckEnabledState.
*/
- @JsonCreator
public static EnforceCertificateNameCheckEnabledState fromString(String name) {
return fromString(name, EnforceCertificateNameCheckEnabledState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ExperimentList.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ExperimentList.java
index 169e75fd443d6..b873e4facbd13 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ExperimentList.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ExperimentList.java
@@ -5,8 +5,12 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.ExperimentInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -14,17 +18,15 @@
* results.
*/
@Fluent
-public final class ExperimentList {
+public final class ExperimentList implements JsonSerializable {
/*
* List of Experiments within a resource group.
*/
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private List value;
/*
* URL to get the next set of Experiment objects if there are any.
*/
- @JsonProperty(value = "nextLink")
private String nextLink;
/**
@@ -72,4 +74,43 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ExperimentList from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExperimentList 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 ExperimentList.
+ */
+ public static ExperimentList fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExperimentList deserializedExperimentList = new ExperimentList();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> ExperimentInner.fromJson(reader1));
+ deserializedExperimentList.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedExperimentList.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExperimentList;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ExperimentUpdateModel.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ExperimentUpdateModel.java
index 2ca80ec1d11b4..a81354cdb174d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ExperimentUpdateModel.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ExperimentUpdateModel.java
@@ -5,27 +5,27 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.ExperimentUpdateProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
* Defines modifiable attributes of an Experiment.
*/
@Fluent
-public final class ExperimentUpdateModel {
+public final class ExperimentUpdateModel implements JsonSerializable {
/*
* Resource tags.
*/
- @JsonProperty(value = "tags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/*
* The properties of a Profile
*/
- @JsonProperty(value = "properties")
private ExperimentUpdateProperties innerProperties;
/**
@@ -119,4 +119,44 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ExperimentUpdateModel from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExperimentUpdateModel 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 ExperimentUpdateModel.
+ */
+ public static ExperimentUpdateModel fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExperimentUpdateModel deserializedExperimentUpdateModel = new ExperimentUpdateModel();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedExperimentUpdateModel.tags = tags;
+ } else if ("properties".equals(fieldName)) {
+ deserializedExperimentUpdateModel.innerProperties = ExperimentUpdateProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExperimentUpdateModel;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ForwardingConfiguration.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ForwardingConfiguration.java
index 874de109d1f59..8f1572a2e12a6 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ForwardingConfiguration.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ForwardingConfiguration.java
@@ -6,51 +6,39 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonTypeId;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Describes Forwarding Route.
*/
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- property = "@odata.type",
- defaultImpl = ForwardingConfiguration.class,
- visible = true)
-@JsonTypeName("#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration")
@Fluent
public final class ForwardingConfiguration extends RouteConfiguration {
/*
* The @odata.type property.
*/
- @JsonTypeId
- @JsonProperty(value = "@odata.type", required = true)
private String odataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration";
/*
* A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.
*/
- @JsonProperty(value = "customForwardingPath")
private String customForwardingPath;
/*
* Protocol this rule will use when forwarding traffic to backends.
*/
- @JsonProperty(value = "forwardingProtocol")
private FrontDoorForwardingProtocol forwardingProtocol;
/*
* The caching configuration associated with this rule.
*/
- @JsonProperty(value = "cacheConfiguration")
private CacheConfiguration cacheConfiguration;
/*
* A reference to the BackendPool which this rule routes to.
*/
- @JsonProperty(value = "backendPool")
private SubResource backendPool;
/**
@@ -158,9 +146,58 @@ public ForwardingConfiguration withBackendPool(SubResource backendPool) {
*/
@Override
public void validate() {
- super.validate();
if (cacheConfiguration() != null) {
cacheConfiguration().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("@odata.type", this.odataType);
+ jsonWriter.writeStringField("customForwardingPath", this.customForwardingPath);
+ jsonWriter.writeStringField("forwardingProtocol",
+ this.forwardingProtocol == null ? null : this.forwardingProtocol.toString());
+ jsonWriter.writeJsonField("cacheConfiguration", this.cacheConfiguration);
+ jsonWriter.writeJsonField("backendPool", this.backendPool);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ForwardingConfiguration from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ForwardingConfiguration 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 ForwardingConfiguration.
+ */
+ public static ForwardingConfiguration fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ForwardingConfiguration deserializedForwardingConfiguration = new ForwardingConfiguration();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("@odata.type".equals(fieldName)) {
+ deserializedForwardingConfiguration.odataType = reader.getString();
+ } else if ("customForwardingPath".equals(fieldName)) {
+ deserializedForwardingConfiguration.customForwardingPath = reader.getString();
+ } else if ("forwardingProtocol".equals(fieldName)) {
+ deserializedForwardingConfiguration.forwardingProtocol
+ = FrontDoorForwardingProtocol.fromString(reader.getString());
+ } else if ("cacheConfiguration".equals(fieldName)) {
+ deserializedForwardingConfiguration.cacheConfiguration = CacheConfiguration.fromJson(reader);
+ } else if ("backendPool".equals(fieldName)) {
+ deserializedForwardingConfiguration.backendPool = SubResource.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedForwardingConfiguration;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoor.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoor.java
index 23ef26b2e771c..cced7bde32258 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoor.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoor.java
@@ -52,9 +52,7 @@ public interface FrontDoor {
Map tags();
/**
- * Gets the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status of the Front Door.
+ * Gets the resourceState property: Resource status of the Front Door.
*
* @return the resourceState value.
*/
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorCertificateSource.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorCertificateSource.java
index 65e0a79318492..69b2f7c44b33d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorCertificateSource.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorCertificateSource.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public FrontDoorCertificateSource() {
* @param name a name to look for.
* @return the corresponding FrontDoorCertificateSource.
*/
- @JsonCreator
public static FrontDoorCertificateSource fromString(String name) {
return fromString(name, FrontDoorCertificateSource.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorCertificateType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorCertificateType.java
index aeb6a342b5167..d313be8f98b23 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorCertificateType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorCertificateType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -32,7 +31,6 @@ public FrontDoorCertificateType() {
* @param name a name to look for.
* @return the corresponding FrontDoorCertificateType.
*/
- @JsonCreator
public static FrontDoorCertificateType fromString(String name) {
return fromString(name, FrontDoorCertificateType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorEnabledState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorEnabledState.java
index bc76aa3a48ea6..bbd450ace7a0f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorEnabledState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorEnabledState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public FrontDoorEnabledState() {
* @param name a name to look for.
* @return the corresponding FrontDoorEnabledState.
*/
- @JsonCreator
public static FrontDoorEnabledState fromString(String name) {
return fromString(name, FrontDoorEnabledState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorForwardingProtocol.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorForwardingProtocol.java
index 06495304d967e..4ad1d31ee2534 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorForwardingProtocol.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorForwardingProtocol.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -42,7 +41,6 @@ public FrontDoorForwardingProtocol() {
* @param name a name to look for.
* @return the corresponding FrontDoorForwardingProtocol.
*/
- @JsonCreator
public static FrontDoorForwardingProtocol fromString(String name) {
return fromString(name, FrontDoorForwardingProtocol.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorHealthProbeMethod.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorHealthProbeMethod.java
index f6727bed20aea..3e77bcca162c4 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorHealthProbeMethod.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorHealthProbeMethod.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public FrontDoorHealthProbeMethod() {
* @param name a name to look for.
* @return the corresponding FrontDoorHealthProbeMethod.
*/
- @JsonCreator
public static FrontDoorHealthProbeMethod fromString(String name) {
return fromString(name, FrontDoorHealthProbeMethod.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorListResult.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorListResult.java
index a876ba5cc3421..df048840e5d67 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorListResult.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorListResult.java
@@ -5,8 +5,12 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.FrontDoorInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -14,17 +18,15 @@
* set of results.
*/
@Fluent
-public final class FrontDoorListResult {
+public final class FrontDoorListResult implements JsonSerializable {
/*
* List of Front Doors within a resource group.
*/
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private List value;
/*
* URL to get the next set of Front Door objects if there are any.
*/
- @JsonProperty(value = "nextLink")
private String nextLink;
/**
@@ -72,4 +74,43 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontDoorListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontDoorListResult 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 FrontDoorListResult.
+ */
+ public static FrontDoorListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontDoorListResult deserializedFrontDoorListResult = new FrontDoorListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> FrontDoorInner.fromJson(reader1));
+ deserializedFrontDoorListResult.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedFrontDoorListResult.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontDoorListResult;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorProtocol.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorProtocol.java
index 633ad9b12d5c3..e59ed3736017a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorProtocol.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorProtocol.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public FrontDoorProtocol() {
* @param name a name to look for.
* @return the corresponding FrontDoorProtocol.
*/
- @JsonCreator
public static FrontDoorProtocol fromString(String name) {
return fromString(name, FrontDoorProtocol.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorQuery.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorQuery.java
index 40fc1c2c3cb4e..616047d991e40 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorQuery.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorQuery.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -47,7 +46,6 @@ public FrontDoorQuery() {
* @param name a name to look for.
* @return the corresponding FrontDoorQuery.
*/
- @JsonCreator
public static FrontDoorQuery fromString(String name) {
return fromString(name, FrontDoorQuery.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorRedirectProtocol.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorRedirectProtocol.java
index 12f9458858c80..618bc2b3cd405 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorRedirectProtocol.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorRedirectProtocol.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -42,7 +41,6 @@ public FrontDoorRedirectProtocol() {
* @param name a name to look for.
* @return the corresponding FrontDoorRedirectProtocol.
*/
- @JsonCreator
public static FrontDoorRedirectProtocol fromString(String name) {
return fromString(name, FrontDoorRedirectProtocol.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorRedirectType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorRedirectType.java
index 88af328b7411a..0e982329f4d8a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorRedirectType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorRedirectType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -47,7 +46,6 @@ public FrontDoorRedirectType() {
* @param name a name to look for.
* @return the corresponding FrontDoorRedirectType.
*/
- @JsonCreator
public static FrontDoorRedirectType fromString(String name) {
return fromString(name, FrontDoorRedirectType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorResourceState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorResourceState.java
index 4c184501a897a..75eac5a3eb2bb 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorResourceState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorResourceState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -67,7 +66,6 @@ public FrontDoorResourceState() {
* @param name a name to look for.
* @return the corresponding FrontDoorResourceState.
*/
- @JsonCreator
public static FrontDoorResourceState fromString(String name) {
return fromString(name, FrontDoorResourceState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorTlsProtocolType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorTlsProtocolType.java
index 8c848a4b0b61c..8dcd06e8ec423 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorTlsProtocolType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorTlsProtocolType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -32,7 +31,6 @@ public FrontDoorTlsProtocolType() {
* @param name a name to look for.
* @return the corresponding FrontDoorTlsProtocolType.
*/
- @JsonCreator
public static FrontDoorTlsProtocolType fromString(String name) {
return fromString(name, FrontDoorTlsProtocolType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorUpdateParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorUpdateParameters.java
index eb73c3ee9a1cf..1b359510beceb 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorUpdateParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontDoorUpdateParameters.java
@@ -5,61 +5,57 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.FrontendEndpointInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* The properties needed to update a Front Door.
*/
@Fluent
-public class FrontDoorUpdateParameters {
+public class FrontDoorUpdateParameters implements JsonSerializable {
/*
* A friendly name for the frontDoor
*/
- @JsonProperty(value = "friendlyName")
private String friendlyName;
/*
* Routing rules associated with this Front Door.
*/
- @JsonProperty(value = "routingRules")
private List routingRules;
/*
* Load balancing settings associated with this Front Door instance.
*/
- @JsonProperty(value = "loadBalancingSettings")
private List loadBalancingSettings;
/*
* Health probe settings associated with this Front Door instance.
*/
- @JsonProperty(value = "healthProbeSettings")
private List healthProbeSettings;
/*
* Backend pools available to routing rules.
*/
- @JsonProperty(value = "backendPools")
private List backendPools;
/*
* Frontend endpoints available to routing rules.
*/
- @JsonProperty(value = "frontendEndpoints")
private List frontendEndpoints;
/*
* Settings for all backendPools
*/
- @JsonProperty(value = "backendPoolsSettings")
private BackendPoolsSettings backendPoolsSettings;
/*
* Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'
*/
- @JsonProperty(value = "enabledState")
private FrontDoorEnabledState enabledState;
/**
@@ -255,4 +251,73 @@ public void validate() {
backendPoolsSettings().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("friendlyName", this.friendlyName);
+ jsonWriter.writeArrayField("routingRules", this.routingRules, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("loadBalancingSettings", this.loadBalancingSettings,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("healthProbeSettings", this.healthProbeSettings,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("backendPools", this.backendPools, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("frontendEndpoints", this.frontendEndpoints,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("backendPoolsSettings", this.backendPoolsSettings);
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontDoorUpdateParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontDoorUpdateParameters 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 FrontDoorUpdateParameters.
+ */
+ public static FrontDoorUpdateParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontDoorUpdateParameters deserializedFrontDoorUpdateParameters = new FrontDoorUpdateParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("friendlyName".equals(fieldName)) {
+ deserializedFrontDoorUpdateParameters.friendlyName = reader.getString();
+ } else if ("routingRules".equals(fieldName)) {
+ List routingRules = reader.readArray(reader1 -> RoutingRule.fromJson(reader1));
+ deserializedFrontDoorUpdateParameters.routingRules = routingRules;
+ } else if ("loadBalancingSettings".equals(fieldName)) {
+ List loadBalancingSettings
+ = reader.readArray(reader1 -> LoadBalancingSettingsModel.fromJson(reader1));
+ deserializedFrontDoorUpdateParameters.loadBalancingSettings = loadBalancingSettings;
+ } else if ("healthProbeSettings".equals(fieldName)) {
+ List healthProbeSettings
+ = reader.readArray(reader1 -> HealthProbeSettingsModel.fromJson(reader1));
+ deserializedFrontDoorUpdateParameters.healthProbeSettings = healthProbeSettings;
+ } else if ("backendPools".equals(fieldName)) {
+ List backendPools = reader.readArray(reader1 -> BackendPool.fromJson(reader1));
+ deserializedFrontDoorUpdateParameters.backendPools = backendPools;
+ } else if ("frontendEndpoints".equals(fieldName)) {
+ List frontendEndpoints
+ = reader.readArray(reader1 -> FrontendEndpointInner.fromJson(reader1));
+ deserializedFrontDoorUpdateParameters.frontendEndpoints = frontendEndpoints;
+ } else if ("backendPoolsSettings".equals(fieldName)) {
+ deserializedFrontDoorUpdateParameters.backendPoolsSettings = BackendPoolsSettings.fromJson(reader);
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedFrontDoorUpdateParameters.enabledState
+ = FrontDoorEnabledState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontDoorUpdateParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpoint.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpoint.java
index 2c7d2294074f7..1227033a91018 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpoint.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpoint.java
@@ -32,9 +32,7 @@ public interface FrontendEndpoint {
String type();
/**
- * Gets the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Gets the resourceState property: Resource status.
*
* @return the resourceState value.
*/
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointLink.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointLink.java
index 2d86e931bc802..8131977aa016f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointLink.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointLink.java
@@ -5,17 +5,20 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Defines the Resource ID for a Frontend Endpoint.
*/
@Fluent
-public final class FrontendEndpointLink {
+public final class FrontendEndpointLink implements JsonSerializable {
/*
* Resource ID.
*/
- @JsonProperty(value = "id")
private String id;
/**
@@ -51,4 +54,40 @@ public FrontendEndpointLink withId(String id) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontendEndpointLink from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontendEndpointLink if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the FrontendEndpointLink.
+ */
+ public static FrontendEndpointLink fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontendEndpointLink deserializedFrontendEndpointLink = new FrontendEndpointLink();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedFrontendEndpointLink.id = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontendEndpointLink;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointUpdateParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointUpdateParameters.java
index 755f1df27dfe7..6d73ed21448bc 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointUpdateParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointUpdateParameters.java
@@ -5,35 +5,35 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Frontend endpoint used in routing rule.
*/
@Fluent
-public class FrontendEndpointUpdateParameters {
+public class FrontendEndpointUpdateParameters implements JsonSerializable {
/*
* The host name of the frontendEndpoint. Must be a domain name.
*/
- @JsonProperty(value = "hostName")
private String hostname;
/*
* Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
*/
- @JsonProperty(value = "sessionAffinityEnabledState")
private SessionAffinityEnabledState sessionAffinityEnabledState;
/*
* UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.
*/
- @JsonProperty(value = "sessionAffinityTtlSeconds")
private Integer sessionAffinityTtlSeconds;
/*
* Defines the Web Application Firewall policy for each host (if applicable)
*/
- @JsonProperty(value = "webApplicationFirewallPolicyLink")
private FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink;
/**
@@ -140,4 +140,54 @@ public void validate() {
webApplicationFirewallPolicyLink().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("hostName", this.hostname);
+ jsonWriter.writeStringField("sessionAffinityEnabledState",
+ this.sessionAffinityEnabledState == null ? null : this.sessionAffinityEnabledState.toString());
+ jsonWriter.writeNumberField("sessionAffinityTtlSeconds", this.sessionAffinityTtlSeconds);
+ jsonWriter.writeJsonField("webApplicationFirewallPolicyLink", this.webApplicationFirewallPolicyLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontendEndpointUpdateParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontendEndpointUpdateParameters 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 FrontendEndpointUpdateParameters.
+ */
+ public static FrontendEndpointUpdateParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontendEndpointUpdateParameters deserializedFrontendEndpointUpdateParameters
+ = new FrontendEndpointUpdateParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("hostName".equals(fieldName)) {
+ deserializedFrontendEndpointUpdateParameters.hostname = reader.getString();
+ } else if ("sessionAffinityEnabledState".equals(fieldName)) {
+ deserializedFrontendEndpointUpdateParameters.sessionAffinityEnabledState
+ = SessionAffinityEnabledState.fromString(reader.getString());
+ } else if ("sessionAffinityTtlSeconds".equals(fieldName)) {
+ deserializedFrontendEndpointUpdateParameters.sessionAffinityTtlSeconds
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("webApplicationFirewallPolicyLink".equals(fieldName)) {
+ deserializedFrontendEndpointUpdateParameters.webApplicationFirewallPolicyLink
+ = FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontendEndpointUpdateParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.java
index 97c936217645c..0b60a7dc81da9 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.java
@@ -5,17 +5,21 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Defines the Web Application Firewall policy for each host (if applicable).
*/
@Fluent
-public final class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink {
+public final class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
+ implements JsonSerializable {
/*
* Resource ID.
*/
- @JsonProperty(value = "id")
private String id;
/**
@@ -51,4 +55,44 @@ public FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink withId(S
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink 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
+ * FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.
+ */
+ public static FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink deserializedFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
+ = new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.id
+ = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointsListResult.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointsListResult.java
index ad382e54f4aa6..303b2657d47c0 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointsListResult.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/FrontendEndpointsListResult.java
@@ -5,8 +5,12 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.FrontendEndpointInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -14,17 +18,15 @@
* get the next set of results.
*/
@Fluent
-public final class FrontendEndpointsListResult {
+public final class FrontendEndpointsListResult implements JsonSerializable {
/*
* List of Frontend endpoints within a Front Door.
*/
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private List value;
/*
* URL to get the next set of frontend endpoints if there are any.
*/
- @JsonProperty(value = "nextLink")
private String nextLink;
/**
@@ -72,4 +74,44 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FrontendEndpointsListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FrontendEndpointsListResult 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 FrontendEndpointsListResult.
+ */
+ public static FrontendEndpointsListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FrontendEndpointsListResult deserializedFrontendEndpointsListResult = new FrontendEndpointsListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> FrontendEndpointInner.fromJson(reader1));
+ deserializedFrontendEndpointsListResult.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedFrontendEndpointsListResult.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFrontendEndpointsListResult;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/GroupByVariable.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/GroupByVariable.java
index ad914b9c92ed4..3109b48890fe8 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/GroupByVariable.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/GroupByVariable.java
@@ -6,17 +6,20 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Describes the variables available to group the rate limit requests.
*/
@Fluent
-public final class GroupByVariable {
+public final class GroupByVariable implements JsonSerializable {
/*
* Describes the supported variable for group by
*/
- @JsonProperty(value = "variableName", required = true)
private VariableName variableName;
/**
@@ -58,4 +61,41 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(GroupByVariable.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("variableName", this.variableName == null ? null : this.variableName.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GroupByVariable from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GroupByVariable if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the GroupByVariable.
+ */
+ public static GroupByVariable fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GroupByVariable deserializedGroupByVariable = new GroupByVariable();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("variableName".equals(fieldName)) {
+ deserializedGroupByVariable.variableName = VariableName.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGroupByVariable;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HeaderAction.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HeaderAction.java
index 5e1c533c738a5..9faa262032752 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HeaderAction.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HeaderAction.java
@@ -6,29 +6,30 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* An action that can manipulate an http header.
*/
@Fluent
-public final class HeaderAction {
+public final class HeaderAction implements JsonSerializable {
/*
* Which type of manipulation to apply to the header.
*/
- @JsonProperty(value = "headerActionType", required = true)
private HeaderActionType headerActionType;
/*
* The name of the header this action will apply to.
*/
- @JsonProperty(value = "headerName", required = true)
private String headerName;
/*
* The value to update the given header name with. This value is not used if the actionType is Delete.
*/
- @JsonProperty(value = "value")
private String value;
/**
@@ -116,4 +117,48 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(HeaderAction.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("headerActionType",
+ this.headerActionType == null ? null : this.headerActionType.toString());
+ jsonWriter.writeStringField("headerName", this.headerName);
+ jsonWriter.writeStringField("value", this.value);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of HeaderAction from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of HeaderAction 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 HeaderAction.
+ */
+ public static HeaderAction fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ HeaderAction deserializedHeaderAction = new HeaderAction();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("headerActionType".equals(fieldName)) {
+ deserializedHeaderAction.headerActionType = HeaderActionType.fromString(reader.getString());
+ } else if ("headerName".equals(fieldName)) {
+ deserializedHeaderAction.headerName = reader.getString();
+ } else if ("value".equals(fieldName)) {
+ deserializedHeaderAction.value = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedHeaderAction;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HeaderActionType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HeaderActionType.java
index a18a1d67a04fa..ff58a279e7100 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HeaderActionType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HeaderActionType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -42,7 +41,6 @@ public HeaderActionType() {
* @param name a name to look for.
* @return the corresponding HeaderActionType.
*/
- @JsonCreator
public static HeaderActionType fromString(String name) {
return fromString(name, HeaderActionType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeEnabled.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeEnabled.java
index ffe1056ea5b1a..23cd1f751877b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeEnabled.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeEnabled.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -38,7 +37,6 @@ public HealthProbeEnabled() {
* @param name a name to look for.
* @return the corresponding HealthProbeEnabled.
*/
- @JsonCreator
public static HealthProbeEnabled fromString(String name) {
return fromString(name, HealthProbeEnabled.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeSettingsModel.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeSettingsModel.java
index 52b1c7ec9317f..0a2a60a60529e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeSettingsModel.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeSettingsModel.java
@@ -6,8 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.fluent.models.HealthProbeSettingsProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Load balancing settings for a backend pool.
@@ -17,19 +20,16 @@ public final class HealthProbeSettingsModel extends SubResource {
/*
* Properties of the health probe settings
*/
- @JsonProperty(value = "properties")
private HealthProbeSettingsProperties innerProperties;
/*
* Resource name.
*/
- @JsonProperty(value = "name")
private String name;
/*
* Resource type.
*/
- @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
@@ -86,9 +86,7 @@ public HealthProbeSettingsModel withId(String id) {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -227,4 +225,49 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", id());
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("name", this.name);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of HealthProbeSettingsModel from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of HealthProbeSettingsModel 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 HealthProbeSettingsModel.
+ */
+ public static HealthProbeSettingsModel fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ HealthProbeSettingsModel deserializedHealthProbeSettingsModel = new HealthProbeSettingsModel();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedHealthProbeSettingsModel.withId(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedHealthProbeSettingsModel.innerProperties
+ = HealthProbeSettingsProperties.fromJson(reader);
+ } else if ("name".equals(fieldName)) {
+ deserializedHealthProbeSettingsModel.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedHealthProbeSettingsModel.type = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedHealthProbeSettingsModel;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeSettingsUpdateParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeSettingsUpdateParameters.java
index b4f5ae9f120d8..37fe51275a43f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeSettingsUpdateParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/HealthProbeSettingsUpdateParameters.java
@@ -5,41 +5,41 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* L7 health probe settings for a backend pool.
*/
@Fluent
-public class HealthProbeSettingsUpdateParameters {
+public class HealthProbeSettingsUpdateParameters implements JsonSerializable {
/*
* The path to use for the health probe. Default is /
*/
- @JsonProperty(value = "path")
private String path;
/*
* Protocol scheme to use for this probe
*/
- @JsonProperty(value = "protocol")
private FrontDoorProtocol protocol;
/*
* The number of seconds between health probes.
*/
- @JsonProperty(value = "intervalInSeconds")
private Integer intervalInSeconds;
/*
* Configures which HTTP method to use to probe the backends defined under backendPools.
*/
- @JsonProperty(value = "healthProbeMethod")
private FrontDoorHealthProbeMethod healthProbeMethod;
/*
- * 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.
+ * 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.
*/
- @JsonProperty(value = "enabledState")
private HealthProbeEnabled enabledState;
/**
@@ -161,4 +161,58 @@ public HealthProbeSettingsUpdateParameters withEnabledState(HealthProbeEnabled e
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("path", this.path);
+ jsonWriter.writeStringField("protocol", this.protocol == null ? null : this.protocol.toString());
+ jsonWriter.writeNumberField("intervalInSeconds", this.intervalInSeconds);
+ jsonWriter.writeStringField("healthProbeMethod",
+ this.healthProbeMethod == null ? null : this.healthProbeMethod.toString());
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of HealthProbeSettingsUpdateParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of HealthProbeSettingsUpdateParameters 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 HealthProbeSettingsUpdateParameters.
+ */
+ public static HealthProbeSettingsUpdateParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ HealthProbeSettingsUpdateParameters deserializedHealthProbeSettingsUpdateParameters
+ = new HealthProbeSettingsUpdateParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("path".equals(fieldName)) {
+ deserializedHealthProbeSettingsUpdateParameters.path = reader.getString();
+ } else if ("protocol".equals(fieldName)) {
+ deserializedHealthProbeSettingsUpdateParameters.protocol
+ = FrontDoorProtocol.fromString(reader.getString());
+ } else if ("intervalInSeconds".equals(fieldName)) {
+ deserializedHealthProbeSettingsUpdateParameters.intervalInSeconds
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("healthProbeMethod".equals(fieldName)) {
+ deserializedHealthProbeSettingsUpdateParameters.healthProbeMethod
+ = FrontDoorHealthProbeMethod.fromString(reader.getString());
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedHealthProbeSettingsUpdateParameters.enabledState
+ = HealthProbeEnabled.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedHealthProbeSettingsUpdateParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/KeyVaultCertificateSourceParametersVault.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/KeyVaultCertificateSourceParametersVault.java
index b523a729f3756..5ce5bca65d41a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/KeyVaultCertificateSourceParametersVault.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/KeyVaultCertificateSourceParametersVault.java
@@ -5,17 +5,21 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* The Key Vault containing the SSL certificate.
*/
@Fluent
-public final class KeyVaultCertificateSourceParametersVault {
+public final class KeyVaultCertificateSourceParametersVault
+ implements JsonSerializable {
/*
* Resource ID.
*/
- @JsonProperty(value = "id")
private String id;
/**
@@ -51,4 +55,41 @@ public KeyVaultCertificateSourceParametersVault withId(String id) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of KeyVaultCertificateSourceParametersVault from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of KeyVaultCertificateSourceParametersVault 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 KeyVaultCertificateSourceParametersVault.
+ */
+ public static KeyVaultCertificateSourceParametersVault fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ KeyVaultCertificateSourceParametersVault deserializedKeyVaultCertificateSourceParametersVault
+ = new KeyVaultCertificateSourceParametersVault();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedKeyVaultCertificateSourceParametersVault.id = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedKeyVaultCertificateSourceParametersVault;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LatencyMetric.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LatencyMetric.java
index a62648b67e720..e6720b6d12334 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LatencyMetric.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LatencyMetric.java
@@ -5,71 +5,65 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Defines the properties of a latency metric used in the latency scorecard.
*/
@Immutable
-public final class LatencyMetric {
+public final class LatencyMetric implements JsonSerializable {
/*
* The name of the Latency Metric
*/
- @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* The end time of the Latency Scorecard in UTC
*/
- @JsonProperty(value = "endDateTimeUTC", access = JsonProperty.Access.WRITE_ONLY)
private String endDateTimeUtc;
/*
* The metric value of the A endpoint
*/
- @JsonProperty(value = "aValue", access = JsonProperty.Access.WRITE_ONLY)
private Float aValue;
/*
* The metric value of the B endpoint
*/
- @JsonProperty(value = "bValue", access = JsonProperty.Access.WRITE_ONLY)
private Float bValue;
/*
* The difference in value between endpoint A and B
*/
- @JsonProperty(value = "delta", access = JsonProperty.Access.WRITE_ONLY)
private Float delta;
/*
* The percent difference between endpoint A and B
*/
- @JsonProperty(value = "deltaPercent", access = JsonProperty.Access.WRITE_ONLY)
private Float deltaPercent;
/*
* The lower end of the 95% confidence interval for endpoint A
*/
- @JsonProperty(value = "aCLower95CI", access = JsonProperty.Access.WRITE_ONLY)
private Float aCLower95CI;
/*
* The upper end of the 95% confidence interval for endpoint A
*/
- @JsonProperty(value = "aHUpper95CI", access = JsonProperty.Access.WRITE_ONLY)
private Float aHUpper95CI;
/*
* The lower end of the 95% confidence interval for endpoint B
*/
- @JsonProperty(value = "bCLower95CI", access = JsonProperty.Access.WRITE_ONLY)
private Float bCLower95CI;
/*
* The upper end of the 95% confidence interval for endpoint B
*/
- @JsonProperty(value = "bUpper95CI", access = JsonProperty.Access.WRITE_ONLY)
private Float bUpper95CI;
/**
@@ -175,4 +169,57 @@ public Float bUpper95CI() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LatencyMetric from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LatencyMetric 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 LatencyMetric.
+ */
+ public static LatencyMetric fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LatencyMetric deserializedLatencyMetric = new LatencyMetric();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedLatencyMetric.name = reader.getString();
+ } else if ("endDateTimeUTC".equals(fieldName)) {
+ deserializedLatencyMetric.endDateTimeUtc = reader.getString();
+ } else if ("aValue".equals(fieldName)) {
+ deserializedLatencyMetric.aValue = reader.getNullable(JsonReader::getFloat);
+ } else if ("bValue".equals(fieldName)) {
+ deserializedLatencyMetric.bValue = reader.getNullable(JsonReader::getFloat);
+ } else if ("delta".equals(fieldName)) {
+ deserializedLatencyMetric.delta = reader.getNullable(JsonReader::getFloat);
+ } else if ("deltaPercent".equals(fieldName)) {
+ deserializedLatencyMetric.deltaPercent = reader.getNullable(JsonReader::getFloat);
+ } else if ("aCLower95CI".equals(fieldName)) {
+ deserializedLatencyMetric.aCLower95CI = reader.getNullable(JsonReader::getFloat);
+ } else if ("aHUpper95CI".equals(fieldName)) {
+ deserializedLatencyMetric.aHUpper95CI = reader.getNullable(JsonReader::getFloat);
+ } else if ("bCLower95CI".equals(fieldName)) {
+ deserializedLatencyMetric.bCLower95CI = reader.getNullable(JsonReader::getFloat);
+ } else if ("bUpper95CI".equals(fieldName)) {
+ deserializedLatencyMetric.bUpper95CI = reader.getNullable(JsonReader::getFloat);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLatencyMetric;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LatencyScorecardAggregationInterval.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LatencyScorecardAggregationInterval.java
index 73d015c5a419c..2f2d0f4f995a1 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LatencyScorecardAggregationInterval.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LatencyScorecardAggregationInterval.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -43,7 +42,6 @@ public LatencyScorecardAggregationInterval() {
* @param name a name to look for.
* @return the corresponding LatencyScorecardAggregationInterval.
*/
- @JsonCreator
public static LatencyScorecardAggregationInterval fromString(String name) {
return fromString(name, LatencyScorecardAggregationInterval.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LoadBalancingSettingsModel.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LoadBalancingSettingsModel.java
index 455e46773b09a..37383e7109614 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LoadBalancingSettingsModel.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LoadBalancingSettingsModel.java
@@ -6,8 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.fluent.models.LoadBalancingSettingsProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Load balancing settings for a backend pool.
@@ -17,19 +20,16 @@ public final class LoadBalancingSettingsModel extends SubResource {
/*
* Properties of the load balancing settings
*/
- @JsonProperty(value = "properties")
private LoadBalancingSettingsProperties innerProperties;
/*
* Resource name.
*/
- @JsonProperty(value = "name")
private String name;
/*
* Resource type.
*/
- @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
@@ -86,9 +86,7 @@ public LoadBalancingSettingsModel withId(String id) {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -177,4 +175,49 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", id());
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("name", this.name);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LoadBalancingSettingsModel from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LoadBalancingSettingsModel 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 LoadBalancingSettingsModel.
+ */
+ public static LoadBalancingSettingsModel fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LoadBalancingSettingsModel deserializedLoadBalancingSettingsModel = new LoadBalancingSettingsModel();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedLoadBalancingSettingsModel.withId(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedLoadBalancingSettingsModel.innerProperties
+ = LoadBalancingSettingsProperties.fromJson(reader);
+ } else if ("name".equals(fieldName)) {
+ deserializedLoadBalancingSettingsModel.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedLoadBalancingSettingsModel.type = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLoadBalancingSettingsModel;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LoadBalancingSettingsUpdateParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LoadBalancingSettingsUpdateParameters.java
index 759c567bb40d1..f29c31a0c21b9 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LoadBalancingSettingsUpdateParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/LoadBalancingSettingsUpdateParameters.java
@@ -5,29 +5,30 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Round-Robin load balancing settings for a backend pool.
*/
@Fluent
-public class LoadBalancingSettingsUpdateParameters {
+public class LoadBalancingSettingsUpdateParameters implements JsonSerializable {
/*
* The number of samples to consider for load balancing decisions
*/
- @JsonProperty(value = "sampleSize")
private Integer sampleSize;
/*
* The number of samples within the sample period that must succeed
*/
- @JsonProperty(value = "successfulSamplesRequired")
private Integer successfulSamplesRequired;
/*
* The additional latency in milliseconds for probes to fall into the lowest latency bucket
*/
- @JsonProperty(value = "additionalLatencyMilliseconds")
private Integer additionalLatencyMilliseconds;
/**
@@ -106,4 +107,50 @@ public Integer additionalLatencyMilliseconds() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeNumberField("sampleSize", this.sampleSize);
+ jsonWriter.writeNumberField("successfulSamplesRequired", this.successfulSamplesRequired);
+ jsonWriter.writeNumberField("additionalLatencyMilliseconds", this.additionalLatencyMilliseconds);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LoadBalancingSettingsUpdateParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LoadBalancingSettingsUpdateParameters 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 LoadBalancingSettingsUpdateParameters.
+ */
+ public static LoadBalancingSettingsUpdateParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LoadBalancingSettingsUpdateParameters deserializedLoadBalancingSettingsUpdateParameters
+ = new LoadBalancingSettingsUpdateParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("sampleSize".equals(fieldName)) {
+ deserializedLoadBalancingSettingsUpdateParameters.sampleSize
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("successfulSamplesRequired".equals(fieldName)) {
+ deserializedLoadBalancingSettingsUpdateParameters.successfulSamplesRequired
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("additionalLatencyMilliseconds".equals(fieldName)) {
+ deserializedLoadBalancingSettingsUpdateParameters.additionalLatencyMilliseconds
+ = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLoadBalancingSettingsUpdateParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleDefinition.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleDefinition.java
index dfe0f9c336275..1c3433bb25920 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleDefinition.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleDefinition.java
@@ -5,35 +5,35 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Describes a managed rule definition.
*/
@Immutable
-public final class ManagedRuleDefinition {
+public final class ManagedRuleDefinition implements JsonSerializable {
/*
* Identifier for the managed rule.
*/
- @JsonProperty(value = "ruleId", access = JsonProperty.Access.WRITE_ONLY)
private String ruleId;
/*
* Describes the default state for the managed rule.
*/
- @JsonProperty(value = "defaultState", access = JsonProperty.Access.WRITE_ONLY)
private ManagedRuleEnabledState defaultState;
/*
* Describes the default action to be applied when the managed rule matches.
*/
- @JsonProperty(value = "defaultAction", access = JsonProperty.Access.WRITE_ONLY)
private ActionType defaultAction;
/*
* Describes the functionality of the managed rule.
*/
- @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
private String description;
/**
@@ -85,4 +85,46 @@ public String description() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedRuleDefinition from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleDefinition 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 ManagedRuleDefinition.
+ */
+ public static ManagedRuleDefinition fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleDefinition deserializedManagedRuleDefinition = new ManagedRuleDefinition();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("ruleId".equals(fieldName)) {
+ deserializedManagedRuleDefinition.ruleId = reader.getString();
+ } else if ("defaultState".equals(fieldName)) {
+ deserializedManagedRuleDefinition.defaultState
+ = ManagedRuleEnabledState.fromString(reader.getString());
+ } else if ("defaultAction".equals(fieldName)) {
+ deserializedManagedRuleDefinition.defaultAction = ActionType.fromString(reader.getString());
+ } else if ("description".equals(fieldName)) {
+ deserializedManagedRuleDefinition.description = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleDefinition;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleEnabledState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleEnabledState.java
index f64d6012a8fcc..dfbe07ecaa8d3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleEnabledState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleEnabledState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public ManagedRuleEnabledState() {
* @param name a name to look for.
* @return the corresponding ManagedRuleEnabledState.
*/
- @JsonCreator
public static ManagedRuleEnabledState fromString(String name) {
return fromString(name, ManagedRuleEnabledState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusion.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusion.java
index d31e9e6bdfb8c..00896a8712961 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusion.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusion.java
@@ -6,29 +6,31 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Exclude variables from managed rule evaluation.
*/
@Fluent
-public final class ManagedRuleExclusion {
+public final class ManagedRuleExclusion implements JsonSerializable {
/*
* The variable type to be excluded.
*/
- @JsonProperty(value = "matchVariable", required = true)
private ManagedRuleExclusionMatchVariable matchVariable;
/*
- * Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.
+ * Comparison operator to apply to the selector when specifying which elements in the collection this exclusion
+ * applies to.
*/
- @JsonProperty(value = "selectorMatchOperator", required = true)
private ManagedRuleExclusionSelectorMatchOperator selectorMatchOperator;
/*
* Selector value for which elements in the collection this exclusion applies to.
*/
- @JsonProperty(value = "selector", required = true)
private String selector;
/**
@@ -123,4 +125,50 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ManagedRuleExclusion.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("matchVariable", this.matchVariable == null ? null : this.matchVariable.toString());
+ jsonWriter.writeStringField("selectorMatchOperator",
+ this.selectorMatchOperator == null ? null : this.selectorMatchOperator.toString());
+ jsonWriter.writeStringField("selector", this.selector);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedRuleExclusion from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleExclusion if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ManagedRuleExclusion.
+ */
+ public static ManagedRuleExclusion fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleExclusion deserializedManagedRuleExclusion = new ManagedRuleExclusion();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("matchVariable".equals(fieldName)) {
+ deserializedManagedRuleExclusion.matchVariable
+ = ManagedRuleExclusionMatchVariable.fromString(reader.getString());
+ } else if ("selectorMatchOperator".equals(fieldName)) {
+ deserializedManagedRuleExclusion.selectorMatchOperator
+ = ManagedRuleExclusionSelectorMatchOperator.fromString(reader.getString());
+ } else if ("selector".equals(fieldName)) {
+ deserializedManagedRuleExclusion.selector = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleExclusion;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusionMatchVariable.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusionMatchVariable.java
index c171873969427..96fd15eef62e2 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusionMatchVariable.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusionMatchVariable.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -54,7 +53,6 @@ public ManagedRuleExclusionMatchVariable() {
* @param name a name to look for.
* @return the corresponding ManagedRuleExclusionMatchVariable.
*/
- @JsonCreator
public static ManagedRuleExclusionMatchVariable fromString(String name) {
return fromString(name, ManagedRuleExclusionMatchVariable.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusionSelectorMatchOperator.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusionSelectorMatchOperator.java
index 9c4e433a68129..a7c402eaec1f2 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusionSelectorMatchOperator.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleExclusionSelectorMatchOperator.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -54,7 +53,6 @@ public ManagedRuleExclusionSelectorMatchOperator() {
* @param name a name to look for.
* @return the corresponding ManagedRuleExclusionSelectorMatchOperator.
*/
- @JsonCreator
public static ManagedRuleExclusionSelectorMatchOperator fromString(String name) {
return fromString(name, ManagedRuleExclusionSelectorMatchOperator.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleGroupDefinition.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleGroupDefinition.java
index b7099953d6a82..ab4e826e725a4 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleGroupDefinition.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleGroupDefinition.java
@@ -5,30 +5,31 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Describes a managed rule group.
*/
@Immutable
-public final class ManagedRuleGroupDefinition {
+public final class ManagedRuleGroupDefinition implements JsonSerializable {
/*
* Name of the managed rule group.
*/
- @JsonProperty(value = "ruleGroupName", access = JsonProperty.Access.WRITE_ONLY)
private String ruleGroupName;
/*
* Description of the managed rule group.
*/
- @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
private String description;
/*
* List of rules within the managed rule group.
*/
- @JsonProperty(value = "rules", access = JsonProperty.Access.WRITE_ONLY)
private List rules;
/**
@@ -74,4 +75,45 @@ public void validate() {
rules().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedRuleGroupDefinition from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleGroupDefinition 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 ManagedRuleGroupDefinition.
+ */
+ public static ManagedRuleGroupDefinition fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleGroupDefinition deserializedManagedRuleGroupDefinition = new ManagedRuleGroupDefinition();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("ruleGroupName".equals(fieldName)) {
+ deserializedManagedRuleGroupDefinition.ruleGroupName = reader.getString();
+ } else if ("description".equals(fieldName)) {
+ deserializedManagedRuleGroupDefinition.description = reader.getString();
+ } else if ("rules".equals(fieldName)) {
+ List rules
+ = reader.readArray(reader1 -> ManagedRuleDefinition.fromJson(reader1));
+ deserializedManagedRuleGroupDefinition.rules = rules;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleGroupDefinition;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleGroupOverride.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleGroupOverride.java
index d8620abb589ca..fde398db560bb 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleGroupOverride.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleGroupOverride.java
@@ -6,30 +6,31 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Defines a managed rule group override setting.
*/
@Fluent
-public final class ManagedRuleGroupOverride {
+public final class ManagedRuleGroupOverride implements JsonSerializable {
/*
* Describes the managed rule group to override.
*/
- @JsonProperty(value = "ruleGroupName", required = true)
private String ruleGroupName;
/*
* Describes the exclusions that are applied to all rules in the group.
*/
- @JsonProperty(value = "exclusions")
private List exclusions;
/*
* List of rules that will be disabled. If none specified, all rules in the group will be disabled.
*/
- @JsonProperty(value = "rules")
private List rules;
/**
@@ -120,4 +121,51 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ManagedRuleGroupOverride.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("ruleGroupName", this.ruleGroupName);
+ jsonWriter.writeArrayField("exclusions", this.exclusions, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("rules", this.rules, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedRuleGroupOverride from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleGroupOverride 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 ManagedRuleGroupOverride.
+ */
+ public static ManagedRuleGroupOverride fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleGroupOverride deserializedManagedRuleGroupOverride = new ManagedRuleGroupOverride();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("ruleGroupName".equals(fieldName)) {
+ deserializedManagedRuleGroupOverride.ruleGroupName = reader.getString();
+ } else if ("exclusions".equals(fieldName)) {
+ List exclusions
+ = reader.readArray(reader1 -> ManagedRuleExclusion.fromJson(reader1));
+ deserializedManagedRuleGroupOverride.exclusions = exclusions;
+ } else if ("rules".equals(fieldName)) {
+ List rules
+ = reader.readArray(reader1 -> ManagedRuleOverride.fromJson(reader1));
+ deserializedManagedRuleGroupOverride.rules = rules;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleGroupOverride;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleOverride.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleOverride.java
index b7b8ea96de14a..f02c26ea6b41b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleOverride.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleOverride.java
@@ -6,36 +6,36 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Defines a managed rule group override setting.
*/
@Fluent
-public final class ManagedRuleOverride {
+public final class ManagedRuleOverride implements JsonSerializable {
/*
* Identifier for the managed rule.
*/
- @JsonProperty(value = "ruleId", required = true)
private String ruleId;
/*
* Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
*/
- @JsonProperty(value = "enabledState")
private ManagedRuleEnabledState enabledState;
/*
* Describes the override action to be applied when rule matches.
*/
- @JsonProperty(value = "action")
private ActionType action;
/*
* Describes the exclusions that are applied to this specific rule.
*/
- @JsonProperty(value = "exclusions")
private List exclusions;
/**
@@ -142,4 +142,53 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ManagedRuleOverride.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("ruleId", this.ruleId);
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ jsonWriter.writeStringField("action", this.action == null ? null : this.action.toString());
+ jsonWriter.writeArrayField("exclusions", this.exclusions, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedRuleOverride from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleOverride 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 ManagedRuleOverride.
+ */
+ public static ManagedRuleOverride fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleOverride deserializedManagedRuleOverride = new ManagedRuleOverride();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("ruleId".equals(fieldName)) {
+ deserializedManagedRuleOverride.ruleId = reader.getString();
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedManagedRuleOverride.enabledState
+ = ManagedRuleEnabledState.fromString(reader.getString());
+ } else if ("action".equals(fieldName)) {
+ deserializedManagedRuleOverride.action = ActionType.fromString(reader.getString());
+ } else if ("exclusions".equals(fieldName)) {
+ List exclusions
+ = reader.readArray(reader1 -> ManagedRuleExclusion.fromJson(reader1));
+ deserializedManagedRuleOverride.exclusions = exclusions;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleOverride;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSet.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSet.java
index 335a1a3202eea..53f75fe947221 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSet.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSet.java
@@ -6,42 +6,41 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Defines a managed rule set.
*/
@Fluent
-public final class ManagedRuleSet {
+public final class ManagedRuleSet implements JsonSerializable {
/*
* Defines the rule set type to use.
*/
- @JsonProperty(value = "ruleSetType", required = true)
private String ruleSetType;
/*
* Defines the version of the rule set to use.
*/
- @JsonProperty(value = "ruleSetVersion", required = true)
private String ruleSetVersion;
/*
* Defines the rule set action.
*/
- @JsonProperty(value = "ruleSetAction")
private ManagedRuleSetActionType ruleSetAction;
/*
* Describes the exclusions that are applied to all rules in the set.
*/
- @JsonProperty(value = "exclusions")
private List exclusions;
/*
* Defines the rule group overrides to apply to the rule set.
*/
- @JsonProperty(value = "ruleGroupOverrides")
private List ruleGroupOverrides;
/**
@@ -173,4 +172,58 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ManagedRuleSet.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("ruleSetType", this.ruleSetType);
+ jsonWriter.writeStringField("ruleSetVersion", this.ruleSetVersion);
+ jsonWriter.writeStringField("ruleSetAction", this.ruleSetAction == null ? null : this.ruleSetAction.toString());
+ jsonWriter.writeArrayField("exclusions", this.exclusions, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("ruleGroupOverrides", this.ruleGroupOverrides,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedRuleSet from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleSet 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 ManagedRuleSet.
+ */
+ public static ManagedRuleSet fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleSet deserializedManagedRuleSet = new ManagedRuleSet();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("ruleSetType".equals(fieldName)) {
+ deserializedManagedRuleSet.ruleSetType = reader.getString();
+ } else if ("ruleSetVersion".equals(fieldName)) {
+ deserializedManagedRuleSet.ruleSetVersion = reader.getString();
+ } else if ("ruleSetAction".equals(fieldName)) {
+ deserializedManagedRuleSet.ruleSetAction = ManagedRuleSetActionType.fromString(reader.getString());
+ } else if ("exclusions".equals(fieldName)) {
+ List exclusions
+ = reader.readArray(reader1 -> ManagedRuleExclusion.fromJson(reader1));
+ deserializedManagedRuleSet.exclusions = exclusions;
+ } else if ("ruleGroupOverrides".equals(fieldName)) {
+ List ruleGroupOverrides
+ = reader.readArray(reader1 -> ManagedRuleGroupOverride.fromJson(reader1));
+ deserializedManagedRuleSet.ruleGroupOverrides = ruleGroupOverrides;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleSet;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetActionType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetActionType.java
index 038b415aa3613..11b4daac35d5a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetActionType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetActionType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -42,7 +41,6 @@ public ManagedRuleSetActionType() {
* @param name a name to look for.
* @return the corresponding ManagedRuleSetActionType.
*/
- @JsonCreator
public static ManagedRuleSetActionType fromString(String name) {
return fromString(name, ManagedRuleSetActionType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetDefinitionList.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetDefinitionList.java
index a9d3d7919eb41..df0e44ec04049 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetDefinitionList.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetDefinitionList.java
@@ -5,25 +5,27 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.ManagedRuleSetDefinitionInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* List of managed rule set definitions available for use in a policy.
*/
@Fluent
-public final class ManagedRuleSetDefinitionList {
+public final class ManagedRuleSetDefinitionList implements JsonSerializable {
/*
* List of managed rule set definitions.
*/
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private List value;
/*
* URL to retrieve next set of managed rule set definitions.
*/
- @JsonProperty(value = "nextLink")
private String nextLink;
/**
@@ -71,4 +73,44 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedRuleSetDefinitionList from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleSetDefinitionList 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 ManagedRuleSetDefinitionList.
+ */
+ public static ManagedRuleSetDefinitionList fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleSetDefinitionList deserializedManagedRuleSetDefinitionList = new ManagedRuleSetDefinitionList();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> ManagedRuleSetDefinitionInner.fromJson(reader1));
+ deserializedManagedRuleSetDefinitionList.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedManagedRuleSetDefinitionList.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleSetDefinitionList;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetList.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetList.java
index 057a14931f24f..abe8a354f8a56 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetList.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ManagedRuleSetList.java
@@ -5,18 +5,21 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Defines the list of managed rule sets for the policy.
*/
@Fluent
-public final class ManagedRuleSetList {
+public final class ManagedRuleSetList implements JsonSerializable {
/*
* List of rule sets.
*/
- @JsonProperty(value = "managedRuleSets")
private List managedRuleSets;
/**
@@ -55,4 +58,43 @@ public void validate() {
managedRuleSets().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("managedRuleSets", this.managedRuleSets,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedRuleSetList from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedRuleSetList 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 ManagedRuleSetList.
+ */
+ public static ManagedRuleSetList fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedRuleSetList deserializedManagedRuleSetList = new ManagedRuleSetList();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("managedRuleSets".equals(fieldName)) {
+ List managedRuleSets
+ = reader.readArray(reader1 -> ManagedRuleSet.fromJson(reader1));
+ deserializedManagedRuleSetList.managedRuleSets = managedRuleSets;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedRuleSetList;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchCondition.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchCondition.java
index e26b1080001df..6e89bb54533d9 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchCondition.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchCondition.java
@@ -6,48 +6,46 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Define a match condition.
*/
@Fluent
-public final class MatchCondition {
+public final class MatchCondition implements JsonSerializable {
/*
* Request variable to compare with.
*/
- @JsonProperty(value = "matchVariable", required = true)
private MatchVariable matchVariable;
/*
* Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.
*/
- @JsonProperty(value = "selector")
private String selector;
/*
* Comparison type to use for matching with the variable value.
*/
- @JsonProperty(value = "operator", required = true)
private Operator operator;
/*
* Describes if the result of this condition should be negated.
*/
- @JsonProperty(value = "negateCondition")
private Boolean negateCondition;
/*
* List of possible match values.
*/
- @JsonProperty(value = "matchValue", required = true)
private List matchValue;
/*
* List of transforms.
*/
- @JsonProperty(value = "transforms")
private List transforms;
/**
@@ -199,4 +197,60 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(MatchCondition.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("matchVariable", this.matchVariable == null ? null : this.matchVariable.toString());
+ jsonWriter.writeStringField("operator", this.operator == null ? null : this.operator.toString());
+ jsonWriter.writeArrayField("matchValue", this.matchValue, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("selector", this.selector);
+ jsonWriter.writeBooleanField("negateCondition", this.negateCondition);
+ jsonWriter.writeArrayField("transforms", this.transforms,
+ (writer, element) -> writer.writeString(element == null ? null : element.toString()));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MatchCondition from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MatchCondition 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 MatchCondition.
+ */
+ public static MatchCondition fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MatchCondition deserializedMatchCondition = new MatchCondition();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("matchVariable".equals(fieldName)) {
+ deserializedMatchCondition.matchVariable = MatchVariable.fromString(reader.getString());
+ } else if ("operator".equals(fieldName)) {
+ deserializedMatchCondition.operator = Operator.fromString(reader.getString());
+ } else if ("matchValue".equals(fieldName)) {
+ List matchValue = reader.readArray(reader1 -> reader1.getString());
+ deserializedMatchCondition.matchValue = matchValue;
+ } else if ("selector".equals(fieldName)) {
+ deserializedMatchCondition.selector = reader.getString();
+ } else if ("negateCondition".equals(fieldName)) {
+ deserializedMatchCondition.negateCondition = reader.getNullable(JsonReader::getBoolean);
+ } else if ("transforms".equals(fieldName)) {
+ List transforms
+ = reader.readArray(reader1 -> TransformType.fromString(reader1.getString()));
+ deserializedMatchCondition.transforms = transforms;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMatchCondition;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchProcessingBehavior.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchProcessingBehavior.java
index 18743e6fb756c..130829b3aa3c1 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchProcessingBehavior.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchProcessingBehavior.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -38,7 +37,6 @@ public MatchProcessingBehavior() {
* @param name a name to look for.
* @return the corresponding MatchProcessingBehavior.
*/
- @JsonCreator
public static MatchProcessingBehavior fromString(String name) {
return fromString(name, MatchProcessingBehavior.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchVariable.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchVariable.java
index e5af023ba1aea..9d96c113a49a7 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchVariable.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MatchVariable.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -72,7 +71,6 @@ public MatchVariable() {
* @param name a name to look for.
* @return the corresponding MatchVariable.
*/
- @JsonCreator
public static MatchVariable fromString(String name) {
return fromString(name, MatchVariable.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MinimumTlsVersion.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MinimumTlsVersion.java
index cda7ca185051d..95b43731b616a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MinimumTlsVersion.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/MinimumTlsVersion.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public MinimumTlsVersion() {
* @param name a name to look for.
* @return the corresponding MinimumTlsVersion.
*/
- @JsonCreator
public static MinimumTlsVersion fromString(String name) {
return fromString(name, MinimumTlsVersion.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/NetworkExperimentResourceState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/NetworkExperimentResourceState.java
index d37d58fc1e658..71b6e3f4b3eef 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/NetworkExperimentResourceState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/NetworkExperimentResourceState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -57,7 +56,6 @@ public NetworkExperimentResourceState() {
* @param name a name to look for.
* @return the corresponding NetworkExperimentResourceState.
*/
- @JsonCreator
public static NetworkExperimentResourceState fromString(String name) {
return fromString(name, NetworkExperimentResourceState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Operator.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Operator.java
index 5bb5dff5cfdc6..300de71be1d2d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Operator.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Operator.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -87,7 +86,6 @@ public Operator() {
* @param name a name to look for.
* @return the corresponding Operator.
*/
- @JsonCreator
public static Operator fromString(String name) {
return fromString(name, Operator.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyEnabledState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyEnabledState.java
index 2d416f5ae100a..5d9d86d733321 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyEnabledState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyEnabledState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public PolicyEnabledState() {
* @param name a name to look for.
* @return the corresponding PolicyEnabledState.
*/
- @JsonCreator
public static PolicyEnabledState fromString(String name) {
return fromString(name, PolicyEnabledState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyMode.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyMode.java
index 4b851e340b1f8..f0d610ea21a2b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyMode.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyMode.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public PolicyMode() {
* @param name a name to look for.
* @return the corresponding PolicyMode.
*/
- @JsonCreator
public static PolicyMode fromString(String name) {
return fromString(name, PolicyMode.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyRequestBodyCheck.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyRequestBodyCheck.java
index c1044d1b1a5d9..aa163d55353b9 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyRequestBodyCheck.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyRequestBodyCheck.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public PolicyRequestBodyCheck() {
* @param name a name to look for.
* @return the corresponding PolicyRequestBodyCheck.
*/
- @JsonCreator
public static PolicyRequestBodyCheck fromString(String name) {
return fromString(name, PolicyRequestBodyCheck.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyResourceState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyResourceState.java
index c3fc7b53aa2dd..a2e5c6bfd4d14 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyResourceState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicyResourceState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -57,7 +56,6 @@ public PolicyResourceState() {
* @param name a name to look for.
* @return the corresponding PolicyResourceState.
*/
- @JsonCreator
public static PolicyResourceState fromString(String name) {
return fromString(name, PolicyResourceState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicySettings.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicySettings.java
index a611855d32d09..cd549db4b9106 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicySettings.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PolicySettings.java
@@ -5,61 +5,59 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.PolicySettingsLogScrubbing;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Defines top-level WebApplicationFirewallPolicy configuration settings.
*/
@Fluent
-public final class PolicySettings {
+public final class PolicySettings implements JsonSerializable {
/*
* Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
*/
- @JsonProperty(value = "enabledState")
private PolicyEnabledState enabledState;
/*
* Describes if it is in detection mode or prevention mode at policy level.
*/
- @JsonProperty(value = "mode")
private PolicyMode mode;
/*
* If action type is redirect, this field represents redirect URL for the client.
*/
- @JsonProperty(value = "redirectUrl")
private String redirectUrl;
/*
* If the action type is block, customer can override the response status code.
*/
- @JsonProperty(value = "customBlockResponseStatusCode")
private Integer customBlockResponseStatusCode;
/*
- * If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
+ * If the action type is block, customer can override the response body. The body must be specified in base64
+ * encoding.
*/
- @JsonProperty(value = "customBlockResponseBody")
private String customBlockResponseBody;
/*
* Describes if policy managed rules will inspect the request body content.
*/
- @JsonProperty(value = "requestBodyCheck")
private PolicyRequestBodyCheck requestBodyCheck;
/*
- * Defines the JavaScript challenge cookie validity lifetime in minutes. This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30.
+ * Defines the JavaScript challenge cookie validity lifetime in minutes. This setting is only applicable to
+ * Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30.
*/
- @JsonProperty(value = "javascriptChallengeExpirationInMinutes")
private Integer javascriptChallengeExpirationInMinutes;
/*
* Defines rules that scrub sensitive fields in the Web Application Firewall logs.
*/
- @JsonProperty(value = "logScrubbing")
private PolicySettingsLogScrubbing innerLogScrubbing;
/**
@@ -284,4 +282,64 @@ public void validate() {
innerLogScrubbing().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString());
+ jsonWriter.writeStringField("redirectUrl", this.redirectUrl);
+ jsonWriter.writeNumberField("customBlockResponseStatusCode", this.customBlockResponseStatusCode);
+ jsonWriter.writeStringField("customBlockResponseBody", this.customBlockResponseBody);
+ jsonWriter.writeStringField("requestBodyCheck",
+ this.requestBodyCheck == null ? null : this.requestBodyCheck.toString());
+ jsonWriter.writeNumberField("javascriptChallengeExpirationInMinutes",
+ this.javascriptChallengeExpirationInMinutes);
+ jsonWriter.writeJsonField("logScrubbing", this.innerLogScrubbing);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PolicySettings from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PolicySettings 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 PolicySettings.
+ */
+ public static PolicySettings fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PolicySettings deserializedPolicySettings = new PolicySettings();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("enabledState".equals(fieldName)) {
+ deserializedPolicySettings.enabledState = PolicyEnabledState.fromString(reader.getString());
+ } else if ("mode".equals(fieldName)) {
+ deserializedPolicySettings.mode = PolicyMode.fromString(reader.getString());
+ } else if ("redirectUrl".equals(fieldName)) {
+ deserializedPolicySettings.redirectUrl = reader.getString();
+ } else if ("customBlockResponseStatusCode".equals(fieldName)) {
+ deserializedPolicySettings.customBlockResponseStatusCode = reader.getNullable(JsonReader::getInt);
+ } else if ("customBlockResponseBody".equals(fieldName)) {
+ deserializedPolicySettings.customBlockResponseBody = reader.getString();
+ } else if ("requestBodyCheck".equals(fieldName)) {
+ deserializedPolicySettings.requestBodyCheck = PolicyRequestBodyCheck.fromString(reader.getString());
+ } else if ("javascriptChallengeExpirationInMinutes".equals(fieldName)) {
+ deserializedPolicySettings.javascriptChallengeExpirationInMinutes
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("logScrubbing".equals(fieldName)) {
+ deserializedPolicySettings.innerLogScrubbing = PolicySettingsLogScrubbing.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPolicySettings;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PreconfiguredEndpointList.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PreconfiguredEndpointList.java
index 005d3d00918e5..db93dca953d19 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PreconfiguredEndpointList.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PreconfiguredEndpointList.java
@@ -5,25 +5,27 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.PreconfiguredEndpointInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Defines a list of preconfigured endpoints.
*/
@Fluent
-public final class PreconfiguredEndpointList {
+public final class PreconfiguredEndpointList implements JsonSerializable {
/*
* List of PreconfiguredEndpoints supported by NetworkExperiment.
*/
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private List value;
/*
* URL to get the next set of PreconfiguredEndpoints if there are any.
*/
- @JsonProperty(value = "nextLink")
private String nextLink;
/**
@@ -71,4 +73,44 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PreconfiguredEndpointList from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PreconfiguredEndpointList 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 PreconfiguredEndpointList.
+ */
+ public static PreconfiguredEndpointList fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PreconfiguredEndpointList deserializedPreconfiguredEndpointList = new PreconfiguredEndpointList();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> PreconfiguredEndpointInner.fromJson(reader1));
+ deserializedPreconfiguredEndpointList.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedPreconfiguredEndpointList.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPreconfiguredEndpointList;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PrivateEndpointStatus.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PrivateEndpointStatus.java
index 6f0c03e09fdeb..29c2e2390e2a8 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PrivateEndpointStatus.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PrivateEndpointStatus.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -52,7 +51,6 @@ public PrivateEndpointStatus() {
* @param name a name to look for.
* @return the corresponding PrivateEndpointStatus.
*/
- @JsonCreator
public static PrivateEndpointStatus fromString(String name) {
return fromString(name, PrivateEndpointStatus.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ProfileList.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ProfileList.java
index 153749890a8d0..733cf324d0d9e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ProfileList.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ProfileList.java
@@ -5,25 +5,27 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.ProfileInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Defines a list of Profiles. It contains a list of Profile objects and a URL link to get the next set of results.
*/
@Fluent
-public final class ProfileList {
+public final class ProfileList implements JsonSerializable {
/*
* List of Profiles within a resource group.
*/
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private List value;
/*
* URL to get the next set of Profile objects if there are any.
*/
- @JsonProperty(value = "nextLink")
private String nextLink;
/**
@@ -71,4 +73,43 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ProfileList from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ProfileList 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 ProfileList.
+ */
+ public static ProfileList fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ProfileList deserializedProfileList = new ProfileList();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> ProfileInner.fromJson(reader1));
+ deserializedProfileList.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedProfileList.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedProfileList;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ProfileUpdateModel.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ProfileUpdateModel.java
index d96b35f5ea69b..6d38832c600b4 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ProfileUpdateModel.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ProfileUpdateModel.java
@@ -5,27 +5,27 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.ProfileUpdateProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
* Defines modifiable attributes of a Profile.
*/
@Fluent
-public final class ProfileUpdateModel {
+public final class ProfileUpdateModel implements JsonSerializable {
/*
* The properties of a Profile
*/
- @JsonProperty(value = "properties")
private ProfileUpdateProperties innerProperties;
/*
* Resource tags.
*/
- @JsonProperty(value = "tags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/**
@@ -96,4 +96,44 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ProfileUpdateModel from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ProfileUpdateModel 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 ProfileUpdateModel.
+ */
+ public static ProfileUpdateModel fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ProfileUpdateModel deserializedProfileUpdateModel = new ProfileUpdateModel();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("properties".equals(fieldName)) {
+ deserializedProfileUpdateModel.innerProperties = ProfileUpdateProperties.fromJson(reader);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedProfileUpdateModel.tags = tags;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedProfileUpdateModel;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PurgeParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PurgeParameters.java
index 2b46cd00de179..8f8e5257d5d2d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PurgeParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/PurgeParameters.java
@@ -6,18 +6,21 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Parameters required for content purge.
*/
@Fluent
-public final class PurgeParameters {
+public final class PurgeParameters implements JsonSerializable {
/*
* The path to the content to be purged. Can describe a file path or a wild card directory.
*/
- @JsonProperty(value = "contentPaths", required = true)
private List contentPaths;
/**
@@ -61,4 +64,42 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(PurgeParameters.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("contentPaths", this.contentPaths, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PurgeParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PurgeParameters 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 PurgeParameters.
+ */
+ public static PurgeParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PurgeParameters deserializedPurgeParameters = new PurgeParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("contentPaths".equals(fieldName)) {
+ List contentPaths = reader.readArray(reader1 -> reader1.getString());
+ deserializedPurgeParameters.contentPaths = contentPaths;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPurgeParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RedirectConfiguration.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RedirectConfiguration.java
index e0fd81c18a71b..26ad96dcf6dbf 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RedirectConfiguration.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RedirectConfiguration.java
@@ -5,63 +5,53 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonTypeId;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Describes Redirect Route.
*/
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- property = "@odata.type",
- defaultImpl = RedirectConfiguration.class,
- visible = true)
-@JsonTypeName("#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration")
@Fluent
public final class RedirectConfiguration extends RouteConfiguration {
/*
* The @odata.type property.
*/
- @JsonTypeId
- @JsonProperty(value = "@odata.type", required = true)
private String odataType = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration";
/*
* The redirect type the rule will use when redirecting traffic.
*/
- @JsonProperty(value = "redirectType")
private FrontDoorRedirectType redirectType;
/*
* The protocol of the destination to where the traffic is redirected
*/
- @JsonProperty(value = "redirectProtocol")
private FrontDoorRedirectProtocol redirectProtocol;
/*
* Host to redirect. Leave empty to use the incoming host as the destination host.
*/
- @JsonProperty(value = "customHost")
private String customHost;
/*
- * The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.
+ * The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as
+ * destination path.
*/
- @JsonProperty(value = "customPath")
private String customPath;
/*
* Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.
*/
- @JsonProperty(value = "customFragment")
private String customFragment;
/*
- * The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.
+ * The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query
+ * string; leave empty to preserve the incoming query string. Query string must be in = format. The
+ * first ? and & will be added automatically so do not include them in the front, but do separate multiple query
+ * strings with &.
*/
- @JsonProperty(value = "customQueryString")
private String customQueryString;
/**
@@ -217,6 +207,62 @@ public RedirectConfiguration withCustomQueryString(String customQueryString) {
*/
@Override
public void validate() {
- super.validate();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("@odata.type", this.odataType);
+ jsonWriter.writeStringField("redirectType", this.redirectType == null ? null : this.redirectType.toString());
+ jsonWriter.writeStringField("redirectProtocol",
+ this.redirectProtocol == null ? null : this.redirectProtocol.toString());
+ jsonWriter.writeStringField("customHost", this.customHost);
+ jsonWriter.writeStringField("customPath", this.customPath);
+ jsonWriter.writeStringField("customFragment", this.customFragment);
+ jsonWriter.writeStringField("customQueryString", this.customQueryString);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RedirectConfiguration from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RedirectConfiguration 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 RedirectConfiguration.
+ */
+ public static RedirectConfiguration fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RedirectConfiguration deserializedRedirectConfiguration = new RedirectConfiguration();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("@odata.type".equals(fieldName)) {
+ deserializedRedirectConfiguration.odataType = reader.getString();
+ } else if ("redirectType".equals(fieldName)) {
+ deserializedRedirectConfiguration.redirectType
+ = FrontDoorRedirectType.fromString(reader.getString());
+ } else if ("redirectProtocol".equals(fieldName)) {
+ deserializedRedirectConfiguration.redirectProtocol
+ = FrontDoorRedirectProtocol.fromString(reader.getString());
+ } else if ("customHost".equals(fieldName)) {
+ deserializedRedirectConfiguration.customHost = reader.getString();
+ } else if ("customPath".equals(fieldName)) {
+ deserializedRedirectConfiguration.customPath = reader.getString();
+ } else if ("customFragment".equals(fieldName)) {
+ deserializedRedirectConfiguration.customFragment = reader.getString();
+ } else if ("customQueryString".equals(fieldName)) {
+ deserializedRedirectConfiguration.customQueryString = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRedirectConfiguration;
+ });
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ResourceType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ResourceType.java
index 28ce741462ade..6a34497dbc91e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ResourceType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ResourceType.java
@@ -4,9 +4,6 @@
package com.azure.resourcemanager.frontdoor.models;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
/**
* Type of Front Door resource used in CheckNameAvailability.
*/
@@ -36,7 +33,6 @@ public enum ResourceType {
* @param value the serialized value to parse.
* @return the parsed ResourceType object, or null if unable to parse.
*/
- @JsonCreator
public static ResourceType fromString(String value) {
if (value == null) {
return null;
@@ -53,7 +49,6 @@ public static ResourceType fromString(String value) {
/**
* {@inheritDoc}
*/
- @JsonValue
@Override
public String toString() {
return this.value;
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RouteConfiguration.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RouteConfiguration.java
index 80b59b8476771..bac28a4d9a345 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RouteConfiguration.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RouteConfiguration.java
@@ -5,42 +5,26 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeId;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Base class for all types of Route.
*/
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- property = "@odata.type",
- defaultImpl = RouteConfiguration.class,
- visible = true)
-@JsonTypeName("RouteConfiguration")
-@JsonSubTypes({
- @JsonSubTypes.Type(
- name = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
- value = ForwardingConfiguration.class),
- @JsonSubTypes.Type(
- name = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
- value = RedirectConfiguration.class) })
@Immutable
-public class RouteConfiguration {
+public class RouteConfiguration implements JsonSerializable {
/*
* The @odata.type property.
*/
- @JsonTypeId
- @JsonProperty(value = "@odata.type", required = true)
- private String odataType;
+ private String odataType = "RouteConfiguration";
/**
* Creates an instance of RouteConfiguration class.
*/
public RouteConfiguration() {
- this.odataType = "RouteConfiguration";
}
/**
@@ -59,4 +43,68 @@ public String odataType() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("@odata.type", this.odataType);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RouteConfiguration from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RouteConfiguration 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 RouteConfiguration.
+ */
+ public static RouteConfiguration fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ String discriminatorValue = null;
+ try (JsonReader readerToUse = reader.bufferObject()) {
+ readerToUse.nextToken(); // Prepare for reading
+ while (readerToUse.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = readerToUse.getFieldName();
+ readerToUse.nextToken();
+ if ("@odata.type".equals(fieldName)) {
+ discriminatorValue = readerToUse.getString();
+ break;
+ } else {
+ readerToUse.skipChildren();
+ }
+ }
+ // Use the discriminator value to determine which subtype should be deserialized.
+ if ("#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration".equals(discriminatorValue)) {
+ return ForwardingConfiguration.fromJson(readerToUse.reset());
+ } else if ("#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"
+ .equals(discriminatorValue)) {
+ return RedirectConfiguration.fromJson(readerToUse.reset());
+ } else {
+ return fromJsonKnownDiscriminator(readerToUse.reset());
+ }
+ }
+ });
+ }
+
+ static RouteConfiguration fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RouteConfiguration deserializedRouteConfiguration = new RouteConfiguration();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("@odata.type".equals(fieldName)) {
+ deserializedRouteConfiguration.odataType = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRouteConfiguration;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRule.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRule.java
index a5b56ed16cccb..0083f4d3229c8 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRule.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRule.java
@@ -6,8 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.frontdoor.fluent.models.RoutingRuleProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -19,19 +22,16 @@ public final class RoutingRule extends SubResource {
/*
* Properties of the Front Door Routing Rule
*/
- @JsonProperty(value = "properties")
private RoutingRuleProperties innerProperties;
/*
* Resource name.
*/
- @JsonProperty(value = "name")
private String name;
/*
* Resource type.
*/
- @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
@@ -88,9 +88,7 @@ public RoutingRule withId(String id) {
}
/**
- * Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Get the resourceState property: Resource status.
*
* @return the resourceState value.
*/
@@ -272,4 +270,48 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", id());
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("name", this.name);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RoutingRule from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RoutingRule 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 RoutingRule.
+ */
+ public static RoutingRule fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RoutingRule deserializedRoutingRule = new RoutingRule();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRoutingRule.withId(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedRoutingRule.innerProperties = RoutingRuleProperties.fromJson(reader);
+ } else if ("name".equals(fieldName)) {
+ deserializedRoutingRule.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedRoutingRule.type = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRoutingRule;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleEnabledState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleEnabledState.java
index 5c9089dbf2d4e..f79e226579622 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleEnabledState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleEnabledState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public RoutingRuleEnabledState() {
* @param name a name to look for.
* @return the corresponding RoutingRuleEnabledState.
*/
- @JsonCreator
public static RoutingRuleEnabledState fromString(String name) {
return fromString(name, RoutingRuleEnabledState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleLink.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleLink.java
index a02bc4ee9e159..9826947191fc9 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleLink.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleLink.java
@@ -5,17 +5,20 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Defines the Resource ID for a Routing Rule.
*/
@Fluent
-public final class RoutingRuleLink {
+public final class RoutingRuleLink implements JsonSerializable {
/*
* Resource ID.
*/
- @JsonProperty(value = "id")
private String id;
/**
@@ -51,4 +54,40 @@ public RoutingRuleLink withId(String id) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RoutingRuleLink from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RoutingRuleLink if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the RoutingRuleLink.
+ */
+ public static RoutingRuleLink fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RoutingRuleLink deserializedRoutingRuleLink = new RoutingRuleLink();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRoutingRuleLink.id = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRoutingRuleLink;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleUpdateParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleUpdateParameters.java
index 6cedb2561d504..09cd1e78e3d17 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleUpdateParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleUpdateParameters.java
@@ -6,54 +6,51 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Routing rules to apply to an endpoint.
*/
@Fluent
-public class RoutingRuleUpdateParameters {
+public class RoutingRuleUpdateParameters implements JsonSerializable {
/*
* Frontend endpoints associated with this rule
*/
- @JsonProperty(value = "frontendEndpoints")
private List frontendEndpoints;
/*
* Protocol schemes to match for this rule
*/
- @JsonProperty(value = "acceptedProtocols")
private List acceptedProtocols;
/*
* The route patterns of the rule.
*/
- @JsonProperty(value = "patternsToMatch")
private List patternsToMatch;
/*
* Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
*/
- @JsonProperty(value = "enabledState")
private RoutingRuleEnabledState enabledState;
/*
* A reference to the routing configuration.
*/
- @JsonProperty(value = "routeConfiguration")
private RouteConfiguration routeConfiguration;
/*
* A reference to a specific Rules Engine Configuration to apply to this route.
*/
- @JsonProperty(value = "rulesEngine")
private SubResource rulesEngine;
/*
* Defines the Web Application Firewall policy for each routing rule (if applicable)
*/
- @JsonProperty(value = "webApplicationFirewallPolicyLink")
private RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink;
/**
@@ -218,4 +215,67 @@ public void validate() {
webApplicationFirewallPolicyLink().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("frontendEndpoints", this.frontendEndpoints,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("acceptedProtocols", this.acceptedProtocols,
+ (writer, element) -> writer.writeString(element == null ? null : element.toString()));
+ jsonWriter.writeArrayField("patternsToMatch", this.patternsToMatch,
+ (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("enabledState", this.enabledState == null ? null : this.enabledState.toString());
+ jsonWriter.writeJsonField("routeConfiguration", this.routeConfiguration);
+ jsonWriter.writeJsonField("rulesEngine", this.rulesEngine);
+ jsonWriter.writeJsonField("webApplicationFirewallPolicyLink", this.webApplicationFirewallPolicyLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RoutingRuleUpdateParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RoutingRuleUpdateParameters 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 RoutingRuleUpdateParameters.
+ */
+ public static RoutingRuleUpdateParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RoutingRuleUpdateParameters deserializedRoutingRuleUpdateParameters = new RoutingRuleUpdateParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("frontendEndpoints".equals(fieldName)) {
+ List frontendEndpoints = reader.readArray(reader1 -> SubResource.fromJson(reader1));
+ deserializedRoutingRuleUpdateParameters.frontendEndpoints = frontendEndpoints;
+ } else if ("acceptedProtocols".equals(fieldName)) {
+ List acceptedProtocols
+ = reader.readArray(reader1 -> FrontDoorProtocol.fromString(reader1.getString()));
+ deserializedRoutingRuleUpdateParameters.acceptedProtocols = acceptedProtocols;
+ } else if ("patternsToMatch".equals(fieldName)) {
+ List patternsToMatch = reader.readArray(reader1 -> reader1.getString());
+ deserializedRoutingRuleUpdateParameters.patternsToMatch = patternsToMatch;
+ } else if ("enabledState".equals(fieldName)) {
+ deserializedRoutingRuleUpdateParameters.enabledState
+ = RoutingRuleEnabledState.fromString(reader.getString());
+ } else if ("routeConfiguration".equals(fieldName)) {
+ deserializedRoutingRuleUpdateParameters.routeConfiguration = RouteConfiguration.fromJson(reader);
+ } else if ("rulesEngine".equals(fieldName)) {
+ deserializedRoutingRuleUpdateParameters.rulesEngine = SubResource.fromJson(reader);
+ } else if ("webApplicationFirewallPolicyLink".equals(fieldName)) {
+ deserializedRoutingRuleUpdateParameters.webApplicationFirewallPolicyLink
+ = RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRoutingRuleUpdateParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.java
index ac3419e53e460..c6305ea142cb5 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.java
@@ -5,17 +5,21 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Defines the Web Application Firewall policy for each routing rule (if applicable).
*/
@Fluent
-public final class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink {
+public final class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink
+ implements JsonSerializable {
/*
* Resource ID.
*/
- @JsonProperty(value = "id")
private String id;
/**
@@ -51,4 +55,43 @@ public RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink withId(String
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink 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
+ * RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.
+ */
+ public static RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink deserializedRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink
+ = new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.id = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRoutingRuleUpdateParametersWebApplicationFirewallPolicyLink;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RuleType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RuleType.java
index f2e262f91f716..41acf60fa5217 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RuleType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RuleType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public RuleType() {
* @param name a name to look for.
* @return the corresponding RuleType.
*/
- @JsonCreator
public static RuleType fromString(String name) {
return fromString(name, RuleType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngine.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngine.java
index ccb03aa7ae17f..e9e042d075f5d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngine.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngine.java
@@ -34,9 +34,7 @@ public interface RulesEngine {
String type();
/**
- * Gets the resourceState property: Resource status of the Front Door or Front Door SubResource.
- *
- * Resource status.
+ * Gets the resourceState property: Resource status.
*
* @return the resourceState value.
*/
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineAction.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineAction.java
index b5ab8ee6f0b54..480c5c0834c26 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineAction.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineAction.java
@@ -5,30 +5,31 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* One or more actions that will execute, modifying the request and/or response.
*/
@Fluent
-public final class RulesEngineAction {
+public final class RulesEngineAction implements JsonSerializable {
/*
* A list of header actions to apply from the request from AFD to the origin.
*/
- @JsonProperty(value = "requestHeaderActions")
private List requestHeaderActions;
/*
* A list of header actions to apply from the response from AFD to the client.
*/
- @JsonProperty(value = "responseHeaderActions")
private List responseHeaderActions;
/*
* Override the route configuration.
*/
- @JsonProperty(value = "routeConfigurationOverride")
private RouteConfiguration routeConfigurationOverride;
/**
@@ -115,4 +116,52 @@ public void validate() {
routeConfigurationOverride().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("requestHeaderActions", this.requestHeaderActions,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("responseHeaderActions", this.responseHeaderActions,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("routeConfigurationOverride", this.routeConfigurationOverride);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RulesEngineAction from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RulesEngineAction 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 RulesEngineAction.
+ */
+ public static RulesEngineAction fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RulesEngineAction deserializedRulesEngineAction = new RulesEngineAction();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("requestHeaderActions".equals(fieldName)) {
+ List requestHeaderActions
+ = reader.readArray(reader1 -> HeaderAction.fromJson(reader1));
+ deserializedRulesEngineAction.requestHeaderActions = requestHeaderActions;
+ } else if ("responseHeaderActions".equals(fieldName)) {
+ List responseHeaderActions
+ = reader.readArray(reader1 -> HeaderAction.fromJson(reader1));
+ deserializedRulesEngineAction.responseHeaderActions = responseHeaderActions;
+ } else if ("routeConfigurationOverride".equals(fieldName)) {
+ deserializedRulesEngineAction.routeConfigurationOverride = RouteConfiguration.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRulesEngineAction;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineListResult.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineListResult.java
index e9a64aaf7f3f3..9a1bd69d471b4 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineListResult.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineListResult.java
@@ -5,8 +5,12 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.RulesEngineInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -14,17 +18,15 @@
* to get the next set of results.
*/
@Fluent
-public final class RulesEngineListResult {
+public final class RulesEngineListResult implements JsonSerializable {
/*
* List of rulesEngines within a Front Door.
*/
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private List value;
/*
* URL to get the next set of RulesEngine objects if there are any.
*/
- @JsonProperty(value = "nextLink")
private String nextLink;
/**
@@ -72,4 +74,43 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RulesEngineListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RulesEngineListResult 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 RulesEngineListResult.
+ */
+ public static RulesEngineListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RulesEngineListResult deserializedRulesEngineListResult = new RulesEngineListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> RulesEngineInner.fromJson(reader1));
+ deserializedRulesEngineListResult.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedRulesEngineListResult.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRulesEngineListResult;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineMatchCondition.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineMatchCondition.java
index e27d7a06f82f6..e55d8eadd997b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineMatchCondition.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineMatchCondition.java
@@ -6,48 +6,47 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Define a match condition.
*/
@Fluent
-public final class RulesEngineMatchCondition {
+public final class RulesEngineMatchCondition implements JsonSerializable {
/*
* Match Variable
*/
- @JsonProperty(value = "rulesEngineMatchVariable", required = true)
private RulesEngineMatchVariable rulesEngineMatchVariable;
/*
* Name of selector in RequestHeader or RequestBody to be matched
*/
- @JsonProperty(value = "selector")
private String selector;
/*
* Describes operator to apply to the match condition.
*/
- @JsonProperty(value = "rulesEngineOperator", required = true)
private RulesEngineOperator rulesEngineOperator;
/*
* Describes if this is negate condition or not
*/
- @JsonProperty(value = "negateCondition")
private Boolean negateCondition;
/*
- * Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.
+ * Match values to match against. The operator will apply to each value in here with OR semantics. If any of them
+ * match the variable with the given operator this match condition is considered a match.
*/
- @JsonProperty(value = "rulesEngineMatchValue", required = true)
private List rulesEngineMatchValue;
/*
* List of transforms
*/
- @JsonProperty(value = "transforms")
private List transforms;
/**
@@ -204,4 +203,64 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(RulesEngineMatchCondition.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("rulesEngineMatchVariable",
+ this.rulesEngineMatchVariable == null ? null : this.rulesEngineMatchVariable.toString());
+ jsonWriter.writeStringField("rulesEngineOperator",
+ this.rulesEngineOperator == null ? null : this.rulesEngineOperator.toString());
+ jsonWriter.writeArrayField("rulesEngineMatchValue", this.rulesEngineMatchValue,
+ (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("selector", this.selector);
+ jsonWriter.writeBooleanField("negateCondition", this.negateCondition);
+ jsonWriter.writeArrayField("transforms", this.transforms,
+ (writer, element) -> writer.writeString(element == null ? null : element.toString()));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RulesEngineMatchCondition from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RulesEngineMatchCondition 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 RulesEngineMatchCondition.
+ */
+ public static RulesEngineMatchCondition fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RulesEngineMatchCondition deserializedRulesEngineMatchCondition = new RulesEngineMatchCondition();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("rulesEngineMatchVariable".equals(fieldName)) {
+ deserializedRulesEngineMatchCondition.rulesEngineMatchVariable
+ = RulesEngineMatchVariable.fromString(reader.getString());
+ } else if ("rulesEngineOperator".equals(fieldName)) {
+ deserializedRulesEngineMatchCondition.rulesEngineOperator
+ = RulesEngineOperator.fromString(reader.getString());
+ } else if ("rulesEngineMatchValue".equals(fieldName)) {
+ List rulesEngineMatchValue = reader.readArray(reader1 -> reader1.getString());
+ deserializedRulesEngineMatchCondition.rulesEngineMatchValue = rulesEngineMatchValue;
+ } else if ("selector".equals(fieldName)) {
+ deserializedRulesEngineMatchCondition.selector = reader.getString();
+ } else if ("negateCondition".equals(fieldName)) {
+ deserializedRulesEngineMatchCondition.negateCondition = reader.getNullable(JsonReader::getBoolean);
+ } else if ("transforms".equals(fieldName)) {
+ List transforms = reader.readArray(reader1 -> Transform.fromString(reader1.getString()));
+ deserializedRulesEngineMatchCondition.transforms = transforms;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRulesEngineMatchCondition;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineMatchVariable.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineMatchVariable.java
index 7f77e980b20b0..6803192ce638d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineMatchVariable.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineMatchVariable.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -87,7 +86,6 @@ public RulesEngineMatchVariable() {
* @param name a name to look for.
* @return the corresponding RulesEngineMatchVariable.
*/
- @JsonCreator
public static RulesEngineMatchVariable fromString(String name) {
return fromString(name, RulesEngineMatchVariable.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineOperator.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineOperator.java
index 69056413ae38a..15ecde13bf378 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineOperator.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineOperator.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -82,7 +81,6 @@ public RulesEngineOperator() {
* @param name a name to look for.
* @return the corresponding RulesEngineOperator.
*/
- @JsonCreator
public static RulesEngineOperator fromString(String name) {
return fromString(name, RulesEngineOperator.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineRule.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineRule.java
index 0ba57a0c25bc0..6be144185ff0f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineRule.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineRule.java
@@ -6,7 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
@@ -15,35 +19,32 @@
* of headers manipulation.
*/
@Fluent
-public final class RulesEngineRule {
+public final class RulesEngineRule implements JsonSerializable {
/*
* A name to refer to this specific rule.
*/
- @JsonProperty(value = "name", required = true)
private String name;
/*
- * A priority assigned to this rule.
+ * A priority assigned to this rule.
*/
- @JsonProperty(value = "priority", required = true)
private int priority;
/*
* Actions to perform on the request and response if all of the match conditions are met.
*/
- @JsonProperty(value = "action", required = true)
private RulesEngineAction action;
/*
- * A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.
+ * A list of match conditions that must meet in order for the actions of this rule to run. Having no match
+ * conditions means the actions will always run.
*/
- @JsonProperty(value = "matchConditions")
private List matchConditions;
/*
- * If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
+ * If this rule is a match should the rules engine continue running the remaining rules or stop. If not present,
+ * defaults to Continue.
*/
- @JsonProperty(value = "matchProcessingBehavior")
private MatchProcessingBehavior matchProcessingBehavior;
/**
@@ -178,4 +179,58 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(RulesEngineRule.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeIntField("priority", this.priority);
+ jsonWriter.writeJsonField("action", this.action);
+ jsonWriter.writeArrayField("matchConditions", this.matchConditions,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("matchProcessingBehavior",
+ this.matchProcessingBehavior == null ? null : this.matchProcessingBehavior.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RulesEngineRule from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RulesEngineRule 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 RulesEngineRule.
+ */
+ public static RulesEngineRule fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RulesEngineRule deserializedRulesEngineRule = new RulesEngineRule();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedRulesEngineRule.name = reader.getString();
+ } else if ("priority".equals(fieldName)) {
+ deserializedRulesEngineRule.priority = reader.getInt();
+ } else if ("action".equals(fieldName)) {
+ deserializedRulesEngineRule.action = RulesEngineAction.fromJson(reader);
+ } else if ("matchConditions".equals(fieldName)) {
+ List matchConditions
+ = reader.readArray(reader1 -> RulesEngineMatchCondition.fromJson(reader1));
+ deserializedRulesEngineRule.matchConditions = matchConditions;
+ } else if ("matchProcessingBehavior".equals(fieldName)) {
+ deserializedRulesEngineRule.matchProcessingBehavior
+ = MatchProcessingBehavior.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRulesEngineRule;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineUpdateParameters.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineUpdateParameters.java
index 00cd36a6eec0d..fb39aef1f30cd 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineUpdateParameters.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/RulesEngineUpdateParameters.java
@@ -5,18 +5,21 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Rules Engine Configuration to apply to a Routing Rule.
*/
@Fluent
-public class RulesEngineUpdateParameters {
+public class RulesEngineUpdateParameters implements JsonSerializable {
/*
* A list of rules that define a particular Rules Engine Configuration.
*/
- @JsonProperty(value = "rules")
private List rules;
/**
@@ -55,4 +58,41 @@ public void validate() {
rules().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("rules", this.rules, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RulesEngineUpdateParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RulesEngineUpdateParameters 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 RulesEngineUpdateParameters.
+ */
+ public static RulesEngineUpdateParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RulesEngineUpdateParameters deserializedRulesEngineUpdateParameters = new RulesEngineUpdateParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("rules".equals(fieldName)) {
+ List rules = reader.readArray(reader1 -> RulesEngineRule.fromJson(reader1));
+ deserializedRulesEngineUpdateParameters.rules = rules;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRulesEngineUpdateParameters;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryMatchOperator.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryMatchOperator.java
index 838720b4acafa..7b9386d5daaf2 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryMatchOperator.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryMatchOperator.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -38,7 +37,6 @@ public ScrubbingRuleEntryMatchOperator() {
* @param name a name to look for.
* @return the corresponding ScrubbingRuleEntryMatchOperator.
*/
- @JsonCreator
public static ScrubbingRuleEntryMatchOperator fromString(String name) {
return fromString(name, ScrubbingRuleEntryMatchOperator.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryMatchVariable.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryMatchVariable.java
index a311f2a4fa426..1c8b6510d617e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryMatchVariable.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryMatchVariable.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -64,7 +63,6 @@ public ScrubbingRuleEntryMatchVariable() {
* @param name a name to look for.
* @return the corresponding ScrubbingRuleEntryMatchVariable.
*/
- @JsonCreator
public static ScrubbingRuleEntryMatchVariable fromString(String name) {
return fromString(name, ScrubbingRuleEntryMatchVariable.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryState.java
index 7636ec2dee698..bcd12106faa7f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ScrubbingRuleEntryState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public ScrubbingRuleEntryState() {
* @param name a name to look for.
* @return the corresponding ScrubbingRuleEntryState.
*/
- @JsonCreator
public static ScrubbingRuleEntryState fromString(String name) {
return fromString(name, ScrubbingRuleEntryState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SecurityPolicyLink.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SecurityPolicyLink.java
index 524e1e1875cd6..30fdba5458bd5 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SecurityPolicyLink.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SecurityPolicyLink.java
@@ -5,17 +5,20 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Defines the Resource ID for a Security Policy.
*/
@Fluent
-public final class SecurityPolicyLink {
+public final class SecurityPolicyLink implements JsonSerializable {
/*
* Resource ID.
*/
- @JsonProperty(value = "id")
private String id;
/**
@@ -51,4 +54,40 @@ public SecurityPolicyLink withId(String id) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SecurityPolicyLink from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SecurityPolicyLink if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the SecurityPolicyLink.
+ */
+ public static SecurityPolicyLink fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SecurityPolicyLink deserializedSecurityPolicyLink = new SecurityPolicyLink();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSecurityPolicyLink.id = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSecurityPolicyLink;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SessionAffinityEnabledState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SessionAffinityEnabledState.java
index 1f1c9fa47138c..ab54e18e2fbc5 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SessionAffinityEnabledState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SessionAffinityEnabledState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public SessionAffinityEnabledState() {
* @param name a name to look for.
* @return the corresponding SessionAffinityEnabledState.
*/
- @JsonCreator
public static SessionAffinityEnabledState fromString(String name) {
return fromString(name, SessionAffinityEnabledState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Sku.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Sku.java
index 51a605009d725..5266cdc418475 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Sku.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Sku.java
@@ -5,17 +5,20 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* The pricing tier of the web application firewall policy.
*/
@Fluent
-public final class Sku {
+public final class Sku implements JsonSerializable {
/*
* Name of the pricing tier.
*/
- @JsonProperty(value = "name")
private SkuName name;
/**
@@ -51,4 +54,40 @@ public Sku withName(SkuName name) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name == null ? null : this.name.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of Sku from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of Sku 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 Sku.
+ */
+ public static Sku fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ Sku deserializedSku = new Sku();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedSku.name = SkuName.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSku;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SkuName.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SkuName.java
index e8d521e80b60a..ea7bbd46b9e66 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SkuName.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/SkuName.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -42,7 +41,6 @@ public SkuName() {
* @param name a name to look for.
* @return the corresponding SkuName.
*/
- @JsonCreator
public static SkuName fromString(String name) {
return fromString(name, SkuName.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/State.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/State.java
index ec58ceb69fa9a..a5e34ace9092e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/State.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/State.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public State() {
* @param name a name to look for.
* @return the corresponding State.
*/
- @JsonCreator
public static State fromString(String name) {
return fromString(name, State.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TagsObject.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TagsObject.java
index 7fb6f2430809d..d02f73bd91394 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TagsObject.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TagsObject.java
@@ -5,20 +5,21 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.Map;
/**
* Tags object for patch operations.
*/
@Fluent
-public final class TagsObject {
+public final class TagsObject implements JsonSerializable {
/*
* Resource tags.
*/
- @JsonProperty(value = "tags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/**
@@ -54,4 +55,41 @@ public TagsObject withTags(Map tags) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of TagsObject from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TagsObject 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 TagsObject.
+ */
+ public static TagsObject fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TagsObject deserializedTagsObject = new TagsObject();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedTagsObject.tags = tags;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTagsObject;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesAggregationInterval.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesAggregationInterval.java
index 0afabebc4c640..ebcd4fb052041 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesAggregationInterval.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesAggregationInterval.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public TimeseriesAggregationInterval() {
* @param name a name to look for.
* @return the corresponding TimeseriesAggregationInterval.
*/
- @JsonCreator
public static TimeseriesAggregationInterval fromString(String name) {
return fromString(name, TimeseriesAggregationInterval.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesDataPoint.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesDataPoint.java
index dba84ff7a3de6..c0291b81db71c 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesDataPoint.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesDataPoint.java
@@ -5,23 +5,25 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Defines a timeseries datapoint used in a timeseries.
*/
@Fluent
-public final class TimeseriesDataPoint {
+public final class TimeseriesDataPoint implements JsonSerializable {
/*
* The DateTime of the Timeseries data point in UTC
*/
- @JsonProperty(value = "dateTimeUTC")
private String dateTimeUtc;
/*
* The Value of the Timeseries data point
*/
- @JsonProperty(value = "value")
private Float value;
/**
@@ -77,4 +79,43 @@ public TimeseriesDataPoint withValue(Float value) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("dateTimeUTC", this.dateTimeUtc);
+ jsonWriter.writeNumberField("value", this.value);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of TimeseriesDataPoint from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TimeseriesDataPoint 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 TimeseriesDataPoint.
+ */
+ public static TimeseriesDataPoint fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TimeseriesDataPoint deserializedTimeseriesDataPoint = new TimeseriesDataPoint();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("dateTimeUTC".equals(fieldName)) {
+ deserializedTimeseriesDataPoint.dateTimeUtc = reader.getString();
+ } else if ("value".equals(fieldName)) {
+ deserializedTimeseriesDataPoint.value = reader.getNullable(JsonReader::getFloat);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTimeseriesDataPoint;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesType.java
index 8bca83ba0bcd7..d2db9e9e1d08c 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TimeseriesType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -47,7 +46,6 @@ public TimeseriesType() {
* @param name a name to look for.
* @return the corresponding TimeseriesType.
*/
- @JsonCreator
public static TimeseriesType fromString(String name) {
return fromString(name, TimeseriesType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Transform.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Transform.java
index f0aa384d86911..494179f82bea7 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Transform.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/Transform.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -57,7 +56,6 @@ public Transform() {
* @param name a name to look for.
* @return the corresponding Transform.
*/
- @JsonCreator
public static Transform fromString(String name) {
return fromString(name, Transform.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TransformType.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TransformType.java
index 00bde06c38282..7a86b062a2ee2 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TransformType.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/TransformType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -57,7 +56,6 @@ public TransformType() {
* @param name a name to look for.
* @return the corresponding TransformType.
*/
- @JsonCreator
public static TransformType fromString(String name) {
return fromString(name, TransformType.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ValidateCustomDomainInput.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ValidateCustomDomainInput.java
index c1a137bcc5f44..55c59370b3281 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ValidateCustomDomainInput.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/ValidateCustomDomainInput.java
@@ -6,17 +6,20 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Input of the custom domain to be validated for DNS mapping.
*/
@Fluent
-public final class ValidateCustomDomainInput {
+public final class ValidateCustomDomainInput implements JsonSerializable {
/*
* The host name of the custom domain. Must be a domain name.
*/
- @JsonProperty(value = "hostName", required = true)
private String hostname;
/**
@@ -59,4 +62,41 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ValidateCustomDomainInput.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("hostName", this.hostname);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ValidateCustomDomainInput from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ValidateCustomDomainInput 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 ValidateCustomDomainInput.
+ */
+ public static ValidateCustomDomainInput fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ValidateCustomDomainInput deserializedValidateCustomDomainInput = new ValidateCustomDomainInput();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("hostName".equals(fieldName)) {
+ deserializedValidateCustomDomainInput.hostname = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedValidateCustomDomainInput;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/VariableName.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/VariableName.java
index b3343beef03ef..027c37405f41a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/VariableName.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/VariableName.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -42,7 +41,6 @@ public VariableName() {
* @param name a name to look for.
* @return the corresponding VariableName.
*/
- @JsonCreator
public static VariableName fromString(String name) {
return fromString(name, VariableName.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallPolicyList.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallPolicyList.java
index b8e3e7fa37fd5..d877633d03451 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallPolicyList.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallPolicyList.java
@@ -5,8 +5,12 @@
package com.azure.resourcemanager.frontdoor.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.frontdoor.fluent.models.WebApplicationFirewallPolicyInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -14,17 +18,15 @@
* URL link to get the next set of results.
*/
@Fluent
-public final class WebApplicationFirewallPolicyList {
+public final class WebApplicationFirewallPolicyList implements JsonSerializable {
/*
* List of WebApplicationFirewallPolicies within a resource group.
*/
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private List value;
/*
* URL to get the next set of WebApplicationFirewallPolicy objects if there are any.
*/
- @JsonProperty(value = "nextLink")
private String nextLink;
/**
@@ -72,4 +74,45 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WebApplicationFirewallPolicyList from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WebApplicationFirewallPolicyList 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 WebApplicationFirewallPolicyList.
+ */
+ public static WebApplicationFirewallPolicyList fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WebApplicationFirewallPolicyList deserializedWebApplicationFirewallPolicyList
+ = new WebApplicationFirewallPolicyList();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> WebApplicationFirewallPolicyInner.fromJson(reader1));
+ deserializedWebApplicationFirewallPolicyList.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedWebApplicationFirewallPolicyList.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWebApplicationFirewallPolicyList;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallScrubbingRules.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallScrubbingRules.java
index d9f17c1d28924..275b7950b6426 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallScrubbingRules.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallScrubbingRules.java
@@ -6,35 +6,38 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Defines the contents of the log scrubbing rules.
*/
@Fluent
-public final class WebApplicationFirewallScrubbingRules {
+public final class WebApplicationFirewallScrubbingRules
+ implements JsonSerializable {
/*
* The variable to be scrubbed from the logs.
*/
- @JsonProperty(value = "matchVariable", required = true)
private ScrubbingRuleEntryMatchVariable matchVariable;
/*
- * When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.
+ * When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule
+ * applies to.
*/
- @JsonProperty(value = "selectorMatchOperator", required = true)
private ScrubbingRuleEntryMatchOperator selectorMatchOperator;
/*
- * When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.
+ * When matchVariable is a collection, operator used to specify which elements in the collection this rule applies
+ * to.
*/
- @JsonProperty(value = "selector")
private String selector;
/*
* Defines the state of a log scrubbing rule. Default value is enabled.
*/
- @JsonProperty(value = "state")
private ScrubbingRuleEntryState state;
/**
@@ -147,4 +150,55 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(WebApplicationFirewallScrubbingRules.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("matchVariable", this.matchVariable == null ? null : this.matchVariable.toString());
+ jsonWriter.writeStringField("selectorMatchOperator",
+ this.selectorMatchOperator == null ? null : this.selectorMatchOperator.toString());
+ jsonWriter.writeStringField("selector", this.selector);
+ jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WebApplicationFirewallScrubbingRules from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WebApplicationFirewallScrubbingRules if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the WebApplicationFirewallScrubbingRules.
+ */
+ public static WebApplicationFirewallScrubbingRules fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WebApplicationFirewallScrubbingRules deserializedWebApplicationFirewallScrubbingRules
+ = new WebApplicationFirewallScrubbingRules();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("matchVariable".equals(fieldName)) {
+ deserializedWebApplicationFirewallScrubbingRules.matchVariable
+ = ScrubbingRuleEntryMatchVariable.fromString(reader.getString());
+ } else if ("selectorMatchOperator".equals(fieldName)) {
+ deserializedWebApplicationFirewallScrubbingRules.selectorMatchOperator
+ = ScrubbingRuleEntryMatchOperator.fromString(reader.getString());
+ } else if ("selector".equals(fieldName)) {
+ deserializedWebApplicationFirewallScrubbingRules.selector = reader.getString();
+ } else if ("state".equals(fieldName)) {
+ deserializedWebApplicationFirewallScrubbingRules.state
+ = ScrubbingRuleEntryState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWebApplicationFirewallScrubbingRules;
+ });
+ }
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallScrubbingState.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallScrubbingState.java
index ff511830f322e..9913402308d73 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallScrubbingState.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/com/azure/resourcemanager/frontdoor/models/WebApplicationFirewallScrubbingState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.frontdoor.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -38,7 +37,6 @@ public WebApplicationFirewallScrubbingState() {
* @param name a name to look for.
* @return the corresponding WebApplicationFirewallScrubbingState.
*/
- @JsonCreator
public static WebApplicationFirewallScrubbingState fromString(String name) {
return fromString(name, WebApplicationFirewallScrubbingState.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/module-info.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/module-info.java
index 9668323d015bb..4b6907f557bf1 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/module-info.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/java/module-info.java
@@ -10,6 +10,6 @@
exports com.azure.resourcemanager.frontdoor.fluent.models;
exports com.azure.resourcemanager.frontdoor.models;
- opens com.azure.resourcemanager.frontdoor.fluent.models to com.azure.core, com.fasterxml.jackson.databind;
- opens com.azure.resourcemanager.frontdoor.models to com.azure.core, com.fasterxml.jackson.databind;
+ opens com.azure.resourcemanager.frontdoor.fluent.models to com.azure.core;
+ opens com.azure.resourcemanager.frontdoor.models to com.azure.core;
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-frontdoor/proxy-config.json b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-frontdoor/proxy-config.json
index 109d73ad01712..88aca2c746dbf 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-frontdoor/proxy-config.json
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-frontdoor/proxy-config.json
@@ -1 +1 @@
-[ [ "com.azure.resourcemanager.frontdoor.implementation.PoliciesClientImpl$PoliciesService" ], [ "com.azure.resourcemanager.frontdoor.implementation.ManagedRuleSetsClientImpl$ManagedRuleSetsService" ], [ "com.azure.resourcemanager.frontdoor.implementation.FrontDoorNameAvailabilitiesClientImpl$FrontDoorNameAvailabilitiesService" ], [ "com.azure.resourcemanager.frontdoor.implementation.FrontDoorNameAvailabilityWithSubscriptionsClientImpl$FrontDoorNameAvailabilityWithSubscriptionsService" ], [ "com.azure.resourcemanager.frontdoor.implementation.FrontDoorsClientImpl$FrontDoorsService" ], [ "com.azure.resourcemanager.frontdoor.implementation.FrontendEndpointsClientImpl$FrontendEndpointsService" ], [ "com.azure.resourcemanager.frontdoor.implementation.EndpointsClientImpl$EndpointsService" ], [ "com.azure.resourcemanager.frontdoor.implementation.RulesEnginesClientImpl$RulesEnginesService" ], [ "com.azure.resourcemanager.frontdoor.implementation.NetworkExperimentProfilesClientImpl$NetworkExperimentProfilesService" ], [ "com.azure.resourcemanager.frontdoor.implementation.PreconfiguredEndpointsClientImpl$PreconfiguredEndpointsService" ], [ "com.azure.resourcemanager.frontdoor.implementation.ExperimentsClientImpl$ExperimentsService" ], [ "com.azure.resourcemanager.frontdoor.implementation.ReportsClientImpl$ReportsService" ] ]
\ No newline at end of file
+[["com.azure.resourcemanager.frontdoor.implementation.EndpointsClientImpl$EndpointsService"],["com.azure.resourcemanager.frontdoor.implementation.ExperimentsClientImpl$ExperimentsService"],["com.azure.resourcemanager.frontdoor.implementation.FrontDoorNameAvailabilitiesClientImpl$FrontDoorNameAvailabilitiesService"],["com.azure.resourcemanager.frontdoor.implementation.FrontDoorNameAvailabilityWithSubscriptionsClientImpl$FrontDoorNameAvailabilityWithSubscriptionsService"],["com.azure.resourcemanager.frontdoor.implementation.FrontDoorsClientImpl$FrontDoorsService"],["com.azure.resourcemanager.frontdoor.implementation.FrontendEndpointsClientImpl$FrontendEndpointsService"],["com.azure.resourcemanager.frontdoor.implementation.ManagedRuleSetsClientImpl$ManagedRuleSetsService"],["com.azure.resourcemanager.frontdoor.implementation.NetworkExperimentProfilesClientImpl$NetworkExperimentProfilesService"],["com.azure.resourcemanager.frontdoor.implementation.PoliciesClientImpl$PoliciesService"],["com.azure.resourcemanager.frontdoor.implementation.PreconfiguredEndpointsClientImpl$PreconfiguredEndpointsService"],["com.azure.resourcemanager.frontdoor.implementation.ReportsClientImpl$ReportsService"],["com.azure.resourcemanager.frontdoor.implementation.RulesEnginesClientImpl$RulesEnginesService"]]
\ No newline at end of file
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-frontdoor/reflect-config.json b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-frontdoor/reflect-config.json
index 9d42b94e50fc9..0637a088a01e8 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-frontdoor/reflect-config.json
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-frontdoor/reflect-config.json
@@ -1,726 +1 @@
-[ {
- "name" : "com.azure.resourcemanager.frontdoor.models.WebApplicationFirewallPolicyList",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.WebApplicationFirewallPolicyInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.WebApplicationFirewallPolicyProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.PolicySettings",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.PolicySettingsLogScrubbing",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.WebApplicationFirewallScrubbingRules",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.CustomRuleList",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.CustomRule",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.GroupByVariable",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.MatchCondition",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleSetList",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleSet",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleExclusion",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleGroupOverride",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleOverride",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontendEndpointLink",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RoutingRuleLink",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.SecurityPolicyLink",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.Sku",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.TagsObject",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleSetDefinitionList",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.ManagedRuleSetDefinitionInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.ManagedRuleSetDefinitionProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleGroupDefinition",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleDefinition",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.CheckNameAvailabilityInput",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.CheckNameAvailabilityOutputInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorListResult",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.FrontDoorInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.FrontDoorProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.RulesEngineInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.RulesEngineProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RulesEngineUpdateParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RulesEngineRule",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RulesEngineAction",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.HeaderAction",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RouteConfiguration",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RulesEngineMatchCondition",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorUpdateParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RoutingRule",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.RoutingRuleProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RoutingRuleUpdateParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.LoadBalancingSettingsModel",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.LoadBalancingSettingsProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.LoadBalancingSettingsUpdateParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.HealthProbeSettingsModel",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.HealthProbeSettingsProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.HealthProbeSettingsUpdateParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.BackendPool",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.BackendPoolProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.BackendPoolUpdateParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.Backend",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.FrontendEndpointInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.FrontendEndpointProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.CustomHttpsConfiguration",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.KeyVaultCertificateSourceParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.KeyVaultCertificateSourceParametersVault",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.FrontDoorCertificateSourceParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontendEndpointUpdateParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.BackendPoolsSettings",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontendEndpointsListResult",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.PurgeParameters",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ValidateCustomDomainInput",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.ValidateCustomDomainOutputInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RulesEngineListResult",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ProfileList",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.ProfileInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.ProfileProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ProfileUpdateModel",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.ProfileUpdateProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.PreconfiguredEndpointList",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.PreconfiguredEndpointInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.PreconfiguredEndpointProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ExperimentList",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.ExperimentInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.ExperimentProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.Endpoint",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ExperimentUpdateModel",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.ExperimentUpdateProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.LatencyScorecardInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.LatencyScorecardProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.LatencyMetric",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.TimeseriesInner",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.fluent.models.TimeseriesProperties",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.TimeseriesDataPoint",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ForwardingConfiguration",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.CacheConfiguration",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RedirectConfiguration",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.PolicyEnabledState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.PolicyMode",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.PolicyRequestBodyCheck",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.WebApplicationFirewallScrubbingState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ScrubbingRuleEntryMatchVariable",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ScrubbingRuleEntryMatchOperator",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ScrubbingRuleEntryState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.CustomRuleEnabledState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RuleType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.VariableName",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.MatchVariable",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.Operator",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.TransformType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ActionType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleSetActionType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleExclusionMatchVariable",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleExclusionSelectorMatchOperator",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ManagedRuleEnabledState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.PolicyResourceState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.SkuName",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.Availability",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorResourceState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.HeaderActionType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RulesEngineMatchVariable",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RulesEngineOperator",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.Transform",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.MatchProcessingBehavior",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorProtocol",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.RoutingRuleEnabledState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorHealthProbeMethod",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.HealthProbeEnabled",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.PrivateEndpointStatus",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.BackendEnabledState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.CustomHttpsProvisioningState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.CustomHttpsProvisioningSubstate",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorCertificateSource",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorTlsProtocolType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.MinimumTlsVersion",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorCertificateType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.SessionAffinityEnabledState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.EnforceCertificateNameCheckEnabledState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorEnabledState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.NetworkExperimentResourceState",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.State",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.EndpointType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.LatencyScorecardAggregationInterval",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.TimeseriesAggregationInterval",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.TimeseriesType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.AggregationInterval",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorForwardingProtocol",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorQuery",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.DynamicCompressionEnabled",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorRedirectType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.FrontDoorRedirectProtocol",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-}, {
- "name" : "com.azure.resourcemanager.frontdoor.models.ResourceType",
- "allDeclaredConstructors" : true,
- "allDeclaredFields" : true,
- "allDeclaredMethods" : true
-} ]
\ No newline at end of file
+[]
\ No newline at end of file
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/EndpointsPurgeContentSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/EndpointsPurgeContentSamples.java
index 4a314223112b1..f2e986f3ba7d2 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/EndpointsPurgeContentSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/EndpointsPurgeContentSamples.java
@@ -12,7 +12,8 @@
*/
public final class EndpointsPurgeContentSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorPurgeContent.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorPurgeContent.json
*/
/**
* Sample code: Purge content from Front Door.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsCreateOrUpdateSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsCreateOrUpdateSamples.java
index cfc043e1edeba..3f2b8d4e7cd92 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsCreateOrUpdateSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsCreateOrUpdateSamples.java
@@ -12,7 +12,8 @@
*/
public final class ExperimentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentCreateExperiment.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentCreateExperiment.json
*/
/**
* Sample code: Creates an Experiment.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsDeleteSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsDeleteSamples.java
index b76bdd30f7e1f..44a0378046f75 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsDeleteSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsDeleteSamples.java
@@ -9,7 +9,8 @@
*/
public final class ExperimentsDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentDeleteExperiment.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentDeleteExperiment.json
*/
/**
* Sample code: Deletes an Experiment.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsGetSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsGetSamples.java
index 7e19fd04f44bd..761c0022aa269 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsGetSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsGetSamples.java
@@ -9,7 +9,8 @@
*/
public final class ExperimentsGetSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetExperiment.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentGetExperiment.json
*/
/**
* Sample code: Gets an Experiment by ExperimentName.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsListByProfileSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsListByProfileSamples.java
index cc3758d3503e5..5374aa676fc37 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsListByProfileSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsListByProfileSamples.java
@@ -9,7 +9,8 @@
*/
public final class ExperimentsListByProfileSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentListExperiments.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentListExperiments.json
*/
/**
* Sample code: Gets a list of Experiments.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsUpdateSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsUpdateSamples.java
index 51f1cf52b8647..7231fc94595bf 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsUpdateSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsUpdateSamples.java
@@ -12,7 +12,8 @@
*/
public final class ExperimentsUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentUpdateExperiment.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentUpdateExperiment.json
*/
/**
* Sample code: Updates an Experiment.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityCheckSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityCheckSamples.java
index 0cb12c7243c9f..29bdf586860e0 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityCheckSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityCheckSamples.java
@@ -12,7 +12,8 @@
*/
public final class FrontDoorNameAvailabilityCheckSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/CheckFrontdoorNameAvailability.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * CheckFrontdoorNameAvailability.json
*/
/**
* Sample code: CheckNameAvailability.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityWithSubscriptionCheckSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityWithSubscriptionCheckSamples.java
index 7a896066af682..52cc96ee99867 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityWithSubscriptionCheckSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityWithSubscriptionCheckSamples.java
@@ -12,7 +12,8 @@
*/
public final class FrontDoorNameAvailabilityWithSubscriptionCheckSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/CheckFrontdoorNameAvailabilityWithSubscription.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * CheckFrontdoorNameAvailabilityWithSubscription.json
*/
/**
* Sample code: CheckNameAvailabilityWithSubscription.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsCreateOrUpdateSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsCreateOrUpdateSamples.java
index 9efea6998fccf..6edcca65d9456 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsCreateOrUpdateSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsCreateOrUpdateSamples.java
@@ -31,7 +31,8 @@
*/
public final class FrontDoorsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorCreate.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorCreate.json
*/
/**
* Sample code: Create or update specific Front Door.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsDeleteSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsDeleteSamples.java
index 6b636a46fedf3..744cabc7237e9 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsDeleteSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsDeleteSamples.java
@@ -9,7 +9,8 @@
*/
public final class FrontDoorsDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDelete.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDelete.json
*/
/**
* Sample code: Delete Front Door.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsGetByResourceGroupSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsGetByResourceGroupSamples.java
index 328bba204a4ca..79ccc3127802d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsGetByResourceGroupSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsGetByResourceGroupSamples.java
@@ -9,7 +9,8 @@
*/
public final class FrontDoorsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorGet.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorGet.json
*/
/**
* Sample code: Get Front Door.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListByResourceGroupSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListByResourceGroupSamples.java
index 179f6ddadbfdb..8ce695d921db0 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListByResourceGroupSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListByResourceGroupSamples.java
@@ -9,7 +9,8 @@
*/
public final class FrontDoorsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorList.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorList.json
*/
/**
* Sample code: List Front Doors in a Resource Group.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListSamples.java
index 71afb4c56c1a9..7d445064734a4 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListSamples.java
@@ -9,7 +9,8 @@
*/
public final class FrontDoorsListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorListAll.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorListAll.json
*/
/**
* Sample code: List all Front Doors.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsValidateCustomDomainSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsValidateCustomDomainSamples.java
index 71cf2e510c1df..315c9768c620e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsValidateCustomDomainSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsValidateCustomDomainSamples.java
@@ -11,7 +11,8 @@
*/
public final class FrontDoorsValidateCustomDomainSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorValidateCustomDomain.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * FrontdoorValidateCustomDomain.json
*/
/**
* Sample code: FrontDoor_ValidateCustomDomain.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsDisableHttpsSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsDisableHttpsSamples.java
index 451bbe3ac827e..0cca89ea74090 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsDisableHttpsSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsDisableHttpsSamples.java
@@ -9,7 +9,8 @@
*/
public final class FrontendEndpointsDisableHttpsSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDisableHttps.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorDisableHttps.json
*/
/**
* Sample code: FrontendEndpoints_DisableHttps.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsEnableHttpsSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsEnableHttpsSamples.java
index 2d1f67a4f60c3..55f21e0967686 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsEnableHttpsSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsEnableHttpsSamples.java
@@ -15,7 +15,8 @@
*/
public final class FrontendEndpointsEnableHttpsSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorEnableHttps.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorEnableHttps.json
*/
/**
* Sample code: FrontendEndpoints_EnableHttps.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsGetSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsGetSamples.java
index acad2d9306543..0575446d3f65b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsGetSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsGetSamples.java
@@ -9,7 +9,8 @@
*/
public final class FrontendEndpointsGetSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorFrontendEndpointGet.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * FrontdoorFrontendEndpointGet.json
*/
/**
* Sample code: Get Frontend Endpoint.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsListByFrontDoorSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsListByFrontDoorSamples.java
index 285f7b1fa7de8..66d644f78c228 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsListByFrontDoorSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsListByFrontDoorSamples.java
@@ -9,7 +9,8 @@
*/
public final class FrontendEndpointsListByFrontDoorSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorFrontendEndpointList.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/
+ * FrontdoorFrontendEndpointList.json
*/
/**
* Sample code: List Frontend endpoints in a Front Door.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ManagedRuleSetsListSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ManagedRuleSetsListSamples.java
index c45cf87a70ad0..bf403f0ac5c69 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ManagedRuleSetsListSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ManagedRuleSetsListSamples.java
@@ -9,7 +9,8 @@
*/
public final class ManagedRuleSetsListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListManagedRuleSets.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListManagedRuleSets.json
*/
/**
* Sample code: List Policies ManagedRuleSets in a Resource Group.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesCreateOrUpdateSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesCreateOrUpdateSamples.java
index 1fc23cc664576..5361e1c38cb7e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesCreateOrUpdateSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesCreateOrUpdateSamples.java
@@ -11,7 +11,8 @@
*/
public final class NetworkExperimentProfilesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentCreateProfile.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentCreateProfile.json
*/
/**
* Sample code: Creates an NetworkExperiment Profile in a Resource Group.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesDeleteSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesDeleteSamples.java
index 7def0e5addbd4..c69b8f3a96acc 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesDeleteSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesDeleteSamples.java
@@ -9,7 +9,8 @@
*/
public final class NetworkExperimentProfilesDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentDeleteProfile.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentDeleteProfile.json
*/
/**
* Sample code: Deletes an NetworkExperiment Profile by ProfileName.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesGetByResourceGroupSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesGetByResourceGroupSamples.java
index 04ad50d12b27b..c294c5bab5e0d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesGetByResourceGroupSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesGetByResourceGroupSamples.java
@@ -9,7 +9,9 @@
*/
public final class NetworkExperimentProfilesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetProfile.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetProfile
+ * .json
*/
/**
* Sample code: Gets an NetworkExperiment Profile by Profile Id.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListByResourceGroupSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListByResourceGroupSamples.java
index ab59053014745..46fd628f93944 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListByResourceGroupSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListByResourceGroupSamples.java
@@ -9,7 +9,8 @@
*/
public final class NetworkExperimentProfilesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentListProfiles.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentListProfiles.json
*/
/**
* Sample code: List NetworkExperiment Profiles in a Resource Group.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListSamples.java
index a01fb32cff287..90b19c5f616c7 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListSamples.java
@@ -9,7 +9,8 @@
*/
public final class NetworkExperimentProfilesListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentListProfiles.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentListProfiles.json
*/
/**
* Sample code: List NetworkExperiment Profiles in a Resource Group.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesUpdateSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesUpdateSamples.java
index e34f7a595a614..1c5d51eaea587 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesUpdateSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesUpdateSamples.java
@@ -14,7 +14,8 @@
*/
public final class NetworkExperimentProfilesUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentUpdateProfile.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentUpdateProfile.json
*/
/**
* Sample code: Updates an Experiment.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesCreateOrUpdateSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesCreateOrUpdateSamples.java
index 6b185fa56f4fd..56fc333fba066 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesCreateOrUpdateSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesCreateOrUpdateSamples.java
@@ -39,7 +39,9 @@
*/
public final class PoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyCreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyCreateOrUpdate.
+ * json
*/
/**
* Sample code: Creates specific policy.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesDeleteSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesDeleteSamples.java
index 29d44c7f53d0c..50a7ccbffc9c7 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesDeleteSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesDeleteSamples.java
@@ -9,7 +9,8 @@
*/
public final class PoliciesDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyDelete.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyDelete.json
*/
/**
* Sample code: Delete protection policy.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesGetByResourceGroupSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesGetByResourceGroupSamples.java
index 956ef4a89abb0..1075e5107937f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesGetByResourceGroupSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesGetByResourceGroupSamples.java
@@ -9,7 +9,8 @@
*/
public final class PoliciesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyGet.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyGet.json
*/
/**
* Sample code: Get Policy.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesListByResourceGroupSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesListByResourceGroupSamples.java
index b1af4b9317ec5..0d547aaa9d595 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesListByResourceGroupSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesListByResourceGroupSamples.java
@@ -9,7 +9,8 @@
*/
public final class PoliciesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListPolicies.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListPolicies.json
*/
/**
* Sample code: Get all Policies in a Resource Group.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesListSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesListSamples.java
index 8d61ce8d8b01d..e5ea1fb66f153 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesListSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesListSamples.java
@@ -9,7 +9,8 @@
*/
public final class PoliciesListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListPoliciesUnderSubscription.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/
+ * WafListPoliciesUnderSubscription.json
*/
/**
* Sample code: Get all Policies in a Resource Group.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesUpdateSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesUpdateSamples.java
index 29ddf1c25beb1..6928295dacd96 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesUpdateSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PoliciesUpdateSamples.java
@@ -13,7 +13,8 @@
*/
public final class PoliciesUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyPatch.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyPatch.json
*/
/**
* Sample code: Patches specific policy.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointsListSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointsListSamples.java
index 8fe55f9c65262..5369d1db20359 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointsListSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointsListSamples.java
@@ -9,7 +9,8 @@
*/
public final class PreconfiguredEndpointsListSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetPreconfiguredEndpoints.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentGetPreconfiguredEndpoints.json
*/
/**
* Sample code: Gets a list of Preconfigured Endpoints.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetLatencyScorecardsSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetLatencyScorecardsSamples.java
index a9ac73aae55ff..e757b2eb18547 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetLatencyScorecardsSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetLatencyScorecardsSamples.java
@@ -11,7 +11,8 @@
*/
public final class ReportsGetLatencyScorecardsSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetLatencyScorecard.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentGetLatencyScorecard.json
*/
/**
* Sample code: Gets a Latency Scorecard for a given Experiment.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetTimeseriesSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetTimeseriesSamples.java
index 1f2222661f96d..9aed2016e009d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetTimeseriesSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetTimeseriesSamples.java
@@ -13,7 +13,8 @@
*/
public final class ReportsGetTimeseriesSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/NetworkExperimentGetTimeseries.json
+ * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-11-01/examples/
+ * NetworkExperimentGetTimeseries.json
*/
/**
* Sample code: Gets a Timeseries for a given Experiment.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesCreateOrUpdateSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesCreateOrUpdateSamples.java
index 533eb3961cc10..e3d7ae94ff331 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesCreateOrUpdateSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesCreateOrUpdateSamples.java
@@ -30,7 +30,9 @@
*/
public final class RulesEnginesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineCreate.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineCreate.
+ * json
*/
/**
* Sample code: Create or update a specific Rules Engine Configuration.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesDeleteSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesDeleteSamples.java
index 00c98f0d455e5..1e2110e59a043 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesDeleteSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesDeleteSamples.java
@@ -9,7 +9,9 @@
*/
public final class RulesEnginesDeleteSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineDelete.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineDelete.
+ * json
*/
/**
* Sample code: Delete Rules Engine Configuration.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesGetSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesGetSamples.java
index f345b18e0770b..ee9f5933466ce 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesGetSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesGetSamples.java
@@ -9,7 +9,9 @@
*/
public final class RulesEnginesGetSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineGet.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineGet.
+ * json
*/
/**
* Sample code: Get Rules Engine Configuration.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesListByFrontDoorSamples.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesListByFrontDoorSamples.java
index 7e3b3b0b8a867..205550ba6155a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesListByFrontDoorSamples.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/samples/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesListByFrontDoorSamples.java
@@ -9,7 +9,9 @@
*/
public final class RulesEnginesListByFrontDoorSamples {
/*
- * x-ms-original-file: specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineList.json
+ * x-ms-original-file:
+ * specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/examples/FrontdoorRulesEngineList.
+ * json
*/
/**
* Sample code: List Rules Engine Configurations in a Front Door.
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolPropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolPropertiesTests.java
index 596c5846008d6..c86f8625994d3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolPropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolPropertiesTests.java
@@ -16,75 +16,75 @@ public final class BackendPoolPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
BackendPoolProperties model = BinaryData.fromString(
- "{\"resourceState\":\"Deleting\",\"backends\":[{\"address\":\"brhu\",\"privateLinkAlias\":\"kh\",\"privateLinkResourceId\":\"ygo\",\"privateLinkLocation\":\"kkqfqjbvle\",\"privateEndpointStatus\":\"Approved\",\"privateLinkApprovalMessage\":\"luiqtqzfavyvnqq\",\"httpPort\":1266667587,\"httpsPort\":1053197687,\"enabledState\":\"Enabled\",\"priority\":1922609600,\"weight\":462603095,\"backendHostHeader\":\"abqgzslesjcbh\"},{\"address\":\"n\",\"privateLinkAlias\":\"iew\",\"privateLinkResourceId\":\"cv\",\"privateLinkLocation\":\"uwrbehwagoh\",\"privateEndpointStatus\":\"Approved\",\"privateLinkApprovalMessage\":\"kmr\",\"httpPort\":1538670364,\"httpsPort\":295447223,\"enabledState\":\"Enabled\",\"priority\":1109693907,\"weight\":1330196147,\"backendHostHeader\":\"futacoebjvewzc\"},{\"address\":\"nmwcpmgu\",\"privateLinkAlias\":\"draufactkah\",\"privateLinkResourceId\":\"v\",\"privateLinkLocation\":\"j\",\"privateEndpointStatus\":\"Approved\",\"privateLinkApprovalMessage\":\"xps\",\"httpPort\":1820009051,\"httpsPort\":1193345721,\"enabledState\":\"Enabled\",\"priority\":504931711,\"weight\":382484088,\"backendHostHeader\":\"ubkwdle\"}],\"loadBalancingSettings\":{\"id\":\"sutujba\"},\"healthProbeSettings\":{\"id\":\"uo\"}}")
+ "{\"resourceState\":\"Disabling\",\"backends\":[{\"address\":\"vv\",\"privateLinkAlias\":\"nk\",\"privateLinkResourceId\":\"hqyikvy\",\"privateLinkLocation\":\"uyav\",\"privateEndpointStatus\":\"Pending\",\"privateLinkApprovalMessage\":\"ncstt\",\"httpPort\":2120109491,\"httpsPort\":1869546664,\"enabledState\":\"Disabled\",\"priority\":1465256653,\"weight\":576086700,\"backendHostHeader\":\"gsgbdhuzq\"},{\"address\":\"j\",\"privateLinkAlias\":\"kynscliqhzv\",\"privateLinkResourceId\":\"nk\",\"privateLinkLocation\":\"tkubotppn\",\"privateEndpointStatus\":\"Disconnected\",\"privateLinkApprovalMessage\":\"xhihfrbbcevqagtl\",\"httpPort\":169373915,\"httpsPort\":1706986082,\"enabledState\":\"Enabled\",\"priority\":2094473580,\"weight\":1199430603,\"backendHostHeader\":\"vgtrdcnifmzzs\"},{\"address\":\"m\",\"privateLinkAlias\":\"nysuxmprafwgckh\",\"privateLinkResourceId\":\"xvd\",\"privateLinkLocation\":\"fwafqrouda\",\"privateEndpointStatus\":\"Rejected\",\"privateLinkApprovalMessage\":\"ehhr\",\"httpPort\":221531853,\"httpsPort\":50845900,\"enabledState\":\"Enabled\",\"priority\":484340114,\"weight\":83009194,\"backendHostHeader\":\"xg\"}],\"loadBalancingSettings\":{\"id\":\"yxcdyuibhmfdnbzy\"},\"healthProbeSettings\":{\"id\":\"vfcjnaeoisrvhmg\"}}")
.toObject(BackendPoolProperties.class);
- Assertions.assertEquals("brhu", model.backends().get(0).address());
- Assertions.assertEquals("kh", model.backends().get(0).privateLinkAlias());
- Assertions.assertEquals("ygo", model.backends().get(0).privateLinkResourceId());
- Assertions.assertEquals("kkqfqjbvle", model.backends().get(0).privateLinkLocation());
- Assertions.assertEquals("luiqtqzfavyvnqq", model.backends().get(0).privateLinkApprovalMessage());
- Assertions.assertEquals(1266667587, model.backends().get(0).httpPort());
- Assertions.assertEquals(1053197687, model.backends().get(0).httpsPort());
- Assertions.assertEquals(BackendEnabledState.ENABLED, model.backends().get(0).enabledState());
- Assertions.assertEquals(1922609600, model.backends().get(0).priority());
- Assertions.assertEquals(462603095, model.backends().get(0).weight());
- Assertions.assertEquals("abqgzslesjcbh", model.backends().get(0).backendHostHeader());
- Assertions.assertEquals("sutujba", model.loadBalancingSettings().id());
- Assertions.assertEquals("uo", model.healthProbeSettings().id());
+ Assertions.assertEquals("vv", model.backends().get(0).address());
+ Assertions.assertEquals("nk", model.backends().get(0).privateLinkAlias());
+ Assertions.assertEquals("hqyikvy", model.backends().get(0).privateLinkResourceId());
+ Assertions.assertEquals("uyav", model.backends().get(0).privateLinkLocation());
+ Assertions.assertEquals("ncstt", model.backends().get(0).privateLinkApprovalMessage());
+ Assertions.assertEquals(2120109491, model.backends().get(0).httpPort());
+ Assertions.assertEquals(1869546664, model.backends().get(0).httpsPort());
+ Assertions.assertEquals(BackendEnabledState.DISABLED, model.backends().get(0).enabledState());
+ Assertions.assertEquals(1465256653, model.backends().get(0).priority());
+ Assertions.assertEquals(576086700, model.backends().get(0).weight());
+ Assertions.assertEquals("gsgbdhuzq", model.backends().get(0).backendHostHeader());
+ Assertions.assertEquals("yxcdyuibhmfdnbzy", model.loadBalancingSettings().id());
+ Assertions.assertEquals("vfcjnaeoisrvhmg", model.healthProbeSettings().id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
BackendPoolProperties model = new BackendPoolProperties()
.withBackends(Arrays.asList(
- new Backend().withAddress("brhu")
- .withPrivateLinkAlias("kh")
- .withPrivateLinkResourceId("ygo")
- .withPrivateLinkLocation("kkqfqjbvle")
- .withPrivateLinkApprovalMessage("luiqtqzfavyvnqq")
- .withHttpPort(1266667587)
- .withHttpsPort(1053197687)
+ new Backend().withAddress("vv")
+ .withPrivateLinkAlias("nk")
+ .withPrivateLinkResourceId("hqyikvy")
+ .withPrivateLinkLocation("uyav")
+ .withPrivateLinkApprovalMessage("ncstt")
+ .withHttpPort(2120109491)
+ .withHttpsPort(1869546664)
+ .withEnabledState(BackendEnabledState.DISABLED)
+ .withPriority(1465256653)
+ .withWeight(576086700)
+ .withBackendHostHeader("gsgbdhuzq"),
+ new Backend().withAddress("j")
+ .withPrivateLinkAlias("kynscliqhzv")
+ .withPrivateLinkResourceId("nk")
+ .withPrivateLinkLocation("tkubotppn")
+ .withPrivateLinkApprovalMessage("xhihfrbbcevqagtl")
+ .withHttpPort(169373915)
+ .withHttpsPort(1706986082)
.withEnabledState(BackendEnabledState.ENABLED)
- .withPriority(1922609600)
- .withWeight(462603095)
- .withBackendHostHeader("abqgzslesjcbh"),
- new Backend().withAddress("n")
- .withPrivateLinkAlias("iew")
- .withPrivateLinkResourceId("cv")
- .withPrivateLinkLocation("uwrbehwagoh")
- .withPrivateLinkApprovalMessage("kmr")
- .withHttpPort(1538670364)
- .withHttpsPort(295447223)
+ .withPriority(2094473580)
+ .withWeight(1199430603)
+ .withBackendHostHeader("vgtrdcnifmzzs"),
+ new Backend().withAddress("m")
+ .withPrivateLinkAlias("nysuxmprafwgckh")
+ .withPrivateLinkResourceId("xvd")
+ .withPrivateLinkLocation("fwafqrouda")
+ .withPrivateLinkApprovalMessage("ehhr")
+ .withHttpPort(221531853)
+ .withHttpsPort(50845900)
.withEnabledState(BackendEnabledState.ENABLED)
- .withPriority(1109693907)
- .withWeight(1330196147)
- .withBackendHostHeader("futacoebjvewzc"),
- new Backend().withAddress("nmwcpmgu")
- .withPrivateLinkAlias("draufactkah")
- .withPrivateLinkResourceId("v")
- .withPrivateLinkLocation("j")
- .withPrivateLinkApprovalMessage("xps")
- .withHttpPort(1820009051)
- .withHttpsPort(1193345721)
- .withEnabledState(BackendEnabledState.ENABLED)
- .withPriority(504931711)
- .withWeight(382484088)
- .withBackendHostHeader("ubkwdle")))
- .withLoadBalancingSettings(new SubResource().withId("sutujba"))
- .withHealthProbeSettings(new SubResource().withId("uo"));
+ .withPriority(484340114)
+ .withWeight(83009194)
+ .withBackendHostHeader("xg")))
+ .withLoadBalancingSettings(new SubResource().withId("yxcdyuibhmfdnbzy"))
+ .withHealthProbeSettings(new SubResource().withId("vfcjnaeoisrvhmg"));
model = BinaryData.fromObject(model).toObject(BackendPoolProperties.class);
- Assertions.assertEquals("brhu", model.backends().get(0).address());
- Assertions.assertEquals("kh", model.backends().get(0).privateLinkAlias());
- Assertions.assertEquals("ygo", model.backends().get(0).privateLinkResourceId());
- Assertions.assertEquals("kkqfqjbvle", model.backends().get(0).privateLinkLocation());
- Assertions.assertEquals("luiqtqzfavyvnqq", model.backends().get(0).privateLinkApprovalMessage());
- Assertions.assertEquals(1266667587, model.backends().get(0).httpPort());
- Assertions.assertEquals(1053197687, model.backends().get(0).httpsPort());
- Assertions.assertEquals(BackendEnabledState.ENABLED, model.backends().get(0).enabledState());
- Assertions.assertEquals(1922609600, model.backends().get(0).priority());
- Assertions.assertEquals(462603095, model.backends().get(0).weight());
- Assertions.assertEquals("abqgzslesjcbh", model.backends().get(0).backendHostHeader());
- Assertions.assertEquals("sutujba", model.loadBalancingSettings().id());
- Assertions.assertEquals("uo", model.healthProbeSettings().id());
+ Assertions.assertEquals("vv", model.backends().get(0).address());
+ Assertions.assertEquals("nk", model.backends().get(0).privateLinkAlias());
+ Assertions.assertEquals("hqyikvy", model.backends().get(0).privateLinkResourceId());
+ Assertions.assertEquals("uyav", model.backends().get(0).privateLinkLocation());
+ Assertions.assertEquals("ncstt", model.backends().get(0).privateLinkApprovalMessage());
+ Assertions.assertEquals(2120109491, model.backends().get(0).httpPort());
+ Assertions.assertEquals(1869546664, model.backends().get(0).httpsPort());
+ Assertions.assertEquals(BackendEnabledState.DISABLED, model.backends().get(0).enabledState());
+ Assertions.assertEquals(1465256653, model.backends().get(0).priority());
+ Assertions.assertEquals(576086700, model.backends().get(0).weight());
+ Assertions.assertEquals("gsgbdhuzq", model.backends().get(0).backendHostHeader());
+ Assertions.assertEquals("yxcdyuibhmfdnbzy", model.loadBalancingSettings().id());
+ Assertions.assertEquals("vfcjnaeoisrvhmg", model.healthProbeSettings().id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolTests.java
index d5733725aa8ea..28c072a3caa45 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolTests.java
@@ -16,57 +16,57 @@ public final class BackendPoolTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
BackendPool model = BinaryData.fromString(
- "{\"properties\":{\"resourceState\":\"Deleting\",\"backends\":[{\"address\":\"mojmsvpkjprvkw\",\"privateLinkAlias\":\"zqljyxgtczh\",\"privateLinkResourceId\":\"dbsdshm\",\"privateLinkLocation\":\"maehvbbxurip\",\"privateEndpointStatus\":\"Rejected\",\"privateLinkApprovalMessage\":\"htba\",\"httpPort\":407621468,\"httpsPort\":1532025762,\"enabledState\":\"Enabled\",\"priority\":1975174816,\"weight\":2128748498,\"backendHostHeader\":\"lyhpluodpvruud\"}],\"loadBalancingSettings\":{\"id\":\"ibthostgktstvd\"},\"healthProbeSettings\":{\"id\":\"lzedqbcvhzlhplo\"}},\"name\":\"kdl\",\"type\":\"qfbumlkxtrqjf\",\"id\":\"lmbtxhwgfwsrt\"}")
+ "{\"properties\":{\"resourceState\":\"Creating\",\"backends\":[{\"address\":\"awzqadfl\",\"privateLinkAlias\":\"ur\",\"privateLinkResourceId\":\"laecxndticok\",\"privateLinkLocation\":\"zmlqtmldgxo\",\"privateEndpointStatus\":\"Timeout\",\"privateLinkApprovalMessage\":\"clnpkci\",\"httpPort\":1763691901,\"httpsPort\":1109916167,\"enabledState\":\"Disabled\",\"priority\":609521578,\"weight\":529722805,\"backendHostHeader\":\"vjlboxqvk\"}],\"loadBalancingSettings\":{\"id\":\"xhom\"},\"healthProbeSettings\":{\"id\":\"hdwdi\"}},\"name\":\"mbnraauzzp\",\"type\":\"a\",\"id\":\"sdzhezww\"}")
.toObject(BackendPool.class);
- Assertions.assertEquals("lmbtxhwgfwsrt", model.id());
- Assertions.assertEquals("kdl", model.name());
- Assertions.assertEquals("mojmsvpkjprvkw", model.backends().get(0).address());
- Assertions.assertEquals("zqljyxgtczh", model.backends().get(0).privateLinkAlias());
- Assertions.assertEquals("dbsdshm", model.backends().get(0).privateLinkResourceId());
- Assertions.assertEquals("maehvbbxurip", model.backends().get(0).privateLinkLocation());
- Assertions.assertEquals("htba", model.backends().get(0).privateLinkApprovalMessage());
- Assertions.assertEquals(407621468, model.backends().get(0).httpPort());
- Assertions.assertEquals(1532025762, model.backends().get(0).httpsPort());
- Assertions.assertEquals(BackendEnabledState.ENABLED, model.backends().get(0).enabledState());
- Assertions.assertEquals(1975174816, model.backends().get(0).priority());
- Assertions.assertEquals(2128748498, model.backends().get(0).weight());
- Assertions.assertEquals("lyhpluodpvruud", model.backends().get(0).backendHostHeader());
- Assertions.assertEquals("ibthostgktstvd", model.loadBalancingSettings().id());
- Assertions.assertEquals("lzedqbcvhzlhplo", model.healthProbeSettings().id());
+ Assertions.assertEquals("sdzhezww", model.id());
+ Assertions.assertEquals("mbnraauzzp", model.name());
+ Assertions.assertEquals("awzqadfl", model.backends().get(0).address());
+ Assertions.assertEquals("ur", model.backends().get(0).privateLinkAlias());
+ Assertions.assertEquals("laecxndticok", model.backends().get(0).privateLinkResourceId());
+ Assertions.assertEquals("zmlqtmldgxo", model.backends().get(0).privateLinkLocation());
+ Assertions.assertEquals("clnpkci", model.backends().get(0).privateLinkApprovalMessage());
+ Assertions.assertEquals(1763691901, model.backends().get(0).httpPort());
+ Assertions.assertEquals(1109916167, model.backends().get(0).httpsPort());
+ Assertions.assertEquals(BackendEnabledState.DISABLED, model.backends().get(0).enabledState());
+ Assertions.assertEquals(609521578, model.backends().get(0).priority());
+ Assertions.assertEquals(529722805, model.backends().get(0).weight());
+ Assertions.assertEquals("vjlboxqvk", model.backends().get(0).backendHostHeader());
+ Assertions.assertEquals("xhom", model.loadBalancingSettings().id());
+ Assertions.assertEquals("hdwdi", model.healthProbeSettings().id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- BackendPool model = new BackendPool().withId("lmbtxhwgfwsrt")
- .withName("kdl")
- .withBackends(Arrays.asList(new Backend().withAddress("mojmsvpkjprvkw")
- .withPrivateLinkAlias("zqljyxgtczh")
- .withPrivateLinkResourceId("dbsdshm")
- .withPrivateLinkLocation("maehvbbxurip")
- .withPrivateLinkApprovalMessage("htba")
- .withHttpPort(407621468)
- .withHttpsPort(1532025762)
- .withEnabledState(BackendEnabledState.ENABLED)
- .withPriority(1975174816)
- .withWeight(2128748498)
- .withBackendHostHeader("lyhpluodpvruud")))
- .withLoadBalancingSettings(new SubResource().withId("ibthostgktstvd"))
- .withHealthProbeSettings(new SubResource().withId("lzedqbcvhzlhplo"));
+ BackendPool model = new BackendPool().withId("sdzhezww")
+ .withName("mbnraauzzp")
+ .withBackends(Arrays.asList(new Backend().withAddress("awzqadfl")
+ .withPrivateLinkAlias("ur")
+ .withPrivateLinkResourceId("laecxndticok")
+ .withPrivateLinkLocation("zmlqtmldgxo")
+ .withPrivateLinkApprovalMessage("clnpkci")
+ .withHttpPort(1763691901)
+ .withHttpsPort(1109916167)
+ .withEnabledState(BackendEnabledState.DISABLED)
+ .withPriority(609521578)
+ .withWeight(529722805)
+ .withBackendHostHeader("vjlboxqvk")))
+ .withLoadBalancingSettings(new SubResource().withId("xhom"))
+ .withHealthProbeSettings(new SubResource().withId("hdwdi"));
model = BinaryData.fromObject(model).toObject(BackendPool.class);
- Assertions.assertEquals("lmbtxhwgfwsrt", model.id());
- Assertions.assertEquals("kdl", model.name());
- Assertions.assertEquals("mojmsvpkjprvkw", model.backends().get(0).address());
- Assertions.assertEquals("zqljyxgtczh", model.backends().get(0).privateLinkAlias());
- Assertions.assertEquals("dbsdshm", model.backends().get(0).privateLinkResourceId());
- Assertions.assertEquals("maehvbbxurip", model.backends().get(0).privateLinkLocation());
- Assertions.assertEquals("htba", model.backends().get(0).privateLinkApprovalMessage());
- Assertions.assertEquals(407621468, model.backends().get(0).httpPort());
- Assertions.assertEquals(1532025762, model.backends().get(0).httpsPort());
- Assertions.assertEquals(BackendEnabledState.ENABLED, model.backends().get(0).enabledState());
- Assertions.assertEquals(1975174816, model.backends().get(0).priority());
- Assertions.assertEquals(2128748498, model.backends().get(0).weight());
- Assertions.assertEquals("lyhpluodpvruud", model.backends().get(0).backendHostHeader());
- Assertions.assertEquals("ibthostgktstvd", model.loadBalancingSettings().id());
- Assertions.assertEquals("lzedqbcvhzlhplo", model.healthProbeSettings().id());
+ Assertions.assertEquals("sdzhezww", model.id());
+ Assertions.assertEquals("mbnraauzzp", model.name());
+ Assertions.assertEquals("awzqadfl", model.backends().get(0).address());
+ Assertions.assertEquals("ur", model.backends().get(0).privateLinkAlias());
+ Assertions.assertEquals("laecxndticok", model.backends().get(0).privateLinkResourceId());
+ Assertions.assertEquals("zmlqtmldgxo", model.backends().get(0).privateLinkLocation());
+ Assertions.assertEquals("clnpkci", model.backends().get(0).privateLinkApprovalMessage());
+ Assertions.assertEquals(1763691901, model.backends().get(0).httpPort());
+ Assertions.assertEquals(1109916167, model.backends().get(0).httpsPort());
+ Assertions.assertEquals(BackendEnabledState.DISABLED, model.backends().get(0).enabledState());
+ Assertions.assertEquals(609521578, model.backends().get(0).priority());
+ Assertions.assertEquals(529722805, model.backends().get(0).weight());
+ Assertions.assertEquals("vjlboxqvk", model.backends().get(0).backendHostHeader());
+ Assertions.assertEquals("xhom", model.loadBalancingSettings().id());
+ Assertions.assertEquals("hdwdi", model.healthProbeSettings().id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolUpdateParametersTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolUpdateParametersTests.java
index f76df83064fd9..1ba7c04623060 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolUpdateParametersTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolUpdateParametersTests.java
@@ -16,86 +16,75 @@ public final class BackendPoolUpdateParametersTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
BackendPoolUpdateParameters model = BinaryData.fromString(
- "{\"backends\":[{\"address\":\"yfln\",\"privateLinkAlias\":\"wmd\",\"privateLinkResourceId\":\"wpklvxw\",\"privateLinkLocation\":\"gdxpg\",\"privateEndpointStatus\":\"Approved\",\"privateLinkApprovalMessage\":\"isze\",\"httpPort\":511466566,\"httpsPort\":1448184483,\"enabledState\":\"Enabled\",\"priority\":1933702310,\"weight\":1689782344,\"backendHostHeader\":\"daxconfozauorsuk\"},{\"address\":\"wbqpl\",\"privateLinkAlias\":\"vnuuepzl\",\"privateLinkResourceId\":\"hw\",\"privateLinkLocation\":\"oldweyuqdu\",\"privateEndpointStatus\":\"Pending\",\"privateLinkApprovalMessage\":\"nrwrbiork\",\"httpPort\":1451955961,\"httpsPort\":1371763092,\"enabledState\":\"Enabled\",\"priority\":38060246,\"weight\":1472152819,\"backendHostHeader\":\"xmsivfomiloxggdu\"},{\"address\":\"q\",\"privateLinkAlias\":\"ieuzaofjchvcyyy\",\"privateLinkResourceId\":\"gdotcubiipuipwo\",\"privateLinkLocation\":\"nmacj\",\"privateEndpointStatus\":\"Timeout\",\"privateLinkApprovalMessage\":\"zshq\",\"httpPort\":1591499316,\"httpsPort\":932128156,\"enabledState\":\"Disabled\",\"priority\":1733722494,\"weight\":64895608,\"backendHostHeader\":\"rrilbywdxsmic\"},{\"address\":\"rwfscjfnynszquj\",\"privateLinkAlias\":\"dvoqyt\",\"privateLinkResourceId\":\"yo\",\"privateLinkLocation\":\"blgyavutpthj\",\"privateEndpointStatus\":\"Pending\",\"privateLinkApprovalMessage\":\"smsks\",\"httpPort\":791689891,\"httpsPort\":1015646968,\"enabledState\":\"Enabled\",\"priority\":1062811723,\"weight\":1488909990,\"backendHostHeader\":\"gxxlxsffgcvizq\"}],\"loadBalancingSettings\":{\"id\":\"l\"},\"healthProbeSettings\":{\"id\":\"youpfgfbkj\"}}")
+ "{\"backends\":[{\"address\":\"ukiscvwmzhw\",\"privateLinkAlias\":\"efaxvxilc\",\"privateLinkResourceId\":\"gnhnzeyq\",\"privateLinkLocation\":\"jjfzqlqhycavo\",\"privateEndpointStatus\":\"Rejected\",\"privateLinkApprovalMessage\":\"dbeesmie\",\"httpPort\":426944858,\"httpsPort\":1641970858,\"enabledState\":\"Enabled\",\"priority\":2070170024,\"weight\":1897469256,\"backendHostHeader\":\"agy\"},{\"address\":\"qfby\",\"privateLinkAlias\":\"rfgi\",\"privateLinkResourceId\":\"tcojocqwo\",\"privateLinkLocation\":\"nzjvusfzldm\",\"privateEndpointStatus\":\"Approved\",\"privateLinkApprovalMessage\":\"ylfsbtk\",\"httpPort\":2130953454,\"httpsPort\":201650328,\"enabledState\":\"Enabled\",\"priority\":1574366459,\"weight\":268742670,\"backendHostHeader\":\"bugrj\"},{\"address\":\"to\",\"privateLinkAlias\":\"mi\",\"privateLinkResourceId\":\"fieypefojyqdhcup\",\"privateLinkLocation\":\"plcwkhi\",\"privateEndpointStatus\":\"Timeout\",\"privateLinkApprovalMessage\":\"hzdsqtzbsrgnow\",\"httpPort\":994844547,\"httpsPort\":741446459,\"enabledState\":\"Enabled\",\"priority\":907830465,\"weight\":1670061981,\"backendHostHeader\":\"xmwoteyowcluqo\"}],\"loadBalancingSettings\":{\"id\":\"qvgqouw\"},\"healthProbeSettings\":{\"id\":\"mpjw\"}}")
.toObject(BackendPoolUpdateParameters.class);
- Assertions.assertEquals("yfln", model.backends().get(0).address());
- Assertions.assertEquals("wmd", model.backends().get(0).privateLinkAlias());
- Assertions.assertEquals("wpklvxw", model.backends().get(0).privateLinkResourceId());
- Assertions.assertEquals("gdxpg", model.backends().get(0).privateLinkLocation());
- Assertions.assertEquals("isze", model.backends().get(0).privateLinkApprovalMessage());
- Assertions.assertEquals(511466566, model.backends().get(0).httpPort());
- Assertions.assertEquals(1448184483, model.backends().get(0).httpsPort());
+ Assertions.assertEquals("ukiscvwmzhw", model.backends().get(0).address());
+ Assertions.assertEquals("efaxvxilc", model.backends().get(0).privateLinkAlias());
+ Assertions.assertEquals("gnhnzeyq", model.backends().get(0).privateLinkResourceId());
+ Assertions.assertEquals("jjfzqlqhycavo", model.backends().get(0).privateLinkLocation());
+ Assertions.assertEquals("dbeesmie", model.backends().get(0).privateLinkApprovalMessage());
+ Assertions.assertEquals(426944858, model.backends().get(0).httpPort());
+ Assertions.assertEquals(1641970858, model.backends().get(0).httpsPort());
Assertions.assertEquals(BackendEnabledState.ENABLED, model.backends().get(0).enabledState());
- Assertions.assertEquals(1933702310, model.backends().get(0).priority());
- Assertions.assertEquals(1689782344, model.backends().get(0).weight());
- Assertions.assertEquals("daxconfozauorsuk", model.backends().get(0).backendHostHeader());
- Assertions.assertEquals("l", model.loadBalancingSettings().id());
- Assertions.assertEquals("youpfgfbkj", model.healthProbeSettings().id());
+ Assertions.assertEquals(2070170024, model.backends().get(0).priority());
+ Assertions.assertEquals(1897469256, model.backends().get(0).weight());
+ Assertions.assertEquals("agy", model.backends().get(0).backendHostHeader());
+ Assertions.assertEquals("qvgqouw", model.loadBalancingSettings().id());
+ Assertions.assertEquals("mpjw", model.healthProbeSettings().id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
BackendPoolUpdateParameters model = new BackendPoolUpdateParameters()
.withBackends(Arrays.asList(
- new Backend().withAddress("yfln")
- .withPrivateLinkAlias("wmd")
- .withPrivateLinkResourceId("wpklvxw")
- .withPrivateLinkLocation("gdxpg")
- .withPrivateLinkApprovalMessage("isze")
- .withHttpPort(511466566)
- .withHttpsPort(1448184483)
+ new Backend().withAddress("ukiscvwmzhw")
+ .withPrivateLinkAlias("efaxvxilc")
+ .withPrivateLinkResourceId("gnhnzeyq")
+ .withPrivateLinkLocation("jjfzqlqhycavo")
+ .withPrivateLinkApprovalMessage("dbeesmie")
+ .withHttpPort(426944858)
+ .withHttpsPort(1641970858)
.withEnabledState(BackendEnabledState.ENABLED)
- .withPriority(1933702310)
- .withWeight(1689782344)
- .withBackendHostHeader("daxconfozauorsuk"),
- new Backend().withAddress("wbqpl")
- .withPrivateLinkAlias("vnuuepzl")
- .withPrivateLinkResourceId("hw")
- .withPrivateLinkLocation("oldweyuqdu")
- .withPrivateLinkApprovalMessage("nrwrbiork")
- .withHttpPort(1451955961)
- .withHttpsPort(1371763092)
+ .withPriority(2070170024)
+ .withWeight(1897469256)
+ .withBackendHostHeader("agy"),
+ new Backend().withAddress("qfby")
+ .withPrivateLinkAlias("rfgi")
+ .withPrivateLinkResourceId("tcojocqwo")
+ .withPrivateLinkLocation("nzjvusfzldm")
+ .withPrivateLinkApprovalMessage("ylfsbtk")
+ .withHttpPort(2130953454)
+ .withHttpsPort(201650328)
.withEnabledState(BackendEnabledState.ENABLED)
- .withPriority(38060246)
- .withWeight(1472152819)
- .withBackendHostHeader("xmsivfomiloxggdu"),
- new Backend().withAddress("q")
- .withPrivateLinkAlias("ieuzaofjchvcyyy")
- .withPrivateLinkResourceId("gdotcubiipuipwo")
- .withPrivateLinkLocation("nmacj")
- .withPrivateLinkApprovalMessage("zshq")
- .withHttpPort(1591499316)
- .withHttpsPort(932128156)
- .withEnabledState(BackendEnabledState.DISABLED)
- .withPriority(1733722494)
- .withWeight(64895608)
- .withBackendHostHeader("rrilbywdxsmic"),
- new Backend().withAddress("rwfscjfnynszquj")
- .withPrivateLinkAlias("dvoqyt")
- .withPrivateLinkResourceId("yo")
- .withPrivateLinkLocation("blgyavutpthj")
- .withPrivateLinkApprovalMessage("smsks")
- .withHttpPort(791689891)
- .withHttpsPort(1015646968)
+ .withPriority(1574366459)
+ .withWeight(268742670)
+ .withBackendHostHeader("bugrj"),
+ new Backend().withAddress("to")
+ .withPrivateLinkAlias("mi")
+ .withPrivateLinkResourceId("fieypefojyqdhcup")
+ .withPrivateLinkLocation("plcwkhi")
+ .withPrivateLinkApprovalMessage("hzdsqtzbsrgnow")
+ .withHttpPort(994844547)
+ .withHttpsPort(741446459)
.withEnabledState(BackendEnabledState.ENABLED)
- .withPriority(1062811723)
- .withWeight(1488909990)
- .withBackendHostHeader("gxxlxsffgcvizq")))
- .withLoadBalancingSettings(new SubResource().withId("l"))
- .withHealthProbeSettings(new SubResource().withId("youpfgfbkj"));
+ .withPriority(907830465)
+ .withWeight(1670061981)
+ .withBackendHostHeader("xmwoteyowcluqo")))
+ .withLoadBalancingSettings(new SubResource().withId("qvgqouw"))
+ .withHealthProbeSettings(new SubResource().withId("mpjw"));
model = BinaryData.fromObject(model).toObject(BackendPoolUpdateParameters.class);
- Assertions.assertEquals("yfln", model.backends().get(0).address());
- Assertions.assertEquals("wmd", model.backends().get(0).privateLinkAlias());
- Assertions.assertEquals("wpklvxw", model.backends().get(0).privateLinkResourceId());
- Assertions.assertEquals("gdxpg", model.backends().get(0).privateLinkLocation());
- Assertions.assertEquals("isze", model.backends().get(0).privateLinkApprovalMessage());
- Assertions.assertEquals(511466566, model.backends().get(0).httpPort());
- Assertions.assertEquals(1448184483, model.backends().get(0).httpsPort());
+ Assertions.assertEquals("ukiscvwmzhw", model.backends().get(0).address());
+ Assertions.assertEquals("efaxvxilc", model.backends().get(0).privateLinkAlias());
+ Assertions.assertEquals("gnhnzeyq", model.backends().get(0).privateLinkResourceId());
+ Assertions.assertEquals("jjfzqlqhycavo", model.backends().get(0).privateLinkLocation());
+ Assertions.assertEquals("dbeesmie", model.backends().get(0).privateLinkApprovalMessage());
+ Assertions.assertEquals(426944858, model.backends().get(0).httpPort());
+ Assertions.assertEquals(1641970858, model.backends().get(0).httpsPort());
Assertions.assertEquals(BackendEnabledState.ENABLED, model.backends().get(0).enabledState());
- Assertions.assertEquals(1933702310, model.backends().get(0).priority());
- Assertions.assertEquals(1689782344, model.backends().get(0).weight());
- Assertions.assertEquals("daxconfozauorsuk", model.backends().get(0).backendHostHeader());
- Assertions.assertEquals("l", model.loadBalancingSettings().id());
- Assertions.assertEquals("youpfgfbkj", model.healthProbeSettings().id());
+ Assertions.assertEquals(2070170024, model.backends().get(0).priority());
+ Assertions.assertEquals(1897469256, model.backends().get(0).weight());
+ Assertions.assertEquals("agy", model.backends().get(0).backendHostHeader());
+ Assertions.assertEquals("qvgqouw", model.loadBalancingSettings().id());
+ Assertions.assertEquals("mpjw", model.healthProbeSettings().id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolsSettingsTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolsSettingsTests.java
index 66547fb693784..00960b11cd25b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolsSettingsTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendPoolsSettingsTests.java
@@ -13,19 +13,19 @@ public final class BackendPoolsSettingsTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
BackendPoolsSettings model = BinaryData
- .fromString("{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":278281108}")
+ .fromString("{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":455457939}")
.toObject(BackendPoolsSettings.class);
Assertions.assertEquals(EnforceCertificateNameCheckEnabledState.ENABLED, model.enforceCertificateNameCheck());
- Assertions.assertEquals(278281108, model.sendRecvTimeoutSeconds());
+ Assertions.assertEquals(455457939, model.sendRecvTimeoutSeconds());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
BackendPoolsSettings model = new BackendPoolsSettings()
.withEnforceCertificateNameCheck(EnforceCertificateNameCheckEnabledState.ENABLED)
- .withSendRecvTimeoutSeconds(278281108);
+ .withSendRecvTimeoutSeconds(455457939);
model = BinaryData.fromObject(model).toObject(BackendPoolsSettings.class);
Assertions.assertEquals(EnforceCertificateNameCheckEnabledState.ENABLED, model.enforceCertificateNameCheck());
- Assertions.assertEquals(278281108, model.sendRecvTimeoutSeconds());
+ Assertions.assertEquals(455457939, model.sendRecvTimeoutSeconds());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendTests.java
index 92c55e02bbe87..3e73b52c74d70 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/BackendTests.java
@@ -13,45 +13,45 @@ public final class BackendTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
Backend model = BinaryData.fromString(
- "{\"address\":\"dyhgkfminsg\",\"privateLinkAlias\":\"zfttsttktlahb\",\"privateLinkResourceId\":\"ctxtgzukxi\",\"privateLinkLocation\":\"m\",\"privateEndpointStatus\":\"Disconnected\",\"privateLinkApprovalMessage\":\"qqxhrnxrxcpj\",\"httpPort\":58328549,\"httpsPort\":1960010520,\"enabledState\":\"Enabled\",\"priority\":744996388,\"weight\":1739983778,\"backendHostHeader\":\"azivjlfrqttbajl\"}")
+ "{\"address\":\"vqikfxcvhrfsphu\",\"privateLinkAlias\":\"rttikteusqc\",\"privateLinkResourceId\":\"vyklxuby\",\"privateLinkLocation\":\"ff\",\"privateEndpointStatus\":\"Approved\",\"privateLinkApprovalMessage\":\"lcqcuubgqibrt\",\"httpPort\":2109412730,\"httpsPort\":1066879045,\"enabledState\":\"Enabled\",\"priority\":1081428420,\"weight\":1155063942,\"backendHostHeader\":\"qxihhrmooi\"}")
.toObject(Backend.class);
- Assertions.assertEquals("dyhgkfminsg", model.address());
- Assertions.assertEquals("zfttsttktlahb", model.privateLinkAlias());
- Assertions.assertEquals("ctxtgzukxi", model.privateLinkResourceId());
- Assertions.assertEquals("m", model.privateLinkLocation());
- Assertions.assertEquals("qqxhrnxrxcpj", model.privateLinkApprovalMessage());
- Assertions.assertEquals(58328549, model.httpPort());
- Assertions.assertEquals(1960010520, model.httpsPort());
+ Assertions.assertEquals("vqikfxcvhrfsphu", model.address());
+ Assertions.assertEquals("rttikteusqc", model.privateLinkAlias());
+ Assertions.assertEquals("vyklxuby", model.privateLinkResourceId());
+ Assertions.assertEquals("ff", model.privateLinkLocation());
+ Assertions.assertEquals("lcqcuubgqibrt", model.privateLinkApprovalMessage());
+ Assertions.assertEquals(2109412730, model.httpPort());
+ Assertions.assertEquals(1066879045, model.httpsPort());
Assertions.assertEquals(BackendEnabledState.ENABLED, model.enabledState());
- Assertions.assertEquals(744996388, model.priority());
- Assertions.assertEquals(1739983778, model.weight());
- Assertions.assertEquals("azivjlfrqttbajl", model.backendHostHeader());
+ Assertions.assertEquals(1081428420, model.priority());
+ Assertions.assertEquals(1155063942, model.weight());
+ Assertions.assertEquals("qxihhrmooi", model.backendHostHeader());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- Backend model = new Backend().withAddress("dyhgkfminsg")
- .withPrivateLinkAlias("zfttsttktlahb")
- .withPrivateLinkResourceId("ctxtgzukxi")
- .withPrivateLinkLocation("m")
- .withPrivateLinkApprovalMessage("qqxhrnxrxcpj")
- .withHttpPort(58328549)
- .withHttpsPort(1960010520)
+ Backend model = new Backend().withAddress("vqikfxcvhrfsphu")
+ .withPrivateLinkAlias("rttikteusqc")
+ .withPrivateLinkResourceId("vyklxuby")
+ .withPrivateLinkLocation("ff")
+ .withPrivateLinkApprovalMessage("lcqcuubgqibrt")
+ .withHttpPort(2109412730)
+ .withHttpsPort(1066879045)
.withEnabledState(BackendEnabledState.ENABLED)
- .withPriority(744996388)
- .withWeight(1739983778)
- .withBackendHostHeader("azivjlfrqttbajl");
+ .withPriority(1081428420)
+ .withWeight(1155063942)
+ .withBackendHostHeader("qxihhrmooi");
model = BinaryData.fromObject(model).toObject(Backend.class);
- Assertions.assertEquals("dyhgkfminsg", model.address());
- Assertions.assertEquals("zfttsttktlahb", model.privateLinkAlias());
- Assertions.assertEquals("ctxtgzukxi", model.privateLinkResourceId());
- Assertions.assertEquals("m", model.privateLinkLocation());
- Assertions.assertEquals("qqxhrnxrxcpj", model.privateLinkApprovalMessage());
- Assertions.assertEquals(58328549, model.httpPort());
- Assertions.assertEquals(1960010520, model.httpsPort());
+ Assertions.assertEquals("vqikfxcvhrfsphu", model.address());
+ Assertions.assertEquals("rttikteusqc", model.privateLinkAlias());
+ Assertions.assertEquals("vyklxuby", model.privateLinkResourceId());
+ Assertions.assertEquals("ff", model.privateLinkLocation());
+ Assertions.assertEquals("lcqcuubgqibrt", model.privateLinkApprovalMessage());
+ Assertions.assertEquals(2109412730, model.httpPort());
+ Assertions.assertEquals(1066879045, model.httpsPort());
Assertions.assertEquals(BackendEnabledState.ENABLED, model.enabledState());
- Assertions.assertEquals(744996388, model.priority());
- Assertions.assertEquals(1739983778, model.weight());
- Assertions.assertEquals("azivjlfrqttbajl", model.backendHostHeader());
+ Assertions.assertEquals(1081428420, model.priority());
+ Assertions.assertEquals(1155063942, model.weight());
+ Assertions.assertEquals("qxihhrmooi", model.backendHostHeader());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/CacheConfigurationTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/CacheConfigurationTests.java
index 30d5f201fc06e..4edb7105963e1 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/CacheConfigurationTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/CacheConfigurationTests.java
@@ -15,25 +15,24 @@ public final class CacheConfigurationTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
CacheConfiguration model = BinaryData.fromString(
- "{\"queryParameterStripDirective\":\"StripAllExcept\",\"queryParameters\":\"bccxjmonfdgn\",\"dynamicCompression\":\"Disabled\",\"cacheDuration\":\"PT18H22M42S\"}")
+ "{\"queryParameterStripDirective\":\"StripNone\",\"queryParameters\":\"ri\",\"dynamicCompression\":\"Enabled\",\"cacheDuration\":\"PT99H47M36S\"}")
.toObject(CacheConfiguration.class);
- Assertions.assertEquals(FrontDoorQuery.STRIP_ALL_EXCEPT, model.queryParameterStripDirective());
- Assertions.assertEquals("bccxjmonfdgn", model.queryParameters());
- Assertions.assertEquals(DynamicCompressionEnabled.DISABLED, model.dynamicCompression());
- Assertions.assertEquals(Duration.parse("PT18H22M42S"), model.cacheDuration());
+ Assertions.assertEquals(FrontDoorQuery.STRIP_NONE, model.queryParameterStripDirective());
+ Assertions.assertEquals("ri", model.queryParameters());
+ Assertions.assertEquals(DynamicCompressionEnabled.ENABLED, model.dynamicCompression());
+ Assertions.assertEquals(Duration.parse("PT99H47M36S"), model.cacheDuration());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- CacheConfiguration model
- = new CacheConfiguration().withQueryParameterStripDirective(FrontDoorQuery.STRIP_ALL_EXCEPT)
- .withQueryParameters("bccxjmonfdgn")
- .withDynamicCompression(DynamicCompressionEnabled.DISABLED)
- .withCacheDuration(Duration.parse("PT18H22M42S"));
+ CacheConfiguration model = new CacheConfiguration().withQueryParameterStripDirective(FrontDoorQuery.STRIP_NONE)
+ .withQueryParameters("ri")
+ .withDynamicCompression(DynamicCompressionEnabled.ENABLED)
+ .withCacheDuration(Duration.parse("PT99H47M36S"));
model = BinaryData.fromObject(model).toObject(CacheConfiguration.class);
- Assertions.assertEquals(FrontDoorQuery.STRIP_ALL_EXCEPT, model.queryParameterStripDirective());
- Assertions.assertEquals("bccxjmonfdgn", model.queryParameters());
- Assertions.assertEquals(DynamicCompressionEnabled.DISABLED, model.dynamicCompression());
- Assertions.assertEquals(Duration.parse("PT18H22M42S"), model.cacheDuration());
+ Assertions.assertEquals(FrontDoorQuery.STRIP_NONE, model.queryParameterStripDirective());
+ Assertions.assertEquals("ri", model.queryParameters());
+ Assertions.assertEquals(DynamicCompressionEnabled.ENABLED, model.dynamicCompression());
+ Assertions.assertEquals(Duration.parse("PT99H47M36S"), model.cacheDuration());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/EndpointTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/EndpointTests.java
index 0fee36f262efb..fa59faf0202ad 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/EndpointTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/EndpointTests.java
@@ -11,17 +11,17 @@
public final class EndpointTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- Endpoint model
- = BinaryData.fromString("{\"name\":\"lwigdivbkbx\",\"endpoint\":\"mf\"}").toObject(Endpoint.class);
- Assertions.assertEquals("lwigdivbkbx", model.name());
- Assertions.assertEquals("mf", model.endpoint());
+ Endpoint model = BinaryData.fromString("{\"name\":\"lihrraiouaubr\",\"endpoint\":\"loqxfuojrngif\"}")
+ .toObject(Endpoint.class);
+ Assertions.assertEquals("lihrraiouaubr", model.name());
+ Assertions.assertEquals("loqxfuojrngif", model.endpoint());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- Endpoint model = new Endpoint().withName("lwigdivbkbx").withEndpoint("mf");
+ Endpoint model = new Endpoint().withName("lihrraiouaubr").withEndpoint("loqxfuojrngif");
model = BinaryData.fromObject(model).toObject(Endpoint.class);
- Assertions.assertEquals("lwigdivbkbx", model.name());
- Assertions.assertEquals("mf", model.endpoint());
+ Assertions.assertEquals("lihrraiouaubr", model.name());
+ Assertions.assertEquals("loqxfuojrngif", model.endpoint());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/EndpointsPurgeContentMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/EndpointsPurgeContentMockTests.java
index 92ea72f548a18..6197607dd5126 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/EndpointsPurgeContentMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/EndpointsPurgeContentMockTests.java
@@ -30,8 +30,7 @@ public void testPurgeContent() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
manager.endpoints()
- .purgeContent("gddeimaw", "o",
- new PurgeParameters().withContentPaths(Arrays.asList("kkum", "ikjcjcazt", "wsnsqowx")),
+ .purgeContent("gvttx", "nrup", new PurgeParameters().withContentPaths(Arrays.asList("amrdixtrekidswys")),
com.azure.core.util.Context.NONE);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentInnerTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentInnerTests.java
index b6aed0e392183..32a276c9d21c1 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentInnerTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentInnerTests.java
@@ -16,35 +16,35 @@ public final class ExperimentInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ExperimentInner model = BinaryData.fromString(
- "{\"properties\":{\"description\":\"vgpmun\",\"endpointA\":{\"name\":\"xvmhf\",\"endpoint\":\"zjyi\"},\"endpointB\":{\"name\":\"sbhud\",\"endpoint\":\"ohyuemslynsq\"},\"enabledState\":\"Enabled\",\"resourceState\":\"Disabling\",\"status\":\"brlttymsjnygq\",\"scriptFileUri\":\"fwqzdz\"},\"location\":\"tilaxh\",\"tags\":{\"wivkxo\":\"qlyvijo\",\"ti\":\"zunbixx\"},\"id\":\"vcpwpgclrc\",\"name\":\"vtsoxf\",\"type\":\"kenx\"}")
+ "{\"properties\":{\"description\":\"jmonfdgn\",\"endpointA\":{\"name\":\"ypuuwwltvuqjctze\",\"endpoint\":\"eifzzhmk\"},\"endpointB\":{\"name\":\"vflyhbxcu\",\"endpoint\":\"hxgsrboldfor\"},\"enabledState\":\"Disabled\",\"resourceState\":\"Enabling\",\"status\":\"izbfhfovvacq\",\"scriptFileUri\":\"tuodxeszabbelaw\"},\"location\":\"muaslzkw\",\"tags\":{\"ahnomdrkywu\":\"oycqucwy\",\"lniexz\":\"psvfuurutlwexxwl\",\"tybbwwpgda\":\"rzpgep\"},\"id\":\"chzyvlixqnrk\",\"name\":\"xkjibnxmy\",\"type\":\"uxswqrntvl\"}")
.toObject(ExperimentInner.class);
- Assertions.assertEquals("tilaxh", model.location());
- Assertions.assertEquals("qlyvijo", model.tags().get("wivkxo"));
- Assertions.assertEquals("vgpmun", model.description());
- Assertions.assertEquals("xvmhf", model.endpointA().name());
- Assertions.assertEquals("zjyi", model.endpointA().endpoint());
- Assertions.assertEquals("sbhud", model.endpointB().name());
- Assertions.assertEquals("ohyuemslynsq", model.endpointB().endpoint());
- Assertions.assertEquals(State.ENABLED, model.enabledState());
+ Assertions.assertEquals("muaslzkw", model.location());
+ Assertions.assertEquals("oycqucwy", model.tags().get("ahnomdrkywu"));
+ Assertions.assertEquals("jmonfdgn", model.description());
+ Assertions.assertEquals("ypuuwwltvuqjctze", model.endpointA().name());
+ Assertions.assertEquals("eifzzhmk", model.endpointA().endpoint());
+ Assertions.assertEquals("vflyhbxcu", model.endpointB().name());
+ Assertions.assertEquals("hxgsrboldfor", model.endpointB().endpoint());
+ Assertions.assertEquals(State.DISABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ExperimentInner model = new ExperimentInner().withLocation("tilaxh")
- .withTags(mapOf("wivkxo", "qlyvijo", "ti", "zunbixx"))
- .withDescription("vgpmun")
- .withEndpointA(new Endpoint().withName("xvmhf").withEndpoint("zjyi"))
- .withEndpointB(new Endpoint().withName("sbhud").withEndpoint("ohyuemslynsq"))
- .withEnabledState(State.ENABLED);
+ ExperimentInner model = new ExperimentInner().withLocation("muaslzkw")
+ .withTags(mapOf("ahnomdrkywu", "oycqucwy", "lniexz", "psvfuurutlwexxwl", "tybbwwpgda", "rzpgep"))
+ .withDescription("jmonfdgn")
+ .withEndpointA(new Endpoint().withName("ypuuwwltvuqjctze").withEndpoint("eifzzhmk"))
+ .withEndpointB(new Endpoint().withName("vflyhbxcu").withEndpoint("hxgsrboldfor"))
+ .withEnabledState(State.DISABLED);
model = BinaryData.fromObject(model).toObject(ExperimentInner.class);
- Assertions.assertEquals("tilaxh", model.location());
- Assertions.assertEquals("qlyvijo", model.tags().get("wivkxo"));
- Assertions.assertEquals("vgpmun", model.description());
- Assertions.assertEquals("xvmhf", model.endpointA().name());
- Assertions.assertEquals("zjyi", model.endpointA().endpoint());
- Assertions.assertEquals("sbhud", model.endpointB().name());
- Assertions.assertEquals("ohyuemslynsq", model.endpointB().endpoint());
- Assertions.assertEquals(State.ENABLED, model.enabledState());
+ Assertions.assertEquals("muaslzkw", model.location());
+ Assertions.assertEquals("oycqucwy", model.tags().get("ahnomdrkywu"));
+ Assertions.assertEquals("jmonfdgn", model.description());
+ Assertions.assertEquals("ypuuwwltvuqjctze", model.endpointA().name());
+ Assertions.assertEquals("eifzzhmk", model.endpointA().endpoint());
+ Assertions.assertEquals("vflyhbxcu", model.endpointB().name());
+ Assertions.assertEquals("hxgsrboldfor", model.endpointB().endpoint());
+ Assertions.assertEquals(State.DISABLED, model.enabledState());
}
// Use "Map.of" if available
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentListTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentListTests.java
index dbcaa573d469a..899b6ab04aad4 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentListTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentListTests.java
@@ -12,15 +12,15 @@ public final class ExperimentListTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ExperimentList model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"description\":\"usqczkvy\",\"endpointA\":{\"name\":\"ubyjaffmmf\",\"endpoint\":\"cqc\"},\"endpointB\":{\"name\":\"gqibrtalmetttw\",\"endpoint\":\"slqxi\"},\"enabledState\":\"Disabled\",\"resourceState\":\"Enabled\",\"status\":\"i\",\"scriptFileUri\":\"seypxiutcxapz\"},\"location\":\"y\",\"tags\":{\"vnh\":\"togebjoxsl\",\"jb\":\"abrqnkkzj\"},\"id\":\"rgaehvvibrxjj\",\"name\":\"toqbeitpkxztmoob\",\"type\":\"lftidgfcwqmpim\"},{\"properties\":{\"description\":\"zhe\",\"endpointA\":{\"name\":\"h\",\"endpoint\":\"uj\"},\"endpointB\":{\"name\":\"wkozz\",\"endpoint\":\"ulkb\"},\"enabledState\":\"Disabled\",\"resourceState\":\"Enabling\",\"status\":\"njwltlwtjjgu\",\"scriptFileUri\":\"alhsnvkc\"},\"location\":\"mxzrpoa\",\"tags\":{\"eazulcs\":\"nwiaaomyl\",\"jhlfzswpchwahf\":\"thwwn\",\"wlyxgncxyk\":\"ousnfepgfewe\"},\"id\":\"hdjhlimmbcx\",\"name\":\"h\",\"type\":\"cporxvxcjz\"},{\"properties\":{\"description\":\"zxfpxtgqsc\",\"endpointA\":{\"name\":\"ftjuh\",\"endpoint\":\"azkmtgguwp\"},\"endpointB\":{\"name\":\"ajc\",\"endpoint\":\"m\"},\"enabledState\":\"Enabled\",\"resourceState\":\"Enabling\",\"status\":\"iwrxgkn\",\"scriptFileUri\":\"vyi\"},\"location\":\"zqodfvpgshox\",\"tags\":{\"xvzflbqv\":\"bpfgzdj\",\"vetnwsdtutn\":\"aqvlgafcqusr\"},\"id\":\"lduycv\",\"name\":\"zhyrmewipmve\",\"type\":\"dxukuqgsjjxundxg\"}],\"nextLink\":\"twzhhzjhfjmhv\"}")
+ "{\"value\":[{\"properties\":{\"description\":\"fzpbgtgkyl\",\"endpointA\":{\"name\":\"hrjeuutlw\",\"endpoint\":\"z\"},\"endpointB\":{\"name\":\"okvbwnhhtqlgehg\",\"endpoint\":\"ipifhpfeoajvg\"},\"enabledState\":\"Disabled\",\"resourceState\":\"Deleting\",\"status\":\"sheafid\",\"scriptFileUri\":\"ugsresmkssjhoi\"},\"location\":\"txfkfweg\",\"tags\":{\"ucb\":\"ptil\"},\"id\":\"qtgdqohmcwsl\",\"name\":\"riz\",\"type\":\"tpwb\"},{\"properties\":{\"description\":\"llibphbqzmizak\",\"endpointA\":{\"name\":\"nkjpdnjzha\",\"endpoint\":\"ylhjlm\"},\"endpointB\":{\"name\":\"xprimrsop\",\"endpoint\":\"ecj\"},\"enabledState\":\"Enabled\",\"resourceState\":\"Disabled\",\"status\":\"tvasy\",\"scriptFileUri\":\"xdza\"},\"location\":\"mweoohgu\",\"tags\":{\"olbaemwmdx\":\"zboyjathwt\",\"f\":\"ebwjscjpahlxvea\",\"qcttadijaeukmrsi\":\"xnmwmqtibxyijddt\"},\"id\":\"ekpndzaapmudq\",\"name\":\"eqw\",\"type\":\"gp\"},{\"properties\":{\"description\":\"dqwyxeb\",\"endpointA\":{\"name\":\"pmzznrtffya\",\"endpoint\":\"tmhheioqa\"},\"endpointB\":{\"name\":\"seufuqy\",\"endpoint\":\"pdlc\"},\"enabledState\":\"Disabled\",\"resourceState\":\"Enabled\",\"status\":\"mjqfrddgamquhio\",\"scriptFileUri\":\"sjuivfcdisyir\"},\"location\":\"xzhczexrxz\",\"tags\":{\"zonzlrpiqywnc\":\"rtrhqvwrevkhgnl\",\"zehtdhgb\":\"jtszcof\",\"reljeamur\":\"k\"},\"id\":\"zmlovuanash\",\"name\":\"xlpm\",\"type\":\"erbdk\"}],\"nextLink\":\"vidizozsdb\"}")
.toObject(ExperimentList.class);
- Assertions.assertEquals("twzhhzjhfjmhv", model.nextLink());
+ Assertions.assertEquals("vidizozsdb", model.nextLink());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ExperimentList model = new ExperimentList().withNextLink("twzhhzjhfjmhv");
+ ExperimentList model = new ExperimentList().withNextLink("vidizozsdb");
model = BinaryData.fromObject(model).toObject(ExperimentList.class);
- Assertions.assertEquals("twzhhzjhfjmhv", model.nextLink());
+ Assertions.assertEquals("vidizozsdb", model.nextLink());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentPropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentPropertiesTests.java
index b0c6939819f8a..46f95e35131a3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentPropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentPropertiesTests.java
@@ -14,28 +14,28 @@ public final class ExperimentPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ExperimentProperties model = BinaryData.fromString(
- "{\"description\":\"yyefrpmpdnqqs\",\"endpointA\":{\"name\":\"ao\",\"endpoint\":\"mmbnpqfrtql\"},\"endpointB\":{\"name\":\"egnitg\",\"endpoint\":\"xlzyqd\"},\"enabledState\":\"Enabled\",\"resourceState\":\"Enabled\",\"status\":\"alzxwhcan\",\"scriptFileUri\":\"moy\"}")
+ "{\"description\":\"jpsttexoq\",\"endpointA\":{\"name\":\"cyyufmh\",\"endpoint\":\"nc\"},\"endpointB\":{\"name\":\"qspkcdqzhlctd\",\"endpoint\":\"nqndyfpchrqbn\"},\"enabledState\":\"Disabled\",\"resourceState\":\"Creating\",\"status\":\"gydcw\",\"scriptFileUri\":\"xjumvq\"}")
.toObject(ExperimentProperties.class);
- Assertions.assertEquals("yyefrpmpdnqqs", model.description());
- Assertions.assertEquals("ao", model.endpointA().name());
- Assertions.assertEquals("mmbnpqfrtql", model.endpointA().endpoint());
- Assertions.assertEquals("egnitg", model.endpointB().name());
- Assertions.assertEquals("xlzyqd", model.endpointB().endpoint());
- Assertions.assertEquals(State.ENABLED, model.enabledState());
+ Assertions.assertEquals("jpsttexoq", model.description());
+ Assertions.assertEquals("cyyufmh", model.endpointA().name());
+ Assertions.assertEquals("nc", model.endpointA().endpoint());
+ Assertions.assertEquals("qspkcdqzhlctd", model.endpointB().name());
+ Assertions.assertEquals("nqndyfpchrqbn", model.endpointB().endpoint());
+ Assertions.assertEquals(State.DISABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ExperimentProperties model = new ExperimentProperties().withDescription("yyefrpmpdnqqs")
- .withEndpointA(new Endpoint().withName("ao").withEndpoint("mmbnpqfrtql"))
- .withEndpointB(new Endpoint().withName("egnitg").withEndpoint("xlzyqd"))
- .withEnabledState(State.ENABLED);
+ ExperimentProperties model = new ExperimentProperties().withDescription("jpsttexoq")
+ .withEndpointA(new Endpoint().withName("cyyufmh").withEndpoint("nc"))
+ .withEndpointB(new Endpoint().withName("qspkcdqzhlctd").withEndpoint("nqndyfpchrqbn"))
+ .withEnabledState(State.DISABLED);
model = BinaryData.fromObject(model).toObject(ExperimentProperties.class);
- Assertions.assertEquals("yyefrpmpdnqqs", model.description());
- Assertions.assertEquals("ao", model.endpointA().name());
- Assertions.assertEquals("mmbnpqfrtql", model.endpointA().endpoint());
- Assertions.assertEquals("egnitg", model.endpointB().name());
- Assertions.assertEquals("xlzyqd", model.endpointB().endpoint());
- Assertions.assertEquals(State.ENABLED, model.enabledState());
+ Assertions.assertEquals("jpsttexoq", model.description());
+ Assertions.assertEquals("cyyufmh", model.endpointA().name());
+ Assertions.assertEquals("nc", model.endpointA().endpoint());
+ Assertions.assertEquals("qspkcdqzhlctd", model.endpointB().name());
+ Assertions.assertEquals("nqndyfpchrqbn", model.endpointB().endpoint());
+ Assertions.assertEquals(State.DISABLED, model.enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentUpdateModelTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentUpdateModelTests.java
index 38b95090be4a6..da8b083e617ab 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentUpdateModelTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentUpdateModelTests.java
@@ -15,22 +15,21 @@ public final class ExperimentUpdateModelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ExperimentUpdateModel model = BinaryData.fromString(
- "{\"tags\":{\"xakjsqzhzb\":\"wasqvdaeyyg\",\"asi\":\"zkgimsid\"},\"properties\":{\"description\":\"yvvjskgfmo\",\"enabledState\":\"Enabled\"}}")
+ "{\"tags\":{\"imzdlyj\":\"pasccbi\"},\"properties\":{\"description\":\"wmkyoqufdvruzsl\",\"enabledState\":\"Enabled\"}}")
.toObject(ExperimentUpdateModel.class);
- Assertions.assertEquals("wasqvdaeyyg", model.tags().get("xakjsqzhzb"));
- Assertions.assertEquals("yvvjskgfmo", model.description());
+ Assertions.assertEquals("pasccbi", model.tags().get("imzdlyj"));
+ Assertions.assertEquals("wmkyoqufdvruzsl", model.description());
Assertions.assertEquals(State.ENABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ExperimentUpdateModel model
- = new ExperimentUpdateModel().withTags(mapOf("xakjsqzhzb", "wasqvdaeyyg", "asi", "zkgimsid"))
- .withDescription("yvvjskgfmo")
- .withEnabledState(State.ENABLED);
+ ExperimentUpdateModel model = new ExperimentUpdateModel().withTags(mapOf("imzdlyj", "pasccbi"))
+ .withDescription("wmkyoqufdvruzsl")
+ .withEnabledState(State.ENABLED);
model = BinaryData.fromObject(model).toObject(ExperimentUpdateModel.class);
- Assertions.assertEquals("wasqvdaeyyg", model.tags().get("xakjsqzhzb"));
- Assertions.assertEquals("yvvjskgfmo", model.description());
+ Assertions.assertEquals("pasccbi", model.tags().get("imzdlyj"));
+ Assertions.assertEquals("wmkyoqufdvruzsl", model.description());
Assertions.assertEquals(State.ENABLED, model.enabledState());
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentUpdatePropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentUpdatePropertiesTests.java
index b8867575e738b..c70087b73d5e9 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentUpdatePropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentUpdatePropertiesTests.java
@@ -13,18 +13,18 @@ public final class ExperimentUpdatePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ExperimentUpdateProperties model
- = BinaryData.fromString("{\"description\":\"pqg\",\"enabledState\":\"Disabled\"}")
+ = BinaryData.fromString("{\"description\":\"pctf\",\"enabledState\":\"Enabled\"}")
.toObject(ExperimentUpdateProperties.class);
- Assertions.assertEquals("pqg", model.description());
- Assertions.assertEquals(State.DISABLED, model.enabledState());
+ Assertions.assertEquals("pctf", model.description());
+ Assertions.assertEquals(State.ENABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
ExperimentUpdateProperties model
- = new ExperimentUpdateProperties().withDescription("pqg").withEnabledState(State.DISABLED);
+ = new ExperimentUpdateProperties().withDescription("pctf").withEnabledState(State.ENABLED);
model = BinaryData.fromObject(model).toObject(ExperimentUpdateProperties.class);
- Assertions.assertEquals("pqg", model.description());
- Assertions.assertEquals(State.DISABLED, model.enabledState());
+ Assertions.assertEquals("pctf", model.description());
+ Assertions.assertEquals(State.ENABLED, model.enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsCreateOrUpdateMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsCreateOrUpdateMockTests.java
index 4234309382bf2..f79ee1827c40e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsCreateOrUpdateMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsCreateOrUpdateMockTests.java
@@ -25,7 +25,7 @@ public final class ExperimentsCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"description\":\"ormkfqlwxldyk\",\"endpointA\":{\"name\":\"ygaolnjpnnb\",\"endpoint\":\"ksibjgsjjxx\"},\"endpointB\":{\"name\":\"rnadzyqegxyiv\",\"endpoint\":\"nbm\"},\"enabledState\":\"Disabled\",\"resourceState\":\"Enabling\",\"status\":\"kgqxn\",\"scriptFileUri\":\"bkezn\"},\"location\":\"aujvaa\",\"tags\":{\"umrrqmbzm\":\"giycwkdtaawxwfek\",\"idbirkfpkso\":\"kratbnxwbj\",\"ewijymrhbguz\":\"dgo\",\"nfnzhhh\":\"zkye\"},\"id\":\"o\",\"name\":\"mffjkutycyarn\",\"type\":\"oohguabzoghkt\"}";
+ = "{\"properties\":{\"description\":\"cvmwfauxxepmy\",\"endpointA\":{\"name\":\"rmcqmiciijqpkz\",\"endpoint\":\"ojxjmcsmyqwix\"},\"endpointB\":{\"name\":\"wnkwywzwo\",\"endpoint\":\"lickduoi\"},\"enabledState\":\"Enabled\",\"resourceState\":\"Creating\",\"status\":\"vsknxrwzawnv\",\"scriptFileUri\":\"cfhzagxnvhycv\"},\"location\":\"imwrzregzgyufu\",\"tags\":{\"hmeott\":\"pweryekzk\",\"yos\":\"w\"},\"id\":\"wwhnhjtfvpn\",\"name\":\"pmil\",\"type\":\"pnwy\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -35,24 +35,24 @@ public void testCreateOrUpdate() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
Experiment response = manager.experiments()
- .define("jxcjrmmuabwib")
- .withRegion("ekidswyskb")
- .withExistingNetworkExperimentProfile("jcmmzrrscub", "wsdrnpxqwodif")
- .withTags(mapOf("rpq", "fgllukkutvlx"))
- .withDescription("gjonmcy")
- .withEndpointA(new Endpoint().withName("y").withEndpoint("amwineofvfkakp"))
- .withEndpointB(new Endpoint().withName("t").withEndpoint("vboclzhzjk"))
+ .define("pag")
+ .withRegion("brzmqxucycijoclx")
+ .withExistingNetworkExperimentProfile("aderzmw", "t")
+ .withTags(mapOf("btxjeaoqaqbzg", "gjcyzyzjdnrq", "v", "hfw"))
+ .withDescription("v")
+ .withEndpointA(new Endpoint().withName("goaqylkjztj").withEndpoint("azjcgmxitpfin"))
+ .withEndpointB(new Endpoint().withName("dltkrlg").withEndpoint("tbdrvcqgue"))
.withEnabledState(State.DISABLED)
.create();
- Assertions.assertEquals("aujvaa", response.location());
- Assertions.assertEquals("giycwkdtaawxwfek", response.tags().get("umrrqmbzm"));
- Assertions.assertEquals("ormkfqlwxldyk", response.description());
- Assertions.assertEquals("ygaolnjpnnb", response.endpointA().name());
- Assertions.assertEquals("ksibjgsjjxx", response.endpointA().endpoint());
- Assertions.assertEquals("rnadzyqegxyiv", response.endpointB().name());
- Assertions.assertEquals("nbm", response.endpointB().endpoint());
- Assertions.assertEquals(State.DISABLED, response.enabledState());
+ Assertions.assertEquals("imwrzregzgyufu", response.location());
+ Assertions.assertEquals("pweryekzk", response.tags().get("hmeott"));
+ Assertions.assertEquals("cvmwfauxxepmy", response.description());
+ Assertions.assertEquals("rmcqmiciijqpkz", response.endpointA().name());
+ Assertions.assertEquals("ojxjmcsmyqwix", response.endpointA().endpoint());
+ Assertions.assertEquals("wnkwywzwo", response.endpointB().name());
+ Assertions.assertEquals("lickduoi", response.endpointB().endpoint());
+ Assertions.assertEquals(State.ENABLED, response.enabledState());
}
// Use "Map.of" if available
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsDeleteMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsDeleteMockTests.java
index 729034168bb39..29c746f0ca2a8 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsDeleteMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsDeleteMockTests.java
@@ -27,7 +27,7 @@ public void testDelete() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.experiments().delete("xbulpzealbmqkyo", "wyvf", "mbtsuahxsg", com.azure.core.util.Context.NONE);
+ manager.experiments().delete("hzlwxaea", "vurex", "ndsbdw", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsGetWithResponseMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsGetWithResponseMockTests.java
index 2fccc501c48ee..550c07fd3b35d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsGetWithResponseMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsGetWithResponseMockTests.java
@@ -22,7 +22,7 @@ public final class ExperimentsGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"description\":\"sjvh\",\"endpointA\":{\"name\":\"ftkwq\",\"endpoint\":\"pmvssehaep\"},\"endpointB\":{\"name\":\"cxtczhupeukn\",\"endpoint\":\"d\"},\"enabledState\":\"Disabled\",\"resourceState\":\"Disabled\",\"status\":\"ydjfb\",\"scriptFileUri\":\"yv\"},\"location\":\"hulrtywikdmhla\",\"tags\":{\"mxu\":\"lgbhgauacdi\",\"yjq\":\"rs\"},\"id\":\"dkfnozoeoqbvj\",\"name\":\"vefgwbmqjchntas\",\"type\":\"ay\"}";
+ = "{\"properties\":{\"description\":\"jofqcvovjufycs\",\"endpointA\":{\"name\":\"bemyeji\",\"endpoint\":\"uxegthortudawlpj\"},\"endpointB\":{\"name\":\"qerpptcbgqnzm\",\"endpoint\":\"iilialwc\"},\"enabledState\":\"Enabled\",\"resourceState\":\"Disabled\",\"status\":\"cccg\",\"scriptFileUri\":\"raoxnyuff\"},\"location\":\"tsgftipwcxbyubh\",\"tags\":{\"pnuhzafccnu\":\"xyur\",\"yl\":\"iig\",\"vxva\":\"ui\"},\"id\":\"vcrk\",\"name\":\"lbnb\",\"type\":\"xvhcs\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,16 +32,16 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
Experiment response = manager.experiments()
- .getWithResponse("chillcecf", "huwaoaguhic", "llizs", com.azure.core.util.Context.NONE)
+ .getWithResponse("vskbuhzacaq", "yltcoqcuj", "dsxzakuejkmvb", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("hulrtywikdmhla", response.location());
- Assertions.assertEquals("lgbhgauacdi", response.tags().get("mxu"));
- Assertions.assertEquals("sjvh", response.description());
- Assertions.assertEquals("ftkwq", response.endpointA().name());
- Assertions.assertEquals("pmvssehaep", response.endpointA().endpoint());
- Assertions.assertEquals("cxtczhupeukn", response.endpointB().name());
- Assertions.assertEquals("d", response.endpointB().endpoint());
- Assertions.assertEquals(State.DISABLED, response.enabledState());
+ Assertions.assertEquals("tsgftipwcxbyubh", response.location());
+ Assertions.assertEquals("xyur", response.tags().get("pnuhzafccnu"));
+ Assertions.assertEquals("jofqcvovjufycs", response.description());
+ Assertions.assertEquals("bemyeji", response.endpointA().name());
+ Assertions.assertEquals("uxegthortudawlpj", response.endpointA().endpoint());
+ Assertions.assertEquals("qerpptcbgqnzm", response.endpointB().name());
+ Assertions.assertEquals("iilialwc", response.endpointB().endpoint());
+ Assertions.assertEquals(State.ENABLED, response.enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsListByProfileMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsListByProfileMockTests.java
index a1bf868a62f01..db9df3918e78c 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsListByProfileMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ExperimentsListByProfileMockTests.java
@@ -23,7 +23,7 @@ public final class ExperimentsListByProfileMockTests {
@Test
public void testListByProfile() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"description\":\"javfqn\",\"endpointA\":{\"name\":\"qoewdogiyetesy\",\"endpoint\":\"idbz\"},\"endpointB\":{\"name\":\"qtfbovn\",\"endpoint\":\"kbwetnj\"},\"enabledState\":\"Enabled\",\"resourceState\":\"Creating\",\"status\":\"kzyaup\",\"scriptFileUri\":\"ccxnafbwqroohtuo\"},\"location\":\"maonurj\",\"tags\":{\"clbl\":\"ghihpvecms\",\"bsjuscvsfx\":\"jxl\"},\"id\":\"gctmgxuupbezq\",\"name\":\"cydrtceukdqkk\",\"type\":\"ihztgeqmgqzgwldo\"}]}";
+ = "{\"value\":[{\"properties\":{\"description\":\"rftb\",\"endpointA\":{\"name\":\"xreuquowtlj\",\"endpoint\":\"whreagkhyxvrq\"},\"endpointB\":{\"name\":\"czsulmdggl\",\"endpoint\":\"pjpfseykgs\"},\"enabledState\":\"Disabled\",\"resourceState\":\"Enabling\",\"status\":\"n\",\"scriptFileUri\":\"fpgylkve\"},\"location\":\"jujcngoad\",\"tags\":{\"jfoknubnoitpkp\":\"mzr\"},\"id\":\"trgdgxvc\",\"name\":\"qraswugyxpqitwei\",\"type\":\"l\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,15 +33,15 @@ public void testListByProfile() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.experiments().listByProfile("zaifghtmoqqtlff", "zbkr", com.azure.core.util.Context.NONE);
+ = manager.experiments().listByProfile("uqwqulsutrjbhxyk", "hyqezvqq", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("maonurj", response.iterator().next().location());
- Assertions.assertEquals("ghihpvecms", response.iterator().next().tags().get("clbl"));
- Assertions.assertEquals("javfqn", response.iterator().next().description());
- Assertions.assertEquals("qoewdogiyetesy", response.iterator().next().endpointA().name());
- Assertions.assertEquals("idbz", response.iterator().next().endpointA().endpoint());
- Assertions.assertEquals("qtfbovn", response.iterator().next().endpointB().name());
- Assertions.assertEquals("kbwetnj", response.iterator().next().endpointB().endpoint());
- Assertions.assertEquals(State.ENABLED, response.iterator().next().enabledState());
+ Assertions.assertEquals("jujcngoad", response.iterator().next().location());
+ Assertions.assertEquals("mzr", response.iterator().next().tags().get("jfoknubnoitpkp"));
+ Assertions.assertEquals("rftb", response.iterator().next().description());
+ Assertions.assertEquals("xreuquowtlj", response.iterator().next().endpointA().name());
+ Assertions.assertEquals("whreagkhyxvrq", response.iterator().next().endpointA().endpoint());
+ Assertions.assertEquals("czsulmdggl", response.iterator().next().endpointB().name());
+ Assertions.assertEquals("pjpfseykgs", response.iterator().next().endpointB().endpoint());
+ Assertions.assertEquals(State.DISABLED, response.iterator().next().enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ForwardingConfigurationTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ForwardingConfigurationTests.java
index 69b40c3736aa4..7ca7b98858fba 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ForwardingConfigurationTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ForwardingConfigurationTests.java
@@ -18,33 +18,33 @@ public final class ForwardingConfigurationTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ForwardingConfiguration model = BinaryData.fromString(
- "{\"@odata.type\":\"pmjerbdkelvidiz\",\"customForwardingPath\":\"cof\",\"forwardingProtocol\":\"HttpOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripOnly\",\"queryParameters\":\"gbjkvreljeamur\",\"dynamicCompression\":\"Disabled\",\"cacheDuration\":\"PT185H12M57S\"},\"backendPool\":{\"id\":\"anashc\"}}")
+ "{\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":\"fhvfsl\",\"forwardingProtocol\":\"HttpsOnly\",\"cacheConfiguration\":{\"queryParameterStripDirective\":\"StripOnly\",\"queryParameters\":\"igjkskyrio\",\"dynamicCompression\":\"Enabled\",\"cacheDuration\":\"PT115H46M34S\"},\"backendPool\":{\"id\":\"waabzmifrygzn\"}}")
.toObject(ForwardingConfiguration.class);
- Assertions.assertEquals("cof", model.customForwardingPath());
- Assertions.assertEquals(FrontDoorForwardingProtocol.HTTP_ONLY, model.forwardingProtocol());
+ Assertions.assertEquals("fhvfsl", model.customForwardingPath());
+ Assertions.assertEquals(FrontDoorForwardingProtocol.HTTPS_ONLY, model.forwardingProtocol());
Assertions.assertEquals(FrontDoorQuery.STRIP_ONLY, model.cacheConfiguration().queryParameterStripDirective());
- Assertions.assertEquals("gbjkvreljeamur", model.cacheConfiguration().queryParameters());
- Assertions.assertEquals(DynamicCompressionEnabled.DISABLED, model.cacheConfiguration().dynamicCompression());
- Assertions.assertEquals(Duration.parse("PT185H12M57S"), model.cacheConfiguration().cacheDuration());
- Assertions.assertEquals("anashc", model.backendPool().id());
+ Assertions.assertEquals("igjkskyrio", model.cacheConfiguration().queryParameters());
+ Assertions.assertEquals(DynamicCompressionEnabled.ENABLED, model.cacheConfiguration().dynamicCompression());
+ Assertions.assertEquals(Duration.parse("PT115H46M34S"), model.cacheConfiguration().cacheDuration());
+ Assertions.assertEquals("waabzmifrygzn", model.backendPool().id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ForwardingConfiguration model = new ForwardingConfiguration().withCustomForwardingPath("cof")
- .withForwardingProtocol(FrontDoorForwardingProtocol.HTTP_ONLY)
+ ForwardingConfiguration model = new ForwardingConfiguration().withCustomForwardingPath("fhvfsl")
+ .withForwardingProtocol(FrontDoorForwardingProtocol.HTTPS_ONLY)
.withCacheConfiguration(new CacheConfiguration().withQueryParameterStripDirective(FrontDoorQuery.STRIP_ONLY)
- .withQueryParameters("gbjkvreljeamur")
- .withDynamicCompression(DynamicCompressionEnabled.DISABLED)
- .withCacheDuration(Duration.parse("PT185H12M57S")))
- .withBackendPool(new SubResource().withId("anashc"));
+ .withQueryParameters("igjkskyrio")
+ .withDynamicCompression(DynamicCompressionEnabled.ENABLED)
+ .withCacheDuration(Duration.parse("PT115H46M34S")))
+ .withBackendPool(new SubResource().withId("waabzmifrygzn"));
model = BinaryData.fromObject(model).toObject(ForwardingConfiguration.class);
- Assertions.assertEquals("cof", model.customForwardingPath());
- Assertions.assertEquals(FrontDoorForwardingProtocol.HTTP_ONLY, model.forwardingProtocol());
+ Assertions.assertEquals("fhvfsl", model.customForwardingPath());
+ Assertions.assertEquals(FrontDoorForwardingProtocol.HTTPS_ONLY, model.forwardingProtocol());
Assertions.assertEquals(FrontDoorQuery.STRIP_ONLY, model.cacheConfiguration().queryParameterStripDirective());
- Assertions.assertEquals("gbjkvreljeamur", model.cacheConfiguration().queryParameters());
- Assertions.assertEquals(DynamicCompressionEnabled.DISABLED, model.cacheConfiguration().dynamicCompression());
- Assertions.assertEquals(Duration.parse("PT185H12M57S"), model.cacheConfiguration().cacheDuration());
- Assertions.assertEquals("anashc", model.backendPool().id());
+ Assertions.assertEquals("igjkskyrio", model.cacheConfiguration().queryParameters());
+ Assertions.assertEquals(DynamicCompressionEnabled.ENABLED, model.cacheConfiguration().dynamicCompression());
+ Assertions.assertEquals(Duration.parse("PT115H46M34S"), model.cacheConfiguration().cacheDuration());
+ Assertions.assertEquals("waabzmifrygzn", model.backendPool().id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilitiesCheckWithResponseMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilitiesCheckWithResponseMockTests.java
index 09bc5e0ca73e1..34300090a687e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilitiesCheckWithResponseMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilitiesCheckWithResponseMockTests.java
@@ -21,7 +21,7 @@
public final class FrontDoorNameAvailabilitiesCheckWithResponseMockTests {
@Test
public void testCheckWithResponse() throws Exception {
- String responseStr = "{\"nameAvailability\":\"Unavailable\",\"reason\":\"ui\",\"message\":\"bsnmfpph\"}";
+ String responseStr = "{\"nameAvailability\":\"Unavailable\",\"reason\":\"z\",\"message\":\"iwbuqny\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,7 +32,7 @@ public void testCheckWithResponse() throws Exception {
CheckNameAvailabilityOutput response = manager.frontDoorNameAvailabilities()
.checkWithResponse(
- new CheckNameAvailabilityInput().withName("fdgugeyzi")
+ new CheckNameAvailabilityInput().withName("nktwfansnvpdibmi")
.withType(ResourceType.MICROSOFT_NETWORK_FRONT_DOORS_FRONTEND_ENDPOINTS),
com.azure.core.util.Context.NONE)
.getValue();
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityWithSubscriptionsCheckWithResponseMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityWithSubscriptionsCheckWithResponseMockTests.java
index 68cd296e7fc9d..b7daebe4bfc92 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityWithSubscriptionsCheckWithResponseMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorNameAvailabilityWithSubscriptionsCheckWithResponseMockTests.java
@@ -21,7 +21,7 @@
public final class FrontDoorNameAvailabilityWithSubscriptionsCheckWithResponseMockTests {
@Test
public void testCheckWithResponse() throws Exception {
- String responseStr = "{\"nameAvailability\":\"Available\",\"reason\":\"sgzfczbg\",\"message\":\"fgbegl\"}";
+ String responseStr = "{\"nameAvailability\":\"Available\",\"reason\":\"ezzcez\",\"message\":\"fwyfwlwxjwet\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,7 +32,7 @@ public void testCheckWithResponse() throws Exception {
CheckNameAvailabilityOutput response = manager.frontDoorNameAvailabilityWithSubscriptions()
.checkWithResponse(
- new CheckNameAvailabilityInput().withName("jee")
+ new CheckNameAvailabilityInput().withName("phzfylsgcrp")
.withType(ResourceType.MICROSOFT_NETWORK_FRONT_DOORS_FRONTEND_ENDPOINTS),
com.azure.core.util.Context.NONE)
.getValue();
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsCreateOrUpdateMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsCreateOrUpdateMockTests.java
index 5158f8ecb1a75..41460c5a34242 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsCreateOrUpdateMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsCreateOrUpdateMockTests.java
@@ -42,7 +42,7 @@ public final class FrontDoorsCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"resourceState\":\"Enabling\",\"provisioningState\":\"Succeeded\",\"cname\":\"vibidmhmwffpl\",\"frontdoorId\":\"u\",\"rulesEngines\":[{\"properties\":{\"resourceState\":\"Migrating\",\"rules\":[{\"name\":\"rv\",\"priority\":1253377600,\"action\":{}},{\"name\":\"yoxoy\",\"priority\":1338373008,\"action\":{}}]},\"id\":\"k\",\"name\":\"haim\",\"type\":\"oir\"}],\"extendedProperties\":{\"mfsvbpav\":\"oshbragapyy\",\"kuma\":\"opfppdbwnupgah\",\"hqepvufhbzehewh\":\"jcaacfdmmcpugm\",\"eaclgschorimk\":\"qhnlbqnbld\"},\"friendlyName\":\"r\",\"routingRules\":[{\"properties\":{\"resourceState\":\"Creating\",\"frontendEndpoints\":[{},{},{}],\"acceptedProtocols\":[\"Https\",\"Https\"],\"patternsToMatch\":[\"yfcaabeolhbhlvbm\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"tkcudfbsfarfsiow\",\"type\":\"jxnqp\",\"id\":\"gf\"}],\"loadBalancingSettings\":[{\"properties\":{\"resourceState\":\"Deleting\",\"sampleSize\":1864942425,\"successfulSamplesRequired\":1720247463,\"additionalLatencyMilliseconds\":1191381707},\"name\":\"aoaf\",\"type\":\"uqvoxmycjimryv\",\"id\":\"cwwp\"},{\"properties\":{\"resourceState\":\"Enabling\",\"sampleSize\":1119182836,\"successfulSamplesRequired\":886481009,\"additionalLatencyMilliseconds\":1162604826},\"name\":\"wefohecbvo\",\"type\":\"ndyqleal\",\"id\":\"lmtkhlowkxx\"},{\"properties\":{\"resourceState\":\"Migrating\",\"sampleSize\":319899198,\"successfulSamplesRequired\":379923539,\"additionalLatencyMilliseconds\":2077612863},\"name\":\"zfhotlh\",\"type\":\"cyychunsjlp\",\"id\":\"twszhvvuic\"}],\"healthProbeSettings\":[{\"properties\":{\"resourceState\":\"Enabling\",\"path\":\"hwrbfdpyflubh\",\"protocol\":\"Http\",\"intervalInSeconds\":213573747,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"},\"name\":\"lw\",\"type\":\"memhooclutnpq\",\"id\":\"mczjkm\"},{\"properties\":{\"resourceState\":\"Migrating\",\"path\":\"jxsglhsr\",\"protocol\":\"Https\",\"intervalInSeconds\":1324312845,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Disabled\"},\"name\":\"zudnigrfiho\",\"type\":\"e\",\"id\":\"pxuzzjg\"},{\"properties\":{\"resourceState\":\"Disabling\",\"path\":\"yhqotoihiqakydi\",\"protocol\":\"Https\",\"intervalInSeconds\":7484371,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"},\"name\":\"tvhcs\",\"type\":\"daqaxsi\",\"id\":\"etgbebjfulb\"},{\"properties\":{\"resourceState\":\"Deleting\",\"path\":\"dlpnfpubn\",\"protocol\":\"Https\",\"intervalInSeconds\":2030589108,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"},\"name\":\"owsaaelcattcjuh\",\"type\":\"rvkmjcwmjvlgfggc\",\"id\":\"yylizrz\"}],\"backendPools\":[{\"properties\":{\"resourceState\":\"Disabled\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"lvt\",\"type\":\"agb\",\"id\":\"dqlvhukoveof\"},{\"properties\":{\"resourceState\":\"Enabling\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"mvl\",\"type\":\"z\",\"id\":\"blkujrllfojuidjp\"}],\"frontendEndpoints\":[{\"properties\":{\"resourceState\":\"Creating\",\"customHttpsProvisioningState\":\"Disabling\",\"customHttpsProvisioningSubstate\":\"DomainControlValidationRequestApproved\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"vtzejetjklnti\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":37175805,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"bqzolxr\",\"type\":\"hqjwtrhtgvg\",\"id\":\"c\"},{\"properties\":{\"resourceState\":\"Migrated\",\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"DomainControlValidationRequestTimedOut\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"rokcdxfzzzwyjaf\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":880747778,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"nuchlgmltxdwhmo\",\"type\":\"sgzv\",\"id\":\"snnjzfpafolpym\"},{\"properties\":{\"resourceState\":\"Disabling\",\"customHttpsProvisioningState\":\"Enabled\",\"customHttpsProvisioningSubstate\":\"PendingDomainControlValidationREquestApproval\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.0\"},\"hostName\":\"htvdula\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":1390786576,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"csrlzknmzl\",\"type\":\"rupdwvnphcnzq\",\"id\":\"jhmqrhvthla\"}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":1795425186},\"enabledState\":\"Disabled\"},\"location\":\"zzhz\",\"tags\":{\"b\":\"etlgydlhqvlnnpx\",\"gjekglklby\":\"fiqgeaar\",\"hj\":\"lidwcwvmzegjon\"},\"id\":\"rwgdnqzbrfks\",\"name\":\"zhzmtksjci\",\"type\":\"digsxcdgl\"}";
+ = "{\"properties\":{\"resourceState\":\"Deleting\",\"provisioningState\":\"Succeeded\",\"cname\":\"tafsrbxrblmliowx\",\"frontdoorId\":\"spnxwqagnepzw\",\"rulesEngines\":[{\"properties\":{\"resourceState\":\"Enabling\",\"rules\":[{\"name\":\"qqagwwr\",\"priority\":412798979,\"action\":{}},{\"name\":\"omzisglrrcz\",\"priority\":1240241948,\"action\":{}},{\"name\":\"k\",\"priority\":1583480383,\"action\":{}},{\"name\":\"ltn\",\"priority\":1388509479,\"action\":{}}]},\"id\":\"dhqoawj\",\"name\":\"oyueayfbpcmsp\",\"type\":\"byrrueqth\"}],\"extendedProperties\":{\"gdhxi\":\"nmbscbbx\",\"opedbwdpyqyybxub\":\"d\",\"jelaqacigele\":\"dnafcbqwre\",\"beonrlkwzdq\":\"hdbvqvwzkjop\"},\"friendlyName\":\"x\",\"routingRules\":[{\"properties\":{\"resourceState\":\"Deleting\",\"frontendEndpoints\":[{},{},{},{}],\"acceptedProtocols\":[\"Https\",\"Https\",\"Https\"],\"patternsToMatch\":[\"seqchkrt\",\"zrazisgyk\",\"uem\"],\"enabledState\":\"Disabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"hmnr\",\"type\":\"bsojk\",\"id\":\"nhmdptysprqs\"},{\"properties\":{\"resourceState\":\"Deleting\",\"frontendEndpoints\":[{}],\"acceptedProtocols\":[\"Https\",\"Https\",\"Http\"],\"patternsToMatch\":[\"pli\"],\"enabledState\":\"Disabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"xqvapcohh\",\"type\":\"cqpqojxcxzrzdc\",\"id\":\"zbenribc\"},{\"properties\":{\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{}],\"acceptedProtocols\":[\"Https\",\"Https\",\"Http\",\"Https\"],\"patternsToMatch\":[\"hzn\"],\"enabledState\":\"Disabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"zwcjjncqtj\",\"type\":\"izvg\",\"id\":\"atzuuv\"},{\"properties\":{\"resourceState\":\"Migrated\",\"frontendEndpoints\":[{},{}],\"acceptedProtocols\":[\"Http\",\"Https\",\"Https\",\"Https\"],\"patternsToMatch\":[\"zlswvajqf\",\"t\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"sunwqrjzfrgqhaoh\",\"type\":\"buocnjr\",\"id\":\"mbpyryxamebly\"}],\"loadBalancingSettings\":[{\"properties\":{\"resourceState\":\"Disabling\",\"sampleSize\":164914100,\"successfulSamplesRequired\":1136575417,\"additionalLatencyMilliseconds\":1644605139},\"name\":\"hvsmtodlfpyap\",\"type\":\"ygvoavyunssxlgh\",\"id\":\"egjlgvvpa\"},{\"properties\":{\"resourceState\":\"Enabling\",\"sampleSize\":54212693,\"successfulSamplesRequired\":320573412,\"additionalLatencyMilliseconds\":1604945969},\"name\":\"uygdhgaqipirp\",\"type\":\"rqofulopmjnlexwh\",\"id\":\"jpib\"}],\"healthProbeSettings\":[{\"properties\":{\"resourceState\":\"Deleting\",\"path\":\"erctatoyin\",\"protocol\":\"Https\",\"intervalInSeconds\":2087275634,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Disabled\"},\"name\":\"uczkgofxyfsruc\",\"type\":\"rrp\",\"id\":\"ttbst\"},{\"properties\":{\"resourceState\":\"Migrating\",\"path\":\"nrmvvfkoxmlghk\",\"protocol\":\"Http\",\"intervalInSeconds\":2137769434,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Enabled\"},\"name\":\"pdwwexymzvlazi\",\"type\":\"hpwvqsgnyyuu\",\"id\":\"vensrpm\"},{\"properties\":{\"resourceState\":\"Disabling\",\"path\":\"kpatlbijpzgsks\",\"protocol\":\"Https\",\"intervalInSeconds\":221037138,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Disabled\"},\"name\":\"bnxwc\",\"type\":\"mmpvf\",\"id\":\"wzfgbrttuiaclkie\"}],\"backendPools\":[{\"properties\":{\"resourceState\":\"Enabling\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"fyut\",\"type\":\"iygbpvn\",\"id\":\"wmtxkyctwwgz\"},{\"properties\":{\"resourceState\":\"Creating\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"gygzyvn\",\"type\":\"zaifghtmoqqtlff\",\"id\":\"bkrkjj\"},{\"properties\":{\"resourceState\":\"Migrating\",\"backends\":[{},{},{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"qoewdogiyetesy\",\"type\":\"idbz\",\"id\":\"hqtfbovn\"}],\"frontendEndpoints\":[{\"properties\":{\"resourceState\":\"Deleting\",\"customHttpsProvisioningState\":\"Disabling\",\"customHttpsProvisioningSubstate\":\"PendingDomainControlValidationREquestApproval\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.0\"},\"hostName\":\"kzyaup\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":1440531201,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"fbwqrooht\",\"type\":\"vmaonurjt\",\"id\":\"ghihpvecms\"},{\"properties\":{\"resourceState\":\"Creating\",\"customHttpsProvisioningState\":\"Enabling\",\"customHttpsProvisioningSubstate\":\"PendingDomainControlValidationREquestApproval\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"uscv\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":1229874612,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"mgxuupbezqcc\",\"type\":\"rtceukdqkkyihzt\",\"id\":\"qm\"}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":1752106609},\"enabledState\":\"Disabled\"},\"location\":\"ychillcecfe\",\"tags\":{\"stacsjvhrweftkwq\":\"aoaguhicqlli\",\"vssehaepw\":\"jp\"},\"id\":\"mcxtczhu\",\"name\":\"euknijduyyes\",\"type\":\"ydjfb\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -51,114 +51,138 @@ public void testCreateOrUpdate() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- FrontDoor response = manager.frontDoors()
- .define("ic")
- .withRegion("bannovvoxczytp")
- .withExistingResourceGroup("qfecjxeygtuhx")
- .withTags(mapOf("uuxvnsasbcry", "wvroevytlyokrrr", "izrxklob", "o", "vevfxz", "xnazpmkml",
- "bzxliohrdddtfgxq", "pj"))
- .withFriendlyName("ejwabmdujtmvco")
- .withRoutingRules(Arrays.asList(
- new RoutingRule().withId("xfz")
- .withName("kbusqo")
- .withFrontendEndpoints(Arrays.asList(new SubResource(), new SubResource()))
- .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTPS))
- .withPatternsToMatch(Arrays.asList("kyqltqsrogt", "wkffdjkt", "ysidfvclgl"))
- .withEnabledState(RoutingRuleEnabledState.DISABLED)
- .withRouteConfiguration(new RouteConfiguration())
- .withRulesEngine(new SubResource())
+ FrontDoor response
+ = manager.frontDoors()
+ .define("lbyulidwcwvmze")
+ .withRegion("isqcssffxuifmcs")
+ .withExistingResourceGroup("arbgjekgl")
+ .withTags(mapOf("rdzsylollgtrczzy", "bkdq", "rkihcirld", "mxzjijpvua", "dcoxnbk", "fx"))
+ .withFriendlyName("ejyfdvlvhbwrnfx")
+ .withRoutingRules(
+ Arrays.asList(
+ new RoutingRule().withId("klelssxb")
+ .withName("tgjcsgguxheml")
+ .withFrontendEndpoints(
+ Arrays.asList(new SubResource(), new SubResource(), new SubResource()))
+ .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTP))
+ .withPatternsToMatch(Arrays.asList("aoyankcoeqswa", "kltytmhdroz"))
+ .withEnabledState(RoutingRuleEnabledState.ENABLED)
+ .withRouteConfiguration(new RouteConfiguration())
+ .withRulesEngine(new SubResource())
+ .withWebApplicationFirewallPolicyLink(
+ new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink()),
+ new RoutingRule().withId("fykhvuhxepmru")
+ .withName("c")
+ .withFrontendEndpoints(
+ Arrays.asList(new SubResource(), new SubResource(), new SubResource()))
+ .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTP))
+ .withPatternsToMatch(Arrays.asList("lsmdesqplpvmjc", "oewbid", "vteo", "xvgpiude"))
+ .withEnabledState(RoutingRuleEnabledState.ENABLED)
+ .withRouteConfiguration(new RouteConfiguration())
+ .withRulesEngine(new SubResource())
+ .withWebApplicationFirewallPolicyLink(
+ new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink())))
+ .withLoadBalancingSettings(Arrays.asList(
+ new LoadBalancingSettingsModel().withId("phkixkykxdssjpe")
+ .withName("djltymkm")
+ .withSampleSize(891088801)
+ .withSuccessfulSamplesRequired(355684319)
+ .withAdditionalLatencyMilliseconds(992887479),
+ new LoadBalancingSettingsModel().withId("iiovgqcgxu")
+ .withName("lrmymyincqlhri")
+ .withSampleSize(1558152895)
+ .withSuccessfulSamplesRequired(116434463)
+ .withAdditionalLatencyMilliseconds(1886216092),
+ new LoadBalancingSettingsModel().withId("ptjgwdt")
+ .withName("l")
+ .withSampleSize(1965793317)
+ .withSuccessfulSamplesRequired(1487124629)
+ .withAdditionalLatencyMilliseconds(1563873341)))
+ .withHealthProbeSettings(Arrays.asList(
+ new HealthProbeSettingsModel().withId("fypiv")
+ .withName("niiprglvaw")
+ .withPath("lwphqlkccuzgyg")
+ .withProtocol(FrontDoorProtocol.HTTPS)
+ .withIntervalInSeconds(642902042)
+ .withHealthProbeMethod(FrontDoorHealthProbeMethod.HEAD)
+ .withEnabledState(HealthProbeEnabled.ENABLED),
+ new HealthProbeSettingsModel().withId("biqmrjgei")
+ .withName("bqgvgovpbbtte")
+ .withPath("pmcubkmifoxxkub")
+ .withProtocol(FrontDoorProtocol.HTTPS)
+ .withIntervalInSeconds(202196748)
+ .withHealthProbeMethod(FrontDoorHealthProbeMethod.HEAD)
+ .withEnabledState(HealthProbeEnabled.DISABLED),
+ new HealthProbeSettingsModel().withId("hnp")
+ .withName("rc")
+ .withPath("gwfiwzcxmjpby")
+ .withProtocol(FrontDoorProtocol.HTTPS)
+ .withIntervalInSeconds(342558293)
+ .withHealthProbeMethod(FrontDoorHealthProbeMethod.GET)
+ .withEnabledState(HealthProbeEnabled.ENABLED),
+ new HealthProbeSettingsModel().withId("kvci")
+ .withName("gm")
+ .withPath("cabvnuil")
+ .withProtocol(FrontDoorProtocol.HTTPS)
+ .withIntervalInSeconds(967163680)
+ .withHealthProbeMethod(FrontDoorHealthProbeMethod.GET)
+ .withEnabledState(HealthProbeEnabled.DISABLED)))
+ .withBackendPools(Arrays.asList(
+ new BackendPool().withId("smgomguaml")
+ .withName("wuived")
+ .withBackends(Arrays.asList(new Backend(), new Backend(), new Backend()))
+ .withLoadBalancingSettings(new SubResource())
+ .withHealthProbeSettings(new SubResource()),
+ new BackendPool().withId("jk")
+ .withName("zgaufcshhvn")
+ .withBackends(Arrays.asList(new Backend(), new Backend(), new Backend(), new Backend()))
+ .withLoadBalancingSettings(new SubResource())
+ .withHealthProbeSettings(new SubResource())))
+ .withFrontendEndpoints(Arrays.asList(new FrontendEndpointInner().withId("zvxnqmhrp")
+ .withName("cphdrwjjkhvyo")
+ .withHostname("hxcylhkgm")
+ .withSessionAffinityEnabledState(SessionAffinityEnabledState.DISABLED)
+ .withSessionAffinityTtlSeconds(1963006150)
.withWebApplicationFirewallPolicyLink(
- new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink()),
- new RoutingRule().withId("htvs")
- .withName("axpunjqikczvv")
- .withFrontendEndpoints(Arrays.asList(new SubResource(), new SubResource()))
- .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTPS, FrontDoorProtocol.HTTPS,
- FrontDoorProtocol.HTTPS, FrontDoorProtocol.HTTP))
- .withPatternsToMatch(Arrays.asList("nuygbqeqqekewvnq", "cdlguauc"))
- .withEnabledState(RoutingRuleEnabledState.DISABLED)
- .withRouteConfiguration(new RouteConfiguration())
- .withRulesEngine(new SubResource())
- .withWebApplicationFirewallPolicyLink(
- new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink())))
- .withLoadBalancingSettings(Arrays.asList(
- new LoadBalancingSettingsModel().withId("yuel")
- .withName("xypruuuy")
- .withSampleSize(233628942)
- .withSuccessfulSamplesRequired(689120218)
- .withAdditionalLatencyMilliseconds(87413829),
- new LoadBalancingSettingsModel().withId("tb")
- .withName("gagflnlgmtrwah")
- .withSampleSize(296095442)
- .withSuccessfulSamplesRequired(1833939931)
- .withAdditionalLatencyMilliseconds(834158684),
- new LoadBalancingSettingsModel().withId("hjnhgwydyynfsvk")
- .withName("qfusuckzm")
- .withSampleSize(190540230)
- .withSuccessfulSamplesRequired(95734174)
- .withAdditionalLatencyMilliseconds(1977196134)))
- .withHealthProbeSettings(Arrays.asList(new HealthProbeSettingsModel().withId("xhpdulontacnpqwt")
- .withName("hnmgbroux")
- .withPath("narfdlpukhpyrn")
- .withProtocol(FrontDoorProtocol.HTTP)
- .withIntervalInSeconds(1539061935)
- .withHealthProbeMethod(FrontDoorHealthProbeMethod.HEAD)
- .withEnabledState(HealthProbeEnabled.DISABLED)))
- .withBackendPools(Arrays.asList(
- new BackendPool().withId("fqkfuarenl")
- .withName("yoogw")
- .withBackends(Arrays.asList(new Backend(), new Backend()))
- .withLoadBalancingSettings(new SubResource())
- .withHealthProbeSettings(new SubResource()),
- new BackendPool().withId("oslc")
- .withName("afvvk")
- .withBackends(Arrays.asList(new Backend(), new Backend(), new Backend(), new Backend()))
- .withLoadBalancingSettings(new SubResource())
- .withHealthProbeSettings(new SubResource())))
- .withFrontendEndpoints(Arrays.asList(new FrontendEndpointInner().withId("dmflhuytx")
- .withName("db")
- .withHostname("czngnbdxxe")
- .withSessionAffinityEnabledState(SessionAffinityEnabledState.DISABLED)
- .withSessionAffinityTtlSeconds(1912464572)
- .withWebApplicationFirewallPolicyLink(
- new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink())))
- .withBackendPoolsSettings(new BackendPoolsSettings()
- .withEnforceCertificateNameCheck(EnforceCertificateNameCheckEnabledState.ENABLED)
- .withSendRecvTimeoutSeconds(1703929659))
- .withEnabledState(FrontDoorEnabledState.DISABLED)
- .create();
+ new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink())))
+ .withBackendPoolsSettings(new BackendPoolsSettings()
+ .withEnforceCertificateNameCheck(EnforceCertificateNameCheckEnabledState.DISABLED)
+ .withSendRecvTimeoutSeconds(414258281))
+ .withEnabledState(FrontDoorEnabledState.ENABLED)
+ .create();
- Assertions.assertEquals("zzhz", response.location());
- Assertions.assertEquals("etlgydlhqvlnnpx", response.tags().get("b"));
- Assertions.assertEquals("r", response.friendlyName());
- Assertions.assertEquals("gf", response.routingRules().get(0).id());
- Assertions.assertEquals("tkcudfbsfarfsiow", response.routingRules().get(0).name());
+ Assertions.assertEquals("ychillcecfe", response.location());
+ Assertions.assertEquals("aoaguhicqlli", response.tags().get("stacsjvhrweftkwq"));
+ Assertions.assertEquals("x", response.friendlyName());
+ Assertions.assertEquals("nhmdptysprqs", response.routingRules().get(0).id());
+ Assertions.assertEquals("hmnr", response.routingRules().get(0).name());
Assertions.assertEquals(FrontDoorProtocol.HTTPS, response.routingRules().get(0).acceptedProtocols().get(0));
- Assertions.assertEquals("yfcaabeolhbhlvbm", response.routingRules().get(0).patternsToMatch().get(0));
- Assertions.assertEquals(RoutingRuleEnabledState.ENABLED, response.routingRules().get(0).enabledState());
- Assertions.assertEquals("cwwp", response.loadBalancingSettings().get(0).id());
- Assertions.assertEquals("aoaf", response.loadBalancingSettings().get(0).name());
- Assertions.assertEquals(1864942425, response.loadBalancingSettings().get(0).sampleSize());
- Assertions.assertEquals(1720247463, response.loadBalancingSettings().get(0).successfulSamplesRequired());
- Assertions.assertEquals(1191381707, response.loadBalancingSettings().get(0).additionalLatencyMilliseconds());
- Assertions.assertEquals("mczjkm", response.healthProbeSettings().get(0).id());
- Assertions.assertEquals("lw", response.healthProbeSettings().get(0).name());
- Assertions.assertEquals("hwrbfdpyflubh", response.healthProbeSettings().get(0).path());
- Assertions.assertEquals(FrontDoorProtocol.HTTP, response.healthProbeSettings().get(0).protocol());
- Assertions.assertEquals(213573747, response.healthProbeSettings().get(0).intervalInSeconds());
+ Assertions.assertEquals("seqchkrt", response.routingRules().get(0).patternsToMatch().get(0));
+ Assertions.assertEquals(RoutingRuleEnabledState.DISABLED, response.routingRules().get(0).enabledState());
+ Assertions.assertEquals("egjlgvvpa", response.loadBalancingSettings().get(0).id());
+ Assertions.assertEquals("hvsmtodlfpyap", response.loadBalancingSettings().get(0).name());
+ Assertions.assertEquals(164914100, response.loadBalancingSettings().get(0).sampleSize());
+ Assertions.assertEquals(1136575417, response.loadBalancingSettings().get(0).successfulSamplesRequired());
+ Assertions.assertEquals(1644605139, response.loadBalancingSettings().get(0).additionalLatencyMilliseconds());
+ Assertions.assertEquals("ttbst", response.healthProbeSettings().get(0).id());
+ Assertions.assertEquals("uczkgofxyfsruc", response.healthProbeSettings().get(0).name());
+ Assertions.assertEquals("erctatoyin", response.healthProbeSettings().get(0).path());
+ Assertions.assertEquals(FrontDoorProtocol.HTTPS, response.healthProbeSettings().get(0).protocol());
+ Assertions.assertEquals(2087275634, response.healthProbeSettings().get(0).intervalInSeconds());
Assertions.assertEquals(FrontDoorHealthProbeMethod.HEAD,
response.healthProbeSettings().get(0).healthProbeMethod());
- Assertions.assertEquals(HealthProbeEnabled.ENABLED, response.healthProbeSettings().get(0).enabledState());
- Assertions.assertEquals("dqlvhukoveof", response.backendPools().get(0).id());
- Assertions.assertEquals("lvt", response.backendPools().get(0).name());
- Assertions.assertEquals("c", response.frontendEndpoints().get(0).id());
- Assertions.assertEquals("bqzolxr", response.frontendEndpoints().get(0).name());
- Assertions.assertEquals("vtzejetjklnti", response.frontendEndpoints().get(0).hostname());
- Assertions.assertEquals(SessionAffinityEnabledState.ENABLED,
+ Assertions.assertEquals(HealthProbeEnabled.DISABLED, response.healthProbeSettings().get(0).enabledState());
+ Assertions.assertEquals("wmtxkyctwwgz", response.backendPools().get(0).id());
+ Assertions.assertEquals("fyut", response.backendPools().get(0).name());
+ Assertions.assertEquals("ghihpvecms", response.frontendEndpoints().get(0).id());
+ Assertions.assertEquals("fbwqrooht", response.frontendEndpoints().get(0).name());
+ Assertions.assertEquals("kzyaup", response.frontendEndpoints().get(0).hostname());
+ Assertions.assertEquals(SessionAffinityEnabledState.DISABLED,
response.frontendEndpoints().get(0).sessionAffinityEnabledState());
- Assertions.assertEquals(37175805, response.frontendEndpoints().get(0).sessionAffinityTtlSeconds());
+ Assertions.assertEquals(1440531201, response.frontendEndpoints().get(0).sessionAffinityTtlSeconds());
Assertions.assertEquals(EnforceCertificateNameCheckEnabledState.ENABLED,
response.backendPoolsSettings().enforceCertificateNameCheck());
- Assertions.assertEquals(1795425186, response.backendPoolsSettings().sendRecvTimeoutSeconds());
+ Assertions.assertEquals(1752106609, response.backendPoolsSettings().sendRecvTimeoutSeconds());
Assertions.assertEquals(FrontDoorEnabledState.DISABLED, response.enabledState());
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsGetByResourceGroupWithResponseMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsGetByResourceGroupWithResponseMockTests.java
index de5bb1c2ccf0d..016072c5524a8 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsGetByResourceGroupWithResponseMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsGetByResourceGroupWithResponseMockTests.java
@@ -28,7 +28,7 @@ public final class FrontDoorsGetByResourceGroupWithResponseMockTests {
@Test
public void testGetByResourceGroupWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"resourceState\":\"Enabled\",\"provisioningState\":\"iwfcngjsa\",\"cname\":\"iixtmkzj\",\"frontdoorId\":\"viirhgfgrws\",\"rulesEngines\":[{\"properties\":{\"resourceState\":\"Creating\",\"rules\":[{\"name\":\"zb\",\"priority\":1946908693,\"action\":{}},{\"name\":\"byvi\",\"priority\":2111130404,\"action\":{}},{\"name\":\"ctbrxkjzwrgxffm\",\"priority\":1328433873,\"action\":{}}]},\"id\":\"kwfbkgo\",\"name\":\"xwopdbydpizqa\",\"type\":\"lnapxbiygn\"},{\"properties\":{\"resourceState\":\"Migrated\",\"rules\":[{\"name\":\"smfcttuxuuyilfl\",\"priority\":1857095612,\"action\":{}},{\"name\":\"iquvrehm\",\"priority\":340863806,\"action\":{}},{\"name\":\"jhvsujztczyt\",\"priority\":51352608,\"action\":{}},{\"name\":\"t\",\"priority\":190807596,\"action\":{}}]},\"id\":\"auunfprnjletlx\",\"name\":\"mr\",\"type\":\"ddoui\"},{\"properties\":{\"resourceState\":\"Enabling\",\"rules\":[{\"name\":\"z\",\"priority\":400879560,\"action\":{}},{\"name\":\"nknlqwzdvpi\",\"priority\":1488889865,\"action\":{}},{\"name\":\"xqszdtmaajquh\",\"priority\":1582916728,\"action\":{}},{\"name\":\"ylr\",\"priority\":1529964299,\"action\":{}}]},\"id\":\"m\",\"name\":\"ygjbmzyospspsh\",\"type\":\"kfkyjp\"},{\"properties\":{\"resourceState\":\"Disabling\",\"rules\":[{\"name\":\"sdfppyogtie\",\"priority\":896744832,\"action\":{}},{\"name\":\"jtvczkcnyxrxmun\",\"priority\":161894219,\"action\":{}}]},\"id\":\"xvglnkvxlxp\",\"name\":\"glqivbgkcv\",\"type\":\"hpzvuqdflvoniyp\"}],\"extendedProperties\":{\"knidib\":\"bcpzgpxtivh\",\"kqmhhaowjr\":\"qjxgpnrhgovfgp\",\"kfvxcnq\":\"zvuporqzdfuydz\"},\"friendlyName\":\"qpswokmvkhlggdhb\",\"routingRules\":[{\"properties\":{\"resourceState\":\"Deleting\",\"frontendEndpoints\":[{}],\"acceptedProtocols\":[\"Https\",\"Http\",\"Http\"],\"patternsToMatch\":[\"xxhljfpgpic\",\"mnzhrgmqg\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"bfrmbodthsqqgvri\",\"type\":\"a\",\"id\":\"lacjfrnxo\"},{\"properties\":{\"resourceState\":\"Creating\",\"frontendEndpoints\":[{},{},{},{}],\"acceptedProtocols\":[\"Http\",\"Http\",\"Https\",\"Https\"],\"patternsToMatch\":[\"hqf\",\"izvu\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"thnwpzte\",\"type\":\"vmribiat\",\"id\":\"plucfotangcfhnyk\"},{\"properties\":{\"resourceState\":\"Deleting\",\"frontendEndpoints\":[{},{},{}],\"acceptedProtocols\":[\"Https\"],\"patternsToMatch\":[\"zqwmvt\",\"njmxmcuqudtcvcl\",\"ynpdkvgfab\",\"iyji\"],\"enabledState\":\"Disabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"gneik\",\"type\":\"gox\",\"id\":\"iuqhibtozipqwj\"}],\"loadBalancingSettings\":[{\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":231532907,\"successfulSamplesRequired\":2094415920,\"additionalLatencyMilliseconds\":783540465},\"name\":\"tvqylkmqpzoyhlfb\",\"type\":\"wgcloxoebqinji\",\"id\":\"wjfuj\"}],\"healthProbeSettings\":[{\"properties\":{\"resourceState\":\"Migrating\",\"path\":\"hhpzpofoiyjwpf\",\"protocol\":\"Https\",\"intervalInSeconds\":1008375264,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Enabled\"},\"name\":\"dndviauogp\",\"type\":\"artvti\",\"id\":\"yefchnm\"},{\"properties\":{\"resourceState\":\"Migrated\",\"path\":\"xhk\",\"protocol\":\"Https\",\"intervalInSeconds\":715189012,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Disabled\"},\"name\":\"oxffif\",\"type\":\"wrsnewmozqvbu\",\"id\":\"ma\"}],\"backendPools\":[{\"properties\":{\"resourceState\":\"Migrated\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"zttaboidvmf\",\"type\":\"ppu\",\"id\":\"w\"},{\"properties\":{\"resourceState\":\"Disabling\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"dherngbtcj\",\"type\":\"hokq\",\"id\":\"bkau\"},{\"properties\":{\"resourceState\":\"Creating\",\"backends\":[{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"pnulaiywzej\",\"type\":\"hs\",\"id\":\"koj\"}],\"frontendEndpoints\":[{\"properties\":{\"resourceState\":\"Enabled\",\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"DeletingCertificate\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.0\"},\"hostName\":\"fugsnnfhyetefy\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":105159032,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"jgtixr\",\"type\":\"zuyt\",\"id\":\"mlmuowol\"}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Disabled\",\"sendRecvTimeoutSeconds\":139700298},\"enabledState\":\"Disabled\"},\"location\":\"ons\",\"tags\":{\"jinnix\":\"wpng\"},\"id\":\"awrtmjfjmyccxlz\",\"name\":\"coxovn\",\"type\":\"khenlus\"}";
+ = "{\"properties\":{\"resourceState\":\"Enabling\",\"provisioningState\":\"vqtanarfdlpuk\",\"cname\":\"yrneizjcpeo\",\"frontdoorId\":\"hnmgbroux\",\"rulesEngines\":[{\"properties\":{\"resourceState\":\"Migrated\",\"rules\":[{\"name\":\"paz\",\"priority\":1008085279,\"action\":{}},{\"name\":\"oywjxhpdulont\",\"priority\":48133569,\"action\":{}},{\"name\":\"np\",\"priority\":204216617,\"action\":{}},{\"name\":\"tehtuevrhrljyoog\",\"priority\":466288412,\"action\":{}}]},\"id\":\"hnsduugwbsreur\",\"name\":\"q\",\"type\":\"fuarenlvhht\"},{\"properties\":{\"resourceState\":\"Migrated\",\"rules\":[{\"name\":\"fvv\",\"priority\":64736512,\"action\":{}},{\"name\":\"f\",\"priority\":1124530948,\"action\":{}}]},\"id\":\"ev\",\"name\":\"bo\",\"type\":\"lcqxypokk\"},{\"properties\":{\"resourceState\":\"Migrated\",\"rules\":[{\"name\":\"ymc\",\"priority\":150528067,\"action\":{}},{\"name\":\"gn\",\"priority\":348631534,\"action\":{}}]},\"id\":\"xxewu\",\"name\":\"invudbch\",\"type\":\"qdtvqecrqctmxx\"},{\"properties\":{\"resourceState\":\"Disabled\",\"rules\":[{\"name\":\"lhuytxzvtznap\",\"priority\":1526356750,\"action\":{}},{\"name\":\"annovvoxczytpr\",\"priority\":1668555168,\"action\":{}},{\"name\":\"wvroevytlyokrrr\",\"priority\":1027800493,\"action\":{}}]},\"id\":\"uxvnsasbcrymodi\",\"name\":\"rxklobdxnazpmk\",\"type\":\"lmv\"}],\"extendedProperties\":{\"ohrdddt\":\"xzopjhbzxl\"},\"friendlyName\":\"xqbawpc\",\"routingRules\":[{\"properties\":{\"resourceState\":\"Migrating\",\"frontendEndpoints\":[{},{}],\"acceptedProtocols\":[\"Http\",\"Https\",\"Http\"],\"patternsToMatch\":[\"uicdhzbdybwwg\",\"d\",\"ibidmhmwffp\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"ck\",\"type\":\"rrvwey\",\"id\":\"oy\"},{\"properties\":{\"resourceState\":\"Disabling\",\"frontendEndpoints\":[{},{},{}],\"acceptedProtocols\":[\"Http\",\"Http\",\"Http\",\"Https\"],\"patternsToMatch\":[\"boshbragapyyrmfs\",\"bpav\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"bwnupgahxkumas\",\"type\":\"aacfdmmc\",\"id\":\"g\"}],\"loadBalancingSettings\":[{\"properties\":{\"resourceState\":\"Disabling\",\"sampleSize\":36314711,\"successfulSamplesRequired\":147186923,\"additionalLatencyMilliseconds\":767150334},\"name\":\"h\",\"type\":\"hoqhnl\",\"id\":\"nbldxeaclgschori\"},{\"properties\":{\"resourceState\":\"Enabling\",\"sampleSize\":91375034,\"successfulSamplesRequired\":815784968,\"additionalLatencyMilliseconds\":578836429},\"name\":\"ofldpuviyfcaa\",\"type\":\"olhbhlvb\",\"id\":\"uqibsxtkcu\"},{\"properties\":{\"resourceState\":\"Enabling\",\"sampleSize\":1181450878,\"successfulSamplesRequired\":312817267,\"additionalLatencyMilliseconds\":1013426268},\"name\":\"wlkjxn\",\"type\":\"vwgf\",\"id\":\"mhqykizmdksa\"},{\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":1553969507,\"successfulSamplesRequired\":72107133,\"additionalLatencyMilliseconds\":1363413329},\"name\":\"ycjimryvwgcwwpbm\",\"type\":\"w\",\"id\":\"ydsx\"}],\"healthProbeSettings\":[{\"properties\":{\"resourceState\":\"Enabling\",\"path\":\"bvopwndyqle\",\"protocol\":\"Https\",\"intervalInSeconds\":677434729,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"},\"name\":\"owkxxpv\",\"type\":\"dfjmzsyzfhotlh\",\"id\":\"cyychunsjlp\"}],\"backendPools\":[{\"properties\":{\"resourceState\":\"Enabled\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"c\",\"type\":\"vtrrmhwrbfdpyflu\",\"id\":\"vjglrocuyzlwhhme\"},{\"properties\":{\"resourceState\":\"Enabling\",\"backends\":[{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"pqmem\",\"type\":\"jk\",\"id\":\"ykyujxsg\"},{\"properties\":{\"resourceState\":\"Creating\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"ylmbkzudni\",\"type\":\"fihotj\",\"id\":\"lpxuzzjgnrefq\"}],\"frontendEndpoints\":[{\"properties\":{\"resourceState\":\"Disabling\",\"customHttpsProvisioningState\":\"Enabled\",\"customHttpsProvisioningSubstate\":\"DeployingCertificate\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.0\"},\"hostName\":\"wf\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":1023798588,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"qtvhcspodaqax\",\"type\":\"pie\",\"id\":\"bebjfu\"},{\"properties\":{\"resourceState\":\"Migrating\",\"customHttpsProvisioningState\":\"Failed\",\"customHttpsProvisioningSubstate\":\"CertificateDeployed\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"ubntnbatzviqsow\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":655174268,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"ttcjuhplrvkmjc\",\"type\":\"jvlgfggcvkyyliz\",\"id\":\"bjpsfxsfuztlvtm\"},{\"properties\":{\"resourceState\":\"Enabled\",\"customHttpsProvisioningState\":\"Enabling\",\"customHttpsProvisioningSubstate\":\"CertificateDeployed\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.0\"},\"hostName\":\"oveofizrvjfnmj\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":1121766092,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"iblkujr\",\"type\":\"fojuidjpuuyj\",\"id\":\"ejikzoeovvtzejet\"},{\"properties\":{\"resourceState\":\"Creating\",\"customHttpsProvisioningState\":\"Disabling\",\"customHttpsProvisioningSubstate\":\"SubmittingDomainControlValidationRequest\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.0\"},\"hostName\":\"bqzolxr\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":699827812,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"rhtgvgzpcrrkol\",\"type\":\"jmjsmwrokcdxf\",\"id\":\"zwyjafitlhgu\"}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":458551614},\"enabledState\":\"Enabled\"},\"location\":\"ltxdwhmozu\",\"tags\":{\"pafolp\":\"vlnsnnjz\",\"vdulajv\":\"mwamxqzragpgdph\",\"nmzlanru\":\"ejchcsrlz\"},\"id\":\"dwv\",\"name\":\"phcnzqtpj\",\"type\":\"mqrhvthl\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -38,41 +38,41 @@ public void testGetByResourceGroupWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
FrontDoor response = manager.frontDoors()
- .getByResourceGroupWithResponse("qmp", "zruwn", com.azure.core.util.Context.NONE)
+ .getByResourceGroupWithResponse("kzmkwklsnoxaxmqe", "alhhjnhgwydyynfs", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("ons", response.location());
- Assertions.assertEquals("wpng", response.tags().get("jinnix"));
- Assertions.assertEquals("qpswokmvkhlggdhb", response.friendlyName());
- Assertions.assertEquals("lacjfrnxo", response.routingRules().get(0).id());
- Assertions.assertEquals("bfrmbodthsqqgvri", response.routingRules().get(0).name());
- Assertions.assertEquals(FrontDoorProtocol.HTTPS, response.routingRules().get(0).acceptedProtocols().get(0));
- Assertions.assertEquals("xxhljfpgpic", response.routingRules().get(0).patternsToMatch().get(0));
+ Assertions.assertEquals("ltxdwhmozu", response.location());
+ Assertions.assertEquals("vlnsnnjz", response.tags().get("pafolp"));
+ Assertions.assertEquals("xqbawpc", response.friendlyName());
+ Assertions.assertEquals("oy", response.routingRules().get(0).id());
+ Assertions.assertEquals("ck", response.routingRules().get(0).name());
+ Assertions.assertEquals(FrontDoorProtocol.HTTP, response.routingRules().get(0).acceptedProtocols().get(0));
+ Assertions.assertEquals("uicdhzbdybwwg", response.routingRules().get(0).patternsToMatch().get(0));
Assertions.assertEquals(RoutingRuleEnabledState.ENABLED, response.routingRules().get(0).enabledState());
- Assertions.assertEquals("wjfuj", response.loadBalancingSettings().get(0).id());
- Assertions.assertEquals("tvqylkmqpzoyhlfb", response.loadBalancingSettings().get(0).name());
- Assertions.assertEquals(231532907, response.loadBalancingSettings().get(0).sampleSize());
- Assertions.assertEquals(2094415920, response.loadBalancingSettings().get(0).successfulSamplesRequired());
- Assertions.assertEquals(783540465, response.loadBalancingSettings().get(0).additionalLatencyMilliseconds());
- Assertions.assertEquals("yefchnm", response.healthProbeSettings().get(0).id());
- Assertions.assertEquals("dndviauogp", response.healthProbeSettings().get(0).name());
- Assertions.assertEquals("hhpzpofoiyjwpf", response.healthProbeSettings().get(0).path());
+ Assertions.assertEquals("nbldxeaclgschori", response.loadBalancingSettings().get(0).id());
+ Assertions.assertEquals("h", response.loadBalancingSettings().get(0).name());
+ Assertions.assertEquals(36314711, response.loadBalancingSettings().get(0).sampleSize());
+ Assertions.assertEquals(147186923, response.loadBalancingSettings().get(0).successfulSamplesRequired());
+ Assertions.assertEquals(767150334, response.loadBalancingSettings().get(0).additionalLatencyMilliseconds());
+ Assertions.assertEquals("cyychunsjlp", response.healthProbeSettings().get(0).id());
+ Assertions.assertEquals("owkxxpv", response.healthProbeSettings().get(0).name());
+ Assertions.assertEquals("bvopwndyqle", response.healthProbeSettings().get(0).path());
Assertions.assertEquals(FrontDoorProtocol.HTTPS, response.healthProbeSettings().get(0).protocol());
- Assertions.assertEquals(1008375264, response.healthProbeSettings().get(0).intervalInSeconds());
- Assertions.assertEquals(FrontDoorHealthProbeMethod.GET,
+ Assertions.assertEquals(677434729, response.healthProbeSettings().get(0).intervalInSeconds());
+ Assertions.assertEquals(FrontDoorHealthProbeMethod.HEAD,
response.healthProbeSettings().get(0).healthProbeMethod());
Assertions.assertEquals(HealthProbeEnabled.ENABLED, response.healthProbeSettings().get(0).enabledState());
- Assertions.assertEquals("w", response.backendPools().get(0).id());
- Assertions.assertEquals("zttaboidvmf", response.backendPools().get(0).name());
- Assertions.assertEquals("mlmuowol", response.frontendEndpoints().get(0).id());
- Assertions.assertEquals("jgtixr", response.frontendEndpoints().get(0).name());
- Assertions.assertEquals("fugsnnfhyetefy", response.frontendEndpoints().get(0).hostname());
- Assertions.assertEquals(SessionAffinityEnabledState.ENABLED,
+ Assertions.assertEquals("vjglrocuyzlwhhme", response.backendPools().get(0).id());
+ Assertions.assertEquals("c", response.backendPools().get(0).name());
+ Assertions.assertEquals("bebjfu", response.frontendEndpoints().get(0).id());
+ Assertions.assertEquals("qtvhcspodaqax", response.frontendEndpoints().get(0).name());
+ Assertions.assertEquals("wf", response.frontendEndpoints().get(0).hostname());
+ Assertions.assertEquals(SessionAffinityEnabledState.DISABLED,
response.frontendEndpoints().get(0).sessionAffinityEnabledState());
- Assertions.assertEquals(105159032, response.frontendEndpoints().get(0).sessionAffinityTtlSeconds());
- Assertions.assertEquals(EnforceCertificateNameCheckEnabledState.DISABLED,
+ Assertions.assertEquals(1023798588, response.frontendEndpoints().get(0).sessionAffinityTtlSeconds());
+ Assertions.assertEquals(EnforceCertificateNameCheckEnabledState.ENABLED,
response.backendPoolsSettings().enforceCertificateNameCheck());
- Assertions.assertEquals(139700298, response.backendPoolsSettings().sendRecvTimeoutSeconds());
- Assertions.assertEquals(FrontDoorEnabledState.DISABLED, response.enabledState());
+ Assertions.assertEquals(458551614, response.backendPoolsSettings().sendRecvTimeoutSeconds());
+ Assertions.assertEquals(FrontDoorEnabledState.ENABLED, response.enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListByResourceGroupMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListByResourceGroupMockTests.java
index 8c31fb42003bf..243365c9af919 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListByResourceGroupMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListByResourceGroupMockTests.java
@@ -29,7 +29,7 @@ public final class FrontDoorsListByResourceGroupMockTests {
@Test
public void testListByResourceGroup() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"resourceState\":\"Enabled\",\"provisioningState\":\"nelxieixynll\",\"cname\":\"cwcrojphs\",\"frontdoorId\":\"cawjutifdwfmvi\",\"rulesEngines\":[{\"properties\":{\"resourceState\":\"Migrated\",\"rules\":[{\"name\":\"zhraglkafh\",\"priority\":234207820,\"action\":{}}]},\"id\":\"qjujeickpzvcp\",\"name\":\"pmxelnwcltyje\",\"type\":\"ex\"}],\"extendedProperties\":{\"kqscazuawxtzx\":\"f\"},\"friendlyName\":\"amwabzxrvxcushsp\",\"routingRules\":[{\"properties\":{\"resourceState\":\"Deleting\",\"frontendEndpoints\":[{},{}],\"acceptedProtocols\":[\"Https\"],\"patternsToMatch\":[\"sgzwywakoihknsm\",\"blmljh\",\"nymzotqyr\",\"uzcbmqq\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"tayx\",\"type\":\"supe\",\"id\":\"lzqnhcvs\"},{\"properties\":{\"resourceState\":\"Deleting\",\"frontendEndpoints\":[{},{}],\"acceptedProtocols\":[\"Https\",\"Http\",\"Https\",\"Http\"],\"patternsToMatch\":[\"fyq\",\"nmpqoxwdofdb\",\"iqxeiiqbimht\",\"wwinhehf\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"cblembnkbwv\",\"type\":\"xk\",\"id\":\"vqihebwtswbzuwf\"},{\"properties\":{\"resourceState\":\"Enabled\",\"frontendEndpoints\":[{},{},{}],\"acceptedProtocols\":[\"Http\"],\"patternsToMatch\":[\"cjfelisdjubgg\",\"qigkx\",\"bsazgakg\",\"cyrcmjdmspo\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"ylnio\",\"type\":\"zgb\",\"id\":\"edm\"}],\"loadBalancingSettings\":[{\"properties\":{\"resourceState\":\"Creating\",\"sampleSize\":280758159,\"successfulSamplesRequired\":114492978,\"additionalLatencyMilliseconds\":444730016},\"name\":\"znktwfansnv\",\"type\":\"ibmikostbzb\",\"id\":\"wbuqn\"},{\"properties\":{\"resourceState\":\"Migrating\",\"sampleSize\":416565759,\"successfulSamplesRequired\":84562084,\"additionalLatencyMilliseconds\":200835193},\"name\":\"rpfbcunezz\",\"type\":\"zelfwyfwl\",\"id\":\"jwetnpsihcla\"},{\"properties\":{\"resourceState\":\"Enabling\",\"sampleSize\":743676437,\"successfulSamplesRequired\":1590865515,\"additionalLatencyMilliseconds\":1048059203},\"name\":\"qwztcmwqkc\",\"type\":\"xwaxfewzjkj\",\"id\":\"fdeqvhpsyl\"},{\"properties\":{\"resourceState\":\"Disabling\",\"sampleSize\":1992665604,\"successfulSamplesRequired\":127913719,\"additionalLatencyMilliseconds\":919245965},\"name\":\"xzjrgy\",\"type\":\"pgjxsnptfujgicga\",\"id\":\"epttaqu\"}],\"healthProbeSettings\":[{\"properties\":{\"resourceState\":\"Deleting\",\"path\":\"swvr\",\"protocol\":\"Http\",\"intervalInSeconds\":452619518,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Disabled\"},\"name\":\"fkimrtix\",\"type\":\"ffqyinlj\",\"id\":\"pqwhixmonst\"},{\"properties\":{\"resourceState\":\"Disabled\",\"path\":\"gvelfc\",\"protocol\":\"Https\",\"intervalInSeconds\":385989453,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"},\"name\":\"vuwcobiegstmnin\",\"type\":\"izcil\",\"id\":\"hgshe\"}],\"backendPools\":[{\"properties\":{\"resourceState\":\"Disabled\",\"backends\":[{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"lxqzvn\",\"type\":\"sbycucrwnamikz\",\"id\":\"rqbsmswziq\"},{\"properties\":{\"resourceState\":\"Disabling\",\"backends\":[{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"swhvhczznvfbycj\",\"type\":\"jww\",\"id\":\"z\"},{\"properties\":{\"resourceState\":\"Migrated\",\"backends\":[{},{},{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"dvnoamldsehaohdj\",\"type\":\"flzokxco\",\"id\":\"e\"}],\"frontendEndpoints\":[{\"properties\":{\"resourceState\":\"Disabling\",\"customHttpsProvisioningState\":\"Enabling\",\"customHttpsProvisioningSubstate\":\"IssuingCertificate\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.0\"},\"hostName\":\"tgzpnpb\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":850012212,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"ccsrmozihmipgaw\",\"type\":\"xp\",\"id\":\"jcxcjxgrytfmpcyc\"},{\"properties\":{\"resourceState\":\"Enabled\",\"customHttpsProvisioningState\":\"Failed\",\"customHttpsProvisioningSubstate\":\"DeletingCertificate\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"uztrksxwpndfcpf\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":769516295,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"wkjaos\",\"type\":\"uzvoamktcqiosm\",\"id\":\"zah\"},{\"properties\":{\"resourceState\":\"Creating\",\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"PendingDomainControlValidationREquestApproval\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.0\"},\"hostName\":\"rltzkatbhjmz\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":998957841,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"qalarvlagunbtg\",\"type\":\"bwln\",\"id\":\"hyreeu\"},{\"properties\":{\"resourceState\":\"Creating\",\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"DomainControlValidationRequestRejected\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"yyzglgouwtlmjjy\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":627117693,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"axkjeytunlbfjk\",\"type\":\"u\",\"id\":\"kqbh\"}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":166091812},\"enabledState\":\"Enabled\"},\"location\":\"hdenxaulk\",\"tags\":{\"ifmjnn\":\"d\"},\"id\":\"wtqabpxuckp\",\"name\":\"gqoweyirdhlisn\",\"type\":\"wfl\"}]}";
+ = "{\"value\":[{\"properties\":{\"resourceState\":\"Migrating\",\"provisioningState\":\"gpicr\",\"cname\":\"zhrgmqgjsxvpqc\",\"frontdoorId\":\"rmbodt\",\"rulesEngines\":[{\"properties\":{\"resourceState\":\"Migrating\",\"rules\":[{\"name\":\"i\",\"priority\":260183407,\"action\":{}},{\"name\":\"kclacjfrn\",\"priority\":1419015231,\"action\":{}}]},\"id\":\"usx\",\"name\":\"uzlwvsgmw\",\"type\":\"hqf\"},{\"properties\":{\"resourceState\":\"Enabling\",\"rules\":[{\"name\":\"mmkjsvthnwpztek\",\"priority\":1962597445,\"action\":{}},{\"name\":\"mribiat\",\"priority\":2029027223,\"action\":{}}]},\"id\":\"plucfotangcfhnyk\",\"name\":\"cugswvxwlmzqw\",\"type\":\"vtxnjmxmcuqud\"},{\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"ynpdkvgfab\",\"priority\":979398617,\"action\":{}},{\"name\":\"yjibuzphdugne\",\"priority\":730335936,\"action\":{}},{\"name\":\"n\",\"priority\":635565091,\"action\":{}}]},\"id\":\"oxgjiuqhibt\",\"name\":\"z\",\"type\":\"pqwjedm\"},{\"properties\":{\"resourceState\":\"Disabling\",\"rules\":[{\"name\":\"ewpktvqy\",\"priority\":999177682,\"action\":{}}]},\"id\":\"mqpzoyhlfbcgw\",\"name\":\"cloxo\",\"type\":\"bqinjipnwjfu\"}],\"extendedProperties\":{\"hpzpo\":\"afcba\",\"yjwpfilkmkkh\":\"o\"},\"friendlyName\":\"vdndviauo\",\"routingRules\":[{\"properties\":{\"resourceState\":\"Disabled\",\"frontendEndpoints\":[{},{}],\"acceptedProtocols\":[\"Https\",\"Https\",\"Http\"],\"patternsToMatch\":[\"chnmna\",\"mnxhkxjqirwrweo\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"xwrsnew\",\"type\":\"zqvbubqm\",\"id\":\"hsycxhxzgaz\"},{\"properties\":{\"resourceState\":\"Enabling\",\"frontendEndpoints\":[{},{},{}],\"acceptedProtocols\":[\"Https\",\"Https\",\"Https\"],\"patternsToMatch\":[\"pubowsepdfg\"],\"enabledState\":\"Disabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"ngb\",\"type\":\"juahokqto\",\"id\":\"auxofshfph\"}],\"loadBalancingSettings\":[{\"properties\":{\"resourceState\":\"Deleting\",\"sampleSize\":738049564,\"successfulSamplesRequired\":37632525,\"additionalLatencyMilliseconds\":450217205},\"name\":\"whslwkoj\",\"type\":\"l\",\"id\":\"npdwr\"},{\"properties\":{\"resourceState\":\"Enabling\",\"sampleSize\":1565849312,\"successfulSamplesRequired\":1169799061,\"additionalLatencyMilliseconds\":813335965},\"name\":\"fhyete\",\"type\":\"pococtfjgt\",\"id\":\"rjvzuyt\"},{\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":1133060500,\"successfulSamplesRequired\":1311601904,\"additionalLatencyMilliseconds\":956907772},\"name\":\"au\",\"type\":\"opionszon\",\"id\":\"ngajinnixjawrtmj\"},{\"properties\":{\"resourceState\":\"Disabled\",\"sampleSize\":1470383597,\"successfulSamplesRequired\":837645611,\"additionalLatencyMilliseconds\":1452842923},\"name\":\"oxovnekhenlusf\",\"type\":\"dtjxtxrdcqt\",\"id\":\"idttgepus\"}],\"healthProbeSettings\":[{\"properties\":{\"resourceState\":\"Disabled\",\"path\":\"uwkasiz\",\"protocol\":\"Https\",\"intervalInSeconds\":1871243595,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Disabled\"},\"name\":\"qfecjxeygtuhx\",\"type\":\"cbuewmrswnjlxuz\",\"id\":\"wpusxjbaqehg\"},{\"properties\":{\"resourceState\":\"Deleting\",\"path\":\"jqatucoigebxn\",\"protocol\":\"Https\",\"intervalInSeconds\":2085427407,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Enabled\"},\"name\":\"fmxjg\",\"type\":\"bjb\",\"id\":\"lfgtdysnaquflqbc\"}],\"backendPools\":[{\"properties\":{\"resourceState\":\"Disabled\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"qzeqyjleziunjxdf\",\"type\":\"ntkwcegy\",\"id\":\"lbnseqac\"},{\"properties\":{\"resourceState\":\"Deleting\",\"backends\":[{},{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"oq\",\"type\":\"gmditgueiookjbs\",\"id\":\"rtdtpdelq\"},{\"properties\":{\"resourceState\":\"Migrated\",\"backends\":[{},{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"bnfxofvc\",\"type\":\"gdirazf\",\"id\":\"ejwabmdujtmvco\"}],\"frontendEndpoints\":[{\"properties\":{\"resourceState\":\"Migrated\",\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"CertificateDeployed\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"ql\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":862833850,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"uwkffdjktsysid\",\"type\":\"c\",\"id\":\"lxnfuijtkbusqogs\"},{\"properties\":{\"resourceState\":\"Migrating\",\"customHttpsProvisioningState\":\"Enabling\",\"customHttpsProvisioningSubstate\":\"DomainControlValidationRequestApproved\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"jtjiqx\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":846546082,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"vwkpqh\",\"type\":\"enuygbq\",\"id\":\"qekewvnqvcd\"}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":368575860},\"enabledState\":\"Enabled\"},\"location\":\"djwnlaxpunjqi\",\"tags\":{\"acgxmfcsse\":\"vvi\",\"tvsoxhlwntsj\":\"x\",\"uuuybnchrsziz\":\"qrsxyp\",\"etndnbfqyggagf\":\"yuel\"},\"id\":\"nlgmtrwahzjmu\",\"name\":\"ftbyrplro\",\"type\":\"kpigqfusu\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -39,48 +39,48 @@ public void testListByResourceGroup() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.frontDoors().listByResourceGroup("obgop", com.azure.core.util.Context.NONE);
+ = manager.frontDoors().listByResourceGroup("tglxx", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("hdenxaulk", response.iterator().next().location());
- Assertions.assertEquals("d", response.iterator().next().tags().get("ifmjnn"));
- Assertions.assertEquals("amwabzxrvxcushsp", response.iterator().next().friendlyName());
- Assertions.assertEquals("lzqnhcvs", response.iterator().next().routingRules().get(0).id());
- Assertions.assertEquals("tayx", response.iterator().next().routingRules().get(0).name());
+ Assertions.assertEquals("djwnlaxpunjqi", response.iterator().next().location());
+ Assertions.assertEquals("vvi", response.iterator().next().tags().get("acgxmfcsse"));
+ Assertions.assertEquals("vdndviauo", response.iterator().next().friendlyName());
+ Assertions.assertEquals("hsycxhxzgaz", response.iterator().next().routingRules().get(0).id());
+ Assertions.assertEquals("xwrsnew", response.iterator().next().routingRules().get(0).name());
Assertions.assertEquals(FrontDoorProtocol.HTTPS,
response.iterator().next().routingRules().get(0).acceptedProtocols().get(0));
- Assertions.assertEquals("sgzwywakoihknsm",
- response.iterator().next().routingRules().get(0).patternsToMatch().get(0));
+ Assertions.assertEquals("chnmna", response.iterator().next().routingRules().get(0).patternsToMatch().get(0));
Assertions.assertEquals(RoutingRuleEnabledState.ENABLED,
response.iterator().next().routingRules().get(0).enabledState());
- Assertions.assertEquals("wbuqn", response.iterator().next().loadBalancingSettings().get(0).id());
- Assertions.assertEquals("znktwfansnv", response.iterator().next().loadBalancingSettings().get(0).name());
- Assertions.assertEquals(280758159, response.iterator().next().loadBalancingSettings().get(0).sampleSize());
- Assertions.assertEquals(114492978,
+ Assertions.assertEquals("npdwr", response.iterator().next().loadBalancingSettings().get(0).id());
+ Assertions.assertEquals("whslwkoj", response.iterator().next().loadBalancingSettings().get(0).name());
+ Assertions.assertEquals(738049564, response.iterator().next().loadBalancingSettings().get(0).sampleSize());
+ Assertions.assertEquals(37632525,
response.iterator().next().loadBalancingSettings().get(0).successfulSamplesRequired());
- Assertions.assertEquals(444730016,
+ Assertions.assertEquals(450217205,
response.iterator().next().loadBalancingSettings().get(0).additionalLatencyMilliseconds());
- Assertions.assertEquals("pqwhixmonst", response.iterator().next().healthProbeSettings().get(0).id());
- Assertions.assertEquals("fkimrtix", response.iterator().next().healthProbeSettings().get(0).name());
- Assertions.assertEquals("swvr", response.iterator().next().healthProbeSettings().get(0).path());
- Assertions.assertEquals(FrontDoorProtocol.HTTP,
+ Assertions.assertEquals("wpusxjbaqehg", response.iterator().next().healthProbeSettings().get(0).id());
+ Assertions.assertEquals("qfecjxeygtuhx", response.iterator().next().healthProbeSettings().get(0).name());
+ Assertions.assertEquals("uwkasiz", response.iterator().next().healthProbeSettings().get(0).path());
+ Assertions.assertEquals(FrontDoorProtocol.HTTPS,
response.iterator().next().healthProbeSettings().get(0).protocol());
- Assertions.assertEquals(452619518, response.iterator().next().healthProbeSettings().get(0).intervalInSeconds());
+ Assertions.assertEquals(1871243595,
+ response.iterator().next().healthProbeSettings().get(0).intervalInSeconds());
Assertions.assertEquals(FrontDoorHealthProbeMethod.HEAD,
response.iterator().next().healthProbeSettings().get(0).healthProbeMethod());
Assertions.assertEquals(HealthProbeEnabled.DISABLED,
response.iterator().next().healthProbeSettings().get(0).enabledState());
- Assertions.assertEquals("rqbsmswziq", response.iterator().next().backendPools().get(0).id());
- Assertions.assertEquals("lxqzvn", response.iterator().next().backendPools().get(0).name());
- Assertions.assertEquals("jcxcjxgrytfmpcyc", response.iterator().next().frontendEndpoints().get(0).id());
- Assertions.assertEquals("ccsrmozihmipgaw", response.iterator().next().frontendEndpoints().get(0).name());
- Assertions.assertEquals("tgzpnpb", response.iterator().next().frontendEndpoints().get(0).hostname());
- Assertions.assertEquals(SessionAffinityEnabledState.DISABLED,
+ Assertions.assertEquals("lbnseqac", response.iterator().next().backendPools().get(0).id());
+ Assertions.assertEquals("qzeqyjleziunjxdf", response.iterator().next().backendPools().get(0).name());
+ Assertions.assertEquals("lxnfuijtkbusqogs", response.iterator().next().frontendEndpoints().get(0).id());
+ Assertions.assertEquals("uwkffdjktsysid", response.iterator().next().frontendEndpoints().get(0).name());
+ Assertions.assertEquals("ql", response.iterator().next().frontendEndpoints().get(0).hostname());
+ Assertions.assertEquals(SessionAffinityEnabledState.ENABLED,
response.iterator().next().frontendEndpoints().get(0).sessionAffinityEnabledState());
- Assertions.assertEquals(850012212,
+ Assertions.assertEquals(862833850,
response.iterator().next().frontendEndpoints().get(0).sessionAffinityTtlSeconds());
Assertions.assertEquals(EnforceCertificateNameCheckEnabledState.ENABLED,
response.iterator().next().backendPoolsSettings().enforceCertificateNameCheck());
- Assertions.assertEquals(166091812, response.iterator().next().backendPoolsSettings().sendRecvTimeoutSeconds());
+ Assertions.assertEquals(368575860, response.iterator().next().backendPoolsSettings().sendRecvTimeoutSeconds());
Assertions.assertEquals(FrontDoorEnabledState.ENABLED, response.iterator().next().enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListMockTests.java
index a3d590f06de1a..0f3b98a56a831 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsListMockTests.java
@@ -29,7 +29,7 @@ public final class FrontDoorsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"resourceState\":\"Disabling\",\"provisioningState\":\"hibetnluankrr\",\"cname\":\"eeebtijvacv\",\"frontdoorId\":\"qzbqqxlajrnwxa\",\"rulesEngines\":[{\"properties\":{\"resourceState\":\"Deleting\",\"rules\":[{\"name\":\"yxoaf\",\"priority\":168622521,\"action\":{}},{\"name\":\"oqltfae\",\"priority\":1809533021,\"action\":{}}]},\"id\":\"inmfgvxirp\",\"name\":\"hriypoqeyhlqhy\",\"type\":\"prlpy\"}],\"extendedProperties\":{\"iitdfuxt\":\"ciqdsme\",\"nlj\":\"asiibmiybnnust\"},\"friendlyName\":\"mgixhcmavmqfou\",\"routingRules\":[{\"properties\":{\"resourceState\":\"Disabled\",\"frontendEndpoints\":[{},{}],\"acceptedProtocols\":[\"Https\",\"Https\",\"Http\",\"Https\"],\"patternsToMatch\":[\"ndm\",\"xhugcm\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"rb\",\"type\":\"tp\",\"id\":\"tzfjltf\"}],\"loadBalancingSettings\":[{\"properties\":{\"resourceState\":\"Deleting\",\"sampleSize\":572136902,\"successfulSamplesRequired\":79994758,\"additionalLatencyMilliseconds\":634005206},\"name\":\"vpbdbzqgq\",\"type\":\"hedsvqwthmkyib\",\"id\":\"sihsgqcwdhohsd\"},{\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":1235671059,\"successfulSamplesRequired\":1121231141,\"additionalLatencyMilliseconds\":757345037},\"name\":\"dxbzlmcmuap\",\"type\":\"hdbevwqqxeyskon\",\"id\":\"inkfkbgbz\"}],\"healthProbeSettings\":[{\"properties\":{\"resourceState\":\"Enabling\",\"path\":\"clj\",\"protocol\":\"Https\",\"intervalInSeconds\":600854114,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"},\"name\":\"eokbze\",\"type\":\"zrxcczurt\",\"id\":\"ipqxbkwvzgnzv\"},{\"properties\":{\"resourceState\":\"Enabling\",\"path\":\"ixz\",\"protocol\":\"Https\",\"intervalInSeconds\":1928163279,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Disabled\"},\"name\":\"qhewj\",\"type\":\"mcgsbostzelnd\",\"id\":\"tutmzl\"},{\"properties\":{\"resourceState\":\"Migrating\",\"path\":\"vfhrbbpneqvc\",\"protocol\":\"Https\",\"intervalInSeconds\":1045870045,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"},\"name\":\"ppr\",\"type\":\"snmokayzej\",\"id\":\"lbkpb\"},{\"properties\":{\"resourceState\":\"Deleting\",\"path\":\"ljhah\",\"protocol\":\"Https\",\"intervalInSeconds\":66417421,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Disabled\"},\"name\":\"ieholewjwi\",\"type\":\"bwefqsfapaqtfer\",\"id\":\"wexjkmfxapjwogq\"}],\"backendPools\":[{\"properties\":{\"resourceState\":\"Migrated\",\"backends\":[{},{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"tqwpwya\",\"type\":\"zasqbucljgkyexao\",\"id\":\"yaipidsda\"}],\"frontendEndpoints\":[{\"properties\":{\"resourceState\":\"Enabling\",\"customHttpsProvisioningState\":\"Failed\",\"customHttpsProvisioningSubstate\":\"SubmittingDomainControlValidationRequest\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.0\"},\"hostName\":\"nqnm\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":1485575169,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"qxtbjwgnyf\",\"type\":\"fzsvtuikzh\",\"id\":\"qglcfhmlrqryxynq\"}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Disabled\",\"sendRecvTimeoutSeconds\":1655994607},\"enabledState\":\"Enabled\"},\"location\":\"wxznptgoei\",\"tags\":{\"kvntjlrigjkskyri\":\"abpfhvfs\"},\"id\":\"ovzidsx\",\"name\":\"aabzmif\",\"type\":\"ygznmmaxrizk\"}]}";
+ = "{\"value\":[{\"properties\":{\"resourceState\":\"Disabling\",\"provisioningState\":\"clafzvaylpt\",\"cname\":\"qqwzt\",\"frontdoorId\":\"w\",\"rulesEngines\":[{\"properties\":{\"resourceState\":\"Deleting\",\"rules\":[{\"name\":\"xfe\",\"priority\":754983653,\"action\":{}}]},\"id\":\"jkjexf\",\"name\":\"eqvhpsylkk\",\"type\":\"hkbffmbm\"},{\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"wwp\",\"priority\":461847321,\"action\":{}},{\"name\":\"xs\",\"priority\":1849178398,\"action\":{}},{\"name\":\"tf\",\"priority\":1964991484,\"action\":{}},{\"name\":\"gicgaaoepttaq\",\"priority\":1296917092,\"action\":{}}]},\"id\":\"dewemxswv\",\"name\":\"uun\",\"type\":\"zjgehkfkim\"},{\"properties\":{\"resourceState\":\"Disabled\",\"rules\":[{\"name\":\"ffqyinlj\",\"priority\":980930736,\"action\":{}},{\"name\":\"pqwhixmonst\",\"priority\":1440167521,\"action\":{}},{\"name\":\"i\",\"priority\":2112276373,\"action\":{}},{\"name\":\"gvelfc\",\"priority\":341924514,\"action\":{}}]},\"id\":\"uccbirdsvuw\",\"name\":\"o\",\"type\":\"iegstm\"}],\"extendedProperties\":{\"jjtbxqmuluxlxqz\":\"wjizcilnghgsh\",\"cucrwnamikze\":\"nersb\",\"fuhok\":\"rqbsmswziq\",\"czznvfbycjsxj\":\"ruswhv\"},\"friendlyName\":\"i\",\"routingRules\":[{\"properties\":{\"resourceState\":\"Migrated\",\"frontendEndpoints\":[{},{},{},{}],\"acceptedProtocols\":[\"Http\",\"Https\",\"Https\",\"Https\"],\"patternsToMatch\":[\"mldsehaohdj\",\"hflzokxco\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"tag\",\"type\":\"sxoa\",\"id\":\"tgzpnpb\"},{\"properties\":{\"resourceState\":\"Creating\",\"frontendEndpoints\":[{},{},{}],\"acceptedProtocols\":[\"Http\",\"Https\",\"Https\",\"Http\"],\"patternsToMatch\":[\"ihmipgawtxxpk\",\"jcxcjxgrytfmpcyc\",\"lrmcaykg\",\"noxuztrksx\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{},\"webApplicationFirewallPolicyLink\":{}},\"name\":\"fnznth\",\"type\":\"wkjaos\",\"id\":\"uzvoamktcqiosm\"}],\"loadBalancingSettings\":[{\"properties\":{\"resourceState\":\"Enabling\",\"sampleSize\":1781662163,\"successfulSamplesRequired\":945214435,\"additionalLatencyMilliseconds\":1464165713},\"name\":\"ltlaprltzkatbhj\",\"type\":\"nnbsoqeqa\",\"id\":\"rvlagunbtgfebwln\"}],\"healthProbeSettings\":[{\"properties\":{\"resourceState\":\"Creating\",\"path\":\"udzqavbp\",\"protocol\":\"Https\",\"intervalInSeconds\":341201739,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"},\"name\":\"lgouwtlmjj\",\"type\":\"ojqtobaxk\",\"id\":\"ytunlbfjkwr\"},{\"properties\":{\"resourceState\":\"Enabling\",\"path\":\"bhsy\",\"protocol\":\"Http\",\"intervalInSeconds\":1414461023,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"},\"name\":\"xaulkpakdkifmjnn\",\"type\":\"tqabpxuckpgg\",\"id\":\"wey\"}],\"backendPools\":[{\"properties\":{\"resourceState\":\"Migrated\",\"backends\":[{},{},{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"lqqmpiz\",\"type\":\"w\",\"id\":\"qxpxiwfcngjsaa\"},{\"properties\":{\"resourceState\":\"Deleting\",\"backends\":[{},{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"vkviirhgfg\",\"type\":\"sdp\",\"id\":\"atzv\"},{\"properties\":{\"resourceState\":\"Migrated\",\"backends\":[{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"tctbrxkjzwrgxffm\",\"type\":\"kwfbkgo\",\"id\":\"wopdbydpiz\"},{\"properties\":{\"resourceState\":\"Disabled\",\"backends\":[{},{}],\"loadBalancingSettings\":{},\"healthProbeSettings\":{}},\"name\":\"iygnugjknfsmfctt\",\"type\":\"uuyilfl\",\"id\":\"iquvrehm\"}],\"frontendEndpoints\":[{\"properties\":{\"resourceState\":\"Enabling\",\"customHttpsProvisioningState\":\"Failed\",\"customHttpsProvisioningSubstate\":\"PendingDomainControlValidationREquestApproval\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"jtwhauunf\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":1321099955,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"lxsmrpddouifamow\",\"type\":\"iynknlq\",\"id\":\"dvpiwh\"},{\"properties\":{\"resourceState\":\"Migrated\",\"customHttpsProvisioningState\":\"Disabling\",\"customHttpsProvisioningSubstate\":\"DomainControlValidationRequestTimedOut\",\"customHttpsConfiguration\":{\"certificateSource\":\"FrontDoor\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"uxylrjvmtygjbm\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":438034725,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"shck\",\"type\":\"yjpmspbpssdfppyo\",\"id\":\"ieyujtvc\"},{\"properties\":{\"resourceState\":\"Creating\",\"customHttpsProvisioningState\":\"Disabling\",\"customHttpsProvisioningSubstate\":\"CertificateDeployed\",\"customHttpsConfiguration\":{\"certificateSource\":\"AzureKeyVault\",\"protocolType\":\"ServerNameIndication\",\"minimumTlsVersion\":\"1.2\"},\"hostName\":\"xvglnkvxlxp\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":1806194501,\"webApplicationFirewallPolicyLink\":{}},\"name\":\"gkcvkhpzvuq\",\"type\":\"lvoniy\",\"id\":\"pubcpzgpxtivhjk\"}],\"backendPoolsSettings\":{\"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":1731512826},\"enabledState\":\"Disabled\"},\"location\":\"xgpnr\",\"tags\":{\"vuporqzdfuydzv\":\"vfgpikqmhhaowjrm\"},\"id\":\"fvxcnqmxqpswo\",\"name\":\"mvkhlggd\",\"type\":\"bemzqkzszuwi\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -40,45 +40,46 @@ public void testList() throws Exception {
PagedIterable response = manager.frontDoors().list(com.azure.core.util.Context.NONE);
- Assertions.assertEquals("wxznptgoei", response.iterator().next().location());
- Assertions.assertEquals("abpfhvfs", response.iterator().next().tags().get("kvntjlrigjkskyri"));
- Assertions.assertEquals("mgixhcmavmqfou", response.iterator().next().friendlyName());
- Assertions.assertEquals("tzfjltf", response.iterator().next().routingRules().get(0).id());
- Assertions.assertEquals("rb", response.iterator().next().routingRules().get(0).name());
- Assertions.assertEquals(FrontDoorProtocol.HTTPS,
+ Assertions.assertEquals("xgpnr", response.iterator().next().location());
+ Assertions.assertEquals("vfgpikqmhhaowjrm", response.iterator().next().tags().get("vuporqzdfuydzv"));
+ Assertions.assertEquals("i", response.iterator().next().friendlyName());
+ Assertions.assertEquals("tgzpnpb", response.iterator().next().routingRules().get(0).id());
+ Assertions.assertEquals("tag", response.iterator().next().routingRules().get(0).name());
+ Assertions.assertEquals(FrontDoorProtocol.HTTP,
response.iterator().next().routingRules().get(0).acceptedProtocols().get(0));
- Assertions.assertEquals("ndm", response.iterator().next().routingRules().get(0).patternsToMatch().get(0));
+ Assertions.assertEquals("mldsehaohdj",
+ response.iterator().next().routingRules().get(0).patternsToMatch().get(0));
Assertions.assertEquals(RoutingRuleEnabledState.ENABLED,
response.iterator().next().routingRules().get(0).enabledState());
- Assertions.assertEquals("sihsgqcwdhohsd", response.iterator().next().loadBalancingSettings().get(0).id());
- Assertions.assertEquals("vpbdbzqgq", response.iterator().next().loadBalancingSettings().get(0).name());
- Assertions.assertEquals(572136902, response.iterator().next().loadBalancingSettings().get(0).sampleSize());
- Assertions.assertEquals(79994758,
+ Assertions.assertEquals("rvlagunbtgfebwln", response.iterator().next().loadBalancingSettings().get(0).id());
+ Assertions.assertEquals("ltlaprltzkatbhj", response.iterator().next().loadBalancingSettings().get(0).name());
+ Assertions.assertEquals(1781662163, response.iterator().next().loadBalancingSettings().get(0).sampleSize());
+ Assertions.assertEquals(945214435,
response.iterator().next().loadBalancingSettings().get(0).successfulSamplesRequired());
- Assertions.assertEquals(634005206,
+ Assertions.assertEquals(1464165713,
response.iterator().next().loadBalancingSettings().get(0).additionalLatencyMilliseconds());
- Assertions.assertEquals("ipqxbkwvzgnzv", response.iterator().next().healthProbeSettings().get(0).id());
- Assertions.assertEquals("eokbze", response.iterator().next().healthProbeSettings().get(0).name());
- Assertions.assertEquals("clj", response.iterator().next().healthProbeSettings().get(0).path());
+ Assertions.assertEquals("ytunlbfjkwr", response.iterator().next().healthProbeSettings().get(0).id());
+ Assertions.assertEquals("lgouwtlmjj", response.iterator().next().healthProbeSettings().get(0).name());
+ Assertions.assertEquals("udzqavbp", response.iterator().next().healthProbeSettings().get(0).path());
Assertions.assertEquals(FrontDoorProtocol.HTTPS,
response.iterator().next().healthProbeSettings().get(0).protocol());
- Assertions.assertEquals(600854114, response.iterator().next().healthProbeSettings().get(0).intervalInSeconds());
+ Assertions.assertEquals(341201739, response.iterator().next().healthProbeSettings().get(0).intervalInSeconds());
Assertions.assertEquals(FrontDoorHealthProbeMethod.HEAD,
response.iterator().next().healthProbeSettings().get(0).healthProbeMethod());
Assertions.assertEquals(HealthProbeEnabled.ENABLED,
response.iterator().next().healthProbeSettings().get(0).enabledState());
- Assertions.assertEquals("yaipidsda", response.iterator().next().backendPools().get(0).id());
- Assertions.assertEquals("tqwpwya", response.iterator().next().backendPools().get(0).name());
- Assertions.assertEquals("qglcfhmlrqryxynq", response.iterator().next().frontendEndpoints().get(0).id());
- Assertions.assertEquals("qxtbjwgnyf", response.iterator().next().frontendEndpoints().get(0).name());
- Assertions.assertEquals("nqnm", response.iterator().next().frontendEndpoints().get(0).hostname());
+ Assertions.assertEquals("qxpxiwfcngjsaa", response.iterator().next().backendPools().get(0).id());
+ Assertions.assertEquals("lqqmpiz", response.iterator().next().backendPools().get(0).name());
+ Assertions.assertEquals("dvpiwh", response.iterator().next().frontendEndpoints().get(0).id());
+ Assertions.assertEquals("lxsmrpddouifamow", response.iterator().next().frontendEndpoints().get(0).name());
+ Assertions.assertEquals("jtwhauunf", response.iterator().next().frontendEndpoints().get(0).hostname());
Assertions.assertEquals(SessionAffinityEnabledState.ENABLED,
response.iterator().next().frontendEndpoints().get(0).sessionAffinityEnabledState());
- Assertions.assertEquals(1485575169,
+ Assertions.assertEquals(1321099955,
response.iterator().next().frontendEndpoints().get(0).sessionAffinityTtlSeconds());
- Assertions.assertEquals(EnforceCertificateNameCheckEnabledState.DISABLED,
+ Assertions.assertEquals(EnforceCertificateNameCheckEnabledState.ENABLED,
response.iterator().next().backendPoolsSettings().enforceCertificateNameCheck());
- Assertions.assertEquals(1655994607, response.iterator().next().backendPoolsSettings().sendRecvTimeoutSeconds());
- Assertions.assertEquals(FrontDoorEnabledState.ENABLED, response.iterator().next().enabledState());
+ Assertions.assertEquals(1731512826, response.iterator().next().backendPoolsSettings().sendRecvTimeoutSeconds());
+ Assertions.assertEquals(FrontDoorEnabledState.DISABLED, response.iterator().next().enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsValidateCustomDomainWithResponseMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsValidateCustomDomainWithResponseMockTests.java
index 9f276955ccb84..46c3a98d9ae59 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsValidateCustomDomainWithResponseMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontDoorsValidateCustomDomainWithResponseMockTests.java
@@ -20,8 +20,7 @@
public final class FrontDoorsValidateCustomDomainWithResponseMockTests {
@Test
public void testValidateCustomDomainWithResponse() throws Exception {
- String responseStr
- = "{\"customDomainValidated\":false,\"reason\":\"uslvyjtcvuwkasi\",\"message\":\"esfuught\"}";
+ String responseStr = "{\"customDomainValidated\":true,\"reason\":\"b\",\"message\":\"iqge\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,8 +30,8 @@ public void testValidateCustomDomainWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
ValidateCustomDomainOutput response = manager.frontDoors()
- .validateCustomDomainWithResponse("nrd", "jxtxrdc", new ValidateCustomDomainInput().withHostname("tjvidt"),
- com.azure.core.util.Context.NONE)
+ .validateCustomDomainWithResponse("iwdcxsmlzzhzd", "xetlgydlhqv",
+ new ValidateCustomDomainInput().withHostname("n"), com.azure.core.util.Context.NONE)
.getValue();
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointUpdateParametersTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointUpdateParametersTests.java
index 1e092710dc505..85aba82106097 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointUpdateParametersTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointUpdateParametersTests.java
@@ -14,25 +14,25 @@ public final class FrontendEndpointUpdateParametersTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
FrontendEndpointUpdateParameters model = BinaryData.fromString(
- "{\"hostName\":\"ybvpay\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":240734224,\"webApplicationFirewallPolicyLink\":{\"id\":\"xgwjplmagstcyoh\"}}")
+ "{\"hostName\":\"kozzwculkb\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":809021863,\"webApplicationFirewallPolicyLink\":{\"id\":\"jwltlwtjjgu\"}}")
.toObject(FrontendEndpointUpdateParameters.class);
- Assertions.assertEquals("ybvpay", model.hostname());
+ Assertions.assertEquals("kozzwculkb", model.hostname());
Assertions.assertEquals(SessionAffinityEnabledState.DISABLED, model.sessionAffinityEnabledState());
- Assertions.assertEquals(240734224, model.sessionAffinityTtlSeconds());
- Assertions.assertEquals("xgwjplmagstcyoh", model.webApplicationFirewallPolicyLink().id());
+ Assertions.assertEquals(809021863, model.sessionAffinityTtlSeconds());
+ Assertions.assertEquals("jwltlwtjjgu", model.webApplicationFirewallPolicyLink().id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- FrontendEndpointUpdateParameters model = new FrontendEndpointUpdateParameters().withHostname("ybvpay")
+ FrontendEndpointUpdateParameters model = new FrontendEndpointUpdateParameters().withHostname("kozzwculkb")
.withSessionAffinityEnabledState(SessionAffinityEnabledState.DISABLED)
- .withSessionAffinityTtlSeconds(240734224)
+ .withSessionAffinityTtlSeconds(809021863)
.withWebApplicationFirewallPolicyLink(
- new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink().withId("xgwjplmagstcyoh"));
+ new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink().withId("jwltlwtjjgu"));
model = BinaryData.fromObject(model).toObject(FrontendEndpointUpdateParameters.class);
- Assertions.assertEquals("ybvpay", model.hostname());
+ Assertions.assertEquals("kozzwculkb", model.hostname());
Assertions.assertEquals(SessionAffinityEnabledState.DISABLED, model.sessionAffinityEnabledState());
- Assertions.assertEquals(240734224, model.sessionAffinityTtlSeconds());
- Assertions.assertEquals("xgwjplmagstcyoh", model.webApplicationFirewallPolicyLink().id());
+ Assertions.assertEquals(809021863, model.sessionAffinityTtlSeconds());
+ Assertions.assertEquals("jwltlwtjjgu", model.webApplicationFirewallPolicyLink().id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTests.java
index ceba4735f5403..4d1fb5cef6873 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLinkTests.java
@@ -12,17 +12,17 @@ public final class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyL
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink model
- = BinaryData.fromString("{\"id\":\"kyrk\"}")
+ = BinaryData.fromString("{\"id\":\"alhsnvkc\"}")
.toObject(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.class);
- Assertions.assertEquals("kyrk", model.id());
+ Assertions.assertEquals("alhsnvkc", model.id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink model
- = new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink().withId("kyrk");
+ = new FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink().withId("alhsnvkc");
model = BinaryData.fromObject(model)
.toObject(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink.class);
- Assertions.assertEquals("kyrk", model.id());
+ Assertions.assertEquals("alhsnvkc", model.id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsDisableHttpsMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsDisableHttpsMockTests.java
index fee18fa4db8d5..d70cb5e59cd1d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsDisableHttpsMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/FrontendEndpointsDisableHttpsMockTests.java
@@ -27,7 +27,7 @@ public void testDisableHttps() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.frontendEndpoints().disableHttps("xfbvfb", "dy", "rhpw", com.azure.core.util.Context.NONE);
+ manager.frontendEndpoints().disableHttps("vfkakpold", "vevboclzh", "jknyu", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HeaderActionTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HeaderActionTests.java
index 9baf2b9549037..e3d858725dcf7 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HeaderActionTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HeaderActionTests.java
@@ -13,21 +13,21 @@ public final class HeaderActionTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
HeaderAction model = BinaryData
- .fromString("{\"headerActionType\":\"Overwrite\",\"headerName\":\"deibqip\",\"value\":\"ghvxndzwmkrefa\"}")
+ .fromString("{\"headerActionType\":\"Overwrite\",\"headerName\":\"qtnqtt\",\"value\":\"lwfffi\"}")
.toObject(HeaderAction.class);
Assertions.assertEquals(HeaderActionType.OVERWRITE, model.headerActionType());
- Assertions.assertEquals("deibqip", model.headerName());
- Assertions.assertEquals("ghvxndzwmkrefa", model.value());
+ Assertions.assertEquals("qtnqtt", model.headerName());
+ Assertions.assertEquals("lwfffi", model.value());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
HeaderAction model = new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("deibqip")
- .withValue("ghvxndzwmkrefa");
+ .withHeaderName("qtnqtt")
+ .withValue("lwfffi");
model = BinaryData.fromObject(model).toObject(HeaderAction.class);
Assertions.assertEquals(HeaderActionType.OVERWRITE, model.headerActionType());
- Assertions.assertEquals("deibqip", model.headerName());
- Assertions.assertEquals("ghvxndzwmkrefa", model.value());
+ Assertions.assertEquals("qtnqtt", model.headerName());
+ Assertions.assertEquals("lwfffi", model.value());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsModelTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsModelTests.java
index d376a46dd1370..870e615e7c37d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsModelTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsModelTests.java
@@ -15,33 +15,33 @@ public final class HealthProbeSettingsModelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
HealthProbeSettingsModel model = BinaryData.fromString(
- "{\"properties\":{\"resourceState\":\"Disabling\",\"path\":\"ifmviklbydvk\",\"protocol\":\"Http\",\"intervalInSeconds\":1006090143,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Enabled\"},\"name\":\"dsrhnjiv\",\"type\":\"v\",\"id\":\"ovqfzge\"}")
+ "{\"properties\":{\"resourceState\":\"Disabled\",\"path\":\"ktwkuziyc\",\"protocol\":\"Https\",\"intervalInSeconds\":1330328967,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Disabled\"},\"name\":\"ktyhjt\",\"type\":\"dcgzul\",\"id\":\"mrqzzrrjvpgl\"}")
.toObject(HealthProbeSettingsModel.class);
- Assertions.assertEquals("ovqfzge", model.id());
- Assertions.assertEquals("dsrhnjiv", model.name());
- Assertions.assertEquals("ifmviklbydvk", model.path());
- Assertions.assertEquals(FrontDoorProtocol.HTTP, model.protocol());
- Assertions.assertEquals(1006090143, model.intervalInSeconds());
- Assertions.assertEquals(FrontDoorHealthProbeMethod.GET, model.healthProbeMethod());
- Assertions.assertEquals(HealthProbeEnabled.ENABLED, model.enabledState());
+ Assertions.assertEquals("mrqzzrrjvpgl", model.id());
+ Assertions.assertEquals("ktyhjt", model.name());
+ Assertions.assertEquals("ktwkuziyc", model.path());
+ Assertions.assertEquals(FrontDoorProtocol.HTTPS, model.protocol());
+ Assertions.assertEquals(1330328967, model.intervalInSeconds());
+ Assertions.assertEquals(FrontDoorHealthProbeMethod.HEAD, model.healthProbeMethod());
+ Assertions.assertEquals(HealthProbeEnabled.DISABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- HealthProbeSettingsModel model = new HealthProbeSettingsModel().withId("ovqfzge")
- .withName("dsrhnjiv")
- .withPath("ifmviklbydvk")
- .withProtocol(FrontDoorProtocol.HTTP)
- .withIntervalInSeconds(1006090143)
- .withHealthProbeMethod(FrontDoorHealthProbeMethod.GET)
- .withEnabledState(HealthProbeEnabled.ENABLED);
+ HealthProbeSettingsModel model = new HealthProbeSettingsModel().withId("mrqzzrrjvpgl")
+ .withName("ktyhjt")
+ .withPath("ktwkuziyc")
+ .withProtocol(FrontDoorProtocol.HTTPS)
+ .withIntervalInSeconds(1330328967)
+ .withHealthProbeMethod(FrontDoorHealthProbeMethod.HEAD)
+ .withEnabledState(HealthProbeEnabled.DISABLED);
model = BinaryData.fromObject(model).toObject(HealthProbeSettingsModel.class);
- Assertions.assertEquals("ovqfzge", model.id());
- Assertions.assertEquals("dsrhnjiv", model.name());
- Assertions.assertEquals("ifmviklbydvk", model.path());
- Assertions.assertEquals(FrontDoorProtocol.HTTP, model.protocol());
- Assertions.assertEquals(1006090143, model.intervalInSeconds());
- Assertions.assertEquals(FrontDoorHealthProbeMethod.GET, model.healthProbeMethod());
- Assertions.assertEquals(HealthProbeEnabled.ENABLED, model.enabledState());
+ Assertions.assertEquals("mrqzzrrjvpgl", model.id());
+ Assertions.assertEquals("ktyhjt", model.name());
+ Assertions.assertEquals("ktwkuziyc", model.path());
+ Assertions.assertEquals(FrontDoorProtocol.HTTPS, model.protocol());
+ Assertions.assertEquals(1330328967, model.intervalInSeconds());
+ Assertions.assertEquals(FrontDoorHealthProbeMethod.HEAD, model.healthProbeMethod());
+ Assertions.assertEquals(HealthProbeEnabled.DISABLED, model.enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsPropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsPropertiesTests.java
index 9e319e02d71f9..87ce97348cb09 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsPropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsPropertiesTests.java
@@ -15,26 +15,26 @@ public final class HealthProbeSettingsPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
HealthProbeSettingsProperties model = BinaryData.fromString(
- "{\"resourceState\":\"Deleting\",\"path\":\"tul\",\"protocol\":\"Http\",\"intervalInSeconds\":997568890,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Disabled\"}")
+ "{\"resourceState\":\"Disabling\",\"path\":\"krvq\",\"protocol\":\"Https\",\"intervalInSeconds\":1251506139,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Disabled\"}")
.toObject(HealthProbeSettingsProperties.class);
- Assertions.assertEquals("tul", model.path());
- Assertions.assertEquals(FrontDoorProtocol.HTTP, model.protocol());
- Assertions.assertEquals(997568890, model.intervalInSeconds());
+ Assertions.assertEquals("krvq", model.path());
+ Assertions.assertEquals(FrontDoorProtocol.HTTPS, model.protocol());
+ Assertions.assertEquals(1251506139, model.intervalInSeconds());
Assertions.assertEquals(FrontDoorHealthProbeMethod.GET, model.healthProbeMethod());
Assertions.assertEquals(HealthProbeEnabled.DISABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- HealthProbeSettingsProperties model = new HealthProbeSettingsProperties().withPath("tul")
- .withProtocol(FrontDoorProtocol.HTTP)
- .withIntervalInSeconds(997568890)
+ HealthProbeSettingsProperties model = new HealthProbeSettingsProperties().withPath("krvq")
+ .withProtocol(FrontDoorProtocol.HTTPS)
+ .withIntervalInSeconds(1251506139)
.withHealthProbeMethod(FrontDoorHealthProbeMethod.GET)
.withEnabledState(HealthProbeEnabled.DISABLED);
model = BinaryData.fromObject(model).toObject(HealthProbeSettingsProperties.class);
- Assertions.assertEquals("tul", model.path());
- Assertions.assertEquals(FrontDoorProtocol.HTTP, model.protocol());
- Assertions.assertEquals(997568890, model.intervalInSeconds());
+ Assertions.assertEquals("krvq", model.path());
+ Assertions.assertEquals(FrontDoorProtocol.HTTPS, model.protocol());
+ Assertions.assertEquals(1251506139, model.intervalInSeconds());
Assertions.assertEquals(FrontDoorHealthProbeMethod.GET, model.healthProbeMethod());
Assertions.assertEquals(HealthProbeEnabled.DISABLED, model.enabledState());
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsUpdateParametersTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsUpdateParametersTests.java
index 204d273f00f0e..1fdda2369b385 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsUpdateParametersTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/HealthProbeSettingsUpdateParametersTests.java
@@ -15,27 +15,27 @@ public final class HealthProbeSettingsUpdateParametersTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
HealthProbeSettingsUpdateParameters model = BinaryData.fromString(
- "{\"path\":\"mczuo\",\"protocol\":\"Http\",\"intervalInSeconds\":1975248748,\"healthProbeMethod\":\"GET\",\"enabledState\":\"Disabled\"}")
+ "{\"path\":\"t\",\"protocol\":\"Http\",\"intervalInSeconds\":989782858,\"healthProbeMethod\":\"HEAD\",\"enabledState\":\"Enabled\"}")
.toObject(HealthProbeSettingsUpdateParameters.class);
- Assertions.assertEquals("mczuo", model.path());
+ Assertions.assertEquals("t", model.path());
Assertions.assertEquals(FrontDoorProtocol.HTTP, model.protocol());
- Assertions.assertEquals(1975248748, model.intervalInSeconds());
- Assertions.assertEquals(FrontDoorHealthProbeMethod.GET, model.healthProbeMethod());
- Assertions.assertEquals(HealthProbeEnabled.DISABLED, model.enabledState());
+ Assertions.assertEquals(989782858, model.intervalInSeconds());
+ Assertions.assertEquals(FrontDoorHealthProbeMethod.HEAD, model.healthProbeMethod());
+ Assertions.assertEquals(HealthProbeEnabled.ENABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- HealthProbeSettingsUpdateParameters model = new HealthProbeSettingsUpdateParameters().withPath("mczuo")
+ HealthProbeSettingsUpdateParameters model = new HealthProbeSettingsUpdateParameters().withPath("t")
.withProtocol(FrontDoorProtocol.HTTP)
- .withIntervalInSeconds(1975248748)
- .withHealthProbeMethod(FrontDoorHealthProbeMethod.GET)
- .withEnabledState(HealthProbeEnabled.DISABLED);
+ .withIntervalInSeconds(989782858)
+ .withHealthProbeMethod(FrontDoorHealthProbeMethod.HEAD)
+ .withEnabledState(HealthProbeEnabled.ENABLED);
model = BinaryData.fromObject(model).toObject(HealthProbeSettingsUpdateParameters.class);
- Assertions.assertEquals("mczuo", model.path());
+ Assertions.assertEquals("t", model.path());
Assertions.assertEquals(FrontDoorProtocol.HTTP, model.protocol());
- Assertions.assertEquals(1975248748, model.intervalInSeconds());
- Assertions.assertEquals(FrontDoorHealthProbeMethod.GET, model.healthProbeMethod());
- Assertions.assertEquals(HealthProbeEnabled.DISABLED, model.enabledState());
+ Assertions.assertEquals(989782858, model.intervalInSeconds());
+ Assertions.assertEquals(FrontDoorHealthProbeMethod.HEAD, model.healthProbeMethod());
+ Assertions.assertEquals(HealthProbeEnabled.ENABLED, model.enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/KeyVaultCertificateSourceParametersVaultTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/KeyVaultCertificateSourceParametersVaultTests.java
index e6c12fe1eab7e..f2235d8ec4d8f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/KeyVaultCertificateSourceParametersVaultTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/KeyVaultCertificateSourceParametersVaultTests.java
@@ -12,14 +12,14 @@ public final class KeyVaultCertificateSourceParametersVaultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
KeyVaultCertificateSourceParametersVault model
- = BinaryData.fromString("{\"id\":\"j\"}").toObject(KeyVaultCertificateSourceParametersVault.class);
- Assertions.assertEquals("j", model.id());
+ = BinaryData.fromString("{\"id\":\"uj\"}").toObject(KeyVaultCertificateSourceParametersVault.class);
+ Assertions.assertEquals("uj", model.id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- KeyVaultCertificateSourceParametersVault model = new KeyVaultCertificateSourceParametersVault().withId("j");
+ KeyVaultCertificateSourceParametersVault model = new KeyVaultCertificateSourceParametersVault().withId("uj");
model = BinaryData.fromObject(model).toObject(KeyVaultCertificateSourceParametersVault.class);
- Assertions.assertEquals("j", model.id());
+ Assertions.assertEquals("uj", model.id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyMetricTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyMetricTests.java
index 5a9ba83ba4b6b..56426cca4ce86 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyMetricTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyMetricTests.java
@@ -11,7 +11,7 @@ public final class LatencyMetricTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LatencyMetric model = BinaryData.fromString(
- "{\"name\":\"dqohmc\",\"endDateTimeUTC\":\"ldrizetpwbra\",\"aValue\":26.893013,\"bValue\":96.48258,\"delta\":95.87588,\"deltaPercent\":34.01791,\"aCLower95CI\":30.984789,\"aHUpper95CI\":71.816055,\"bCLower95CI\":90.2628,\"bUpper95CI\":15.199614}")
+ "{\"name\":\"bzefezr\",\"endDateTimeUTC\":\"czurtlei\",\"aValue\":30.662357,\"bValue\":18.551361,\"delta\":9.448862,\"deltaPercent\":79.282104,\"aCLower95CI\":17.816608,\"aHUpper95CI\":60.011448,\"bCLower95CI\":48.05835,\"bUpper95CI\":4.7126713}")
.toObject(LatencyMetric.class);
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyScorecardInnerTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyScorecardInnerTests.java
index a526c6a46321a..a40dcdcad330e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyScorecardInnerTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyScorecardInnerTests.java
@@ -16,22 +16,20 @@ public final class LatencyScorecardInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LatencyScorecardInner model = BinaryData.fromString(
- "{\"properties\":{\"id\":\"ahhvjhhna\",\"name\":\"ybbjjidjksyx\",\"description\":\"xvxevblbjednljla\",\"endpointA\":\"uaulxunsm\",\"endpointB\":\"nkppxynen\",\"startDateTimeUTC\":\"2021-03-25T10:54:56Z\",\"endDateTimeUTC\":\"2021-08-03T19:56:39Z\",\"country\":\"zzgwklnsrm\",\"latencyMetrics\":[{\"name\":\"cxcktpi\",\"endDateTimeUTC\":\"erteeammxqiekk\",\"aValue\":59.703384,\"bValue\":96.93083,\"delta\":26.63849,\"deltaPercent\":12.828475,\"aCLower95CI\":55.168236,\"aHUpper95CI\":68.03398,\"bCLower95CI\":61.51553,\"bUpper95CI\":51.644337},{\"name\":\"efdeesve\",\"endDateTimeUTC\":\"ijpxtx\",\"aValue\":25.637108,\"bValue\":90.25361,\"delta\":98.42054,\"deltaPercent\":84.732414,\"aCLower95CI\":55.696815,\"aHUpper95CI\":28.99242,\"bCLower95CI\":93.74711,\"bUpper95CI\":53.828697},{\"name\":\"bxv\",\"endDateTimeUTC\":\"itvtzeexavo\",\"aValue\":68.84001,\"bValue\":53.85332,\"delta\":9.79231,\"deltaPercent\":0.8543253,\"aCLower95CI\":13.757277,\"aHUpper95CI\":61.999382,\"bCLower95CI\":14.225859,\"bUpper95CI\":3.4114003},{\"name\":\"gsfjac\",\"endDateTimeUTC\":\"lhhxudbxvodhtnsi\",\"aValue\":69.404366,\"bValue\":0.56890845,\"delta\":13.827729,\"deltaPercent\":31.628572,\"aCLower95CI\":25.156885,\"aHUpper95CI\":47.039097,\"bCLower95CI\":47.95568,\"bUpper95CI\":96.791}]},\"location\":\"rcxfailcfxwmdb\",\"tags\":{\"jln\":\"fgsftufqob\",\"rzvul\":\"cgcckknhxkizvyt\",\"aeranokqgukkjqnv\":\"r\",\"cdisd\":\"roylaxxu\"},\"id\":\"sfjbjsvg\",\"name\":\"rwhryvycytd\",\"type\":\"lxgccknfnwmbtm\"}")
+ "{\"properties\":{\"id\":\"tngfdgugeyzihgr\",\"name\":\"ui\",\"description\":\"bsnmfpph\",\"endpointA\":\"eevy\",\"endpointB\":\"hsgz\",\"startDateTimeUTC\":\"2021-09-04T20:31:38Z\",\"endDateTimeUTC\":\"2021-04-26T23:03:25Z\",\"country\":\"mfg\",\"latencyMetrics\":[{\"name\":\"qgleohibetnluank\",\"endDateTimeUTC\":\"fxeeebtijvacvbm\",\"aValue\":39.060837,\"bValue\":0.7475734,\"delta\":82.000725,\"deltaPercent\":54.551792,\"aCLower95CI\":9.691727,\"aHUpper95CI\":32.127506,\"bCLower95CI\":83.196625,\"bUpper95CI\":15.094423},{\"name\":\"h\",\"endDateTimeUTC\":\"uyxoaf\",\"aValue\":43.28481,\"bValue\":12.039203,\"delta\":22.252481,\"deltaPercent\":12.664461,\"aCLower95CI\":42.13147,\"aHUpper95CI\":6.4531984,\"bCLower95CI\":98.56035,\"bUpper95CI\":70.414665}]},\"location\":\"xirpghriy\",\"tags\":{\"yznuciqd\":\"eyhlqhykprl\"},\"id\":\"mexiitdfuxt\",\"name\":\"asiibmiybnnust\",\"type\":\"nlj\"}")
.toObject(LatencyScorecardInner.class);
- Assertions.assertEquals("rcxfailcfxwmdb", model.location());
- Assertions.assertEquals("fgsftufqob", model.tags().get("jln"));
+ Assertions.assertEquals("xirpghriy", model.location());
+ Assertions.assertEquals("eyhlqhykprl", model.tags().get("yznuciqd"));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- LatencyScorecardInner model = new LatencyScorecardInner().withLocation("rcxfailcfxwmdb")
- .withTags(
- mapOf("jln", "fgsftufqob", "rzvul", "cgcckknhxkizvyt", "aeranokqgukkjqnv", "r", "cdisd", "roylaxxu"))
- .withLatencyMetrics(
- Arrays.asList(new LatencyMetric(), new LatencyMetric(), new LatencyMetric(), new LatencyMetric()));
+ LatencyScorecardInner model = new LatencyScorecardInner().withLocation("xirpghriy")
+ .withTags(mapOf("yznuciqd", "eyhlqhykprl"))
+ .withLatencyMetrics(Arrays.asList(new LatencyMetric(), new LatencyMetric()));
model = BinaryData.fromObject(model).toObject(LatencyScorecardInner.class);
- Assertions.assertEquals("rcxfailcfxwmdb", model.location());
- Assertions.assertEquals("fgsftufqob", model.tags().get("jln"));
+ Assertions.assertEquals("xirpghriy", model.location());
+ Assertions.assertEquals("eyhlqhykprl", model.tags().get("yznuciqd"));
}
// Use "Map.of" if available
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyScorecardPropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyScorecardPropertiesTests.java
index 03dbe43287b66..270d08ee28d03 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyScorecardPropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LatencyScorecardPropertiesTests.java
@@ -13,14 +13,14 @@ public final class LatencyScorecardPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LatencyScorecardProperties model = BinaryData.fromString(
- "{\"id\":\"dvjdhttza\",\"name\":\"edxihchrphkmcrj\",\"description\":\"nsdfzpbgtgky\",\"endpointA\":\"dgh\",\"endpointB\":\"euutlwxezwzh\",\"startDateTimeUTC\":\"2021-10-29T09:06Z\",\"endDateTimeUTC\":\"2021-09-18T08:14:23Z\",\"country\":\"hh\",\"latencyMetrics\":[{\"name\":\"ehgpp\",\"endDateTimeUTC\":\"ifhpf\",\"aValue\":93.903366,\"bValue\":36.54407,\"delta\":33.805878,\"deltaPercent\":81.09743,\"aCLower95CI\":54.42357,\"aHUpper95CI\":43.48775,\"bCLower95CI\":82.11186,\"bUpper95CI\":38.771828},{\"name\":\"dltug\",\"endDateTimeUTC\":\"esmkssjhoiftxfkf\",\"aValue\":17.55079,\"bValue\":54.436035,\"delta\":19.466824,\"deltaPercent\":18.691397,\"aCLower95CI\":80.17824,\"aHUpper95CI\":56.52645,\"bCLower95CI\":48.5814,\"bUpper95CI\":88.57164}]}")
+ "{\"id\":\"mgixhcmavmqfou\",\"name\":\"rhc\",\"description\":\"yprotwyp\",\"endpointA\":\"d\",\"endpointB\":\"xhugcm\",\"startDateTimeUTC\":\"2021-10-22T10:15:32Z\",\"endDateTimeUTC\":\"2021-05-28T01:58:35Z\",\"country\":\"or\",\"latencyMetrics\":[{\"name\":\"pmdtz\",\"endDateTimeUTC\":\"ltfvnz\",\"aValue\":71.58709,\"bValue\":13.321095,\"delta\":1.86252,\"deltaPercent\":14.7615795,\"aCLower95CI\":50.949852,\"aHUpper95CI\":17.070621,\"bCLower95CI\":43.74167,\"bUpper95CI\":98.802505},{\"name\":\"qqihedsvqwthmk\",\"endDateTimeUTC\":\"bcysih\",\"aValue\":39.957165,\"bValue\":86.52514,\"delta\":29.727798,\"deltaPercent\":34.064537,\"aCLower95CI\":26.138746,\"aHUpper95CI\":83.44366,\"bCLower95CI\":37.323578,\"bUpper95CI\":28.770208},{\"name\":\"fcohdxbzlmcmu\",\"endDateTimeUTC\":\"cvhd\",\"aValue\":1.3999999,\"bValue\":50.365185,\"delta\":95.75136,\"deltaPercent\":62.209137,\"aCLower95CI\":6.926763,\"aHUpper95CI\":22.552055,\"bCLower95CI\":94.57757,\"bUpper95CI\":54.89984},{\"name\":\"fkbg\",\"endDateTimeUTC\":\"bowxe\",\"aValue\":15.188962,\"bValue\":36.005825,\"delta\":55.835987,\"deltaPercent\":25.24032,\"aCLower95CI\":79.712364,\"aHUpper95CI\":45.767326,\"bCLower95CI\":93.26072,\"bUpper95CI\":33.499878}]}")
.toObject(LatencyScorecardProperties.class);
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- LatencyScorecardProperties model = new LatencyScorecardProperties()
- .withLatencyMetrics(Arrays.asList(new LatencyMetric(), new LatencyMetric()));
+ LatencyScorecardProperties model = new LatencyScorecardProperties().withLatencyMetrics(
+ Arrays.asList(new LatencyMetric(), new LatencyMetric(), new LatencyMetric(), new LatencyMetric()));
model = BinaryData.fromObject(model).toObject(LatencyScorecardProperties.class);
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsModelTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsModelTests.java
index 8133d6257e842..9cef003f3054a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsModelTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsModelTests.java
@@ -12,27 +12,27 @@ public final class LoadBalancingSettingsModelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LoadBalancingSettingsModel model = BinaryData.fromString(
- "{\"properties\":{\"resourceState\":\"Disabled\",\"sampleSize\":1069475083,\"successfulSamplesRequired\":886228140,\"additionalLatencyMilliseconds\":825702732},\"name\":\"iw\",\"type\":\"jgcyztsfmznba\",\"id\":\"ph\"}")
+ "{\"properties\":{\"resourceState\":\"Enabled\",\"sampleSize\":1038876843,\"successfulSamplesRequired\":1193867265,\"additionalLatencyMilliseconds\":1115124750},\"name\":\"iivwzjbhyzsxjrka\",\"type\":\"trnegvmnvuqeqvld\",\"id\":\"astjbkkdmflvestm\"}")
.toObject(LoadBalancingSettingsModel.class);
- Assertions.assertEquals("ph", model.id());
- Assertions.assertEquals("iw", model.name());
- Assertions.assertEquals(1069475083, model.sampleSize());
- Assertions.assertEquals(886228140, model.successfulSamplesRequired());
- Assertions.assertEquals(825702732, model.additionalLatencyMilliseconds());
+ Assertions.assertEquals("astjbkkdmflvestm", model.id());
+ Assertions.assertEquals("iivwzjbhyzsxjrka", model.name());
+ Assertions.assertEquals(1038876843, model.sampleSize());
+ Assertions.assertEquals(1193867265, model.successfulSamplesRequired());
+ Assertions.assertEquals(1115124750, model.additionalLatencyMilliseconds());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- LoadBalancingSettingsModel model = new LoadBalancingSettingsModel().withId("ph")
- .withName("iw")
- .withSampleSize(1069475083)
- .withSuccessfulSamplesRequired(886228140)
- .withAdditionalLatencyMilliseconds(825702732);
+ LoadBalancingSettingsModel model = new LoadBalancingSettingsModel().withId("astjbkkdmflvestm")
+ .withName("iivwzjbhyzsxjrka")
+ .withSampleSize(1038876843)
+ .withSuccessfulSamplesRequired(1193867265)
+ .withAdditionalLatencyMilliseconds(1115124750);
model = BinaryData.fromObject(model).toObject(LoadBalancingSettingsModel.class);
- Assertions.assertEquals("ph", model.id());
- Assertions.assertEquals("iw", model.name());
- Assertions.assertEquals(1069475083, model.sampleSize());
- Assertions.assertEquals(886228140, model.successfulSamplesRequired());
- Assertions.assertEquals(825702732, model.additionalLatencyMilliseconds());
+ Assertions.assertEquals("astjbkkdmflvestm", model.id());
+ Assertions.assertEquals("iivwzjbhyzsxjrka", model.name());
+ Assertions.assertEquals(1038876843, model.sampleSize());
+ Assertions.assertEquals(1193867265, model.successfulSamplesRequired());
+ Assertions.assertEquals(1115124750, model.additionalLatencyMilliseconds());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsPropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsPropertiesTests.java
index 0214a14fad96d..074c6fd2bc628 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsPropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsPropertiesTests.java
@@ -12,21 +12,21 @@ public final class LoadBalancingSettingsPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LoadBalancingSettingsProperties model = BinaryData.fromString(
- "{\"resourceState\":\"Migrating\",\"sampleSize\":325411087,\"successfulSamplesRequired\":1219456707,\"additionalLatencyMilliseconds\":98859103}")
+ "{\"resourceState\":\"Deleting\",\"sampleSize\":598557579,\"successfulSamplesRequired\":1514832740,\"additionalLatencyMilliseconds\":444057541}")
.toObject(LoadBalancingSettingsProperties.class);
- Assertions.assertEquals(325411087, model.sampleSize());
- Assertions.assertEquals(1219456707, model.successfulSamplesRequired());
- Assertions.assertEquals(98859103, model.additionalLatencyMilliseconds());
+ Assertions.assertEquals(598557579, model.sampleSize());
+ Assertions.assertEquals(1514832740, model.successfulSamplesRequired());
+ Assertions.assertEquals(444057541, model.additionalLatencyMilliseconds());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- LoadBalancingSettingsProperties model = new LoadBalancingSettingsProperties().withSampleSize(325411087)
- .withSuccessfulSamplesRequired(1219456707)
- .withAdditionalLatencyMilliseconds(98859103);
+ LoadBalancingSettingsProperties model = new LoadBalancingSettingsProperties().withSampleSize(598557579)
+ .withSuccessfulSamplesRequired(1514832740)
+ .withAdditionalLatencyMilliseconds(444057541);
model = BinaryData.fromObject(model).toObject(LoadBalancingSettingsProperties.class);
- Assertions.assertEquals(325411087, model.sampleSize());
- Assertions.assertEquals(1219456707, model.successfulSamplesRequired());
- Assertions.assertEquals(98859103, model.additionalLatencyMilliseconds());
+ Assertions.assertEquals(598557579, model.sampleSize());
+ Assertions.assertEquals(1514832740, model.successfulSamplesRequired());
+ Assertions.assertEquals(444057541, model.additionalLatencyMilliseconds());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsUpdateParametersTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsUpdateParametersTests.java
index b9d66e1bfa4ed..126e1daf66b8f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsUpdateParametersTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/LoadBalancingSettingsUpdateParametersTests.java
@@ -12,22 +12,22 @@ public final class LoadBalancingSettingsUpdateParametersTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LoadBalancingSettingsUpdateParameters model = BinaryData.fromString(
- "{\"sampleSize\":995408685,\"successfulSamplesRequired\":1909534369,\"additionalLatencyMilliseconds\":550390162}")
+ "{\"sampleSize\":646254417,\"successfulSamplesRequired\":848547164,\"additionalLatencyMilliseconds\":469550193}")
.toObject(LoadBalancingSettingsUpdateParameters.class);
- Assertions.assertEquals(995408685, model.sampleSize());
- Assertions.assertEquals(1909534369, model.successfulSamplesRequired());
- Assertions.assertEquals(550390162, model.additionalLatencyMilliseconds());
+ Assertions.assertEquals(646254417, model.sampleSize());
+ Assertions.assertEquals(848547164, model.successfulSamplesRequired());
+ Assertions.assertEquals(469550193, model.additionalLatencyMilliseconds());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
LoadBalancingSettingsUpdateParameters model
- = new LoadBalancingSettingsUpdateParameters().withSampleSize(995408685)
- .withSuccessfulSamplesRequired(1909534369)
- .withAdditionalLatencyMilliseconds(550390162);
+ = new LoadBalancingSettingsUpdateParameters().withSampleSize(646254417)
+ .withSuccessfulSamplesRequired(848547164)
+ .withAdditionalLatencyMilliseconds(469550193);
model = BinaryData.fromObject(model).toObject(LoadBalancingSettingsUpdateParameters.class);
- Assertions.assertEquals(995408685, model.sampleSize());
- Assertions.assertEquals(1909534369, model.successfulSamplesRequired());
- Assertions.assertEquals(550390162, model.additionalLatencyMilliseconds());
+ Assertions.assertEquals(646254417, model.sampleSize());
+ Assertions.assertEquals(848547164, model.successfulSamplesRequired());
+ Assertions.assertEquals(469550193, model.additionalLatencyMilliseconds());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ManagedRuleSetsListMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ManagedRuleSetsListMockTests.java
index b617dea907a08..5698db10b51d3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ManagedRuleSetsListMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ManagedRuleSetsListMockTests.java
@@ -22,7 +22,7 @@ public final class ManagedRuleSetsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"provisioningState\":\"sttex\",\"ruleSetId\":\"qpwcyyufmh\",\"ruleSetType\":\"nc\",\"ruleSetVersion\":\"mqspkcdqzhlctdd\",\"ruleGroups\":[{\"ruleGroupName\":\"dyfpchrqbnj\",\"description\":\"cgegydcwbo\",\"rules\":[{}]}]},\"location\":\"mvqqolih\",\"tags\":{\"oq\":\"iouaubrjt\",\"rzpasccbiuimzdly\":\"fuojrngif\",\"fdvruz\":\"dfqwmkyoq\"},\"id\":\"lzo\",\"name\":\"hpc\",\"type\":\"fnmdxotn\"}]}";
+ = "{\"value\":[{\"properties\":{\"provisioningState\":\"vwf\",\"ruleSetId\":\"ayxonsupeujl\",\"ruleSetType\":\"nh\",\"ruleSetVersion\":\"sqltnzo\",\"ruleGroups\":[{\"ruleGroupName\":\"xgnxfyqonmpqoxwd\",\"description\":\"dbxiqx\",\"rules\":[{}]},{\"ruleGroupName\":\"bimhtmwwinhe\",\"description\":\"qpofvwbc\",\"rules\":[{},{}]},{\"ruleGroupName\":\"b\",\"description\":\"bwvqvxkdi\",\"rules\":[{},{}]}]},\"location\":\"heb\",\"tags\":{\"izvcjfe\":\"wbzuwfmdurage\",\"ggbqi\":\"isdju\",\"m\":\"kxkbsazgakgacyr\",\"pv\":\"dmspof\"},\"id\":\"hryl\",\"name\":\"iofrzgbzjedmstk\",\"type\":\"nlvxbcuii\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -34,7 +34,7 @@ public void testList() throws Exception {
PagedIterable response
= manager.managedRuleSets().list(com.azure.core.util.Context.NONE);
- Assertions.assertEquals("mvqqolih", response.iterator().next().location());
- Assertions.assertEquals("iouaubrjt", response.iterator().next().tags().get("oq"));
+ Assertions.assertEquals("heb", response.iterator().next().location());
+ Assertions.assertEquals("wbzuwfmdurage", response.iterator().next().tags().get("izvcjfe"));
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesCreateOrUpdateMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesCreateOrUpdateMockTests.java
index 1018f0515e5f3..b81eff3094b56 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesCreateOrUpdateMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesCreateOrUpdateMockTests.java
@@ -24,7 +24,7 @@ public final class NetworkExperimentProfilesCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"resourceState\":\"Disabled\",\"enabledState\":\"Enabled\"},\"etag\":\"ygvoavyunssxlgh\",\"location\":\"ee\",\"tags\":{\"gbuxantuygdh\":\"gvvpasek\",\"pirpiwrqof\":\"aq\",\"k\":\"lopmjnlexwhcbjpi\",\"intqpbrlcyr\":\"phuuuerctato\"},\"id\":\"uczkgofxyfsruc\",\"name\":\"crrpcjttbstvje\",\"type\":\"qnrmvvfko\"}";
+ = "{\"properties\":{\"resourceState\":\"Enabling\",\"enabledState\":\"Disabled\"},\"etag\":\"no\",\"location\":\"pziuwfbzkkdtnh\",\"tags\":{\"pkpbafvafhlbylcc\":\"cljse\",\"fwrsofpltdbmair\":\"evxrhyz\",\"pqigtuujwouhd\":\"hvhfnracw\",\"bvitvqkjya\":\"wsigrbjbxsj\"},\"id\":\"nu\",\"name\":\"tggmuwdchozfnkfe\",\"type\":\"lv\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -34,18 +34,18 @@ public void testCreateOrUpdate() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
Profile response = manager.networkExperimentProfiles()
- .define("jxcx")
- .withRegion("mzwcjjncqt")
- .withExistingResourceGroup("rzdcgdzbenribcaw")
- .withTags(mapOf("gat", "izvg", "grebwggahttzlsw", "uuvbx", "oqza", "ajqfutlx", "zfrgqhaohcm", "unwqr"))
- .withEtag("jwfljhznamtua")
- .withEnabledState(State.DISABLED)
+ .define("bfw")
+ .withRegion("jwwviy")
+ .withExistingResourceGroup("rzx")
+ .withTags(mapOf("jxsqwjhqkbiwetp", "suhbrnn"))
+ .withEtag("xkrplbjaz")
+ .withEnabledState(State.ENABLED)
.create();
- Assertions.assertEquals("ee", response.location());
- Assertions.assertEquals("gvvpasek", response.tags().get("gbuxantuygdh"));
- Assertions.assertEquals("ygvoavyunssxlgh", response.etag());
- Assertions.assertEquals(State.ENABLED, response.enabledState());
+ Assertions.assertEquals("pziuwfbzkkdtnh", response.location());
+ Assertions.assertEquals("cljse", response.tags().get("pkpbafvafhlbylcc"));
+ Assertions.assertEquals("no", response.etag());
+ Assertions.assertEquals(State.DISABLED, response.enabledState());
}
// Use "Map.of" if available
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesDeleteMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesDeleteMockTests.java
index 80c71135604c8..d68f0abce7234 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesDeleteMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesDeleteMockTests.java
@@ -27,7 +27,7 @@ public void testDelete() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.networkExperimentProfiles().delete("qvapcohhoucq", "q", com.azure.core.util.Context.NONE);
+ manager.networkExperimentProfiles().delete("yay", "mmfz", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesGetByResourceGroupWithResponseMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesGetByResourceGroupWithResponseMockTests.java
index e88a218960424..e98163e82cdce 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesGetByResourceGroupWithResponseMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesGetByResourceGroupWithResponseMockTests.java
@@ -22,7 +22,7 @@ public final class NetworkExperimentProfilesGetByResourceGroupWithResponseMockTe
@Test
public void testGetByResourceGroupWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"resourceState\":\"Enabled\",\"enabledState\":\"Disabled\"},\"etag\":\"qfyiaseqchkr\",\"location\":\"tzrazisgyk\",\"tags\":{\"mnrxxbsojkl\":\"mvanbwzo\"},\"id\":\"nhmdptysprqs\",\"name\":\"nzxojpslsvjgpli\",\"type\":\"fiqwoy\"}";
+ = "{\"properties\":{\"resourceState\":\"Deleting\",\"enabledState\":\"Enabled\"},\"etag\":\"g\",\"location\":\"knlejjjkxybwfd\",\"tags\":{\"nsxfwu\":\"bztensvkzykjtj\",\"bpkuwxeoio\":\"hcdpkupnqrmgj\"},\"id\":\"fiz\",\"name\":\"av\",\"type\":\"jzwfb\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,12 +32,12 @@ public void testGetByResourceGroupWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
Profile response = manager.networkExperimentProfiles()
- .getByResourceGroupWithResponse("beonrlkwzdq", "bxcea", com.azure.core.util.Context.NONE)
+ .getByResourceGroupWithResponse("eeksnbksdqhjvyk", "xeslkhhustcpoqm", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("tzrazisgyk", response.location());
- Assertions.assertEquals("mvanbwzo", response.tags().get("mnrxxbsojkl"));
- Assertions.assertEquals("qfyiaseqchkr", response.etag());
- Assertions.assertEquals(State.DISABLED, response.enabledState());
+ Assertions.assertEquals("knlejjjkxybwfd", response.location());
+ Assertions.assertEquals("bztensvkzykjtj", response.tags().get("nsxfwu"));
+ Assertions.assertEquals("g", response.etag());
+ Assertions.assertEquals(State.ENABLED, response.enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListByResourceGroupMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListByResourceGroupMockTests.java
index d3f44bdb44fd4..83c8166fb23ea 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListByResourceGroupMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListByResourceGroupMockTests.java
@@ -23,7 +23,7 @@ public final class NetworkExperimentProfilesListByResourceGroupMockTests {
@Test
public void testListByResourceGroup() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"resourceState\":\"Enabling\",\"enabledState\":\"Disabled\"},\"etag\":\"hwmgnmbscbbxig\",\"location\":\"hxiidlopedb\",\"tags\":{\"cbq\":\"yqyybxubmdna\"},\"id\":\"remj\",\"name\":\"laqacigele\",\"type\":\"hdbvqvwzkjop\"}]}";
+ = "{\"value\":[{\"properties\":{\"resourceState\":\"Disabling\",\"enabledState\":\"Disabled\"},\"etag\":\"dorvvmqfloy\",\"location\":\"bdgwumgxdgd\",\"tags\":{\"xjd\":\"bgd\",\"wllcolsr\":\"vjsaqwotm\"},\"id\":\"xaptefhexcgjok\",\"name\":\"ljnhvlqj\",\"type\":\"ek\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,11 +33,11 @@ public void testListByResourceGroup() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response = manager.networkExperimentProfiles()
- .listByResourceGroup("ueayfbpcmsplb", com.azure.core.util.Context.NONE);
+ .listByResourceGroup("gkkileplkcsmkn", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("hxiidlopedb", response.iterator().next().location());
- Assertions.assertEquals("yqyybxubmdna", response.iterator().next().tags().get("cbq"));
- Assertions.assertEquals("hwmgnmbscbbxig", response.iterator().next().etag());
+ Assertions.assertEquals("bdgwumgxdgd", response.iterator().next().location());
+ Assertions.assertEquals("bgd", response.iterator().next().tags().get("xjd"));
+ Assertions.assertEquals("dorvvmqfloy", response.iterator().next().etag());
Assertions.assertEquals(State.DISABLED, response.iterator().next().enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListMockTests.java
index 2f2348f55191d..8cb6dd06867b3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/NetworkExperimentProfilesListMockTests.java
@@ -23,7 +23,7 @@ public final class NetworkExperimentProfilesListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"resourceState\":\"Enabled\",\"enabledState\":\"Enabled\"},\"etag\":\"rbxrblmliowxihsp\",\"location\":\"xwqagnepzw\",\"tags\":{\"qqqagwwrxaomzi\":\"sbs\"},\"id\":\"glrrczez\",\"name\":\"hhltnjadhqo\",\"type\":\"wjqo\"}]}";
+ = "{\"value\":[{\"properties\":{\"resourceState\":\"Creating\",\"enabledState\":\"Disabled\"},\"etag\":\"dnwqapfg\",\"location\":\"dpcve\",\"tags\":{\"ekvalblhtjq\":\"zhhkuuipldqqc\",\"eh\":\"qyv\",\"mxhzzysevus\":\"a\",\"yzatvfuzkaft\":\"ivzrrryveimipsk\"},\"id\":\"vvruxwi\",\"name\":\"syeipqd\",\"type\":\"mjtgrqg\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -34,9 +34,9 @@ public void testList() throws Exception {
PagedIterable response = manager.networkExperimentProfiles().list(com.azure.core.util.Context.NONE);
- Assertions.assertEquals("xwqagnepzw", response.iterator().next().location());
- Assertions.assertEquals("sbs", response.iterator().next().tags().get("qqqagwwrxaomzi"));
- Assertions.assertEquals("rbxrblmliowxihsp", response.iterator().next().etag());
- Assertions.assertEquals(State.ENABLED, response.iterator().next().enabledState());
+ Assertions.assertEquals("dpcve", response.iterator().next().location());
+ Assertions.assertEquals("zhhkuuipldqqc", response.iterator().next().tags().get("ekvalblhtjq"));
+ Assertions.assertEquals("dnwqapfg", response.iterator().next().etag());
+ Assertions.assertEquals(State.DISABLED, response.iterator().next().enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PoliciesDeleteMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PoliciesDeleteMockTests.java
index 786d71ecd304f..1a11d1f5ef8d6 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PoliciesDeleteMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PoliciesDeleteMockTests.java
@@ -27,7 +27,7 @@ public void testDelete() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.policies().delete("zyvli", "q", com.azure.core.util.Context.NONE);
+ manager.policies().delete("haivm", "yasflvgsgzwy", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointInnerTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointInnerTests.java
index 98ee24c287d03..ef5b2f8a1f197 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointInnerTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointInnerTests.java
@@ -15,31 +15,31 @@ public final class PreconfiguredEndpointInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PreconfiguredEndpointInner model = BinaryData.fromString(
- "{\"properties\":{\"description\":\"zuxylfsbtkadpyso\",\"endpoint\":\"btgkbugrjqctoj\",\"endpointType\":\"ATM\",\"backend\":\"of\"},\"location\":\"eypefojyqd\",\"tags\":{\"ihlhzdsqtzb\":\"plcplcwkhi\"},\"id\":\"rgnowcjhfgm\",\"name\":\"ecactx\",\"type\":\"wotey\"}")
+ "{\"properties\":{\"description\":\"zrcxfailcfxwmdbo\",\"endpoint\":\"fgsftufqob\",\"endpointType\":\"AzureRegion\",\"backend\":\"acgcckknhx\"},\"location\":\"izvy\",\"tags\":{\"aaeranokqgukk\":\"zvulj\",\"oylaxxul\":\"qnvb\"},\"id\":\"disdosfjbjsvgj\",\"name\":\"whryvycytdcl\",\"type\":\"gc\"}")
.toObject(PreconfiguredEndpointInner.class);
- Assertions.assertEquals("eypefojyqd", model.location());
- Assertions.assertEquals("plcplcwkhi", model.tags().get("ihlhzdsqtzb"));
- Assertions.assertEquals("zuxylfsbtkadpyso", model.description());
- Assertions.assertEquals("btgkbugrjqctoj", model.endpoint());
- Assertions.assertEquals(EndpointType.ATM, model.endpointType());
- Assertions.assertEquals("of", model.backend());
+ Assertions.assertEquals("izvy", model.location());
+ Assertions.assertEquals("zvulj", model.tags().get("aaeranokqgukk"));
+ Assertions.assertEquals("zrcxfailcfxwmdbo", model.description());
+ Assertions.assertEquals("fgsftufqob", model.endpoint());
+ Assertions.assertEquals(EndpointType.AZURE_REGION, model.endpointType());
+ Assertions.assertEquals("acgcckknhx", model.backend());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- PreconfiguredEndpointInner model = new PreconfiguredEndpointInner().withLocation("eypefojyqd")
- .withTags(mapOf("ihlhzdsqtzb", "plcplcwkhi"))
- .withDescription("zuxylfsbtkadpyso")
- .withEndpoint("btgkbugrjqctoj")
- .withEndpointType(EndpointType.ATM)
- .withBackend("of");
+ PreconfiguredEndpointInner model = new PreconfiguredEndpointInner().withLocation("izvy")
+ .withTags(mapOf("aaeranokqgukk", "zvulj", "oylaxxul", "qnvb"))
+ .withDescription("zrcxfailcfxwmdbo")
+ .withEndpoint("fgsftufqob")
+ .withEndpointType(EndpointType.AZURE_REGION)
+ .withBackend("acgcckknhx");
model = BinaryData.fromObject(model).toObject(PreconfiguredEndpointInner.class);
- Assertions.assertEquals("eypefojyqd", model.location());
- Assertions.assertEquals("plcplcwkhi", model.tags().get("ihlhzdsqtzb"));
- Assertions.assertEquals("zuxylfsbtkadpyso", model.description());
- Assertions.assertEquals("btgkbugrjqctoj", model.endpoint());
- Assertions.assertEquals(EndpointType.ATM, model.endpointType());
- Assertions.assertEquals("of", model.backend());
+ Assertions.assertEquals("izvy", model.location());
+ Assertions.assertEquals("zvulj", model.tags().get("aaeranokqgukk"));
+ Assertions.assertEquals("zrcxfailcfxwmdbo", model.description());
+ Assertions.assertEquals("fgsftufqob", model.endpoint());
+ Assertions.assertEquals(EndpointType.AZURE_REGION, model.endpointType());
+ Assertions.assertEquals("acgcckknhx", model.backend());
}
// Use "Map.of" if available
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointListTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointListTests.java
index 898d42e01493d..45fa4935a8e90 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointListTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointListTests.java
@@ -12,15 +12,15 @@ public final class PreconfiguredEndpointListTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PreconfiguredEndpointList model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"description\":\"zudhcxg\",\"endpoint\":\"oyxcdyuib\",\"endpointType\":\"AFD\",\"backend\":\"nbzydvfvfcj\"},\"location\":\"aeoisrvh\",\"tags\":{\"fukiscvwmzhw\":\"r\",\"nzeyqxtjj\":\"lefaxvxilcbtgn\",\"vodggxdbee\":\"zqlqhyc\"},\"id\":\"mieknlraria\",\"name\":\"wiuagydwqf\",\"type\":\"ylyrfgiagtco\"}],\"nextLink\":\"cqwogfnzjvusfzl\"}")
+ "{\"value\":[{\"properties\":{\"description\":\"zhzbezkgimsi\",\"endpoint\":\"asi\",\"endpointType\":\"ATM\",\"backend\":\"vvjskgfmocwahp\"},\"location\":\"gat\",\"tags\":{\"zybbj\":\"ahhvjhhna\"},\"id\":\"idjks\",\"name\":\"xkyxvxevblbj\",\"type\":\"dnlj\"},{\"properties\":{\"description\":\"euaulxu\",\"endpoint\":\"mjbnk\",\"endpointType\":\"AzureRegion\",\"backend\":\"nenlsvxeizzg\"},\"location\":\"klnsrmffey\",\"tags\":{\"ymerteeammxq\":\"ktp\"},\"id\":\"ekkkzd\",\"name\":\"rtkgdojbmxvavref\",\"type\":\"eesvecu\"},{\"properties\":{\"description\":\"xtxsuwprtujw\",\"endpoint\":\"wddji\",\"endpointType\":\"AFD\",\"backend\":\"vit\"},\"location\":\"tvtzeexavoxtfg\",\"tags\":{\"pypqtgsfj\":\"dmdqb\"},\"id\":\"cbslhhx\",\"name\":\"db\",\"type\":\"vodhtn\"}],\"nextLink\":\"rudhzmmesckdl\"}")
.toObject(PreconfiguredEndpointList.class);
- Assertions.assertEquals("cqwogfnzjvusfzl", model.nextLink());
+ Assertions.assertEquals("rudhzmmesckdl", model.nextLink());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- PreconfiguredEndpointList model = new PreconfiguredEndpointList().withNextLink("cqwogfnzjvusfzl");
+ PreconfiguredEndpointList model = new PreconfiguredEndpointList().withNextLink("rudhzmmesckdl");
model = BinaryData.fromObject(model).toObject(PreconfiguredEndpointList.class);
- Assertions.assertEquals("cqwogfnzjvusfzl", model.nextLink());
+ Assertions.assertEquals("rudhzmmesckdl", model.nextLink());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointPropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointPropertiesTests.java
index 639b417e4fece..97f17ccf68bf8 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointPropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointPropertiesTests.java
@@ -13,24 +13,24 @@ public final class PreconfiguredEndpointPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PreconfiguredEndpointProperties model = BinaryData.fromString(
- "{\"description\":\"cluqovekqvgqo\",\"endpoint\":\"ifzmpjwyivqi\",\"endpointType\":\"AzureRegion\",\"backend\":\"vhrfsphuagrt\"}")
+ "{\"description\":\"nfnw\",\"endpoint\":\"tmvpdvjdhtt\",\"endpointType\":\"ATM\",\"backend\":\"edxihchrphkmcrj\"}")
.toObject(PreconfiguredEndpointProperties.class);
- Assertions.assertEquals("cluqovekqvgqo", model.description());
- Assertions.assertEquals("ifzmpjwyivqi", model.endpoint());
- Assertions.assertEquals(EndpointType.AZURE_REGION, model.endpointType());
- Assertions.assertEquals("vhrfsphuagrt", model.backend());
+ Assertions.assertEquals("nfnw", model.description());
+ Assertions.assertEquals("tmvpdvjdhtt", model.endpoint());
+ Assertions.assertEquals(EndpointType.ATM, model.endpointType());
+ Assertions.assertEquals("edxihchrphkmcrj", model.backend());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- PreconfiguredEndpointProperties model = new PreconfiguredEndpointProperties().withDescription("cluqovekqvgqo")
- .withEndpoint("ifzmpjwyivqi")
- .withEndpointType(EndpointType.AZURE_REGION)
- .withBackend("vhrfsphuagrt");
+ PreconfiguredEndpointProperties model = new PreconfiguredEndpointProperties().withDescription("nfnw")
+ .withEndpoint("tmvpdvjdhtt")
+ .withEndpointType(EndpointType.ATM)
+ .withBackend("edxihchrphkmcrj");
model = BinaryData.fromObject(model).toObject(PreconfiguredEndpointProperties.class);
- Assertions.assertEquals("cluqovekqvgqo", model.description());
- Assertions.assertEquals("ifzmpjwyivqi", model.endpoint());
- Assertions.assertEquals(EndpointType.AZURE_REGION, model.endpointType());
- Assertions.assertEquals("vhrfsphuagrt", model.backend());
+ Assertions.assertEquals("nfnw", model.description());
+ Assertions.assertEquals("tmvpdvjdhtt", model.endpoint());
+ Assertions.assertEquals(EndpointType.ATM, model.endpointType());
+ Assertions.assertEquals("edxihchrphkmcrj", model.backend());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointsListMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointsListMockTests.java
index af757d9aba448..7cfe85ecaa5d7 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointsListMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PreconfiguredEndpointsListMockTests.java
@@ -23,7 +23,7 @@ public final class PreconfiguredEndpointsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"description\":\"qsg\",\"endpoint\":\"yuuzivens\",\"endpointType\":\"CDN\",\"backend\":\"yyvpkpatlb\"},\"location\":\"jp\",\"tags\":{\"fvolmknbnxwcd\":\"ksrf\",\"awz\":\"mmpvf\",\"uiaclkiexhajlfn\":\"gbrt\",\"b\":\"hiqfyuttdiy\"},\"id\":\"vnwsw\",\"name\":\"txkyctwwgzwxjlm\",\"type\":\"cvogygzyvne\"}]}";
+ = "{\"value\":[{\"properties\":{\"description\":\"lykwphvxz\",\"endpoint\":\"xhmpejtlkex\",\"endpointType\":\"CDN\",\"backend\":\"ivkcqh\"},\"location\":\"xhxknlc\",\"tags\":{\"qjfkakfqfrkemyi\":\"mkyupijub\",\"dxphlk\":\"dudxjascowvfdjk\"},\"id\":\"snmgzvyfi\",\"name\":\"dkz\",\"type\":\"qnwsithuqolyah\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,14 +32,14 @@ public void testList() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- PagedIterable response = manager.preconfiguredEndpoints()
- .list("mlghktuidvrmazlp", "wwexymzvlazipbh", com.azure.core.util.Context.NONE);
+ PagedIterable response
+ = manager.preconfiguredEndpoints().list("noakiz", "oaiknaqlnuwig", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("jp", response.iterator().next().location());
- Assertions.assertEquals("ksrf", response.iterator().next().tags().get("fvolmknbnxwcd"));
- Assertions.assertEquals("qsg", response.iterator().next().description());
- Assertions.assertEquals("yuuzivens", response.iterator().next().endpoint());
+ Assertions.assertEquals("xhxknlc", response.iterator().next().location());
+ Assertions.assertEquals("mkyupijub", response.iterator().next().tags().get("qjfkakfqfrkemyi"));
+ Assertions.assertEquals("lykwphvxz", response.iterator().next().description());
+ Assertions.assertEquals("xhmpejtlkex", response.iterator().next().endpoint());
Assertions.assertEquals(EndpointType.CDN, response.iterator().next().endpointType());
- Assertions.assertEquals("yyvpkpatlb", response.iterator().next().backend());
+ Assertions.assertEquals("ivkcqh", response.iterator().next().backend());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileInnerTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileInnerTests.java
index 974e749fff061..9059c21f7015b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileInnerTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileInnerTests.java
@@ -15,24 +15,24 @@ public final class ProfileInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ProfileInner model = BinaryData.fromString(
- "{\"properties\":{\"resourceState\":\"Enabled\",\"enabledState\":\"Disabled\"},\"etag\":\"ttijfybvpoekrs\",\"location\":\"sgbdhuz\",\"tags\":{\"gkynscliqh\":\"j\",\"mtk\":\"vhxnk\",\"ppnvdxz\":\"bo\"},\"id\":\"hihfrbbcevqagtlt\",\"name\":\"hlfkqojpy\",\"type\":\"vgtrdcnifmzzs\"}")
+ "{\"properties\":{\"resourceState\":\"Disabled\",\"enabledState\":\"Disabled\"},\"etag\":\"fwqzdz\",\"location\":\"tilaxh\",\"tags\":{\"wivkxo\":\"qlyvijo\",\"ti\":\"zunbixx\"},\"id\":\"vcpwpgclrc\",\"name\":\"vtsoxf\",\"type\":\"kenx\"}")
.toObject(ProfileInner.class);
- Assertions.assertEquals("sgbdhuz", model.location());
- Assertions.assertEquals("j", model.tags().get("gkynscliqh"));
- Assertions.assertEquals("ttijfybvpoekrs", model.etag());
+ Assertions.assertEquals("tilaxh", model.location());
+ Assertions.assertEquals("qlyvijo", model.tags().get("wivkxo"));
+ Assertions.assertEquals("fwqzdz", model.etag());
Assertions.assertEquals(State.DISABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ProfileInner model = new ProfileInner().withLocation("sgbdhuz")
- .withTags(mapOf("gkynscliqh", "j", "mtk", "vhxnk", "ppnvdxz", "bo"))
- .withEtag("ttijfybvpoekrs")
+ ProfileInner model = new ProfileInner().withLocation("tilaxh")
+ .withTags(mapOf("wivkxo", "qlyvijo", "ti", "zunbixx"))
+ .withEtag("fwqzdz")
.withEnabledState(State.DISABLED);
model = BinaryData.fromObject(model).toObject(ProfileInner.class);
- Assertions.assertEquals("sgbdhuz", model.location());
- Assertions.assertEquals("j", model.tags().get("gkynscliqh"));
- Assertions.assertEquals("ttijfybvpoekrs", model.etag());
+ Assertions.assertEquals("tilaxh", model.location());
+ Assertions.assertEquals("qlyvijo", model.tags().get("wivkxo"));
+ Assertions.assertEquals("fwqzdz", model.etag());
Assertions.assertEquals(State.DISABLED, model.enabledState());
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileListTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileListTests.java
index 8404872b3e8bd..8f3bb7bae3823 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileListTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileListTests.java
@@ -12,15 +12,15 @@ public final class ProfileListTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ProfileList model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"resourceState\":\"Disabled\",\"enabledState\":\"Enabled\"},\"etag\":\"fvaawzqa\",\"location\":\"f\",\"tags\":{\"glae\":\"ur\"},\"id\":\"xndticokpvzmlqtm\",\"name\":\"dgxobfircl\",\"type\":\"pkc\"},{\"properties\":{\"resourceState\":\"Creating\",\"enabledState\":\"Enabled\"},\"etag\":\"khyawfvjlboxqv\",\"location\":\"jlmxhomdynhd\",\"tags\":{\"ysdzhez\":\"gumbnraauzzptja\"},\"id\":\"wva\",\"name\":\"qyuvvfonkp\",\"type\":\"hqyikvy\"}],\"nextLink\":\"uyav\"}")
+ "{\"value\":[{\"properties\":{\"resourceState\":\"Enabled\",\"enabledState\":\"Disabled\"},\"etag\":\"vyi\",\"location\":\"zqodfvpgshox\",\"tags\":{\"xvzflbqv\":\"bpfgzdj\",\"vetnwsdtutn\":\"aqvlgafcqusr\"},\"id\":\"lduycv\",\"name\":\"zhyrmewipmve\",\"type\":\"dxukuqgsjjxundxg\"},{\"properties\":{\"resourceState\":\"Enabling\",\"enabledState\":\"Enabled\"},\"etag\":\"zjhfjmhvv\",\"location\":\"uvgp\",\"tags\":{\"mhfbuzjy\":\"eqsx\",\"ypoh\":\"hsasbhu\"},\"id\":\"uemsly\",\"name\":\"sqy\",\"type\":\"pfoobr\"}],\"nextLink\":\"tyms\"}")
.toObject(ProfileList.class);
- Assertions.assertEquals("uyav", model.nextLink());
+ Assertions.assertEquals("tyms", model.nextLink());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ProfileList model = new ProfileList().withNextLink("uyav");
+ ProfileList model = new ProfileList().withNextLink("tyms");
model = BinaryData.fromObject(model).toObject(ProfileList.class);
- Assertions.assertEquals("uyav", model.nextLink());
+ Assertions.assertEquals("tyms", model.nextLink());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfilePropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfilePropertiesTests.java
index 034e1f802c077..74ad6cce81a2a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfilePropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfilePropertiesTests.java
@@ -12,7 +12,7 @@
public final class ProfilePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- ProfileProperties model = BinaryData.fromString("{\"resourceState\":\"Creating\",\"enabledState\":\"Enabled\"}")
+ ProfileProperties model = BinaryData.fromString("{\"resourceState\":\"Enabled\",\"enabledState\":\"Enabled\"}")
.toObject(ProfileProperties.class);
Assertions.assertEquals(State.ENABLED, model.enabledState());
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileUpdateModelTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileUpdateModelTests.java
index 223d2aba5373a..d78ca1202217f 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileUpdateModelTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileUpdateModelTests.java
@@ -15,19 +15,21 @@ public final class ProfileUpdateModelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ProfileUpdateModel model = BinaryData.fromString(
- "{\"properties\":{\"enabledState\":\"Enabled\"},\"tags\":{\"rafwgckhocxvdf\":\"m\",\"pavehhr\":\"fwafqrouda\"}}")
+ "{\"properties\":{\"enabledState\":\"Enabled\"},\"tags\":{\"pqfrtqlkz\":\"dnqqskawaoqvmmb\",\"kxlzyqdrfeg\":\"egnitg\",\"lwigdivbkbx\":\"ealzxwhcansymoyq\",\"wasqvdaeyyg\":\"omfaj\"}}")
.toObject(ProfileUpdateModel.class);
- Assertions.assertEquals("m", model.tags().get("rafwgckhocxvdf"));
+ Assertions.assertEquals("dnqqskawaoqvmmb", model.tags().get("pqfrtqlkz"));
Assertions.assertEquals(State.ENABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
ProfileUpdateModel model
- = new ProfileUpdateModel().withTags(mapOf("rafwgckhocxvdf", "m", "pavehhr", "fwafqrouda"))
+ = new ProfileUpdateModel()
+ .withTags(mapOf("pqfrtqlkz", "dnqqskawaoqvmmb", "kxlzyqdrfeg", "egnitg", "lwigdivbkbx",
+ "ealzxwhcansymoyq", "wasqvdaeyyg", "omfaj"))
.withEnabledState(State.ENABLED);
model = BinaryData.fromObject(model).toObject(ProfileUpdateModel.class);
- Assertions.assertEquals("m", model.tags().get("rafwgckhocxvdf"));
+ Assertions.assertEquals("dnqqskawaoqvmmb", model.tags().get("pqfrtqlkz"));
Assertions.assertEquals(State.ENABLED, model.enabledState());
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileUpdatePropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileUpdatePropertiesTests.java
index 5a74808552216..f6037a858426d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileUpdatePropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ProfileUpdatePropertiesTests.java
@@ -13,14 +13,14 @@ public final class ProfileUpdatePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ProfileUpdateProperties model
- = BinaryData.fromString("{\"enabledState\":\"Disabled\"}").toObject(ProfileUpdateProperties.class);
- Assertions.assertEquals(State.DISABLED, model.enabledState());
+ = BinaryData.fromString("{\"enabledState\":\"Enabled\"}").toObject(ProfileUpdateProperties.class);
+ Assertions.assertEquals(State.ENABLED, model.enabledState());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ProfileUpdateProperties model = new ProfileUpdateProperties().withEnabledState(State.DISABLED);
+ ProfileUpdateProperties model = new ProfileUpdateProperties().withEnabledState(State.ENABLED);
model = BinaryData.fromObject(model).toObject(ProfileUpdateProperties.class);
- Assertions.assertEquals(State.DISABLED, model.enabledState());
+ Assertions.assertEquals(State.ENABLED, model.enabledState());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PurgeParametersTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PurgeParametersTests.java
index 6814a3fa0ad8a..70cfcf1bfcea0 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PurgeParametersTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/PurgeParametersTests.java
@@ -12,16 +12,15 @@
public final class PurgeParametersTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- PurgeParameters model = BinaryData.fromString("{\"contentPaths\":[\"acegfnmntf\",\"mvmemfnczd\",\"vvbalx\"]}")
- .toObject(PurgeParameters.class);
- Assertions.assertEquals("acegfnmntf", model.contentPaths().get(0));
+ PurgeParameters model
+ = BinaryData.fromString("{\"contentPaths\":[\"hwwn\",\"jhlfzswpchwahf\"]}").toObject(PurgeParameters.class);
+ Assertions.assertEquals("hwwn", model.contentPaths().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- PurgeParameters model
- = new PurgeParameters().withContentPaths(Arrays.asList("acegfnmntf", "mvmemfnczd", "vvbalx"));
+ PurgeParameters model = new PurgeParameters().withContentPaths(Arrays.asList("hwwn", "jhlfzswpchwahf"));
model = BinaryData.fromObject(model).toObject(PurgeParameters.class);
- Assertions.assertEquals("acegfnmntf", model.contentPaths().get(0));
+ Assertions.assertEquals("hwwn", model.contentPaths().get(0));
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RedirectConfigurationTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RedirectConfigurationTests.java
index 31fd4e13c8c4f..65f6737aa52d6 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RedirectConfigurationTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RedirectConfigurationTests.java
@@ -14,31 +14,31 @@ public final class RedirectConfigurationTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RedirectConfiguration model = BinaryData.fromString(
- "{\"@odata.type\":\"cqpbtuo\",\"redirectType\":\"PermanentRedirect\",\"redirectProtocol\":\"HttpsOnly\",\"customHost\":\"zzhmkd\",\"customPath\":\"vflyhbxcu\",\"customFragment\":\"hxgsrboldfor\",\"customQueryString\":\"wjlvizbfhfov\"}")
+ "{\"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration\",\"redirectType\":\"PermanentRedirect\",\"redirectProtocol\":\"MatchRequest\",\"customHost\":\"hsln\",\"customPath\":\"xieixynllxec\",\"customFragment\":\"rojphslhcawjutif\",\"customQueryString\":\"fmvigorqjbttzh\"}")
.toObject(RedirectConfiguration.class);
Assertions.assertEquals(FrontDoorRedirectType.PERMANENT_REDIRECT, model.redirectType());
- Assertions.assertEquals(FrontDoorRedirectProtocol.HTTPS_ONLY, model.redirectProtocol());
- Assertions.assertEquals("zzhmkd", model.customHost());
- Assertions.assertEquals("vflyhbxcu", model.customPath());
- Assertions.assertEquals("hxgsrboldfor", model.customFragment());
- Assertions.assertEquals("wjlvizbfhfov", model.customQueryString());
+ Assertions.assertEquals(FrontDoorRedirectProtocol.MATCH_REQUEST, model.redirectProtocol());
+ Assertions.assertEquals("hsln", model.customHost());
+ Assertions.assertEquals("xieixynllxec", model.customPath());
+ Assertions.assertEquals("rojphslhcawjutif", model.customFragment());
+ Assertions.assertEquals("fmvigorqjbttzh", model.customQueryString());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RedirectConfiguration model
= new RedirectConfiguration().withRedirectType(FrontDoorRedirectType.PERMANENT_REDIRECT)
- .withRedirectProtocol(FrontDoorRedirectProtocol.HTTPS_ONLY)
- .withCustomHost("zzhmkd")
- .withCustomPath("vflyhbxcu")
- .withCustomFragment("hxgsrboldfor")
- .withCustomQueryString("wjlvizbfhfov");
+ .withRedirectProtocol(FrontDoorRedirectProtocol.MATCH_REQUEST)
+ .withCustomHost("hsln")
+ .withCustomPath("xieixynllxec")
+ .withCustomFragment("rojphslhcawjutif")
+ .withCustomQueryString("fmvigorqjbttzh");
model = BinaryData.fromObject(model).toObject(RedirectConfiguration.class);
Assertions.assertEquals(FrontDoorRedirectType.PERMANENT_REDIRECT, model.redirectType());
- Assertions.assertEquals(FrontDoorRedirectProtocol.HTTPS_ONLY, model.redirectProtocol());
- Assertions.assertEquals("zzhmkd", model.customHost());
- Assertions.assertEquals("vflyhbxcu", model.customPath());
- Assertions.assertEquals("hxgsrboldfor", model.customFragment());
- Assertions.assertEquals("wjlvizbfhfov", model.customQueryString());
+ Assertions.assertEquals(FrontDoorRedirectProtocol.MATCH_REQUEST, model.redirectProtocol());
+ Assertions.assertEquals("hsln", model.customHost());
+ Assertions.assertEquals("xieixynllxec", model.customPath());
+ Assertions.assertEquals("rojphslhcawjutif", model.customFragment());
+ Assertions.assertEquals("fmvigorqjbttzh", model.customQueryString());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetLatencyScorecardsWithResponseMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetLatencyScorecardsWithResponseMockTests.java
index 29fbb27a6e39e..4c852d82bcf38 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetLatencyScorecardsWithResponseMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetLatencyScorecardsWithResponseMockTests.java
@@ -22,7 +22,7 @@ public final class ReportsGetLatencyScorecardsWithResponseMockTests {
@Test
public void testGetLatencyScorecardsWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"id\":\"infsz\",\"name\":\"glqdhm\",\"description\":\"zralcxpjbyyps\",\"endpointA\":\"qcjenkyhf\",\"endpointB\":\"vsqxfxjelgcmpzqj\",\"startDateTimeUTC\":\"2021-11-04T06:03:59Z\",\"endDateTimeUTC\":\"2021-02-22T05:17:56Z\",\"country\":\"w\",\"latencyMetrics\":[{\"name\":\"co\",\"endDateTimeUTC\":\"i\",\"aValue\":5.781335,\"bValue\":37.078613,\"delta\":22.760654,\"deltaPercent\":40.390663,\"aCLower95CI\":45.28454,\"aHUpper95CI\":50.03874,\"bCLower95CI\":92.06426,\"bUpper95CI\":97.761154},{\"name\":\"ijiufehgmvfln\",\"endDateTimeUTC\":\"v\",\"aValue\":78.07501,\"bValue\":71.5515,\"delta\":68.94412,\"deltaPercent\":49.01049,\"aCLower95CI\":77.75446,\"aHUpper95CI\":52.201344,\"bCLower95CI\":43.301346,\"bUpper95CI\":95.77263},{\"name\":\"utgqztwh\",\"endDateTimeUTC\":\"mupgxy\",\"aValue\":20.35476,\"bValue\":24.07775,\"delta\":8.802265,\"deltaPercent\":4.5686665,\"aCLower95CI\":74.17705,\"aHUpper95CI\":18.091225,\"bCLower95CI\":95.478,\"bUpper95CI\":67.505226}]},\"location\":\"bklqpxz\",\"tags\":{\"wxudgn\":\"feddwwnlza\",\"gpbemeluclvdjju\":\"gookrtalvnb\",\"ahhxhqfaqnvzoqg\":\"yrdnqod\"},\"id\":\"ipemchgavscz\",\"name\":\"ejdtxptl\",\"type\":\"h\"}";
+ = "{\"properties\":{\"id\":\"shtuwgm\",\"name\":\"uafpwzyifrk\",\"description\":\"ltxeqip\",\"endpointA\":\"zdyi\",\"endpointB\":\"fayorpravkjoges\",\"startDateTimeUTC\":\"2021-02-22T21:03:14Z\",\"endDateTimeUTC\":\"2021-11-12T14:16:13Z\",\"country\":\"jkwynqxaekqsykv\",\"latencyMetrics\":[{\"name\":\"pkevmylt\",\"endDateTimeUTC\":\"rspxklur\",\"aValue\":14.385528,\"bValue\":95.610214,\"delta\":84.517,\"deltaPercent\":3.5500765,\"aCLower95CI\":46.879883,\"aHUpper95CI\":5.04877,\"bCLower95CI\":30.904234,\"bUpper95CI\":72.015144},{\"name\":\"wxigpxv\",\"endDateTimeUTC\":\"maupxvpi\",\"aValue\":2.3832917,\"bValue\":12.627816,\"delta\":46.58986,\"deltaPercent\":61.054115,\"aCLower95CI\":38.121216,\"aHUpper95CI\":31.361979,\"bCLower95CI\":35.442387,\"bUpper95CI\":28.172707}]},\"location\":\"ds\",\"tags\":{\"gvdihoynkrxwetwk\":\"ytoithgygvfl\",\"dqumoenodnai\":\"rcyrucpcunnu\"},\"id\":\"nhq\",\"name\":\"skndnelqkaadlknw\",\"type\":\"oanniyopetxi\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,11 +32,11 @@ public void testGetLatencyScorecardsWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
LatencyScorecard response = manager.reports()
- .getLatencyScorecardsWithResponse("pyc", "hcoeocnhzq", "ot", LatencyScorecardAggregationInterval.DAILY,
- "zcfyjzptwrl", "h", com.azure.core.util.Context.NONE)
+ .getLatencyScorecardsWithResponse("udqll", "sauzpjlx", "ehuxiqhzlraym",
+ LatencyScorecardAggregationInterval.DAILY, "xls", "ihmxrfdsajredn", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("bklqpxz", response.location());
- Assertions.assertEquals("feddwwnlza", response.tags().get("wxudgn"));
+ Assertions.assertEquals("ds", response.location());
+ Assertions.assertEquals("ytoithgygvfl", response.tags().get("gvdihoynkrxwetwk"));
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetTimeseriesWithResponseMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetTimeseriesWithResponseMockTests.java
index 0198d2cb43f69..6f7fb7be21429 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetTimeseriesWithResponseMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ReportsGetTimeseriesWithResponseMockTests.java
@@ -24,7 +24,7 @@ public final class ReportsGetTimeseriesWithResponseMockTests {
@Test
public void testGetTimeseriesWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"endpoint\":\"c\",\"startDateTimeUTC\":\"ulehurqlr\",\"endDateTimeUTC\":\"fawey\",\"aggregationInterval\":\"Daily\",\"timeseriesType\":\"MeasurementCounts\",\"country\":\"jdxravjuqdbrx\",\"timeseriesData\":[{\"dateTimeUTC\":\"hbapxkiyf\",\"value\":36.266453},{\"dateTimeUTC\":\"ajb\",\"value\":46.209423},{\"dateTimeUTC\":\"duusioycblevpmcl\",\"value\":38.790684}]},\"location\":\"xkyxlzgs\",\"tags\":{\"fhbzffovwmbjlzq\":\"zzlt\",\"owftptnuwjtks\":\"czpgvdwnapfdq\",\"cgqyhleseyq\":\"h\"},\"id\":\"hvyeldotj\",\"name\":\"dkwisw\",\"type\":\"kukjtasb\"}";
+ = "{\"properties\":{\"endpoint\":\"scxmxeat\",\"startDateTimeUTC\":\"bmwnrdjyibqb\",\"endDateTimeUTC\":\"omhjrmkuhm\",\"aggregationInterval\":\"Daily\",\"timeseriesType\":\"LatencyP95\",\"country\":\"f\",\"timeseriesData\":[{\"dateTimeUTC\":\"mobcan\",\"value\":42.258137},{\"dateTimeUTC\":\"xqcwgax\",\"value\":60.46738},{\"dateTimeUTC\":\"knokzw\",\"value\":69.476006}]},\"location\":\"r\",\"tags\":{\"mmpuj\":\"xldzyyfytpqsix\",\"ovwzdbpqvybefg\":\"vyqlkjuvsmbmslzo\",\"okcvtlubses\":\"mx\"},\"id\":\"vcuartrhun\",\"name\":\"pirykycndzfqiv\",\"type\":\"reuykbbmnwagl\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -34,21 +34,21 @@ public void testGetTimeseriesWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
Timeseries response = manager.reports()
- .getTimeseriesWithResponse("zhomewjjstliu", "qawmoaianc", "nvodrrs",
- OffsetDateTime.parse("2021-05-12T12:02:35Z"), OffsetDateTime.parse("2021-04-13T01:02:19Z"),
- TimeseriesAggregationInterval.HOURLY, TimeseriesType.LATENCY_P50, "dkxrxvvbxi", "kgfbqljnqkhy",
+ .getTimeseriesWithResponse("cnrly", "nucaephblkwqpat", "bqsdtcjbctvi",
+ OffsetDateTime.parse("2021-04-14T10:23:41Z"), OffsetDateTime.parse("2021-03-17T20:41:42Z"),
+ TimeseriesAggregationInterval.DAILY, TimeseriesType.MEASUREMENT_COUNTS, "mtuowogtgitsqhzv", "rzcdbanf",
com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("xkyxlzgs", response.location());
- Assertions.assertEquals("zzlt", response.tags().get("fhbzffovwmbjlzq"));
- Assertions.assertEquals("c", response.endpoint());
- Assertions.assertEquals("ulehurqlr", response.startDateTimeUtc());
- Assertions.assertEquals("fawey", response.endDateTimeUtc());
+ Assertions.assertEquals("r", response.location());
+ Assertions.assertEquals("xldzyyfytpqsix", response.tags().get("mmpuj"));
+ Assertions.assertEquals("scxmxeat", response.endpoint());
+ Assertions.assertEquals("bmwnrdjyibqb", response.startDateTimeUtc());
+ Assertions.assertEquals("omhjrmkuhm", response.endDateTimeUtc());
Assertions.assertEquals(AggregationInterval.DAILY, response.aggregationInterval());
- Assertions.assertEquals(TimeseriesType.MEASUREMENT_COUNTS, response.timeseriesType());
- Assertions.assertEquals("jdxravjuqdbrx", response.country());
- Assertions.assertEquals("hbapxkiyf", response.timeseriesData().get(0).dateTimeUtc());
- Assertions.assertEquals(36.266453F, response.timeseriesData().get(0).value());
+ Assertions.assertEquals(TimeseriesType.LATENCY_P95, response.timeseriesType());
+ Assertions.assertEquals("f", response.country());
+ Assertions.assertEquals("mobcan", response.timeseriesData().get(0).dateTimeUtc());
+ Assertions.assertEquals(42.258137F, response.timeseriesData().get(0).value());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RouteConfigurationTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RouteConfigurationTests.java
index 20f83cf2fa4b0..9beeeb4af866e 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RouteConfigurationTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RouteConfigurationTests.java
@@ -11,7 +11,7 @@ public final class RouteConfigurationTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RouteConfiguration model
- = BinaryData.fromString("{\"@odata.type\":\"jorwkqnyhgbij\"}").toObject(RouteConfiguration.class);
+ = BinaryData.fromString("{\"@odata.type\":\"RouteConfiguration\"}").toObject(RouteConfiguration.class);
}
@org.junit.jupiter.api.Test
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRulePropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRulePropertiesTests.java
index eca01e922a3b9..49f3c890446e7 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRulePropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRulePropertiesTests.java
@@ -18,33 +18,34 @@ public final class RoutingRulePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RoutingRuleProperties model = BinaryData.fromString(
- "{\"resourceState\":\"Creating\",\"frontendEndpoints\":[{\"id\":\"rymsgaojfmw\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"hirctymoxoftpipi\"],\"enabledState\":\"Disabled\",\"routeConfiguration\":{\"@odata.type\":\"hxacpqjlihhyu\"},\"rulesEngine\":{\"id\":\"kasdvlm\"},\"webApplicationFirewallPolicyLink\":{\"id\":\"gz\"}}")
+ "{\"resourceState\":\"Enabling\",\"frontendEndpoints\":[{\"id\":\"db\"},{\"id\":\"vwrdnhfukuvsj\"},{\"id\":\"wsmystuluqypf\"}],\"acceptedProtocols\":[\"Http\",\"Https\"],\"patternsToMatch\":[\"pqbmfpjbab\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{\"id\":\"sspuunnoxyhkx\"},\"webApplicationFirewallPolicyLink\":{\"id\":\"drihpfhoqcaaewda\"}}")
.toObject(RoutingRuleProperties.class);
- Assertions.assertEquals("rymsgaojfmw", model.frontendEndpoints().get(0).id());
+ Assertions.assertEquals("db", model.frontendEndpoints().get(0).id());
Assertions.assertEquals(FrontDoorProtocol.HTTP, model.acceptedProtocols().get(0));
- Assertions.assertEquals("hirctymoxoftpipi", model.patternsToMatch().get(0));
- Assertions.assertEquals(RoutingRuleEnabledState.DISABLED, model.enabledState());
- Assertions.assertEquals("kasdvlm", model.rulesEngine().id());
- Assertions.assertEquals("gz", model.webApplicationFirewallPolicyLink().id());
+ Assertions.assertEquals("pqbmfpjbab", model.patternsToMatch().get(0));
+ Assertions.assertEquals(RoutingRuleEnabledState.ENABLED, model.enabledState());
+ Assertions.assertEquals("sspuunnoxyhkx", model.rulesEngine().id());
+ Assertions.assertEquals("drihpfhoqcaaewda", model.webApplicationFirewallPolicyLink().id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- RoutingRuleProperties model
- = new RoutingRuleProperties().withFrontendEndpoints(Arrays.asList(new SubResource().withId("rymsgaojfmw")))
- .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTP, FrontDoorProtocol.HTTPS))
- .withPatternsToMatch(Arrays.asList("hirctymoxoftpipi"))
- .withEnabledState(RoutingRuleEnabledState.DISABLED)
- .withRouteConfiguration(new RouteConfiguration())
- .withRulesEngine(new SubResource().withId("kasdvlm"))
- .withWebApplicationFirewallPolicyLink(
- new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink().withId("gz"));
+ RoutingRuleProperties model = new RoutingRuleProperties()
+ .withFrontendEndpoints(Arrays.asList(new SubResource().withId("db"),
+ new SubResource().withId("vwrdnhfukuvsj"), new SubResource().withId("wsmystuluqypf")))
+ .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTP, FrontDoorProtocol.HTTPS))
+ .withPatternsToMatch(Arrays.asList("pqbmfpjbab"))
+ .withEnabledState(RoutingRuleEnabledState.ENABLED)
+ .withRouteConfiguration(new RouteConfiguration())
+ .withRulesEngine(new SubResource().withId("sspuunnoxyhkx"))
+ .withWebApplicationFirewallPolicyLink(
+ new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink().withId("drihpfhoqcaaewda"));
model = BinaryData.fromObject(model).toObject(RoutingRuleProperties.class);
- Assertions.assertEquals("rymsgaojfmw", model.frontendEndpoints().get(0).id());
+ Assertions.assertEquals("db", model.frontendEndpoints().get(0).id());
Assertions.assertEquals(FrontDoorProtocol.HTTP, model.acceptedProtocols().get(0));
- Assertions.assertEquals("hirctymoxoftpipi", model.patternsToMatch().get(0));
- Assertions.assertEquals(RoutingRuleEnabledState.DISABLED, model.enabledState());
- Assertions.assertEquals("kasdvlm", model.rulesEngine().id());
- Assertions.assertEquals("gz", model.webApplicationFirewallPolicyLink().id());
+ Assertions.assertEquals("pqbmfpjbab", model.patternsToMatch().get(0));
+ Assertions.assertEquals(RoutingRuleEnabledState.ENABLED, model.enabledState());
+ Assertions.assertEquals("sspuunnoxyhkx", model.rulesEngine().id());
+ Assertions.assertEquals("drihpfhoqcaaewda", model.webApplicationFirewallPolicyLink().id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleTests.java
index a17d1ac6513e2..6d5941d032090 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleTests.java
@@ -18,39 +18,39 @@ public final class RoutingRuleTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RoutingRule model = BinaryData.fromString(
- "{\"properties\":{\"resourceState\":\"Deleting\",\"frontendEndpoints\":[{\"id\":\"ilqu\"},{\"id\":\"ydxtqm\"},{\"id\":\"ox\"},{\"id\":\"ggufhyaomtb\"}],\"acceptedProtocols\":[\"Https\",\"Http\"],\"patternsToMatch\":[\"vkffovjzhpjb\"],\"enabledState\":\"Disabled\",\"routeConfiguration\":{\"@odata.type\":\"fxumv\"},\"rulesEngine\":{\"id\":\"uyovw\"},\"webApplicationFirewallPolicyLink\":{\"id\":\"kfezzxscyhwz\"}},\"name\":\"irujbz\",\"type\":\"mvzzbtdcqvp\",\"id\":\"yujviylwdshfssn\"}")
+ "{\"properties\":{\"resourceState\":\"Enabling\",\"frontendEndpoints\":[{\"id\":\"edabgyvudtjue\"}],\"acceptedProtocols\":[\"Http\",\"Https\",\"Http\"],\"patternsToMatch\":[\"whcjyxcc\",\"bvpa\",\"akkud\"],\"enabledState\":\"Disabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{\"id\":\"plmag\"},\"webApplicationFirewallPolicyLink\":{\"id\":\"yohpfkyrkdbdgiog\"}},\"name\":\"kmnwqjnobaiyhddv\",\"type\":\"cegfnmntfp\",\"id\":\"memfnczdwvvbalxl\"}")
.toObject(RoutingRule.class);
- Assertions.assertEquals("yujviylwdshfssn", model.id());
- Assertions.assertEquals("irujbz", model.name());
- Assertions.assertEquals("ilqu", model.frontendEndpoints().get(0).id());
- Assertions.assertEquals(FrontDoorProtocol.HTTPS, model.acceptedProtocols().get(0));
- Assertions.assertEquals("vkffovjzhpjb", model.patternsToMatch().get(0));
+ Assertions.assertEquals("memfnczdwvvbalxl", model.id());
+ Assertions.assertEquals("kmnwqjnobaiyhddv", model.name());
+ Assertions.assertEquals("edabgyvudtjue", model.frontendEndpoints().get(0).id());
+ Assertions.assertEquals(FrontDoorProtocol.HTTP, model.acceptedProtocols().get(0));
+ Assertions.assertEquals("whcjyxcc", model.patternsToMatch().get(0));
Assertions.assertEquals(RoutingRuleEnabledState.DISABLED, model.enabledState());
- Assertions.assertEquals("uyovw", model.rulesEngine().id());
- Assertions.assertEquals("kfezzxscyhwz", model.webApplicationFirewallPolicyLink().id());
+ Assertions.assertEquals("plmag", model.rulesEngine().id());
+ Assertions.assertEquals("yohpfkyrkdbdgiog", model.webApplicationFirewallPolicyLink().id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- RoutingRule model = new RoutingRule().withId("yujviylwdshfssn")
- .withName("irujbz")
- .withFrontendEndpoints(Arrays.asList(new SubResource().withId("ilqu"), new SubResource().withId("ydxtqm"),
- new SubResource().withId("ox"), new SubResource().withId("ggufhyaomtb")))
- .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTPS, FrontDoorProtocol.HTTP))
- .withPatternsToMatch(Arrays.asList("vkffovjzhpjb"))
+ RoutingRule model = new RoutingRule().withId("memfnczdwvvbalxl")
+ .withName("kmnwqjnobaiyhddv")
+ .withFrontendEndpoints(Arrays.asList(new SubResource().withId("edabgyvudtjue")))
+ .withAcceptedProtocols(
+ Arrays.asList(FrontDoorProtocol.HTTP, FrontDoorProtocol.HTTPS, FrontDoorProtocol.HTTP))
+ .withPatternsToMatch(Arrays.asList("whcjyxcc", "bvpa", "akkud"))
.withEnabledState(RoutingRuleEnabledState.DISABLED)
.withRouteConfiguration(new RouteConfiguration())
- .withRulesEngine(new SubResource().withId("uyovw"))
+ .withRulesEngine(new SubResource().withId("plmag"))
.withWebApplicationFirewallPolicyLink(
- new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink().withId("kfezzxscyhwz"));
+ new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink().withId("yohpfkyrkdbdgiog"));
model = BinaryData.fromObject(model).toObject(RoutingRule.class);
- Assertions.assertEquals("yujviylwdshfssn", model.id());
- Assertions.assertEquals("irujbz", model.name());
- Assertions.assertEquals("ilqu", model.frontendEndpoints().get(0).id());
- Assertions.assertEquals(FrontDoorProtocol.HTTPS, model.acceptedProtocols().get(0));
- Assertions.assertEquals("vkffovjzhpjb", model.patternsToMatch().get(0));
+ Assertions.assertEquals("memfnczdwvvbalxl", model.id());
+ Assertions.assertEquals("kmnwqjnobaiyhddv", model.name());
+ Assertions.assertEquals("edabgyvudtjue", model.frontendEndpoints().get(0).id());
+ Assertions.assertEquals(FrontDoorProtocol.HTTP, model.acceptedProtocols().get(0));
+ Assertions.assertEquals("whcjyxcc", model.patternsToMatch().get(0));
Assertions.assertEquals(RoutingRuleEnabledState.DISABLED, model.enabledState());
- Assertions.assertEquals("uyovw", model.rulesEngine().id());
- Assertions.assertEquals("kfezzxscyhwz", model.webApplicationFirewallPolicyLink().id());
+ Assertions.assertEquals("plmag", model.rulesEngine().id());
+ Assertions.assertEquals("yohpfkyrkdbdgiog", model.webApplicationFirewallPolicyLink().id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleUpdateParametersTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleUpdateParametersTests.java
index 51568af63ef77..c5b816e4036d5 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleUpdateParametersTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleUpdateParametersTests.java
@@ -18,34 +18,33 @@ public final class RoutingRuleUpdateParametersTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RoutingRuleUpdateParameters model = BinaryData.fromString(
- "{\"frontendEndpoints\":[{\"id\":\"cvpa\"},{\"id\":\"sreuzvxurisjnh\"}],\"acceptedProtocols\":[\"Https\",\"Http\"],\"patternsToMatch\":[\"jzgxmrhublwp\",\"esutrgjupauutpw\",\"qhih\"],\"enabledState\":\"Enabled\",\"routeConfiguration\":{\"@odata.type\":\"zpnfqntcypsxj\"},\"rulesEngine\":{\"id\":\"imwkslircizj\"},\"webApplicationFirewallPolicyLink\":{\"id\":\"dfcea\"}}")
+ "{\"frontendEndpoints\":[{\"id\":\"vlp\"},{\"id\":\"xkzb\"}],\"acceptedProtocols\":[\"Https\",\"Https\"],\"patternsToMatch\":[\"siykzkdncjdxonbz\",\"ggcula\",\"z\",\"y\"],\"enabledState\":\"Disabled\",\"routeConfiguration\":{\"@odata.type\":\"RouteConfiguration\"},\"rulesEngine\":{\"id\":\"qxepnylbfuaj\"},\"webApplicationFirewallPolicyLink\":{\"id\":\"tlvofq\"}}")
.toObject(RoutingRuleUpdateParameters.class);
- Assertions.assertEquals("cvpa", model.frontendEndpoints().get(0).id());
+ Assertions.assertEquals("vlp", model.frontendEndpoints().get(0).id());
Assertions.assertEquals(FrontDoorProtocol.HTTPS, model.acceptedProtocols().get(0));
- Assertions.assertEquals("jzgxmrhublwp", model.patternsToMatch().get(0));
- Assertions.assertEquals(RoutingRuleEnabledState.ENABLED, model.enabledState());
- Assertions.assertEquals("imwkslircizj", model.rulesEngine().id());
- Assertions.assertEquals("dfcea", model.webApplicationFirewallPolicyLink().id());
+ Assertions.assertEquals("siykzkdncjdxonbz", model.patternsToMatch().get(0));
+ Assertions.assertEquals(RoutingRuleEnabledState.DISABLED, model.enabledState());
+ Assertions.assertEquals("qxepnylbfuaj", model.rulesEngine().id());
+ Assertions.assertEquals("tlvofq", model.webApplicationFirewallPolicyLink().id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RoutingRuleUpdateParameters model = new RoutingRuleUpdateParameters()
- .withFrontendEndpoints(
- Arrays.asList(new SubResource().withId("cvpa"), new SubResource().withId("sreuzvxurisjnh")))
- .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTPS, FrontDoorProtocol.HTTP))
- .withPatternsToMatch(Arrays.asList("jzgxmrhublwp", "esutrgjupauutpw", "qhih"))
- .withEnabledState(RoutingRuleEnabledState.ENABLED)
+ .withFrontendEndpoints(Arrays.asList(new SubResource().withId("vlp"), new SubResource().withId("xkzb")))
+ .withAcceptedProtocols(Arrays.asList(FrontDoorProtocol.HTTPS, FrontDoorProtocol.HTTPS))
+ .withPatternsToMatch(Arrays.asList("siykzkdncjdxonbz", "ggcula", "z", "y"))
+ .withEnabledState(RoutingRuleEnabledState.DISABLED)
.withRouteConfiguration(new RouteConfiguration())
- .withRulesEngine(new SubResource().withId("imwkslircizj"))
+ .withRulesEngine(new SubResource().withId("qxepnylbfuaj"))
.withWebApplicationFirewallPolicyLink(
- new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink().withId("dfcea"));
+ new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink().withId("tlvofq"));
model = BinaryData.fromObject(model).toObject(RoutingRuleUpdateParameters.class);
- Assertions.assertEquals("cvpa", model.frontendEndpoints().get(0).id());
+ Assertions.assertEquals("vlp", model.frontendEndpoints().get(0).id());
Assertions.assertEquals(FrontDoorProtocol.HTTPS, model.acceptedProtocols().get(0));
- Assertions.assertEquals("jzgxmrhublwp", model.patternsToMatch().get(0));
- Assertions.assertEquals(RoutingRuleEnabledState.ENABLED, model.enabledState());
- Assertions.assertEquals("imwkslircizj", model.rulesEngine().id());
- Assertions.assertEquals("dfcea", model.webApplicationFirewallPolicyLink().id());
+ Assertions.assertEquals("siykzkdncjdxonbz", model.patternsToMatch().get(0));
+ Assertions.assertEquals(RoutingRuleEnabledState.DISABLED, model.enabledState());
+ Assertions.assertEquals("qxepnylbfuaj", model.rulesEngine().id());
+ Assertions.assertEquals("tlvofq", model.webApplicationFirewallPolicyLink().id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTests.java
index 927f953b2a517..90a5df6042a28 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTests.java
@@ -12,17 +12,17 @@ public final class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLinkTe
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink model
- = BinaryData.fromString("{\"id\":\"lhvygdyftu\"}")
+ = BinaryData.fromString("{\"id\":\"vfcibyfmowux\"}")
.toObject(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.class);
- Assertions.assertEquals("lhvygdyftu", model.id());
+ Assertions.assertEquals("vfcibyfmowux", model.id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink model
- = new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink().withId("lhvygdyftu");
+ = new RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink().withId("vfcibyfmowux");
model
= BinaryData.fromObject(model).toObject(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink.class);
- Assertions.assertEquals("lhvygdyftu", model.id());
+ Assertions.assertEquals("vfcibyfmowux", model.id());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineActionTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineActionTests.java
index 630a3b995ed6e..d257b6772604a 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineActionTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineActionTests.java
@@ -16,39 +16,36 @@ public final class RulesEngineActionTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RulesEngineAction model = BinaryData.fromString(
- "{\"requestHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"bhshfwpracstwity\",\"value\":\"evxccedcp\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"odn\",\"value\":\"xltjcvnhltiu\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"xnavvwxq\",\"value\":\"y\"},{\"headerActionType\":\"Delete\",\"headerName\":\"nyowxwlmdjrkvfg\",\"value\":\"fvpdbo\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"izsjqlhkrr\"}}")
+ "{\"requestHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"noigbrnjwmwk\",\"value\":\"bsazejjoqka\"},{\"headerActionType\":\"Delete\",\"headerName\":\"hsxttaugzxnf\",\"value\":\"zpxdt\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"kqjjlwuenvrkp\",\"value\":\"uaibrebqaaysj\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}}")
.toObject(RulesEngineAction.class);
Assertions.assertEquals(HeaderActionType.OVERWRITE, model.requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("bhshfwpracstwity", model.requestHeaderActions().get(0).headerName());
- Assertions.assertEquals("evxccedcp", model.requestHeaderActions().get(0).value());
+ Assertions.assertEquals("noigbrnjwmwk", model.requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals("bsazejjoqka", model.requestHeaderActions().get(0).value());
Assertions.assertEquals(HeaderActionType.DELETE, model.responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("odn", model.responseHeaderActions().get(0).headerName());
- Assertions.assertEquals("xltjcvnhltiu", model.responseHeaderActions().get(0).value());
+ Assertions.assertEquals("kqjjlwuenvrkp", model.responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals("uaibrebqaaysj", model.responseHeaderActions().get(0).value());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RulesEngineAction model = new RulesEngineAction()
- .withRequestHeaderActions(Arrays.asList(new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("bhshfwpracstwity")
- .withValue("evxccedcp")))
- .withResponseHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("odn")
- .withValue("xltjcvnhltiu"),
+ .withRequestHeaderActions(Arrays.asList(
new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("xnavvwxq")
- .withValue("y"),
+ .withHeaderName("noigbrnjwmwk")
+ .withValue("bsazejjoqka"),
new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("nyowxwlmdjrkvfg")
- .withValue("fvpdbo")))
+ .withHeaderName("hsxttaugzxnf")
+ .withValue("zpxdt")))
+ .withResponseHeaderActions(Arrays.asList(new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("kqjjlwuenvrkp")
+ .withValue("uaibrebqaaysj")))
.withRouteConfigurationOverride(new RouteConfiguration());
model = BinaryData.fromObject(model).toObject(RulesEngineAction.class);
Assertions.assertEquals(HeaderActionType.OVERWRITE, model.requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("bhshfwpracstwity", model.requestHeaderActions().get(0).headerName());
- Assertions.assertEquals("evxccedcp", model.requestHeaderActions().get(0).value());
+ Assertions.assertEquals("noigbrnjwmwk", model.requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals("bsazejjoqka", model.requestHeaderActions().get(0).value());
Assertions.assertEquals(HeaderActionType.DELETE, model.responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("odn", model.responseHeaderActions().get(0).headerName());
- Assertions.assertEquals("xltjcvnhltiu", model.responseHeaderActions().get(0).value());
+ Assertions.assertEquals("kqjjlwuenvrkp", model.responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals("uaibrebqaaysj", model.responseHeaderActions().get(0).value());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineInnerTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineInnerTests.java
index 3811142c5ebc9..e89261cbb3591 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineInnerTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineInnerTests.java
@@ -23,71 +23,127 @@ public final class RulesEngineInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RulesEngineInner model = BinaryData.fromString(
- "{\"properties\":{\"resourceState\":\"Enabled\",\"rules\":[{\"name\":\"pqwcciuqgbdbutau\",\"priority\":1020158274,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"uwhhmhykojoxafn\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"lpichk\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"mkcdyhbpkkpwdre\"},{\"headerActionType\":\"Append\",\"headerName\":\"ovvqfovljxywsu\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"s\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"ytgadgvraeaene\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestFilename\",\"selector\":\"rwlqu\",\"rulesEngineOperator\":\"GeoMatch\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"kacewiipfp\",\"bjibwwiftohq\"],\"transforms\":[\"Uppercase\",\"Trim\"]}],\"matchProcessingBehavior\":\"Continue\"}]},\"id\":\"gplsaknynf\",\"name\":\"ynl\",\"type\":\"ph\"}")
+ "{\"properties\":{\"resourceState\":\"Migrating\",\"rules\":[{\"name\":\"f\",\"priority\":1572357139,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"vpuvks\"},{\"headerActionType\":\"Delete\",\"headerName\":\"lsa\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"ynfs\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"ljphuopxodl\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"torzih\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"PostArgs\",\"selector\":\"w\",\"rulesEngineOperator\":\"Any\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"yzrpzbchckqqzq\",\"ox\",\"ysuiizynkedya\",\"rwyhqmibzyhwitsm\"],\"transforms\":[\"UrlEncode\",\"Trim\",\"Uppercase\",\"UrlDecode\"]},{\"rulesEngineMatchVariable\":\"RequestFilenameExtension\",\"selector\":\"umnzgmwznmabik\",\"rulesEngineOperator\":\"LessThan\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"jhxbld\"],\"transforms\":[\"Lowercase\",\"Lowercase\",\"Uppercase\"]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"m\",\"priority\":1488672187,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"kotl\"},{\"headerActionType\":\"Delete\",\"headerName\":\"d\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"gsyocogj\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"bnnhadoocrkvcik\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"vpa\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestUri\",\"selector\":\"u\",\"rulesEngineOperator\":\"GeoMatch\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"wggxkallat\",\"elwuipi\"],\"transforms\":[\"Uppercase\",\"Uppercase\"]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"v\",\"priority\":1783583685,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"ayrhyrnx\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"edndr\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"stkwqqtch\"},{\"headerActionType\":\"Delete\",\"headerName\":\"lmfmtdaay\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestBody\",\"selector\":\"piohgwxrtfu\",\"rulesEngineOperator\":\"EndsWith\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"gyqagvrvmnpkuk\"],\"transforms\":[\"Lowercase\"]},{\"rulesEngineMatchVariable\":\"RequestFilenameExtension\",\"selector\":\"lxgwimfnjhf\",\"rulesEngineOperator\":\"GreaterThan\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"zk\",\"foqreyfkzik\",\"jawneaiv\"],\"transforms\":[\"Trim\",\"Uppercase\",\"Trim\"]}],\"matchProcessingBehavior\":\"Continue\"}]},\"id\":\"irels\",\"name\":\"eae\",\"type\":\"wabfatkl\"}")
.toObject(RulesEngineInner.class);
- Assertions.assertEquals("pqwcciuqgbdbutau", model.rules().get(0).name());
- Assertions.assertEquals(1020158274, model.rules().get(0).priority());
+ Assertions.assertEquals("f", model.rules().get(0).name());
+ Assertions.assertEquals(1572357139, model.rules().get(0).priority());
Assertions.assertEquals(HeaderActionType.DELETE,
model.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("uwhhmhykojoxafn",
- model.rules().get(0).action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals(HeaderActionType.DELETE,
+ Assertions.assertEquals("vpuvks", model.rules().get(0).action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals(HeaderActionType.OVERWRITE,
model.rules().get(0).action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("s", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_FILENAME,
+ Assertions.assertEquals("torzih", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals(RulesEngineMatchVariable.POST_ARGS,
model.rules().get(0).matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals("rwlqu", model.rules().get(0).matchConditions().get(0).selector());
- Assertions.assertEquals(RulesEngineOperator.GEO_MATCH,
+ Assertions.assertEquals("w", model.rules().get(0).matchConditions().get(0).selector());
+ Assertions.assertEquals(RulesEngineOperator.ANY,
model.rules().get(0).matchConditions().get(0).rulesEngineOperator());
- Assertions.assertEquals(false, model.rules().get(0).matchConditions().get(0).negateCondition());
- Assertions.assertEquals("kacewiipfp",
+ Assertions.assertEquals(true, model.rules().get(0).matchConditions().get(0).negateCondition());
+ Assertions.assertEquals("yzrpzbchckqqzq",
model.rules().get(0).matchConditions().get(0).rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.UPPERCASE, model.rules().get(0).matchConditions().get(0).transforms().get(0));
+ Assertions.assertEquals(Transform.URL_ENCODE,
+ model.rules().get(0).matchConditions().get(0).transforms().get(0));
Assertions.assertEquals(MatchProcessingBehavior.CONTINUE, model.rules().get(0).matchProcessingBehavior());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- RulesEngineInner model = new RulesEngineInner().withRules(Arrays.asList(new RulesEngineRule()
- .withName("pqwcciuqgbdbutau")
- .withPriority(1020158274)
- .withAction(new RulesEngineAction()
- .withRequestHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("uwhhmhykojoxafn"),
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("lpichk"),
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("mkcdyhbpkkpwdre"),
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND).withHeaderName("ovvqfovljxywsu")))
- .withResponseHeaderActions(
- Arrays.asList(new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("s")))
- .withRouteConfigurationOverride(new RouteConfiguration()))
- .withMatchConditions(Arrays.asList(
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_FILENAME)
- .withSelector("rwlqu")
- .withRulesEngineOperator(RulesEngineOperator.GEO_MATCH)
- .withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("kacewiipfp", "bjibwwiftohq"))
- .withTransforms(Arrays.asList(Transform.UPPERCASE, Transform.TRIM))))
- .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE)));
+ RulesEngineInner model = new RulesEngineInner().withRules(Arrays.asList(
+ new RulesEngineRule().withName("f")
+ .withPriority(1572357139)
+ .withAction(new RulesEngineAction()
+ .withRequestHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("vpuvks"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("lsa"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("ynfs"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("ljphuopxodl")))
+ .withResponseHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("torzih")))
+ .withRouteConfigurationOverride(new RouteConfiguration()))
+ .withMatchConditions(Arrays.asList(
+ new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.POST_ARGS)
+ .withSelector("w")
+ .withRulesEngineOperator(RulesEngineOperator.ANY)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(
+ Arrays.asList("yzrpzbchckqqzq", "ox", "ysuiizynkedya", "rwyhqmibzyhwitsm"))
+ .withTransforms(Arrays.asList(Transform.URL_ENCODE, Transform.TRIM, Transform.UPPERCASE,
+ Transform.URL_DECODE)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_FILENAME_EXTENSION)
+ .withSelector("umnzgmwznmabik")
+ .withRulesEngineOperator(RulesEngineOperator.LESS_THAN)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("jhxbld"))
+ .withTransforms(Arrays.asList(Transform.LOWERCASE, Transform.LOWERCASE, Transform.UPPERCASE))))
+ .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE),
+ new RulesEngineRule().withName("m")
+ .withPriority(1488672187)
+ .withAction(
+ new RulesEngineAction()
+ .withRequestHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("kotl"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("d"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("gsyocogj")))
+ .withResponseHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("bnnhadoocrkvcik"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("vpa")))
+ .withRouteConfigurationOverride(new RouteConfiguration()))
+ .withMatchConditions(Arrays.asList(
+ new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_URI)
+ .withSelector("u")
+ .withRulesEngineOperator(RulesEngineOperator.GEO_MATCH)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(Arrays.asList("wggxkallat", "elwuipi"))
+ .withTransforms(Arrays.asList(Transform.UPPERCASE, Transform.UPPERCASE))))
+ .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE),
+ new RulesEngineRule().withName("v")
+ .withPriority(1783583685)
+ .withAction(new RulesEngineAction()
+ .withRequestHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("ayrhyrnx")))
+ .withResponseHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND).withHeaderName("edndr"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("stkwqqtch"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("lmfmtdaay")))
+ .withRouteConfigurationOverride(new RouteConfiguration()))
+ .withMatchConditions(Arrays.asList(
+ new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_BODY)
+ .withSelector("piohgwxrtfu")
+ .withRulesEngineOperator(RulesEngineOperator.ENDS_WITH)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("gyqagvrvmnpkuk"))
+ .withTransforms(Arrays.asList(Transform.LOWERCASE)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_FILENAME_EXTENSION)
+ .withSelector("lxgwimfnjhf")
+ .withRulesEngineOperator(RulesEngineOperator.GREATER_THAN)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("zk", "foqreyfkzik", "jawneaiv"))
+ .withTransforms(Arrays.asList(Transform.TRIM, Transform.UPPERCASE, Transform.TRIM))))
+ .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE)));
model = BinaryData.fromObject(model).toObject(RulesEngineInner.class);
- Assertions.assertEquals("pqwcciuqgbdbutau", model.rules().get(0).name());
- Assertions.assertEquals(1020158274, model.rules().get(0).priority());
+ Assertions.assertEquals("f", model.rules().get(0).name());
+ Assertions.assertEquals(1572357139, model.rules().get(0).priority());
Assertions.assertEquals(HeaderActionType.DELETE,
model.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("uwhhmhykojoxafn",
- model.rules().get(0).action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals(HeaderActionType.DELETE,
+ Assertions.assertEquals("vpuvks", model.rules().get(0).action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals(HeaderActionType.OVERWRITE,
model.rules().get(0).action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("s", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_FILENAME,
+ Assertions.assertEquals("torzih", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals(RulesEngineMatchVariable.POST_ARGS,
model.rules().get(0).matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals("rwlqu", model.rules().get(0).matchConditions().get(0).selector());
- Assertions.assertEquals(RulesEngineOperator.GEO_MATCH,
+ Assertions.assertEquals("w", model.rules().get(0).matchConditions().get(0).selector());
+ Assertions.assertEquals(RulesEngineOperator.ANY,
model.rules().get(0).matchConditions().get(0).rulesEngineOperator());
- Assertions.assertEquals(false, model.rules().get(0).matchConditions().get(0).negateCondition());
- Assertions.assertEquals("kacewiipfp",
+ Assertions.assertEquals(true, model.rules().get(0).matchConditions().get(0).negateCondition());
+ Assertions.assertEquals("yzrpzbchckqqzq",
model.rules().get(0).matchConditions().get(0).rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.UPPERCASE, model.rules().get(0).matchConditions().get(0).transforms().get(0));
+ Assertions.assertEquals(Transform.URL_ENCODE,
+ model.rules().get(0).matchConditions().get(0).transforms().get(0));
Assertions.assertEquals(MatchProcessingBehavior.CONTINUE, model.rules().get(0).matchProcessingBehavior());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineListResultTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineListResultTests.java
index 2b97cecf36994..6885b621844f3 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineListResultTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineListResultTests.java
@@ -12,15 +12,15 @@ public final class RulesEngineListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RulesEngineListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"resourceState\":\"Disabled\",\"rules\":[{\"name\":\"uluqypfc\",\"priority\":1726526455,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"BeginsWith\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"QueryString\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestBody\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestPath\",\"rulesEngineOperator\":\"IPMatch\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"},{\"name\":\"abwidfcxsspuun\",\"priority\":1613810903,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestBody\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"}]},\"id\":\"qddrihpfhoqcaae\",\"name\":\"dao\",\"type\":\"djvlpj\"},{\"properties\":{\"resourceState\":\"Creating\",\"rules\":[{\"name\":\"msgeivsiykzk\",\"priority\":728133751,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"Contains\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"LessThan\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"},{\"name\":\"oggculapz\",\"priority\":249450285,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"GreaterThanOrEqual\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestMethod\",\"rulesEngineOperator\":\"EndsWith\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"QueryString\",\"rulesEngineOperator\":\"GeoMatch\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"n\",\"priority\":991582121,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"GreaterThan\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestBody\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"},{\"name\":\"tlvofq\",\"priority\":746925062,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestUri\",\"rulesEngineOperator\":\"GreaterThan\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestMethod\",\"rulesEngineOperator\":\"GeoMatch\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestFilenameExtension\",\"rulesEngineOperator\":\"Contains\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestPath\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"}]},\"id\":\"rkjpvdwxfzwii\",\"name\":\"wzjbh\",\"type\":\"zsxjrkambtrneg\"},{\"properties\":{\"resourceState\":\"Migrating\",\"rules\":[{\"name\":\"eqvldspast\",\"priority\":900352978,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestMethod\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"IsMobile\",\"rulesEngineOperator\":\"IPMatch\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestUri\",\"rulesEngineOperator\":\"BeginsWith\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"PostArgs\",\"rulesEngineOperator\":\"Contains\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"}]},\"id\":\"lx\",\"name\":\"ril\",\"type\":\"zapeewchpx\"},{\"properties\":{\"resourceState\":\"Creating\",\"rules\":[{\"name\":\"ziycslevufuztck\",\"priority\":547063466,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestUri\",\"rulesEngineOperator\":\"IPMatch\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestPath\",\"rulesEngineOperator\":\"IPMatch\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"IPMatch\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestFilenameExtension\",\"rulesEngineOperator\":\"IPMatch\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"mmrqz\",\"priority\":401684399,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RemoteAddr\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"LessThan\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"}]},\"id\":\"krvq\",\"name\":\"ev\",\"type\":\"oepry\"}],\"nextLink\":\"nwy\"}")
+ "{\"value\":[{\"properties\":{\"resourceState\":\"Migrated\",\"rules\":[{\"name\":\"orxvxcjzhqiz\",\"priority\":1212582847,\"action\":{},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestUri\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestFilenameExtension\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"IsMobile\",\"rulesEngineOperator\":\"Equal\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"Equal\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"}]},\"id\":\"juhdqazkmtgguwpi\",\"name\":\"r\",\"type\":\"jcivmmg\"}],\"nextLink\":\"cf\"}")
.toObject(RulesEngineListResult.class);
- Assertions.assertEquals("nwy", model.nextLink());
+ Assertions.assertEquals("cf", model.nextLink());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- RulesEngineListResult model = new RulesEngineListResult().withNextLink("nwy");
+ RulesEngineListResult model = new RulesEngineListResult().withNextLink("cf");
model = BinaryData.fromObject(model).toObject(RulesEngineListResult.class);
- Assertions.assertEquals("nwy", model.nextLink());
+ Assertions.assertEquals("cf", model.nextLink());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineMatchConditionTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineMatchConditionTests.java
index d41db27cd8bc0..839d26b2dd6a2 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineMatchConditionTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineMatchConditionTests.java
@@ -16,31 +16,31 @@ public final class RulesEngineMatchConditionTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RulesEngineMatchCondition model = BinaryData.fromString(
- "{\"rulesEngineMatchVariable\":\"RequestScheme\",\"selector\":\"vfxzsjab\",\"rulesEngineOperator\":\"Contains\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"tawfsdjpvkvp\",\"jxbkzbzkdvn\",\"jabudurgkakmo\"],\"transforms\":[\"RemoveNulls\",\"UrlDecode\"]}")
+ "{\"rulesEngineMatchVariable\":\"PostArgs\",\"selector\":\"jpqqmted\",\"rulesEngineOperator\":\"GreaterThanOrEqual\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"ihyeozphvw\"],\"transforms\":[\"Trim\"]}")
.toObject(RulesEngineMatchCondition.class);
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_SCHEME, model.rulesEngineMatchVariable());
- Assertions.assertEquals("vfxzsjab", model.selector());
- Assertions.assertEquals(RulesEngineOperator.CONTAINS, model.rulesEngineOperator());
+ Assertions.assertEquals(RulesEngineMatchVariable.POST_ARGS, model.rulesEngineMatchVariable());
+ Assertions.assertEquals("jpqqmted", model.selector());
+ Assertions.assertEquals(RulesEngineOperator.GREATER_THAN_OR_EQUAL, model.rulesEngineOperator());
Assertions.assertEquals(true, model.negateCondition());
- Assertions.assertEquals("tawfsdjpvkvp", model.rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.REMOVE_NULLS, model.transforms().get(0));
+ Assertions.assertEquals("ihyeozphvw", model.rulesEngineMatchValue().get(0));
+ Assertions.assertEquals(Transform.TRIM, model.transforms().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RulesEngineMatchCondition model
- = new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_SCHEME)
- .withSelector("vfxzsjab")
- .withRulesEngineOperator(RulesEngineOperator.CONTAINS)
+ = new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.POST_ARGS)
+ .withSelector("jpqqmted")
+ .withRulesEngineOperator(RulesEngineOperator.GREATER_THAN_OR_EQUAL)
.withNegateCondition(true)
- .withRulesEngineMatchValue(Arrays.asList("tawfsdjpvkvp", "jxbkzbzkdvn", "jabudurgkakmo"))
- .withTransforms(Arrays.asList(Transform.REMOVE_NULLS, Transform.URL_DECODE));
+ .withRulesEngineMatchValue(Arrays.asList("ihyeozphvw"))
+ .withTransforms(Arrays.asList(Transform.TRIM));
model = BinaryData.fromObject(model).toObject(RulesEngineMatchCondition.class);
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_SCHEME, model.rulesEngineMatchVariable());
- Assertions.assertEquals("vfxzsjab", model.selector());
- Assertions.assertEquals(RulesEngineOperator.CONTAINS, model.rulesEngineOperator());
+ Assertions.assertEquals(RulesEngineMatchVariable.POST_ARGS, model.rulesEngineMatchVariable());
+ Assertions.assertEquals("jpqqmted", model.selector());
+ Assertions.assertEquals(RulesEngineOperator.GREATER_THAN_OR_EQUAL, model.rulesEngineOperator());
Assertions.assertEquals(true, model.negateCondition());
- Assertions.assertEquals("tawfsdjpvkvp", model.rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.REMOVE_NULLS, model.transforms().get(0));
+ Assertions.assertEquals("ihyeozphvw", model.rulesEngineMatchValue().get(0));
+ Assertions.assertEquals(Transform.TRIM, model.transforms().get(0));
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginePropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginePropertiesTests.java
index cfa919b5acdde..aee1ffac4ccde 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginePropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginePropertiesTests.java
@@ -23,27 +23,27 @@ public final class RulesEnginePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RulesEngineProperties model = BinaryData.fromString(
- "{\"resourceState\":\"Migrated\",\"rules\":[{\"name\":\"dlqiyntorzih\",\"priority\":1980865507,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"swsrms\",\"value\":\"zrpzb\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"ckqqzqioxiysui\",\"value\":\"ynkedyatrwyhqmib\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"itsmypyyn\",\"value\":\"dpumnzgmw\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"abikns\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestBody\",\"selector\":\"xbldtlwwrlkdmtn\",\"rulesEngineOperator\":\"IPMatch\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"tllxdyhgsyocogj\",\"tdtbnnhadooc\",\"kvci\"],\"transforms\":[\"RemoveNulls\",\"RemoveNulls\"]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"qgxqquezikyw\",\"priority\":566556548,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"lla\",\"value\":\"elwuipi\"},{\"headerActionType\":\"Delete\",\"headerName\":\"jzkzi\",\"value\":\"vvcnayr\"},{\"headerActionType\":\"Delete\",\"headerName\":\"rnxxmueed\",\"value\":\"rdvstkwqqtch\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"fmtdaaygdvwvgp\",\"value\":\"hgwxrtfudx\"},{\"headerActionType\":\"Delete\",\"headerName\":\"xg\",\"value\":\"agvrvmnpkuk\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"i\",\"value\":\"blxgwimf\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"fjxwmsz\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestUri\",\"selector\":\"rey\",\"rulesEngineOperator\":\"LessThan\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"fjawneaivxwczel\"],\"transforms\":[\"Trim\",\"RemoveNulls\"]},{\"rulesEngineMatchVariable\":\"RequestFilenameExtension\",\"selector\":\"feaenwab\",\"rulesEngineOperator\":\"LessThan\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"ddxbjhwuaanoz\",\"osphyoul\",\"jrvxaglrv\"],\"transforms\":[\"UrlDecode\",\"UrlEncode\",\"UrlEncode\",\"Lowercase\"]},{\"rulesEngineMatchVariable\":\"RequestBody\",\"selector\":\"itc\",\"rulesEngineOperator\":\"Any\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"tq\"],\"transforms\":[\"UrlEncode\",\"Trim\"]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"zzikhlyfjhdg\",\"priority\":564076169,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"dunyg\",\"value\":\"qidbqfatpxllrxcy\"},{\"headerActionType\":\"Append\",\"headerName\":\"oadsuvar\",\"value\":\"wdmjsjqbjhhyx\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"yc\",\"value\":\"uhpkxkgymar\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"n\",\"value\":\"xqugjhkycubedd\"},{\"headerActionType\":\"Delete\",\"headerName\":\"sofwqmzqalkrmnji\",\"value\":\"xacqqudfnbyx\"},{\"headerActionType\":\"Append\",\"headerName\":\"aabjyvayffimrz\",\"value\":\"uzqogsexnevf\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"nw\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestPath\",\"selector\":\"yyceuzsoi\",\"rulesEngineOperator\":\"GreaterThan\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"frxtrthzvaytdwk\",\"brqubp\",\"xhexiilivpdti\"],\"transforms\":[\"Trim\"]},{\"rulesEngineMatchVariable\":\"QueryString\",\"selector\":\"oaxoruzfgsqu\",\"rulesEngineOperator\":\"GreaterThan\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"xleptramx\"],\"transforms\":[\"Uppercase\"]},{\"rulesEngineMatchVariable\":\"PostArgs\",\"selector\":\"nwxuqlcvydyp\",\"rulesEngineOperator\":\"Contains\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"aojkniodk\"],\"transforms\":[\"Trim\",\"RemoveNulls\"]}],\"matchProcessingBehavior\":\"Stop\"}]}")
+ "{\"resourceState\":\"Migrated\",\"rules\":[{\"name\":\"hwuaanozjosp\",\"priority\":1082355314,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"pjrvxagl\",\"value\":\"imjwosyt\"},{\"headerActionType\":\"Delete\",\"headerName\":\"tcs\",\"value\":\"cktqumiekkezzi\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"fjhdg\",\"value\":\"gebdunygaeq\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestPath\",\"selector\":\"t\",\"rulesEngineOperator\":\"Any\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"xcyjmoadsuvarmy\",\"dmjsjqb\",\"hhyxxrw\"],\"transforms\":[\"UrlEncode\"]},{\"rulesEngineMatchVariable\":\"IsMobile\",\"selector\":\"hp\",\"rulesEngineOperator\":\"IPMatch\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"mareqnajxqugj\",\"ky\",\"ubeddg\",\"sofwqmzqalkrmnji\"],\"transforms\":[\"Uppercase\",\"Trim\",\"UrlEncode\"]},{\"rulesEngineMatchVariable\":\"RequestMethod\",\"selector\":\"dfnbyxbaaabjyv\",\"rulesEngineOperator\":\"BeginsWith\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"m\",\"zrtuzq\",\"gsexne\"],\"transforms\":[\"Uppercase\"]},{\"rulesEngineMatchVariable\":\"RequestFilename\",\"selector\":\"wmewzsyy\",\"rulesEngineOperator\":\"GeoMatch\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"oibjudpfrxtrthz\",\"aytdwkqbrq\",\"bpaxhexiilivpdt\"],\"transforms\":[\"RemoveNulls\"]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"qoaxoruzfgs\",\"priority\":2005280896,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"rxxle\",\"value\":\"ramxjezwlwnw\"},{\"headerActionType\":\"Append\",\"headerName\":\"qlcvydy\",\"value\":\"tdooaoj\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"dkooebwnu\",\"value\":\"emmsbvdkc\"},{\"headerActionType\":\"Append\",\"headerName\":\"dtjinfw\",\"value\":\"fltkacjv\"},{\"headerActionType\":\"Delete\",\"headerName\":\"kdlfoa\",\"value\":\"gkfpaga\"},{\"headerActionType\":\"Append\",\"headerName\":\"pulpqblylsyxk\",\"value\":\"nsj\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestHeader\",\"selector\":\"gxsds\",\"rulesEngineOperator\":\"EndsWith\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"sbzkf\",\"beyvpnqicvinvkjj\",\"dxrbuukzcle\",\"yhmlwpaztzp\"],\"transforms\":[\"RemoveNulls\",\"Trim\"]},{\"rulesEngineMatchVariable\":\"RequestFilenameExtension\",\"selector\":\"yfzqwhxxbu\",\"rulesEngineOperator\":\"LessThan\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"feqztppriol\",\"or\",\"altol\"],\"transforms\":[\"Lowercase\",\"Trim\",\"Trim\"]}],\"matchProcessingBehavior\":\"Stop\"},{\"name\":\"wcsdbnwdcfhucq\",\"priority\":895561091,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"glsbjjc\",\"value\":\"vxb\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"vudutncor\",\"value\":\"lxqtvcofudfl\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"gj\",\"value\":\"gdknnqv\"},{\"headerActionType\":\"Delete\",\"headerName\":\"znqntoru\",\"value\":\"gsahmkycgrauw\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"aeburuvdmo\",\"value\":\"mz\"},{\"headerActionType\":\"Delete\",\"headerName\":\"wabm\",\"value\":\"efkifr\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"IsMobile\",\"selector\":\"jmqlgkfb\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"ongbjcnt\",\"jitcjedftwwaez\"],\"transforms\":[\"RemoveNulls\",\"RemoveNulls\",\"Uppercase\",\"UrlEncode\"]}],\"matchProcessingBehavior\":\"Stop\"}]}")
.toObject(RulesEngineProperties.class);
- Assertions.assertEquals("dlqiyntorzih", model.rules().get(0).name());
- Assertions.assertEquals(1980865507, model.rules().get(0).priority());
- Assertions.assertEquals(HeaderActionType.DELETE,
+ Assertions.assertEquals("hwuaanozjosp", model.rules().get(0).name());
+ Assertions.assertEquals(1082355314, model.rules().get(0).priority());
+ Assertions.assertEquals(HeaderActionType.APPEND,
model.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("swsrms", model.rules().get(0).action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals("zrpzb", model.rules().get(0).action().requestHeaderActions().get(0).value());
- Assertions.assertEquals(HeaderActionType.OVERWRITE,
+ Assertions.assertEquals("pjrvxagl", model.rules().get(0).action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals("imjwosyt", model.rules().get(0).action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals(HeaderActionType.APPEND,
model.rules().get(0).action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("itsmypyyn", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals("dpumnzgmw", model.rules().get(0).action().responseHeaderActions().get(0).value());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_BODY,
+ Assertions.assertEquals("fjhdg", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals("gebdunygaeq", model.rules().get(0).action().responseHeaderActions().get(0).value());
+ Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_PATH,
model.rules().get(0).matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals("xbldtlwwrlkdmtn", model.rules().get(0).matchConditions().get(0).selector());
- Assertions.assertEquals(RulesEngineOperator.IPMATCH,
+ Assertions.assertEquals("t", model.rules().get(0).matchConditions().get(0).selector());
+ Assertions.assertEquals(RulesEngineOperator.ANY,
model.rules().get(0).matchConditions().get(0).rulesEngineOperator());
Assertions.assertEquals(false, model.rules().get(0).matchConditions().get(0).negateCondition());
- Assertions.assertEquals("tllxdyhgsyocogj",
+ Assertions.assertEquals("xcyjmoadsuvarmy",
model.rules().get(0).matchConditions().get(0).rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.REMOVE_NULLS,
+ Assertions.assertEquals(Transform.URL_ENCODE,
model.rules().get(0).matchConditions().get(0).transforms().get(0));
Assertions.assertEquals(MatchProcessingBehavior.CONTINUE, model.rules().get(0).matchProcessingBehavior());
}
@@ -51,139 +51,143 @@ public void testDeserialize() throws Exception {
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RulesEngineProperties model = new RulesEngineProperties().withRules(Arrays.asList(
- new RulesEngineRule().withName("dlqiyntorzih")
- .withPriority(1980865507)
+ new RulesEngineRule().withName("hwuaanozjosp")
+ .withPriority(1082355314)
.withAction(new RulesEngineAction()
.withRequestHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("pjrvxagl")
+ .withValue("imjwosyt"),
new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("swsrms")
- .withValue("zrpzb"),
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("ckqqzqioxiysui")
- .withValue("ynkedyatrwyhqmib")))
+ .withHeaderName("tcs")
+ .withValue("cktqumiekkezzi")))
.withResponseHeaderActions(
- Arrays.asList(new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("itsmypyyn")
- .withValue("dpumnzgmw")))
+ Arrays.asList(new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("fjhdg")
+ .withValue("gebdunygaeq")))
.withRouteConfigurationOverride(new RouteConfiguration()))
- .withMatchConditions(Arrays.asList(
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_BODY)
- .withSelector("xbldtlwwrlkdmtn")
+ .withMatchConditions(Arrays.asList(new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_PATH)
+ .withSelector("t")
+ .withRulesEngineOperator(RulesEngineOperator.ANY)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("xcyjmoadsuvarmy", "dmjsjqb", "hhyxxrw"))
+ .withTransforms(Arrays.asList(Transform.URL_ENCODE)),
+ new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.IS_MOBILE)
+ .withSelector("hp")
.withRulesEngineOperator(RulesEngineOperator.IPMATCH)
.withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("tllxdyhgsyocogj", "tdtbnnhadooc", "kvci"))
- .withTransforms(Arrays.asList(Transform.REMOVE_NULLS, Transform.REMOVE_NULLS))))
+ .withRulesEngineMatchValue(Arrays.asList("mareqnajxqugj", "ky", "ubeddg", "sofwqmzqalkrmnji"))
+ .withTransforms(Arrays.asList(Transform.UPPERCASE, Transform.TRIM, Transform.URL_ENCODE)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_METHOD)
+ .withSelector("dfnbyxbaaabjyv")
+ .withRulesEngineOperator(RulesEngineOperator.BEGINS_WITH)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(Arrays.asList("m", "zrtuzq", "gsexne"))
+ .withTransforms(Arrays.asList(Transform.UPPERCASE)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_FILENAME)
+ .withSelector("wmewzsyy")
+ .withRulesEngineOperator(RulesEngineOperator.GEO_MATCH)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(Arrays.asList("oibjudpfrxtrthz", "aytdwkqbrq", "bpaxhexiilivpdt"))
+ .withTransforms(Arrays.asList(Transform.REMOVE_NULLS))))
.withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE),
- new RulesEngineRule().withName("qgxqquezikyw")
- .withPriority(566556548)
+ new RulesEngineRule().withName("qoaxoruzfgs")
+ .withPriority(2005280896)
.withAction(new RulesEngineAction()
.withRequestHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("lla")
- .withValue("elwuipi"),
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("jzkzi")
- .withValue("vvcnayr"),
new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("rnxxmueed")
- .withValue("rdvstkwqqtch")))
+ .withHeaderName("rxxle")
+ .withValue("ramxjezwlwnw"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("qlcvydy")
+ .withValue("tdooaoj")))
.withResponseHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("dkooebwnu")
+ .withValue("emmsbvdkc"),
new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("fmtdaaygdvwvgp")
- .withValue("hgwxrtfudx"),
+ .withHeaderName("dtjinfw")
+ .withValue("fltkacjv"),
new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("xg")
- .withValue("agvrvmnpkuk"),
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("i")
- .withValue("blxgwimf")))
+ .withHeaderName("kdlfoa")
+ .withValue("gkfpaga"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("pulpqblylsyxk")
+ .withValue("nsj")))
.withRouteConfigurationOverride(new RouteConfiguration()))
.withMatchConditions(Arrays.asList(
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_URI)
- .withSelector("rey")
- .withRulesEngineOperator(RulesEngineOperator.LESS_THAN)
- .withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("fjawneaivxwczel"))
- .withTransforms(Arrays.asList(Transform.TRIM, Transform.REMOVE_NULLS)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_HEADER)
+ .withSelector("gxsds")
+ .withRulesEngineOperator(RulesEngineOperator.ENDS_WITH)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(
+ Arrays.asList("sbzkf", "beyvpnqicvinvkjj", "dxrbuukzcle", "yhmlwpaztzp"))
+ .withTransforms(Arrays.asList(Transform.REMOVE_NULLS, Transform.TRIM)),
new RulesEngineMatchCondition()
.withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_FILENAME_EXTENSION)
- .withSelector("feaenwab")
+ .withSelector("yfzqwhxxbu")
.withRulesEngineOperator(RulesEngineOperator.LESS_THAN)
.withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("ddxbjhwuaanoz", "osphyoul", "jrvxaglrv"))
- .withTransforms(Arrays.asList(Transform.URL_DECODE, Transform.URL_ENCODE, Transform.URL_ENCODE,
- Transform.LOWERCASE)),
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_BODY)
- .withSelector("itc")
- .withRulesEngineOperator(RulesEngineOperator.ANY)
- .withNegateCondition(true)
- .withRulesEngineMatchValue(Arrays.asList("tq"))
- .withTransforms(Arrays.asList(Transform.URL_ENCODE, Transform.TRIM))))
- .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE),
- new RulesEngineRule().withName("zzikhlyfjhdg")
- .withPriority(564076169)
+ .withRulesEngineMatchValue(Arrays.asList("feqztppriol", "or", "altol"))
+ .withTransforms(Arrays.asList(Transform.LOWERCASE, Transform.TRIM, Transform.TRIM))))
+ .withMatchProcessingBehavior(MatchProcessingBehavior.STOP),
+ new RulesEngineRule().withName("wcsdbnwdcfhucq")
+ .withPriority(895561091)
.withAction(new RulesEngineAction()
.withRequestHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("dunyg")
- .withValue("qidbqfatpxllrxcy"),
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("oadsuvar")
- .withValue("wdmjsjqbjhhyx")))
- .withResponseHeaderActions(Arrays.asList(
new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("yc")
- .withValue("uhpkxkgymar"),
+ .withHeaderName("glsbjjc")
+ .withValue("vxb"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("vudutncor")
+ .withValue("lxqtvcofudfl"),
new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("n")
- .withValue("xqugjhkycubedd"),
+ .withHeaderName("gj")
+ .withValue("gdknnqv"),
new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("sofwqmzqalkrmnji")
- .withValue("xacqqudfnbyx"),
+ .withHeaderName("znqntoru")
+ .withValue("gsahmkycgrauw")))
+ .withResponseHeaderActions(Arrays.asList(
new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("aabjyvayffimrz")
- .withValue("uzqogsexnevf")))
+ .withHeaderName("aeburuvdmo")
+ .withValue("mz"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("wabm")
+ .withValue("efkifr")))
.withRouteConfigurationOverride(new RouteConfiguration()))
.withMatchConditions(Arrays.asList(
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_PATH)
- .withSelector("yyceuzsoi")
- .withRulesEngineOperator(RulesEngineOperator.GREATER_THAN)
- .withNegateCondition(true)
- .withRulesEngineMatchValue(Arrays.asList("frxtrthzvaytdwk", "brqubp", "xhexiilivpdti"))
- .withTransforms(Arrays.asList(Transform.TRIM)),
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.QUERY_STRING)
- .withSelector("oaxoruzfgsqu")
- .withRulesEngineOperator(RulesEngineOperator.GREATER_THAN)
+ new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.IS_MOBILE)
+ .withSelector("jmqlgkfb")
+ .withRulesEngineOperator(RulesEngineOperator.LESS_THAN_OR_EQUAL)
.withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("xleptramx"))
- .withTransforms(Arrays.asList(Transform.UPPERCASE)),
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.POST_ARGS)
- .withSelector("nwxuqlcvydyp")
- .withRulesEngineOperator(RulesEngineOperator.CONTAINS)
- .withNegateCondition(true)
- .withRulesEngineMatchValue(Arrays.asList("aojkniodk"))
- .withTransforms(Arrays.asList(Transform.TRIM, Transform.REMOVE_NULLS))))
+ .withRulesEngineMatchValue(Arrays.asList("ongbjcnt", "jitcjedftwwaez"))
+ .withTransforms(Arrays.asList(Transform.REMOVE_NULLS, Transform.REMOVE_NULLS,
+ Transform.UPPERCASE, Transform.URL_ENCODE))))
.withMatchProcessingBehavior(MatchProcessingBehavior.STOP)));
model = BinaryData.fromObject(model).toObject(RulesEngineProperties.class);
- Assertions.assertEquals("dlqiyntorzih", model.rules().get(0).name());
- Assertions.assertEquals(1980865507, model.rules().get(0).priority());
- Assertions.assertEquals(HeaderActionType.DELETE,
+ Assertions.assertEquals("hwuaanozjosp", model.rules().get(0).name());
+ Assertions.assertEquals(1082355314, model.rules().get(0).priority());
+ Assertions.assertEquals(HeaderActionType.APPEND,
model.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("swsrms", model.rules().get(0).action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals("zrpzb", model.rules().get(0).action().requestHeaderActions().get(0).value());
- Assertions.assertEquals(HeaderActionType.OVERWRITE,
+ Assertions.assertEquals("pjrvxagl", model.rules().get(0).action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals("imjwosyt", model.rules().get(0).action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals(HeaderActionType.APPEND,
model.rules().get(0).action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("itsmypyyn", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals("dpumnzgmw", model.rules().get(0).action().responseHeaderActions().get(0).value());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_BODY,
+ Assertions.assertEquals("fjhdg", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals("gebdunygaeq", model.rules().get(0).action().responseHeaderActions().get(0).value());
+ Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_PATH,
model.rules().get(0).matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals("xbldtlwwrlkdmtn", model.rules().get(0).matchConditions().get(0).selector());
- Assertions.assertEquals(RulesEngineOperator.IPMATCH,
+ Assertions.assertEquals("t", model.rules().get(0).matchConditions().get(0).selector());
+ Assertions.assertEquals(RulesEngineOperator.ANY,
model.rules().get(0).matchConditions().get(0).rulesEngineOperator());
Assertions.assertEquals(false, model.rules().get(0).matchConditions().get(0).negateCondition());
- Assertions.assertEquals("tllxdyhgsyocogj",
+ Assertions.assertEquals("xcyjmoadsuvarmy",
model.rules().get(0).matchConditions().get(0).rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.REMOVE_NULLS,
+ Assertions.assertEquals(Transform.URL_ENCODE,
model.rules().get(0).matchConditions().get(0).transforms().get(0));
Assertions.assertEquals(MatchProcessingBehavior.CONTINUE, model.rules().get(0).matchProcessingBehavior());
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineRuleTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineRuleTests.java
index 272d29c8cddee..2f9e9d3da4340 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineRuleTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineRuleTests.java
@@ -22,86 +22,85 @@ public final class RulesEngineRuleTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RulesEngineRule model = BinaryData.fromString(
- "{\"name\":\"dmsmlm\",\"priority\":1354395459,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"trmaequiahxicslf\",\"value\":\"qzpiyyl\"},{\"headerActionType\":\"Delete\",\"headerName\":\"lnswhcc\",\"value\":\"hka\"},{\"headerActionType\":\"Delete\",\"headerName\":\"witqscywuggwoluh\",\"value\":\"bwemhairs\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"dwmsweypqwd\",\"value\":\"gicccnxqhuex\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"tlstvlzywem\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestUri\",\"selector\":\"sdtclusiypbs\",\"rulesEngineOperator\":\"Any\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"uslfead\"],\"transforms\":[\"Trim\"]},{\"rulesEngineMatchVariable\":\"RequestPath\",\"selector\":\"yhejhzisxgfp\",\"rulesEngineOperator\":\"LessThan\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"pv\"],\"transforms\":[\"RemoveNulls\"]},{\"rulesEngineMatchVariable\":\"RemoteAddr\",\"selector\":\"ujzra\",\"rulesEngineOperator\":\"Any\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"wrft\"],\"transforms\":[\"Trim\"]}],\"matchProcessingBehavior\":\"Stop\"}")
+ "{\"name\":\"rwxkvtkkgl\",\"priority\":2106281603,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"gvjayvblmh\",\"value\":\"zuhbxvvyhgsopb\"},{\"headerActionType\":\"Delete\",\"headerName\":\"qufegxuvwzfbn\",\"value\":\"mctlpdngitv\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"mhrixkwmyijejve\",\"value\":\"hbpnaixexccbd\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"hcexdrrvqa\",\"value\":\"kghtpwijnh\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestHeader\",\"selector\":\"cxzbfvoowvr\",\"rulesEngineOperator\":\"Equal\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"qp\",\"y\",\"s\",\"ronzmyhgfip\"],\"transforms\":[\"RemoveNulls\",\"Lowercase\",\"Trim\",\"Trim\"]},{\"rulesEngineMatchVariable\":\"IsMobile\",\"selector\":\"krrjrea\",\"rulesEngineOperator\":\"Any\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"umh\",\"glikkxwslolb\",\"pvuzlmv\",\"elfk\"],\"transforms\":[\"UrlDecode\",\"Uppercase\",\"UrlEncode\",\"RemoveNulls\"]}],\"matchProcessingBehavior\":\"Stop\"}")
.toObject(RulesEngineRule.class);
- Assertions.assertEquals("dmsmlm", model.name());
- Assertions.assertEquals(1354395459, model.priority());
- Assertions.assertEquals(HeaderActionType.APPEND,
- model.action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("trmaequiahxicslf", model.action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals("qzpiyyl", model.action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals("rwxkvtkkgl", model.name());
+ Assertions.assertEquals(2106281603, model.priority());
Assertions.assertEquals(HeaderActionType.DELETE,
+ model.action().requestHeaderActions().get(0).headerActionType());
+ Assertions.assertEquals("gvjayvblmh", model.action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals("zuhbxvvyhgsopb", model.action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals(HeaderActionType.OVERWRITE,
model.action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("dwmsweypqwd", model.action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals("gicccnxqhuex", model.action().responseHeaderActions().get(0).value());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_URI,
+ Assertions.assertEquals("hcexdrrvqa", model.action().responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals("kghtpwijnh", model.action().responseHeaderActions().get(0).value());
+ Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_HEADER,
model.matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals("sdtclusiypbs", model.matchConditions().get(0).selector());
- Assertions.assertEquals(RulesEngineOperator.ANY, model.matchConditions().get(0).rulesEngineOperator());
+ Assertions.assertEquals("cxzbfvoowvr", model.matchConditions().get(0).selector());
+ Assertions.assertEquals(RulesEngineOperator.EQUAL, model.matchConditions().get(0).rulesEngineOperator());
Assertions.assertEquals(false, model.matchConditions().get(0).negateCondition());
- Assertions.assertEquals("uslfead", model.matchConditions().get(0).rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.TRIM, model.matchConditions().get(0).transforms().get(0));
+ Assertions.assertEquals("qp", model.matchConditions().get(0).rulesEngineMatchValue().get(0));
+ Assertions.assertEquals(Transform.REMOVE_NULLS, model.matchConditions().get(0).transforms().get(0));
Assertions.assertEquals(MatchProcessingBehavior.STOP, model.matchProcessingBehavior());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- RulesEngineRule model = new RulesEngineRule().withName("dmsmlm")
- .withPriority(1354395459)
+ RulesEngineRule model = new RulesEngineRule().withName("rwxkvtkkgl")
+ .withPriority(2106281603)
.withAction(new RulesEngineAction()
.withRequestHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("trmaequiahxicslf")
- .withValue("qzpiyyl"),
new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("lnswhcc")
- .withValue("hka"),
+ .withHeaderName("gvjayvblmh")
+ .withValue("zuhbxvvyhgsopb"),
new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("witqscywuggwoluh")
- .withValue("bwemhairs")))
+ .withHeaderName("qufegxuvwzfbn")
+ .withValue("mctlpdngitv"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("mhrixkwmyijejve")
+ .withValue("hbpnaixexccbd")))
.withResponseHeaderActions(
- Arrays.asList(new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("dwmsweypqwd")
- .withValue("gicccnxqhuex")))
+ Arrays.asList(new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("hcexdrrvqa")
+ .withValue("kghtpwijnh")))
.withRouteConfigurationOverride(new RouteConfiguration()))
- .withMatchConditions(Arrays.asList(
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_URI)
- .withSelector("sdtclusiypbs")
- .withRulesEngineOperator(RulesEngineOperator.ANY)
- .withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("uslfead"))
- .withTransforms(Arrays.asList(Transform.TRIM)),
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_PATH)
- .withSelector("yhejhzisxgfp")
- .withRulesEngineOperator(RulesEngineOperator.LESS_THAN)
- .withNegateCondition(true)
- .withRulesEngineMatchValue(Arrays.asList("pv"))
- .withTransforms(Arrays.asList(Transform.REMOVE_NULLS)),
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REMOTE_ADDR)
- .withSelector("ujzra")
- .withRulesEngineOperator(RulesEngineOperator.ANY)
- .withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("wrft"))
- .withTransforms(Arrays.asList(Transform.TRIM))))
+ .withMatchConditions(
+ Arrays
+ .asList(
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_HEADER)
+ .withSelector("cxzbfvoowvr")
+ .withRulesEngineOperator(RulesEngineOperator.EQUAL)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("qp", "y", "s", "ronzmyhgfip"))
+ .withTransforms(Arrays.asList(Transform.REMOVE_NULLS, Transform.LOWERCASE, Transform.TRIM,
+ Transform.TRIM)),
+ new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.IS_MOBILE)
+ .withSelector("krrjrea")
+ .withRulesEngineOperator(RulesEngineOperator.ANY)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(Arrays.asList("umh", "glikkxwslolb", "pvuzlmv", "elfk"))
+ .withTransforms(Arrays.asList(Transform.URL_DECODE, Transform.UPPERCASE,
+ Transform.URL_ENCODE, Transform.REMOVE_NULLS))))
.withMatchProcessingBehavior(MatchProcessingBehavior.STOP);
model = BinaryData.fromObject(model).toObject(RulesEngineRule.class);
- Assertions.assertEquals("dmsmlm", model.name());
- Assertions.assertEquals(1354395459, model.priority());
- Assertions.assertEquals(HeaderActionType.APPEND,
- model.action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("trmaequiahxicslf", model.action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals("qzpiyyl", model.action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals("rwxkvtkkgl", model.name());
+ Assertions.assertEquals(2106281603, model.priority());
Assertions.assertEquals(HeaderActionType.DELETE,
+ model.action().requestHeaderActions().get(0).headerActionType());
+ Assertions.assertEquals("gvjayvblmh", model.action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals("zuhbxvvyhgsopb", model.action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals(HeaderActionType.OVERWRITE,
model.action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("dwmsweypqwd", model.action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals("gicccnxqhuex", model.action().responseHeaderActions().get(0).value());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_URI,
+ Assertions.assertEquals("hcexdrrvqa", model.action().responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals("kghtpwijnh", model.action().responseHeaderActions().get(0).value());
+ Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_HEADER,
model.matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals("sdtclusiypbs", model.matchConditions().get(0).selector());
- Assertions.assertEquals(RulesEngineOperator.ANY, model.matchConditions().get(0).rulesEngineOperator());
+ Assertions.assertEquals("cxzbfvoowvr", model.matchConditions().get(0).selector());
+ Assertions.assertEquals(RulesEngineOperator.EQUAL, model.matchConditions().get(0).rulesEngineOperator());
Assertions.assertEquals(false, model.matchConditions().get(0).negateCondition());
- Assertions.assertEquals("uslfead", model.matchConditions().get(0).rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.TRIM, model.matchConditions().get(0).transforms().get(0));
+ Assertions.assertEquals("qp", model.matchConditions().get(0).rulesEngineMatchValue().get(0));
+ Assertions.assertEquals(Transform.REMOVE_NULLS, model.matchConditions().get(0).transforms().get(0));
Assertions.assertEquals(MatchProcessingBehavior.STOP, model.matchProcessingBehavior());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineUpdateParametersTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineUpdateParametersTests.java
index 1255ad0679450..e3b94436198d1 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineUpdateParametersTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEngineUpdateParametersTests.java
@@ -23,142 +23,272 @@ public final class RulesEngineUpdateParametersTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RulesEngineUpdateParameters model = BinaryData.fromString(
- "{\"rules\":[{\"name\":\"emmsbvdkc\",\"priority\":1224512622,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"infwjlfltkacjve\",\"value\":\"dlfoakggkfp\"},{\"headerActionType\":\"Delete\",\"headerName\":\"ao\",\"value\":\"ulpqblylsyxkqjn\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"vti\",\"value\":\"xsdszuempsb\"},{\"headerActionType\":\"Delete\",\"headerName\":\"f\",\"value\":\"eyvpnqicvinvkj\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"dxrbuukzcle\",\"value\":\"hmlwpaztzpo\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"ckw\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestScheme\",\"selector\":\"hxx\",\"rulesEngineOperator\":\"LessThan\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"xzfe\"],\"transforms\":[\"Uppercase\"]},{\"rulesEngineMatchVariable\":\"RemoteAddr\",\"selector\":\"iolxor\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"lmncw\",\"obqwcsdbnwdcfh\",\"cqdpfuv\",\"lsbjjcanvxbv\"],\"transforms\":[\"Lowercase\",\"RemoveNulls\"]},{\"rulesEngineMatchVariable\":\"RequestMethod\",\"selector\":\"cormr\",\"rulesEngineOperator\":\"Any\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"cofudflvkgjub\",\"dknnqvsazn\"],\"transforms\":[\"UrlDecode\"]},{\"rulesEngineMatchVariable\":\"IsMobile\",\"selector\":\"dsg\",\"rulesEngineOperator\":\"Any\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"yc\",\"rauwjuetaebu\",\"u\"],\"transforms\":[\"UrlEncode\",\"UrlEncode\",\"Uppercase\",\"Lowercase\"]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"xwabmqoe\",\"priority\":751127894,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"vtpuqujmqlgk\",\"value\":\"tndoaongbjc\"},{\"headerActionType\":\"Delete\",\"headerName\":\"ujitcjedftww\",\"value\":\"zkoj\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"zfoqouicybxar\",\"value\":\"szufoxciqopidoa\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"odhkha\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"PostArgs\",\"selector\":\"zbonlwnt\",\"rulesEngineOperator\":\"Equal\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"dwbwhkszzcmrvexz\",\"vbtqgsfraoyzk\",\"owtlmnguxawqald\"],\"transforms\":[\"UrlEncode\",\"Trim\"]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"selector\":\"erqf\",\"rulesEngineOperator\":\"EndsWith\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"nkbykutwpfhp\",\"gmhrskdsnfdsdoak\",\"tdlmkkzevd\",\"hewpusdsttwv\"],\"transforms\":[\"RemoveNulls\",\"UrlDecode\",\"UrlDecode\"]},{\"rulesEngineMatchVariable\":\"RequestBody\",\"selector\":\"cngqqmoakufgmjz\",\"rulesEngineOperator\":\"Equal\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"rtwaenuuzko\",\"bminrfdwoyuhhzi\"],\"transforms\":[\"Trim\",\"Uppercase\",\"Lowercase\"]}],\"matchProcessingBehavior\":\"Stop\"}]}")
+ "{\"rules\":[{\"name\":\"ouicybxarzgszu\",\"priority\":1813944379,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"q\",\"value\":\"idoamciodhkha\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"khnzbonlw\",\"value\":\"oegokdwbwh\"},{\"headerActionType\":\"Append\",\"headerName\":\"z\",\"value\":\"mrv\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"vbtqgsfraoyzk\",\"value\":\"wtl\"},{\"headerActionType\":\"Append\",\"headerName\":\"guxawqaldsyuuxi\",\"value\":\"rqf\"},{\"headerActionType\":\"Delete\",\"headerName\":\"wyznkbyku\",\"value\":\"pfhpagmhrskdsnfd\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestFilenameExtension\",\"selector\":\"tdlmkkzevd\",\"rulesEngineOperator\":\"GreaterThanOrEqual\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"usdsttwv\",\"gvbbejdcng\"],\"transforms\":[\"Trim\"]},{\"rulesEngineMatchVariable\":\"PostArgs\",\"selector\":\"ufgmjzrwrdg\",\"rulesEngineOperator\":\"GeoMatch\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"nuuzkopbm\",\"nrfdw\",\"yuhhziu\"],\"transforms\":[\"Uppercase\",\"Lowercase\",\"Uppercase\",\"RemoveNulls\"]},{\"rulesEngineMatchVariable\":\"RequestFilename\",\"selector\":\"smlmzqhoftrm\",\"rulesEngineOperator\":\"GreaterThanOrEqual\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"ah\",\"icslfaoq\"],\"transforms\":[\"Lowercase\",\"UrlEncode\",\"UrlEncode\",\"UrlDecode\"]},{\"rulesEngineMatchVariable\":\"RemoteAddr\",\"selector\":\"nswhcc\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"ivwitqscywugg\",\"oluhczbwemh\",\"i\"],\"transforms\":[\"UrlDecode\"]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"dwmsweypqwd\",\"priority\":840450646,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"ccnxqhuex\",\"value\":\"ttlstvlzywemhz\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"csdtclusiypbs\",\"value\":\"ytguslf\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"ygqukyhejh\",\"value\":\"sx\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"pelol\",\"value\":\"vk\"},{\"headerActionType\":\"Delete\",\"headerName\":\"pqvujzraehtwdwrf\",\"value\":\"wib\"},{\"headerActionType\":\"Append\",\"headerName\":\"cdl\",\"value\":\"shfwpracstwity\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestUri\",\"selector\":\"cedcpnmdy\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"xltjcvnhltiu\",\"cxnavv\"],\"transforms\":[\"UrlEncode\"]},{\"rulesEngineMatchVariable\":\"RequestPath\",\"selector\":\"qunyowxwlmdjr\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"vfvpdbodaciz\",\"j\",\"lhkrribdeibqipqk\"],\"transforms\":[\"Uppercase\",\"Uppercase\"]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"wm\",\"priority\":1680310004,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"jpjorwkqnyhgb\",\"value\":\"tjivfxzsjabib\"},{\"headerActionType\":\"Delete\",\"headerName\":\"stawfsdjpvkv\",\"value\":\"jxbkzbzkdvn\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"abudurgk\",\"value\":\"mokzhjjklf\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"uwqlgzrfzeey\",\"value\":\"izikayuhq\"},{\"headerActionType\":\"Append\",\"headerName\":\"jbsybbqw\",\"value\":\"t\"},{\"headerActionType\":\"Delete\",\"headerName\":\"gmfpgvmp\",\"value\":\"as\"},{\"headerActionType\":\"Delete\",\"headerName\":\"haq\",\"value\":\"ss\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RemoteAddr\",\"selector\":\"dsrezpdrhneuyow\",\"rulesEngineOperator\":\"Equal\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"t\",\"sibircgpi\"],\"transforms\":[\"Uppercase\",\"Trim\",\"Trim\"]},{\"rulesEngineMatchVariable\":\"RequestPath\",\"selector\":\"anlfzxiavrmbz\",\"rulesEngineOperator\":\"Contains\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"xrjqcirgzpfrlazs\"],\"transforms\":[\"UrlDecode\",\"Trim\"]},{\"rulesEngineMatchVariable\":\"IsMobile\",\"selector\":\"ndfpwpj\",\"rulesEngineOperator\":\"EndsWith\",\"negateCondition\":false,\"rulesEngineMatchValue\":[\"lhflsjcdhszfjvf\",\"gofel\",\"a\",\"rqmq\"],\"transforms\":[\"Uppercase\",\"UrlDecode\",\"Uppercase\"]},{\"rulesEngineMatchVariable\":\"PostArgs\",\"selector\":\"ojnal\",\"rulesEngineOperator\":\"Contains\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"tvsexsowuel\",\"qhhahhxvrhmzkwpj\",\"wws\",\"ughftqsx\"],\"transforms\":[\"RemoveNulls\",\"Trim\"]}],\"matchProcessingBehavior\":\"Stop\"},{\"name\":\"kndxdigrjgu\",\"priority\":1040551397,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"syqtfi\",\"value\":\"hbotzingamvppho\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"qzudphq\",\"value\":\"vdkfwynwcvtbvk\"},{\"headerActionType\":\"Append\",\"headerName\":\"hmtnvy\",\"value\":\"atkzwpcnpw\"},{\"headerActionType\":\"Append\",\"headerName\":\"jaesgvvsccya\",\"value\":\"uq\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"gzlvdnkfxu\",\"value\":\"mdwzrmuhapfcqdps\"},{\"headerActionType\":\"Append\",\"headerName\":\"qvpsvuoymg\",\"value\":\"elvezrypq\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"feo\",\"value\":\"rqwky\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"ob\",\"value\":\"gxedkow\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestFilenameExtension\",\"selector\":\"rfkbwccsnjvcdwxl\",\"rulesEngineOperator\":\"BeginsWith\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"tn\",\"htjsying\"],\"transforms\":[\"Lowercase\",\"Lowercase\",\"RemoveNulls\"]},{\"rulesEngineMatchVariable\":\"RequestBody\",\"selector\":\"htmdvy\",\"rulesEngineOperator\":\"GreaterThanOrEqual\",\"negateCondition\":true,\"rulesEngineMatchValue\":[\"gszywk\",\"irryuzhlh\",\"joqrvqqaatj\",\"nrvgoupmfiibfgg\"],\"transforms\":[\"Trim\"]}],\"matchProcessingBehavior\":\"Continue\"}]}")
.toObject(RulesEngineUpdateParameters.class);
- Assertions.assertEquals("emmsbvdkc", model.rules().get(0).name());
- Assertions.assertEquals(1224512622, model.rules().get(0).priority());
- Assertions.assertEquals(HeaderActionType.OVERWRITE,
- model.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("infwjlfltkacjve",
- model.rules().get(0).action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals("dlfoakggkfp", model.rules().get(0).action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals("ouicybxarzgszu", model.rules().get(0).name());
+ Assertions.assertEquals(1813944379, model.rules().get(0).priority());
Assertions.assertEquals(HeaderActionType.APPEND,
+ model.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
+ Assertions.assertEquals("q", model.rules().get(0).action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals("idoamciodhkha", model.rules().get(0).action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals(HeaderActionType.DELETE,
model.rules().get(0).action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("vti", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals("xsdszuempsb", model.rules().get(0).action().responseHeaderActions().get(0).value());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_SCHEME,
+ Assertions.assertEquals("vbtqgsfraoyzk",
+ model.rules().get(0).action().responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals("wtl", model.rules().get(0).action().responseHeaderActions().get(0).value());
+ Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_FILENAME_EXTENSION,
model.rules().get(0).matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals("hxx", model.rules().get(0).matchConditions().get(0).selector());
- Assertions.assertEquals(RulesEngineOperator.LESS_THAN,
+ Assertions.assertEquals("tdlmkkzevd", model.rules().get(0).matchConditions().get(0).selector());
+ Assertions.assertEquals(RulesEngineOperator.GREATER_THAN_OR_EQUAL,
model.rules().get(0).matchConditions().get(0).rulesEngineOperator());
- Assertions.assertEquals(false, model.rules().get(0).matchConditions().get(0).negateCondition());
- Assertions.assertEquals("xzfe", model.rules().get(0).matchConditions().get(0).rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.UPPERCASE, model.rules().get(0).matchConditions().get(0).transforms().get(0));
+ Assertions.assertEquals(true, model.rules().get(0).matchConditions().get(0).negateCondition());
+ Assertions.assertEquals("usdsttwv",
+ model.rules().get(0).matchConditions().get(0).rulesEngineMatchValue().get(0));
+ Assertions.assertEquals(Transform.TRIM, model.rules().get(0).matchConditions().get(0).transforms().get(0));
Assertions.assertEquals(MatchProcessingBehavior.CONTINUE, model.rules().get(0).matchProcessingBehavior());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- RulesEngineUpdateParameters model = new RulesEngineUpdateParameters().withRules(Arrays.asList(
- new RulesEngineRule().withName("emmsbvdkc")
- .withPriority(1224512622)
- .withAction(new RulesEngineAction()
- .withRequestHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("infwjlfltkacjve")
- .withValue("dlfoakggkfp"),
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("ao")
- .withValue("ulpqblylsyxkqjn")))
- .withResponseHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("vti")
- .withValue("xsdszuempsb"),
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("f")
- .withValue("eyvpnqicvinvkj"),
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("dxrbuukzcle")
- .withValue("hmlwpaztzpo")))
- .withRouteConfigurationOverride(new RouteConfiguration()))
- .withMatchConditions(Arrays.asList(
- new RulesEngineMatchCondition()
- .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_SCHEME)
- .withSelector("hxx")
- .withRulesEngineOperator(RulesEngineOperator.LESS_THAN)
- .withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("xzfe"))
- .withTransforms(Arrays.asList(Transform.UPPERCASE)),
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REMOTE_ADDR)
- .withSelector("iolxor")
- .withRulesEngineOperator(RulesEngineOperator.LESS_THAN_OR_EQUAL)
- .withNegateCondition(true)
- .withRulesEngineMatchValue(Arrays.asList("lmncw", "obqwcsdbnwdcfh", "cqdpfuv", "lsbjjcanvxbv"))
- .withTransforms(Arrays.asList(Transform.LOWERCASE, Transform.REMOVE_NULLS)),
- new RulesEngineMatchCondition()
- .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_METHOD)
- .withSelector("cormr")
- .withRulesEngineOperator(RulesEngineOperator.ANY)
- .withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("cofudflvkgjub", "dknnqvsazn"))
- .withTransforms(Arrays.asList(Transform.URL_DECODE)),
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.IS_MOBILE)
- .withSelector("dsg")
- .withRulesEngineOperator(RulesEngineOperator.ANY)
- .withNegateCondition(false)
- .withRulesEngineMatchValue(Arrays.asList("yc", "rauwjuetaebu", "u"))
- .withTransforms(Arrays.asList(Transform.URL_ENCODE, Transform.URL_ENCODE, Transform.UPPERCASE,
- Transform.LOWERCASE))))
- .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE),
- new RulesEngineRule().withName("xwabmqoe")
- .withPriority(751127894)
- .withAction(new RulesEngineAction()
- .withRequestHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("vtpuqujmqlgk")
- .withValue("tndoaongbjc"),
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("ujitcjedftww")
- .withValue("zkoj")))
- .withResponseHeaderActions(
- Arrays.asList(new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("zfoqouicybxar")
- .withValue("szufoxciqopidoa")))
- .withRouteConfigurationOverride(new RouteConfiguration()))
- .withMatchConditions(Arrays.asList(
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.POST_ARGS)
- .withSelector("zbonlwnt")
- .withRulesEngineOperator(RulesEngineOperator.EQUAL)
- .withNegateCondition(false)
- .withRulesEngineMatchValue(
- Arrays.asList("dwbwhkszzcmrvexz", "vbtqgsfraoyzk", "owtlmnguxawqald"))
- .withTransforms(Arrays.asList(Transform.URL_ENCODE, Transform.TRIM)),
- new RulesEngineMatchCondition()
- .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_SCHEME)
- .withSelector("erqf")
- .withRulesEngineOperator(RulesEngineOperator.ENDS_WITH)
- .withNegateCondition(false)
- .withRulesEngineMatchValue(
- Arrays.asList("nkbykutwpfhp", "gmhrskdsnfdsdoak", "tdlmkkzevd", "hewpusdsttwv"))
- .withTransforms(
- Arrays.asList(Transform.REMOVE_NULLS, Transform.URL_DECODE, Transform.URL_DECODE)),
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_BODY)
- .withSelector("cngqqmoakufgmjz")
- .withRulesEngineOperator(RulesEngineOperator.EQUAL)
- .withNegateCondition(true)
- .withRulesEngineMatchValue(Arrays.asList("rtwaenuuzko", "bminrfdwoyuhhzi"))
- .withTransforms(Arrays.asList(Transform.TRIM, Transform.UPPERCASE, Transform.LOWERCASE))))
- .withMatchProcessingBehavior(MatchProcessingBehavior.STOP)));
+ RulesEngineUpdateParameters model
+ = new RulesEngineUpdateParameters()
+ .withRules(
+ Arrays
+ .asList(
+ new RulesEngineRule().withName("ouicybxarzgszu")
+ .withPriority(1813944379)
+ .withAction(
+ new RulesEngineAction()
+ .withRequestHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("q")
+ .withValue("idoamciodhkha"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("khnzbonlw")
+ .withValue("oegokdwbwh"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("z")
+ .withValue("mrv")))
+ .withResponseHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("vbtqgsfraoyzk")
+ .withValue("wtl"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("guxawqaldsyuuxi")
+ .withValue("rqf"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("wyznkbyku")
+ .withValue("pfhpagmhrskdsnfd")))
+ .withRouteConfigurationOverride(new RouteConfiguration()))
+ .withMatchConditions(
+ Arrays.asList(
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(
+ RulesEngineMatchVariable.REQUEST_FILENAME_EXTENSION)
+ .withSelector("tdlmkkzevd")
+ .withRulesEngineOperator(RulesEngineOperator.GREATER_THAN_OR_EQUAL)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(Arrays.asList("usdsttwv", "gvbbejdcng"))
+ .withTransforms(Arrays.asList(Transform.TRIM)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.POST_ARGS)
+ .withSelector("ufgmjzrwrdg")
+ .withRulesEngineOperator(RulesEngineOperator.GEO_MATCH)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("nuuzkopbm", "nrfdw", "yuhhziu"))
+ .withTransforms(Arrays.asList(Transform.UPPERCASE, Transform.LOWERCASE,
+ Transform.UPPERCASE, Transform.REMOVE_NULLS)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_FILENAME)
+ .withSelector("smlmzqhoftrm")
+ .withRulesEngineOperator(RulesEngineOperator.GREATER_THAN_OR_EQUAL)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("ah", "icslfaoq"))
+ .withTransforms(Arrays.asList(Transform.LOWERCASE, Transform.URL_ENCODE,
+ Transform.URL_ENCODE, Transform.URL_DECODE)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REMOTE_ADDR)
+ .withSelector("nswhcc")
+ .withRulesEngineOperator(RulesEngineOperator.LESS_THAN_OR_EQUAL)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("ivwitqscywugg", "oluhczbwemh",
+ "i"))
+ .withTransforms(Arrays.asList(Transform.URL_DECODE))))
+ .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE),
+ new RulesEngineRule().withName("dwmsweypqwd")
+ .withPriority(840450646)
+ .withAction(new RulesEngineAction()
+ .withRequestHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("ccnxqhuex")
+ .withValue("ttlstvlzywemhz"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("csdtclusiypbs")
+ .withValue("ytguslf")))
+ .withResponseHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("ygqukyhejh")
+ .withValue("sx"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("pelol")
+ .withValue("vk"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("pqvujzraehtwdwrf")
+ .withValue("wib"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("cdl")
+ .withValue("shfwpracstwity")))
+ .withRouteConfigurationOverride(new RouteConfiguration()))
+ .withMatchConditions(
+ Arrays.asList(
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_URI)
+ .withSelector("cedcpnmdy")
+ .withRulesEngineOperator(RulesEngineOperator.LESS_THAN_OR_EQUAL)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("xltjcvnhltiu", "cxnavv"))
+ .withTransforms(Arrays.asList(Transform.URL_ENCODE)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_PATH)
+ .withSelector("qunyowxwlmdjr")
+ .withRulesEngineOperator(RulesEngineOperator.LESS_THAN_OR_EQUAL)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(
+ Arrays.asList("vfvpdbodaciz", "j", "lhkrribdeibqipqk"))
+ .withTransforms(Arrays.asList(Transform.UPPERCASE, Transform.UPPERCASE))))
+ .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE),
+ new RulesEngineRule().withName("wm")
+ .withPriority(1680310004)
+ .withAction(new RulesEngineAction()
+ .withRequestHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("jpjorwkqnyhgb")
+ .withValue("tjivfxzsjabib"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("stawfsdjpvkv")
+ .withValue("jxbkzbzkdvn"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("abudurgk")
+ .withValue("mokzhjjklf")))
+ .withResponseHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("uwqlgzrfzeey")
+ .withValue("izikayuhq"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("jbsybbqw")
+ .withValue("t"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("gmfpgvmp")
+ .withValue("as"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("haq")
+ .withValue("ss")))
+ .withRouteConfigurationOverride(new RouteConfiguration()))
+ .withMatchConditions(
+ Arrays.asList(
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REMOTE_ADDR)
+ .withSelector("dsrezpdrhneuyow")
+ .withRulesEngineOperator(RulesEngineOperator.EQUAL)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("t", "sibircgpi"))
+ .withTransforms(
+ Arrays.asList(Transform.UPPERCASE, Transform.TRIM, Transform.TRIM)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_PATH)
+ .withSelector("anlfzxiavrmbz")
+ .withRulesEngineOperator(RulesEngineOperator.CONTAINS)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(Arrays.asList("xrjqcirgzpfrlazs"))
+ .withTransforms(Arrays.asList(Transform.URL_DECODE, Transform.TRIM)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.IS_MOBILE)
+ .withSelector("ndfpwpj")
+ .withRulesEngineOperator(RulesEngineOperator.ENDS_WITH)
+ .withNegateCondition(false)
+ .withRulesEngineMatchValue(
+ Arrays.asList("lhflsjcdhszfjvf", "gofel", "a", "rqmq"))
+ .withTransforms(Arrays.asList(Transform.UPPERCASE, Transform.URL_DECODE,
+ Transform.UPPERCASE)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.POST_ARGS)
+ .withSelector("ojnal")
+ .withRulesEngineOperator(RulesEngineOperator.CONTAINS)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(Arrays.asList("tvsexsowuel", "qhhahhxvrhmzkwpj",
+ "wws", "ughftqsx"))
+ .withTransforms(Arrays.asList(Transform.REMOVE_NULLS, Transform.TRIM))))
+ .withMatchProcessingBehavior(MatchProcessingBehavior.STOP),
+ new RulesEngineRule().withName("kndxdigrjgu")
+ .withPriority(1040551397)
+ .withAction(new RulesEngineAction()
+ .withRequestHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("syqtfi")
+ .withValue("hbotzingamvppho"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("qzudphq")
+ .withValue("vdkfwynwcvtbvk"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("hmtnvy")
+ .withValue("atkzwpcnpw"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("jaesgvvsccya")
+ .withValue("uq")))
+ .withResponseHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("gzlvdnkfxu")
+ .withValue("mdwzrmuhapfcqdps"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("qvpsvuoymg")
+ .withValue("elvezrypq"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("feo")
+ .withValue("rqwky"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("ob")
+ .withValue("gxedkow")))
+ .withRouteConfigurationOverride(new RouteConfiguration()))
+ .withMatchConditions(Arrays.asList(
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(
+ RulesEngineMatchVariable.REQUEST_FILENAME_EXTENSION)
+ .withSelector("rfkbwccsnjvcdwxl")
+ .withRulesEngineOperator(RulesEngineOperator.BEGINS_WITH)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(Arrays.asList("tn", "htjsying"))
+ .withTransforms(Arrays.asList(Transform.LOWERCASE, Transform.LOWERCASE,
+ Transform.REMOVE_NULLS)),
+ new RulesEngineMatchCondition()
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_BODY)
+ .withSelector("htmdvy")
+ .withRulesEngineOperator(RulesEngineOperator.GREATER_THAN_OR_EQUAL)
+ .withNegateCondition(true)
+ .withRulesEngineMatchValue(
+ Arrays.asList("gszywk", "irryuzhlh", "joqrvqqaatj", "nrvgoupmfiibfgg"))
+ .withTransforms(Arrays.asList(Transform.TRIM))))
+ .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE)));
model = BinaryData.fromObject(model).toObject(RulesEngineUpdateParameters.class);
- Assertions.assertEquals("emmsbvdkc", model.rules().get(0).name());
- Assertions.assertEquals(1224512622, model.rules().get(0).priority());
- Assertions.assertEquals(HeaderActionType.OVERWRITE,
- model.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("infwjlfltkacjve",
- model.rules().get(0).action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals("dlfoakggkfp", model.rules().get(0).action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals("ouicybxarzgszu", model.rules().get(0).name());
+ Assertions.assertEquals(1813944379, model.rules().get(0).priority());
Assertions.assertEquals(HeaderActionType.APPEND,
+ model.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
+ Assertions.assertEquals("q", model.rules().get(0).action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals("idoamciodhkha", model.rules().get(0).action().requestHeaderActions().get(0).value());
+ Assertions.assertEquals(HeaderActionType.DELETE,
model.rules().get(0).action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("vti", model.rules().get(0).action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals("xsdszuempsb", model.rules().get(0).action().responseHeaderActions().get(0).value());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_SCHEME,
+ Assertions.assertEquals("vbtqgsfraoyzk",
+ model.rules().get(0).action().responseHeaderActions().get(0).headerName());
+ Assertions.assertEquals("wtl", model.rules().get(0).action().responseHeaderActions().get(0).value());
+ Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_FILENAME_EXTENSION,
model.rules().get(0).matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals("hxx", model.rules().get(0).matchConditions().get(0).selector());
- Assertions.assertEquals(RulesEngineOperator.LESS_THAN,
+ Assertions.assertEquals("tdlmkkzevd", model.rules().get(0).matchConditions().get(0).selector());
+ Assertions.assertEquals(RulesEngineOperator.GREATER_THAN_OR_EQUAL,
model.rules().get(0).matchConditions().get(0).rulesEngineOperator());
- Assertions.assertEquals(false, model.rules().get(0).matchConditions().get(0).negateCondition());
- Assertions.assertEquals("xzfe", model.rules().get(0).matchConditions().get(0).rulesEngineMatchValue().get(0));
- Assertions.assertEquals(Transform.UPPERCASE, model.rules().get(0).matchConditions().get(0).transforms().get(0));
+ Assertions.assertEquals(true, model.rules().get(0).matchConditions().get(0).negateCondition());
+ Assertions.assertEquals("usdsttwv",
+ model.rules().get(0).matchConditions().get(0).rulesEngineMatchValue().get(0));
+ Assertions.assertEquals(Transform.TRIM, model.rules().get(0).matchConditions().get(0).transforms().get(0));
Assertions.assertEquals(MatchProcessingBehavior.CONTINUE, model.rules().get(0).matchProcessingBehavior());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesCreateOrUpdateMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesCreateOrUpdateMockTests.java
index 090ffcdbf6d82..b24b25cfd169d 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesCreateOrUpdateMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesCreateOrUpdateMockTests.java
@@ -31,7 +31,7 @@ public final class RulesEnginesCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"resourceState\":\"Enabling\",\"rules\":[{\"name\":\"fwmkoisqcssffxui\",\"priority\":573045315,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"p\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"qzrdzsylollg\"},{\"headerActionType\":\"Append\",\"headerName\":\"czzydmxzjij\"},{\"headerActionType\":\"Delete\",\"headerName\":\"uaurkihcir\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"GreaterThanOrEqual\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"}]},\"id\":\"oxnbkkjanurnnqbn\",\"name\":\"bpizxqltgr\",\"type\":\"ogypxrxvbfihwu\"}";
+ = "{\"properties\":{\"resourceState\":\"Disabled\",\"rules\":[{\"name\":\"leseyqrhvyeldo\",\"priority\":353685526,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"wiswskukjtasbvw\"},{\"headerActionType\":\"Delete\",\"headerName\":\"pkxkdtxfk\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"vtwknvgmmbugt\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestUri\",\"rulesEngineOperator\":\"Contains\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"},{\"name\":\"kueatgroeshoy\",\"priority\":1486961645,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"fqxkfaoyteh\"},{\"headerActionType\":\"Delete\",\"headerName\":\"uvjmv\"},{\"headerActionType\":\"Append\",\"headerName\":\"tdwckygr\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"ndljdjuskbr\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestPath\",\"rulesEngineOperator\":\"GeoMatch\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestBody\",\"rulesEngineOperator\":\"BeginsWith\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestPath\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestBody\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"gplwr\",\"priority\":614396820,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"d\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"gkqu\"},{\"headerActionType\":\"Append\",\"headerName\":\"bwptdacarvvlf\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"IsMobile\",\"rulesEngineOperator\":\"EndsWith\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"}]},\"id\":\"wenaz\",\"name\":\"r\",\"type\":\"hzr\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -41,99 +41,76 @@ public void testCreateOrUpdate() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
RulesEngine response = manager.rulesEngines()
- .define("ulwgniiprglvawuw")
- .withExistingFrontDoor("wdtgukranblw", "hqlkccuzgygqwaho")
+ .define("liuhqawmoaiancz")
+ .withExistingFrontDoor("ewj", "s")
.withRules(Arrays.asList(
- new RulesEngineRule().withName("ivlsbbjpmc")
- .withPriority(543267729)
- .withAction(new RulesEngineAction().withRequestHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("foxx"),
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("bvphavpm"),
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("rbqgvgov")))
- .withResponseHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("tefjoknssqyzq"),
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("ik"),
+ new RulesEngineRule().withName("slblxydkxrxvvb")
+ .withPriority(611172975)
+ .withAction(new RulesEngineAction()
+ .withRequestHeaderActions(Arrays.asList(
new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("rdbiqmrjge")))
+ .withHeaderName("fbqljnqkh"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("h"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
+ .withHeaderName("okulehurqlrqf")))
+ .withResponseHeaderActions(Arrays.asList(
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND).withHeaderName("yur"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("hy"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("xra")))
.withRouteConfigurationOverride(new RouteConfiguration()))
.withMatchConditions(Arrays.asList(
new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.POST_ARGS)
- .withRulesEngineOperator(RulesEngineOperator.EQUAL)
+ .withRulesEngineOperator(RulesEngineOperator.ANY)
.withRulesEngineMatchValue(Arrays.asList()),
new RulesEngineMatchCondition()
- .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_METHOD)
- .withRulesEngineOperator(RulesEngineOperator.GREATER_THAN_OR_EQUAL)
- .withRulesEngineMatchValue(Arrays.asList())))
- .withMatchProcessingBehavior(MatchProcessingBehavior.STOP),
- new RulesEngineRule().withName("wzcxmjpbyephmgt")
- .withPriority(2078658730)
- .withAction(new RulesEngineAction().withRequestHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("cmyfqipgxhnpo"),
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND).withHeaderName("qwcabvnui"),
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("ey"),
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("wlpaugmrmfjlrxwt")))
- .withResponseHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.DELETE)
- .withHeaderName("hfkvcisizmoaedsx"),
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
- .withHeaderName("uivedwcgyeewxeiq")))
- .withRouteConfigurationOverride(new RouteConfiguration()))
- .withMatchConditions(Arrays.asList(
- new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.IS_MOBILE)
- .withRulesEngineOperator(RulesEngineOperator.EQUAL)
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_SCHEME)
+ .withRulesEngineOperator(RulesEngineOperator.BEGINS_WITH)
.withRulesEngineMatchValue(Arrays.asList()),
new RulesEngineMatchCondition()
- .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_FILENAME_EXTENSION)
- .withRulesEngineOperator(RulesEngineOperator.ANY)
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REMOTE_ADDR)
+ .withRulesEngineOperator(RulesEngineOperator.LESS_THAN_OR_EQUAL)
.withRulesEngineMatchValue(Arrays.asList())))
.withMatchProcessingBehavior(MatchProcessingBehavior.STOP),
- new RulesEngineRule().withName("mljdlrgmsplzga")
- .withPriority(1214868760)
+ new RulesEngineRule().withName("hbapxkiyf")
+ .withPriority(73723123)
.withAction(new RulesEngineAction()
.withRequestHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("hvn"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.DELETE).withHeaderName("jbuscg"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND).withHeaderName("u"),
new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
- .withHeaderName("gnxkympqan"),
- new HeaderAction().withHeaderActionType(HeaderActionType.APPEND).withHeaderName("jk")))
+ .withHeaderName("oycblevpmc"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND).withHeaderName("jy")))
.withResponseHeaderActions(Arrays.asList(
- new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE).withHeaderName("bta")))
+ new HeaderAction().withHeaderActionType(HeaderActionType.OVERWRITE)
+ .withHeaderName("lzgsjgkzzlt"),
+ new HeaderAction().withHeaderActionType(HeaderActionType.APPEND)
+ .withHeaderName("hbzffovwmbjlzqs")))
.withRouteConfigurationOverride(new RouteConfiguration()))
.withMatchConditions(Arrays.asList(
- new RulesEngineMatchCondition()
- .withRulesEngineMatchVariable(RulesEngineMatchVariable.QUERY_STRING)
- .withRulesEngineOperator(RulesEngineOperator.ANY)
- .withRulesEngineMatchValue(Arrays.asList()),
- new RulesEngineMatchCondition()
- .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_METHOD)
- .withRulesEngineOperator(RulesEngineOperator.GEO_MATCH)
- .withRulesEngineMatchValue(Arrays.asList()),
- new RulesEngineMatchCondition()
- .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_METHOD)
- .withRulesEngineOperator(RulesEngineOperator.ENDS_WITH)
+ new RulesEngineMatchCondition().withRulesEngineMatchVariable(RulesEngineMatchVariable.IS_MOBILE)
+ .withRulesEngineOperator(RulesEngineOperator.EQUAL)
.withRulesEngineMatchValue(Arrays.asList()),
new RulesEngineMatchCondition()
- .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_SCHEME)
- .withRulesEngineOperator(RulesEngineOperator.IPMATCH)
+ .withRulesEngineMatchVariable(RulesEngineMatchVariable.REQUEST_HEADER)
+ .withRulesEngineOperator(RulesEngineOperator.CONTAINS)
.withRulesEngineMatchValue(Arrays.asList())))
- .withMatchProcessingBehavior(MatchProcessingBehavior.CONTINUE)))
+ .withMatchProcessingBehavior(MatchProcessingBehavior.STOP)))
.create();
- Assertions.assertEquals("fwmkoisqcssffxui", response.rules().get(0).name());
- Assertions.assertEquals(573045315, response.rules().get(0).priority());
- Assertions.assertEquals(HeaderActionType.APPEND,
+ Assertions.assertEquals("leseyqrhvyeldo", response.rules().get(0).name());
+ Assertions.assertEquals(353685526, response.rules().get(0).priority());
+ Assertions.assertEquals(HeaderActionType.DELETE,
response.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("p", response.rules().get(0).action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals(HeaderActionType.APPEND,
+ Assertions.assertEquals("wiswskukjtasbvw",
+ response.rules().get(0).action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals(HeaderActionType.OVERWRITE,
response.rules().get(0).action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("qzrdzsylollg",
+ Assertions.assertEquals("vtwknvgmmbugt",
response.rules().get(0).action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_HEADER,
+ Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_URI,
response.rules().get(0).matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals(RulesEngineOperator.GREATER_THAN_OR_EQUAL,
+ Assertions.assertEquals(RulesEngineOperator.CONTAINS,
response.rules().get(0).matchConditions().get(0).rulesEngineOperator());
- Assertions.assertEquals(MatchProcessingBehavior.CONTINUE, response.rules().get(0).matchProcessingBehavior());
+ Assertions.assertEquals(MatchProcessingBehavior.STOP, response.rules().get(0).matchProcessingBehavior());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesGetWithResponseMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesGetWithResponseMockTests.java
index b1134f5fd6959..a609b4e4fdf21 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesGetWithResponseMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesGetWithResponseMockTests.java
@@ -25,7 +25,7 @@ public final class RulesEnginesGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"resourceState\":\"Disabled\",\"rules\":[{\"name\":\"ugfsxzecpaxwk\",\"priority\":1277972193,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"vuhx\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"mrutznabaobnsluj\"},{\"headerActionType\":\"Append\",\"headerName\":\"ltymkmvguihywart\"},{\"headerActionType\":\"Append\",\"headerName\":\"phkixkykxdssjpe\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"fxhikkflrmymyi\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestFilename\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"EndsWith\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"}]},\"id\":\"lmiiiovg\",\"name\":\"cgxuugqkctotiowl\",\"type\":\"teqdptj\"}";
+ = "{\"properties\":{\"resourceState\":\"Deleting\",\"rules\":[{\"name\":\"cnhz\",\"priority\":1513584029,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"jzcfyjzptwr\"},{\"headerActionType\":\"Delete\",\"headerName\":\"h\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"qinfszpyglqd\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"zralcxpjbyyps\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"qcjenkyhf\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"PostArgs\",\"rulesEngineOperator\":\"GreaterThan\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"Equal\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"LessThan\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestPath\",\"rulesEngineOperator\":\"IPMatch\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"},{\"name\":\"pzqjhhhq\",\"priority\":663285814,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"cacoyvivbsiz\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"zlbscmnlziji\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"ehgmvflnwyv\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"QueryString\",\"rulesEngineOperator\":\"EndsWith\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"GreaterThanOrEqual\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"lylyfwxzutgqz\",\"priority\":1687298742,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"mupgxy\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"xabb\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestHeader\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"QueryString\",\"rulesEngineOperator\":\"LessThan\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"},{\"name\":\"klqpx\",\"priority\":1851207538,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"e\"},{\"headerActionType\":\"Delete\",\"headerName\":\"wwnlzafwxudgnh\"},{\"headerActionType\":\"Append\",\"headerName\":\"okrtalvnb\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"emeluclv\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"jukyrdn\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestFilename\",\"rulesEngineOperator\":\"IPMatch\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"QueryString\",\"rulesEngineOperator\":\"Contains\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestFilename\",\"rulesEngineOperator\":\"Contains\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"IsMobile\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"}]},\"id\":\"vzoqgyipemchgavs\",\"name\":\"zuejd\",\"type\":\"xptlghwzho\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -35,22 +35,23 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
RulesEngine response = manager.rulesEngines()
- .getWithResponse("srlsmd", "sqplpvmjcd", "ewbidyvteowxv", com.azure.core.util.Context.NONE)
+ .getWithResponse("mffjkutycyarn", "oohguabzoghkt", "pyc", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("ugfsxzecpaxwk", response.rules().get(0).name());
- Assertions.assertEquals(1277972193, response.rules().get(0).priority());
- Assertions.assertEquals(HeaderActionType.DELETE,
+ Assertions.assertEquals("cnhz", response.rules().get(0).name());
+ Assertions.assertEquals(1513584029, response.rules().get(0).priority());
+ Assertions.assertEquals(HeaderActionType.OVERWRITE,
response.rules().get(0).action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("vuhx", response.rules().get(0).action().requestHeaderActions().get(0).headerName());
+ Assertions.assertEquals("jzcfyjzptwr",
+ response.rules().get(0).action().requestHeaderActions().get(0).headerName());
Assertions.assertEquals(HeaderActionType.APPEND,
response.rules().get(0).action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("fxhikkflrmymyi",
+ Assertions.assertEquals("zralcxpjbyyps",
response.rules().get(0).action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_FILENAME,
+ Assertions.assertEquals(RulesEngineMatchVariable.POST_ARGS,
response.rules().get(0).matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals(RulesEngineOperator.ANY,
+ Assertions.assertEquals(RulesEngineOperator.GREATER_THAN,
response.rules().get(0).matchConditions().get(0).rulesEngineOperator());
- Assertions.assertEquals(MatchProcessingBehavior.CONTINUE, response.rules().get(0).matchProcessingBehavior());
+ Assertions.assertEquals(MatchProcessingBehavior.STOP, response.rules().get(0).matchProcessingBehavior());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesListByFrontDoorMockTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesListByFrontDoorMockTests.java
index 8fe5d3a7b106d..49c4c7229656b 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesListByFrontDoorMockTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/RulesEnginesListByFrontDoorMockTests.java
@@ -26,7 +26,7 @@ public final class RulesEnginesListByFrontDoorMockTests {
@Test
public void testListByFrontDoor() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"resourceState\":\"Disabling\",\"rules\":[{\"name\":\"dvlvhbwrnfxtgdd\",\"priority\":994119130,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"hn\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"aoyankcoeqswa\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"ltytmhdr\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Delete\",\"headerName\":\"hdrlktg\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"sggux\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"QueryString\",\"rulesEngineOperator\":\"GreaterThanOrEqual\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestBody\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Continue\"}]},\"id\":\"czg\",\"name\":\"bukklels\",\"type\":\"xblycsxzuj\"}]}";
+ = "{\"value\":[{\"properties\":{\"resourceState\":\"Creating\",\"rules\":[{\"name\":\"tvlxhrpqh\",\"priority\":1760825319,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"ouq\"},{\"headerActionType\":\"Append\",\"headerName\":\"bhbcdszir\"},{\"headerActionType\":\"Append\",\"headerName\":\"an\"},{\"headerActionType\":\"Append\",\"headerName\":\"ypmbltoormkfq\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"dykalsygaolnjpnn\"},{\"headerActionType\":\"Delete\",\"headerName\":\"jksibjg\"},{\"headerActionType\":\"Overwrite\",\"headerName\":\"jxxahmrnad\"},{\"headerActionType\":\"Delete\",\"headerName\":\"qegxyivpin\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestMethod\",\"rulesEngineOperator\":\"BeginsWith\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestFilename\",\"rulesEngineOperator\":\"LessThan\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"},{\"name\":\"qxnhmb\",\"priority\":2095777913,\"action\":{\"requestHeaderActions\":[{\"headerActionType\":\"Append\",\"headerName\":\"aujvaa\"},{\"headerActionType\":\"Append\",\"headerName\":\"ggiycwkdtaawxwf\"},{\"headerActionType\":\"Delete\",\"headerName\":\"aumrrqmbzmqkrat\"}],\"responseHeaderActions\":[{\"headerActionType\":\"Overwrite\",\"headerName\":\"bjsidb\"},{\"headerActionType\":\"Append\",\"headerName\":\"kfpksokdgo\"}],\"routeConfigurationOverride\":{\"@odata.type\":\"RouteConfiguration\"}},\"matchConditions\":[{\"rulesEngineMatchVariable\":\"RequestPath\",\"rulesEngineOperator\":\"LessThanOrEqual\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestPath\",\"rulesEngineOperator\":\"EndsWith\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"RequestScheme\",\"rulesEngineOperator\":\"GreaterThanOrEqual\",\"rulesEngineMatchValue\":[]},{\"rulesEngineMatchVariable\":\"QueryString\",\"rulesEngineOperator\":\"Any\",\"rulesEngineMatchValue\":[]}],\"matchProcessingBehavior\":\"Stop\"}]},\"id\":\"zkye\",\"name\":\"nfnzhhh\",\"type\":\"o\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -36,23 +36,23 @@ public void testListByFrontDoor() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response
- = manager.rulesEngines().listByFrontDoor("comlikytwvczc", "wka", com.azure.core.util.Context.NONE);
+ = manager.rulesEngines().listByFrontDoor("br", "ffg", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("dvlvhbwrnfxtgdd", response.iterator().next().rules().get(0).name());
- Assertions.assertEquals(994119130, response.iterator().next().rules().get(0).priority());
- Assertions.assertEquals(HeaderActionType.APPEND,
+ Assertions.assertEquals("tvlxhrpqh", response.iterator().next().rules().get(0).name());
+ Assertions.assertEquals(1760825319, response.iterator().next().rules().get(0).priority());
+ Assertions.assertEquals(HeaderActionType.OVERWRITE,
response.iterator().next().rules().get(0).action().requestHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("hn",
+ Assertions.assertEquals("ouq",
response.iterator().next().rules().get(0).action().requestHeaderActions().get(0).headerName());
- Assertions.assertEquals(HeaderActionType.DELETE,
+ Assertions.assertEquals(HeaderActionType.APPEND,
response.iterator().next().rules().get(0).action().responseHeaderActions().get(0).headerActionType());
- Assertions.assertEquals("hdrlktg",
+ Assertions.assertEquals("dykalsygaolnjpnn",
response.iterator().next().rules().get(0).action().responseHeaderActions().get(0).headerName());
- Assertions.assertEquals(RulesEngineMatchVariable.QUERY_STRING,
+ Assertions.assertEquals(RulesEngineMatchVariable.REQUEST_METHOD,
response.iterator().next().rules().get(0).matchConditions().get(0).rulesEngineMatchVariable());
- Assertions.assertEquals(RulesEngineOperator.GREATER_THAN_OR_EQUAL,
+ Assertions.assertEquals(RulesEngineOperator.BEGINS_WITH,
response.iterator().next().rules().get(0).matchConditions().get(0).rulesEngineOperator());
- Assertions.assertEquals(MatchProcessingBehavior.CONTINUE,
+ Assertions.assertEquals(MatchProcessingBehavior.STOP,
response.iterator().next().rules().get(0).matchProcessingBehavior());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesDataPointTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesDataPointTests.java
index 957a2ab32d8c0..24d4b909a0bd0 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesDataPointTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesDataPointTests.java
@@ -11,17 +11,17 @@
public final class TimeseriesDataPointTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- TimeseriesDataPoint model = BinaryData.fromString("{\"dateTimeUTC\":\"khgn\",\"value\":80.48488}")
+ TimeseriesDataPoint model = BinaryData.fromString("{\"dateTimeUTC\":\"xznptgoeiyb\",\"value\":11.274921}")
.toObject(TimeseriesDataPoint.class);
- Assertions.assertEquals("khgn", model.dateTimeUtc());
- Assertions.assertEquals(80.48488F, model.value());
+ Assertions.assertEquals("xznptgoeiyb", model.dateTimeUtc());
+ Assertions.assertEquals(11.274921F, model.value());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- TimeseriesDataPoint model = new TimeseriesDataPoint().withDateTimeUtc("khgn").withValue(80.48488F);
+ TimeseriesDataPoint model = new TimeseriesDataPoint().withDateTimeUtc("xznptgoeiyb").withValue(11.274921F);
model = BinaryData.fromObject(model).toObject(TimeseriesDataPoint.class);
- Assertions.assertEquals("khgn", model.dateTimeUtc());
- Assertions.assertEquals(80.48488F, model.value());
+ Assertions.assertEquals("xznptgoeiyb", model.dateTimeUtc());
+ Assertions.assertEquals(11.274921F, model.value());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesInnerTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesInnerTests.java
index b1fb6a098cd11..02df9be0582cd 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesInnerTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesInnerTests.java
@@ -18,46 +18,45 @@ public final class TimeseriesInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
TimeseriesInner model = BinaryData.fromString(
- "{\"properties\":{\"endpoint\":\"kjpdnjzhajo\",\"startDateTimeUTC\":\"hjlmu\",\"endDateTimeUTC\":\"xprimrsop\",\"aggregationInterval\":\"Hourly\",\"timeseriesType\":\"MeasurementCounts\",\"country\":\"eislstvasylwx\",\"timeseriesData\":[{\"dateTimeUTC\":\"mweoohgu\",\"value\":61.49866},{\"dateTimeUTC\":\"boyjathwt\",\"value\":71.97595},{\"dateTimeUTC\":\"a\",\"value\":10.500872},{\"dateTimeUTC\":\"dxmeb\",\"value\":50.187386}]},\"location\":\"cjpahl\",\"tags\":{\"f\":\"a\",\"qcttadijaeukmrsi\":\"xnmwmqtibxyijddt\"},\"id\":\"ekpndzaapmudq\",\"name\":\"eqw\",\"type\":\"gp\"}")
+ "{\"properties\":{\"endpoint\":\"zmqpnodawopqhewj\",\"startDateTimeUTC\":\"mcgsbostzelnd\",\"endDateTimeUTC\":\"tutmzl\",\"aggregationInterval\":\"Daily\",\"timeseriesType\":\"LatencyP50\",\"country\":\"fhrbbpneqvcw\",\"timeseriesData\":[{\"dateTimeUTC\":\"r\",\"value\":23.208946},{\"dateTimeUTC\":\"ppr\",\"value\":61.050842},{\"dateTimeUTC\":\"mo\",\"value\":51.150536},{\"dateTimeUTC\":\"ejnhlbkpb\",\"value\":30.076385}]},\"location\":\"piljhahzvech\",\"tags\":{\"uubw\":\"nwieholewjw\",\"aqtferr\":\"fqsfa\",\"nobpudcdabtqwpw\":\"wexjkmfxapjwogq\"},\"id\":\"awbzasqb\",\"name\":\"clj\",\"type\":\"kyexaoguyaipi\"}")
.toObject(TimeseriesInner.class);
- Assertions.assertEquals("cjpahl", model.location());
- Assertions.assertEquals("a", model.tags().get("f"));
- Assertions.assertEquals("kjpdnjzhajo", model.endpoint());
- Assertions.assertEquals("hjlmu", model.startDateTimeUtc());
- Assertions.assertEquals("xprimrsop", model.endDateTimeUtc());
- Assertions.assertEquals(AggregationInterval.HOURLY, model.aggregationInterval());
- Assertions.assertEquals(TimeseriesType.MEASUREMENT_COUNTS, model.timeseriesType());
- Assertions.assertEquals("eislstvasylwx", model.country());
- Assertions.assertEquals("mweoohgu", model.timeseriesData().get(0).dateTimeUtc());
- Assertions.assertEquals(61.49866F, model.timeseriesData().get(0).value());
+ Assertions.assertEquals("piljhahzvech", model.location());
+ Assertions.assertEquals("nwieholewjw", model.tags().get("uubw"));
+ Assertions.assertEquals("zmqpnodawopqhewj", model.endpoint());
+ Assertions.assertEquals("mcgsbostzelnd", model.startDateTimeUtc());
+ Assertions.assertEquals("tutmzl", model.endDateTimeUtc());
+ Assertions.assertEquals(AggregationInterval.DAILY, model.aggregationInterval());
+ Assertions.assertEquals(TimeseriesType.LATENCY_P50, model.timeseriesType());
+ Assertions.assertEquals("fhrbbpneqvcw", model.country());
+ Assertions.assertEquals("r", model.timeseriesData().get(0).dateTimeUtc());
+ Assertions.assertEquals(23.208946F, model.timeseriesData().get(0).value());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- TimeseriesInner model = new TimeseriesInner().withLocation("cjpahl")
- .withTags(mapOf("f", "a", "qcttadijaeukmrsi", "xnmwmqtibxyijddt"))
- .withEndpoint("kjpdnjzhajo")
- .withStartDateTimeUtc("hjlmu")
- .withEndDateTimeUtc("xprimrsop")
- .withAggregationInterval(AggregationInterval.HOURLY)
- .withTimeseriesType(TimeseriesType.MEASUREMENT_COUNTS)
- .withCountry("eislstvasylwx")
- .withTimeseriesData(
- Arrays.asList(new TimeseriesDataPoint().withDateTimeUtc("mweoohgu").withValue(61.49866F),
- new TimeseriesDataPoint().withDateTimeUtc("boyjathwt").withValue(71.97595F),
- new TimeseriesDataPoint().withDateTimeUtc("a").withValue(10.500872F),
- new TimeseriesDataPoint().withDateTimeUtc("dxmeb").withValue(50.187386F)));
+ TimeseriesInner model = new TimeseriesInner().withLocation("piljhahzvech")
+ .withTags(mapOf("uubw", "nwieholewjw", "aqtferr", "fqsfa", "nobpudcdabtqwpw", "wexjkmfxapjwogq"))
+ .withEndpoint("zmqpnodawopqhewj")
+ .withStartDateTimeUtc("mcgsbostzelnd")
+ .withEndDateTimeUtc("tutmzl")
+ .withAggregationInterval(AggregationInterval.DAILY)
+ .withTimeseriesType(TimeseriesType.LATENCY_P50)
+ .withCountry("fhrbbpneqvcw")
+ .withTimeseriesData(Arrays.asList(new TimeseriesDataPoint().withDateTimeUtc("r").withValue(23.208946F),
+ new TimeseriesDataPoint().withDateTimeUtc("ppr").withValue(61.050842F),
+ new TimeseriesDataPoint().withDateTimeUtc("mo").withValue(51.150536F),
+ new TimeseriesDataPoint().withDateTimeUtc("ejnhlbkpb").withValue(30.076385F)));
model = BinaryData.fromObject(model).toObject(TimeseriesInner.class);
- Assertions.assertEquals("cjpahl", model.location());
- Assertions.assertEquals("a", model.tags().get("f"));
- Assertions.assertEquals("kjpdnjzhajo", model.endpoint());
- Assertions.assertEquals("hjlmu", model.startDateTimeUtc());
- Assertions.assertEquals("xprimrsop", model.endDateTimeUtc());
- Assertions.assertEquals(AggregationInterval.HOURLY, model.aggregationInterval());
- Assertions.assertEquals(TimeseriesType.MEASUREMENT_COUNTS, model.timeseriesType());
- Assertions.assertEquals("eislstvasylwx", model.country());
- Assertions.assertEquals("mweoohgu", model.timeseriesData().get(0).dateTimeUtc());
- Assertions.assertEquals(61.49866F, model.timeseriesData().get(0).value());
+ Assertions.assertEquals("piljhahzvech", model.location());
+ Assertions.assertEquals("nwieholewjw", model.tags().get("uubw"));
+ Assertions.assertEquals("zmqpnodawopqhewj", model.endpoint());
+ Assertions.assertEquals("mcgsbostzelnd", model.startDateTimeUtc());
+ Assertions.assertEquals("tutmzl", model.endDateTimeUtc());
+ Assertions.assertEquals(AggregationInterval.DAILY, model.aggregationInterval());
+ Assertions.assertEquals(TimeseriesType.LATENCY_P50, model.timeseriesType());
+ Assertions.assertEquals("fhrbbpneqvcw", model.country());
+ Assertions.assertEquals("r", model.timeseriesData().get(0).dateTimeUtc());
+ Assertions.assertEquals(23.208946F, model.timeseriesData().get(0).value());
}
// Use "Map.of" if available
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesPropertiesTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesPropertiesTests.java
index 3ad73dcad8dd7..4e1ebfaf1c7f5 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesPropertiesTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/TimeseriesPropertiesTests.java
@@ -16,38 +16,39 @@ public final class TimeseriesPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
TimeseriesProperties model = BinaryData.fromString(
- "{\"endpoint\":\"udqwyxebeybpmzz\",\"startDateTimeUTC\":\"tffyaqit\",\"endDateTimeUTC\":\"heioqa\",\"aggregationInterval\":\"Hourly\",\"timeseriesType\":\"LatencyP95\",\"country\":\"fuqyrxpdlcgqlsi\",\"timeseriesData\":[{\"dateTimeUTC\":\"frddgamquhiosrsj\",\"value\":58.48823},{\"dateTimeUTC\":\"cdisyir\",\"value\":97.895584},{\"dateTimeUTC\":\"czexrxzbujrtrhqv\",\"value\":21.759623}]}")
+ "{\"endpoint\":\"daultxijjumfq\",\"startDateTimeUTC\":\"z\",\"endDateTimeUTC\":\"qnmcjngzqdqx\",\"aggregationInterval\":\"Hourly\",\"timeseriesType\":\"MeasurementCounts\",\"country\":\"yfu\",\"timeseriesData\":[{\"dateTimeUTC\":\"vtuikzhajq\",\"value\":72.3863},{\"dateTimeUTC\":\"hm\",\"value\":36.039417},{\"dateTimeUTC\":\"yxynq\",\"value\":8.290434},{\"dateTimeUTC\":\"p\",\"value\":27.988852}]}")
.toObject(TimeseriesProperties.class);
- Assertions.assertEquals("udqwyxebeybpmzz", model.endpoint());
- Assertions.assertEquals("tffyaqit", model.startDateTimeUtc());
- Assertions.assertEquals("heioqa", model.endDateTimeUtc());
+ Assertions.assertEquals("daultxijjumfq", model.endpoint());
+ Assertions.assertEquals("z", model.startDateTimeUtc());
+ Assertions.assertEquals("qnmcjngzqdqx", model.endDateTimeUtc());
Assertions.assertEquals(AggregationInterval.HOURLY, model.aggregationInterval());
- Assertions.assertEquals(TimeseriesType.LATENCY_P95, model.timeseriesType());
- Assertions.assertEquals("fuqyrxpdlcgqlsi", model.country());
- Assertions.assertEquals("frddgamquhiosrsj", model.timeseriesData().get(0).dateTimeUtc());
- Assertions.assertEquals(58.48823F, model.timeseriesData().get(0).value());
+ Assertions.assertEquals(TimeseriesType.MEASUREMENT_COUNTS, model.timeseriesType());
+ Assertions.assertEquals("yfu", model.country());
+ Assertions.assertEquals("vtuikzhajq", model.timeseriesData().get(0).dateTimeUtc());
+ Assertions.assertEquals(72.3863F, model.timeseriesData().get(0).value());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- TimeseriesProperties model = new TimeseriesProperties().withEndpoint("udqwyxebeybpmzz")
- .withStartDateTimeUtc("tffyaqit")
- .withEndDateTimeUtc("heioqa")
+ TimeseriesProperties model = new TimeseriesProperties().withEndpoint("daultxijjumfq")
+ .withStartDateTimeUtc("z")
+ .withEndDateTimeUtc("qnmcjngzqdqx")
.withAggregationInterval(AggregationInterval.HOURLY)
- .withTimeseriesType(TimeseriesType.LATENCY_P95)
- .withCountry("fuqyrxpdlcgqlsi")
+ .withTimeseriesType(TimeseriesType.MEASUREMENT_COUNTS)
+ .withCountry("yfu")
.withTimeseriesData(
- Arrays.asList(new TimeseriesDataPoint().withDateTimeUtc("frddgamquhiosrsj").withValue(58.48823F),
- new TimeseriesDataPoint().withDateTimeUtc("cdisyir").withValue(97.895584F),
- new TimeseriesDataPoint().withDateTimeUtc("czexrxzbujrtrhqv").withValue(21.759623F)));
+ Arrays.asList(new TimeseriesDataPoint().withDateTimeUtc("vtuikzhajq").withValue(72.3863F),
+ new TimeseriesDataPoint().withDateTimeUtc("hm").withValue(36.039417F),
+ new TimeseriesDataPoint().withDateTimeUtc("yxynq").withValue(8.290434F),
+ new TimeseriesDataPoint().withDateTimeUtc("p").withValue(27.988852F)));
model = BinaryData.fromObject(model).toObject(TimeseriesProperties.class);
- Assertions.assertEquals("udqwyxebeybpmzz", model.endpoint());
- Assertions.assertEquals("tffyaqit", model.startDateTimeUtc());
- Assertions.assertEquals("heioqa", model.endDateTimeUtc());
+ Assertions.assertEquals("daultxijjumfq", model.endpoint());
+ Assertions.assertEquals("z", model.startDateTimeUtc());
+ Assertions.assertEquals("qnmcjngzqdqx", model.endDateTimeUtc());
Assertions.assertEquals(AggregationInterval.HOURLY, model.aggregationInterval());
- Assertions.assertEquals(TimeseriesType.LATENCY_P95, model.timeseriesType());
- Assertions.assertEquals("fuqyrxpdlcgqlsi", model.country());
- Assertions.assertEquals("frddgamquhiosrsj", model.timeseriesData().get(0).dateTimeUtc());
- Assertions.assertEquals(58.48823F, model.timeseriesData().get(0).value());
+ Assertions.assertEquals(TimeseriesType.MEASUREMENT_COUNTS, model.timeseriesType());
+ Assertions.assertEquals("yfu", model.country());
+ Assertions.assertEquals("vtuikzhajq", model.timeseriesData().get(0).dateTimeUtc());
+ Assertions.assertEquals(72.3863F, model.timeseriesData().get(0).value());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ValidateCustomDomainInputTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ValidateCustomDomainInputTests.java
index 1a7cc88c9412e..16e4a86b673c2 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ValidateCustomDomainInputTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ValidateCustomDomainInputTests.java
@@ -12,14 +12,14 @@ public final class ValidateCustomDomainInputTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ValidateCustomDomainInput model
- = BinaryData.fromString("{\"hostName\":\"l\"}").toObject(ValidateCustomDomainInput.class);
- Assertions.assertEquals("l", model.hostname());
+ = BinaryData.fromString("{\"hostName\":\"ousnfepgfewe\"}").toObject(ValidateCustomDomainInput.class);
+ Assertions.assertEquals("ousnfepgfewe", model.hostname());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ValidateCustomDomainInput model = new ValidateCustomDomainInput().withHostname("l");
+ ValidateCustomDomainInput model = new ValidateCustomDomainInput().withHostname("ousnfepgfewe");
model = BinaryData.fromObject(model).toObject(ValidateCustomDomainInput.class);
- Assertions.assertEquals("l", model.hostname());
+ Assertions.assertEquals("ousnfepgfewe", model.hostname());
}
}
diff --git a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ValidateCustomDomainOutputInnerTests.java b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ValidateCustomDomainOutputInnerTests.java
index 82a3ad9597596..dd1191bd24052 100644
--- a/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ValidateCustomDomainOutputInnerTests.java
+++ b/sdk/frontdoor/azure-resourcemanager-frontdoor/src/test/java/com/azure/resourcemanager/frontdoor/generated/ValidateCustomDomainOutputInnerTests.java
@@ -10,9 +10,9 @@
public final class ValidateCustomDomainOutputInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- ValidateCustomDomainOutputInner model = BinaryData
- .fromString("{\"customDomainValidated\":false,\"reason\":\"odbzevwrdnhf\",\"message\":\"uvsj\"}")
- .toObject(ValidateCustomDomainOutputInner.class);
+ ValidateCustomDomainOutputInner model
+ = BinaryData.fromString("{\"customDomainValidated\":false,\"reason\":\"xgncxyk\",\"message\":\"djhlimm\"}")
+ .toObject(ValidateCustomDomainOutputInner.class);
}
@org.junit.jupiter.api.Test