diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 04b2baa234de..4f23cc8b24d2 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -331,7 +331,7 @@ com.azure.resourcemanager:azure-resourcemanager-attestation;1.0.0-beta.3;1.0.0-b
com.azure.resourcemanager:azure-resourcemanager-azurestack;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-azurestackhci;1.0.0-beta.5;1.0.0-beta.6
com.azure.resourcemanager:azure-resourcemanager-avs;1.2.0;1.3.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-consumption;1.0.0-beta.4;1.0.0-beta.5
+com.azure.resourcemanager:azure-resourcemanager-consumption;1.0.0-beta.4;1.0.0
com.azure.resourcemanager:azure-resourcemanager-commerce;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-billing;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-batchai;1.0.0-beta.1;1.0.0-beta.2
diff --git a/sdk/consumption/azure-resourcemanager-consumption/CHANGELOG.md b/sdk/consumption/azure-resourcemanager-consumption/CHANGELOG.md
index ef96ee6ac3fd..68e4ccedf6bc 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/CHANGELOG.md
+++ b/sdk/consumption/azure-resourcemanager-consumption/CHANGELOG.md
@@ -1,14 +1,82 @@
# Release History
-## 1.0.0-beta.5 (Unreleased)
+## 1.0.0 (2024-12-24)
-### Features Added
+- Azure Resource Manager Consumption client library for Java. This package contains Microsoft Azure SDK for Consumption Management SDK. Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions. Package tag package-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.ModernSingleScopeReservationRecommendationProperties` was modified
+
+* `location()` was removed
+* `instanceFlexibilityRatio()` was removed
+* `recommendedQuantityNormalized()` was removed
+* `skuProperties()` was removed
+* `firstUsageDate()` was removed
+* `netSavings()` was removed
+* `skuName()` was removed
+* `term()` was removed
+* `normalizedSize()` was removed
+* `recommendedQuantity()` was removed
+* `costWithNoReservedInstances()` was removed
+* `meterId()` was removed
+* `instanceFlexibilityGroup()` was removed
+* `lookBackPeriod()` was removed
+* `totalCostWithReservedInstances()` was removed
+* `resourceType()` was removed
+
+#### `models.ModernSharedScopeReservationRecommendationProperties` was modified
+
+* `term()` was removed
+* `totalCostWithReservedInstances()` was removed
+* `recommendedQuantity()` was removed
+* `instanceFlexibilityRatio()` was removed
+* `resourceType()` was removed
+* `firstUsageDate()` was removed
+* `location()` was removed
+* `normalizedSize()` was removed
+* `skuName()` was removed
+* `skuProperties()` was removed
+* `meterId()` was removed
+* `lookBackPeriod()` was removed
+* `instanceFlexibilityGroup()` was removed
+* `costWithNoReservedInstances()` was removed
+* `netSavings()` was removed
+* `recommendedQuantityNormalized()` was removed
+
+#### `models.LegacySharedScopeReservationRecommendationProperties` was modified
+
+* `lookBackPeriod()` was removed
+* `firstUsageDate()` was removed
+* `resourceType()` was removed
+* `recommendedQuantity()` was removed
+* `recommendedQuantityNormalized()` was removed
+* `instanceFlexibilityGroup()` was removed
+* `instanceFlexibilityRatio()` was removed
+* `costWithNoReservedInstances()` was removed
+* `normalizedSize()` was removed
+* `meterId()` was removed
+* `term()` was removed
+* `totalCostWithReservedInstances()` was removed
+* `skuProperties()` was removed
+* `netSavings()` was removed
+
+#### `models.LegacySingleScopeReservationRecommendationProperties` was modified
-### Other Changes
+* `firstUsageDate()` was removed
+* `recommendedQuantityNormalized()` was removed
+* `term()` was removed
+* `lookBackPeriod()` was removed
+* `recommendedQuantity()` was removed
+* `normalizedSize()` was removed
+* `meterId()` was removed
+* `totalCostWithReservedInstances()` was removed
+* `costWithNoReservedInstances()` was removed
+* `instanceFlexibilityRatio()` was removed
+* `instanceFlexibilityGroup()` was removed
+* `skuProperties()` was removed
+* `resourceType()` was removed
+* `netSavings()` was removed
## 1.0.0-beta.4 (2024-10-04)
diff --git a/sdk/consumption/azure-resourcemanager-consumption/README.md b/sdk/consumption/azure-resourcemanager-consumption/README.md
index 44c86c0f3715..f519e85e75fe 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/README.md
+++ b/sdk/consumption/azure-resourcemanager-consumption/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-consumption
- 1.0.0-beta.4
+ 1.0.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/consumption/azure-resourcemanager-consumption/pom.xml b/sdk/consumption/azure-resourcemanager-consumption/pom.xml
index 5a15df21c34f..0ef89dbd7ea6 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/pom.xml
+++ b/sdk/consumption/azure-resourcemanager-consumption/pom.xml
@@ -14,7 +14,7 @@
com.azure.resourcemanager
azure-resourcemanager-consumption
- 1.0.0-beta.5
+ 1.0.0
jar
Microsoft Azure SDK for Consumption Management
@@ -45,7 +45,7 @@
UTF-8
0
0
- true
+ false
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/ConsumptionManager.java b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/ConsumptionManager.java
index 93d7713bd6fa..598132d35f3a 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/ConsumptionManager.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/ConsumptionManager.java
@@ -11,6 +11,7 @@
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.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -19,7 +20,6 @@
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;
@@ -269,7 +269,7 @@ public ConsumptionManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.consumption")
.append("/")
- .append("1.0.0-beta.4");
+ .append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -302,7 +302,7 @@ public ConsumptionManager authenticate(TokenCredential credential, AzureProfile
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/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/LegacySharedScopeReservationRecommendationProperties.java b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/LegacySharedScopeReservationRecommendationProperties.java
index 16ec0e80ff39..4c6565ace85e 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/LegacySharedScopeReservationRecommendationProperties.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/LegacySharedScopeReservationRecommendationProperties.java
@@ -11,7 +11,6 @@
import com.azure.json.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
-import java.time.OffsetDateTime;
import java.util.List;
import java.util.UUID;
@@ -26,76 +25,6 @@ public final class LegacySharedScopeReservationRecommendationProperties
*/
private String scope = "Shared";
- /*
- * List of sku properties
- */
- private List skuProperties;
-
- /*
- * The usage date for looking back.
- */
- private OffsetDateTime firstUsageDate;
-
- /*
- * Total estimated savings with reserved instances.
- */
- private BigDecimal netSavings;
-
- /*
- * The total amount of cost with reserved instances.
- */
- private BigDecimal totalCostWithReservedInstances;
-
- /*
- * Recommended quality for reserved instances.
- */
- private BigDecimal recommendedQuantity;
-
- /*
- * The total amount of cost without reserved instances.
- */
- private BigDecimal costWithNoReservedInstances;
-
- /*
- * RI recommendations in one or three year terms.
- */
- private String term;
-
- /*
- * The azure resource type.
- */
- private String resourceType;
-
- /*
- * The meter id (GUID)
- */
- private UUID meterId;
-
- /*
- * The recommended Quantity Normalized.
- */
- private Float recommendedQuantityNormalized;
-
- /*
- * The normalized Size.
- */
- private String normalizedSize;
-
- /*
- * The instance Flexibility Group.
- */
- private String instanceFlexibilityGroup;
-
- /*
- * The instance Flexibility Ratio.
- */
- private Float instanceFlexibilityRatio;
-
- /*
- * The number of days of usage to look back for recommendation.
- */
- private String lookBackPeriod;
-
/**
* Creates an instance of LegacySharedScopeReservationRecommendationProperties class.
*/
@@ -112,146 +41,6 @@ public String scope() {
return this.scope;
}
- /**
- * Get the skuProperties property: List of sku properties.
- *
- * @return the skuProperties value.
- */
- @Override
- public List skuProperties() {
- return this.skuProperties;
- }
-
- /**
- * Get the firstUsageDate property: The usage date for looking back.
- *
- * @return the firstUsageDate value.
- */
- @Override
- public OffsetDateTime firstUsageDate() {
- return this.firstUsageDate;
- }
-
- /**
- * Get the netSavings property: Total estimated savings with reserved instances.
- *
- * @return the netSavings value.
- */
- @Override
- public BigDecimal netSavings() {
- return this.netSavings;
- }
-
- /**
- * Get the totalCostWithReservedInstances property: The total amount of cost with reserved instances.
- *
- * @return the totalCostWithReservedInstances value.
- */
- @Override
- public BigDecimal totalCostWithReservedInstances() {
- return this.totalCostWithReservedInstances;
- }
-
- /**
- * Get the recommendedQuantity property: Recommended quality for reserved instances.
- *
- * @return the recommendedQuantity value.
- */
- @Override
- public BigDecimal recommendedQuantity() {
- return this.recommendedQuantity;
- }
-
- /**
- * Get the costWithNoReservedInstances property: The total amount of cost without reserved instances.
- *
- * @return the costWithNoReservedInstances value.
- */
- @Override
- public BigDecimal costWithNoReservedInstances() {
- return this.costWithNoReservedInstances;
- }
-
- /**
- * Get the term property: RI recommendations in one or three year terms.
- *
- * @return the term value.
- */
- @Override
- public String term() {
- return this.term;
- }
-
- /**
- * Get the resourceType property: The azure resource type.
- *
- * @return the resourceType value.
- */
- @Override
- public String resourceType() {
- return this.resourceType;
- }
-
- /**
- * Get the meterId property: The meter id (GUID).
- *
- * @return the meterId value.
- */
- @Override
- public UUID meterId() {
- return this.meterId;
- }
-
- /**
- * Get the recommendedQuantityNormalized property: The recommended Quantity Normalized.
- *
- * @return the recommendedQuantityNormalized value.
- */
- @Override
- public Float recommendedQuantityNormalized() {
- return this.recommendedQuantityNormalized;
- }
-
- /**
- * Get the normalizedSize property: The normalized Size.
- *
- * @return the normalizedSize value.
- */
- @Override
- public String normalizedSize() {
- return this.normalizedSize;
- }
-
- /**
- * Get the instanceFlexibilityGroup property: The instance Flexibility Group.
- *
- * @return the instanceFlexibilityGroup value.
- */
- @Override
- public String instanceFlexibilityGroup() {
- return this.instanceFlexibilityGroup;
- }
-
- /**
- * Get the instanceFlexibilityRatio property: The instance Flexibility Ratio.
- *
- * @return the instanceFlexibilityRatio value.
- */
- @Override
- public Float instanceFlexibilityRatio() {
- return this.instanceFlexibilityRatio;
- }
-
- /**
- * Get the lookBackPeriod property: The number of days of usage to look back for recommendation.
- *
- * @return the lookBackPeriod value.
- */
- @Override
- public String lookBackPeriod() {
- return this.lookBackPeriod;
- }
-
/**
* Validates the instance.
*
@@ -292,45 +81,46 @@ public static LegacySharedScopeReservationRecommendationProperties fromJson(Json
reader.nextToken();
if ("lookBackPeriod".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.lookBackPeriod
- = reader.getString();
+ deserializedLegacySharedScopeReservationRecommendationProperties
+ .withLookBackPeriod(reader.getString());
} else if ("instanceFlexibilityRatio".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.instanceFlexibilityRatio
- = reader.getNullable(JsonReader::getFloat);
+ deserializedLegacySharedScopeReservationRecommendationProperties
+ .withInstanceFlexibilityRatio(reader.getNullable(JsonReader::getFloat));
} else if ("instanceFlexibilityGroup".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.instanceFlexibilityGroup
- = reader.getString();
+ deserializedLegacySharedScopeReservationRecommendationProperties
+ .withInstanceFlexibilityGroup(reader.getString());
} else if ("normalizedSize".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.normalizedSize
- = reader.getString();
+ deserializedLegacySharedScopeReservationRecommendationProperties
+ .withNormalizedSize(reader.getString());
} else if ("recommendedQuantityNormalized".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.recommendedQuantityNormalized
- = reader.getNullable(JsonReader::getFloat);
+ deserializedLegacySharedScopeReservationRecommendationProperties
+ .withRecommendedQuantityNormalized(reader.getNullable(JsonReader::getFloat));
} else if ("meterId".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.meterId
- = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ deserializedLegacySharedScopeReservationRecommendationProperties
+ .withMeterId(reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())));
} else if ("resourceType".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.resourceType = reader.getString();
+ deserializedLegacySharedScopeReservationRecommendationProperties
+ .withResourceType(reader.getString());
} else if ("term".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.term = reader.getString();
+ deserializedLegacySharedScopeReservationRecommendationProperties.withTerm(reader.getString());
} else if ("costWithNoReservedInstances".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.costWithNoReservedInstances
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedLegacySharedScopeReservationRecommendationProperties.withCostWithNoReservedInstances(
+ reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("recommendedQuantity".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.recommendedQuantity
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedLegacySharedScopeReservationRecommendationProperties.withRecommendedQuantity(
+ reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("totalCostWithReservedInstances".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.totalCostWithReservedInstances
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedLegacySharedScopeReservationRecommendationProperties.withTotalCostWithReservedInstances(
+ reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("netSavings".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.netSavings
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedLegacySharedScopeReservationRecommendationProperties
+ .withNetSavings(reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("firstUsageDate".equals(fieldName)) {
- deserializedLegacySharedScopeReservationRecommendationProperties.firstUsageDate = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedLegacySharedScopeReservationRecommendationProperties.withFirstUsageDate(reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("skuProperties".equals(fieldName)) {
List skuProperties = reader.readArray(reader1 -> SkuProperty.fromJson(reader1));
- deserializedLegacySharedScopeReservationRecommendationProperties.skuProperties = skuProperties;
+ deserializedLegacySharedScopeReservationRecommendationProperties.withSkuProperties(skuProperties);
} else if ("scope".equals(fieldName)) {
deserializedLegacySharedScopeReservationRecommendationProperties.scope = reader.getString();
} else {
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/LegacySingleScopeReservationRecommendationProperties.java b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/LegacySingleScopeReservationRecommendationProperties.java
index 187f0227778b..68f506268063 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/LegacySingleScopeReservationRecommendationProperties.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/LegacySingleScopeReservationRecommendationProperties.java
@@ -11,7 +11,6 @@
import com.azure.json.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
-import java.time.OffsetDateTime;
import java.util.List;
import java.util.UUID;
@@ -31,76 +30,6 @@ public final class LegacySingleScopeReservationRecommendationProperties
*/
private UUID subscriptionId;
- /*
- * List of sku properties
- */
- private List skuProperties;
-
- /*
- * The usage date for looking back.
- */
- private OffsetDateTime firstUsageDate;
-
- /*
- * Total estimated savings with reserved instances.
- */
- private BigDecimal netSavings;
-
- /*
- * The total amount of cost with reserved instances.
- */
- private BigDecimal totalCostWithReservedInstances;
-
- /*
- * Recommended quality for reserved instances.
- */
- private BigDecimal recommendedQuantity;
-
- /*
- * The total amount of cost without reserved instances.
- */
- private BigDecimal costWithNoReservedInstances;
-
- /*
- * RI recommendations in one or three year terms.
- */
- private String term;
-
- /*
- * The azure resource type.
- */
- private String resourceType;
-
- /*
- * The meter id (GUID)
- */
- private UUID meterId;
-
- /*
- * The recommended Quantity Normalized.
- */
- private Float recommendedQuantityNormalized;
-
- /*
- * The normalized Size.
- */
- private String normalizedSize;
-
- /*
- * The instance Flexibility Group.
- */
- private String instanceFlexibilityGroup;
-
- /*
- * The instance Flexibility Ratio.
- */
- private Float instanceFlexibilityRatio;
-
- /*
- * The number of days of usage to look back for recommendation.
- */
- private String lookBackPeriod;
-
/**
* Creates an instance of LegacySingleScopeReservationRecommendationProperties class.
*/
@@ -126,146 +55,6 @@ public UUID subscriptionId() {
return this.subscriptionId;
}
- /**
- * Get the skuProperties property: List of sku properties.
- *
- * @return the skuProperties value.
- */
- @Override
- public List skuProperties() {
- return this.skuProperties;
- }
-
- /**
- * Get the firstUsageDate property: The usage date for looking back.
- *
- * @return the firstUsageDate value.
- */
- @Override
- public OffsetDateTime firstUsageDate() {
- return this.firstUsageDate;
- }
-
- /**
- * Get the netSavings property: Total estimated savings with reserved instances.
- *
- * @return the netSavings value.
- */
- @Override
- public BigDecimal netSavings() {
- return this.netSavings;
- }
-
- /**
- * Get the totalCostWithReservedInstances property: The total amount of cost with reserved instances.
- *
- * @return the totalCostWithReservedInstances value.
- */
- @Override
- public BigDecimal totalCostWithReservedInstances() {
- return this.totalCostWithReservedInstances;
- }
-
- /**
- * Get the recommendedQuantity property: Recommended quality for reserved instances.
- *
- * @return the recommendedQuantity value.
- */
- @Override
- public BigDecimal recommendedQuantity() {
- return this.recommendedQuantity;
- }
-
- /**
- * Get the costWithNoReservedInstances property: The total amount of cost without reserved instances.
- *
- * @return the costWithNoReservedInstances value.
- */
- @Override
- public BigDecimal costWithNoReservedInstances() {
- return this.costWithNoReservedInstances;
- }
-
- /**
- * Get the term property: RI recommendations in one or three year terms.
- *
- * @return the term value.
- */
- @Override
- public String term() {
- return this.term;
- }
-
- /**
- * Get the resourceType property: The azure resource type.
- *
- * @return the resourceType value.
- */
- @Override
- public String resourceType() {
- return this.resourceType;
- }
-
- /**
- * Get the meterId property: The meter id (GUID).
- *
- * @return the meterId value.
- */
- @Override
- public UUID meterId() {
- return this.meterId;
- }
-
- /**
- * Get the recommendedQuantityNormalized property: The recommended Quantity Normalized.
- *
- * @return the recommendedQuantityNormalized value.
- */
- @Override
- public Float recommendedQuantityNormalized() {
- return this.recommendedQuantityNormalized;
- }
-
- /**
- * Get the normalizedSize property: The normalized Size.
- *
- * @return the normalizedSize value.
- */
- @Override
- public String normalizedSize() {
- return this.normalizedSize;
- }
-
- /**
- * Get the instanceFlexibilityGroup property: The instance Flexibility Group.
- *
- * @return the instanceFlexibilityGroup value.
- */
- @Override
- public String instanceFlexibilityGroup() {
- return this.instanceFlexibilityGroup;
- }
-
- /**
- * Get the instanceFlexibilityRatio property: The instance Flexibility Ratio.
- *
- * @return the instanceFlexibilityRatio value.
- */
- @Override
- public Float instanceFlexibilityRatio() {
- return this.instanceFlexibilityRatio;
- }
-
- /**
- * Get the lookBackPeriod property: The number of days of usage to look back for recommendation.
- *
- * @return the lookBackPeriod value.
- */
- @Override
- public String lookBackPeriod() {
- return this.lookBackPeriod;
- }
-
/**
* Validates the instance.
*
@@ -306,45 +95,46 @@ public static LegacySingleScopeReservationRecommendationProperties fromJson(Json
reader.nextToken();
if ("lookBackPeriod".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.lookBackPeriod
- = reader.getString();
+ deserializedLegacySingleScopeReservationRecommendationProperties
+ .withLookBackPeriod(reader.getString());
} else if ("instanceFlexibilityRatio".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.instanceFlexibilityRatio
- = reader.getNullable(JsonReader::getFloat);
+ deserializedLegacySingleScopeReservationRecommendationProperties
+ .withInstanceFlexibilityRatio(reader.getNullable(JsonReader::getFloat));
} else if ("instanceFlexibilityGroup".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.instanceFlexibilityGroup
- = reader.getString();
+ deserializedLegacySingleScopeReservationRecommendationProperties
+ .withInstanceFlexibilityGroup(reader.getString());
} else if ("normalizedSize".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.normalizedSize
- = reader.getString();
+ deserializedLegacySingleScopeReservationRecommendationProperties
+ .withNormalizedSize(reader.getString());
} else if ("recommendedQuantityNormalized".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.recommendedQuantityNormalized
- = reader.getNullable(JsonReader::getFloat);
+ deserializedLegacySingleScopeReservationRecommendationProperties
+ .withRecommendedQuantityNormalized(reader.getNullable(JsonReader::getFloat));
} else if ("meterId".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.meterId
- = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ deserializedLegacySingleScopeReservationRecommendationProperties
+ .withMeterId(reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())));
} else if ("resourceType".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.resourceType = reader.getString();
+ deserializedLegacySingleScopeReservationRecommendationProperties
+ .withResourceType(reader.getString());
} else if ("term".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.term = reader.getString();
+ deserializedLegacySingleScopeReservationRecommendationProperties.withTerm(reader.getString());
} else if ("costWithNoReservedInstances".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.costWithNoReservedInstances
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedLegacySingleScopeReservationRecommendationProperties.withCostWithNoReservedInstances(
+ reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("recommendedQuantity".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.recommendedQuantity
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedLegacySingleScopeReservationRecommendationProperties.withRecommendedQuantity(
+ reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("totalCostWithReservedInstances".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.totalCostWithReservedInstances
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedLegacySingleScopeReservationRecommendationProperties.withTotalCostWithReservedInstances(
+ reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("netSavings".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.netSavings
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedLegacySingleScopeReservationRecommendationProperties
+ .withNetSavings(reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("firstUsageDate".equals(fieldName)) {
- deserializedLegacySingleScopeReservationRecommendationProperties.firstUsageDate = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedLegacySingleScopeReservationRecommendationProperties.withFirstUsageDate(reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("skuProperties".equals(fieldName)) {
List skuProperties = reader.readArray(reader1 -> SkuProperty.fromJson(reader1));
- deserializedLegacySingleScopeReservationRecommendationProperties.skuProperties = skuProperties;
+ deserializedLegacySingleScopeReservationRecommendationProperties.withSkuProperties(skuProperties);
} else if ("scope".equals(fieldName)) {
deserializedLegacySingleScopeReservationRecommendationProperties.scope = reader.getString();
} else if ("subscriptionId".equals(fieldName)) {
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/ModernSharedScopeReservationRecommendationProperties.java b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/ModernSharedScopeReservationRecommendationProperties.java
index 40b49981e3b8..f47572d65fa3 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/ModernSharedScopeReservationRecommendationProperties.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/ModernSharedScopeReservationRecommendationProperties.java
@@ -11,7 +11,6 @@
import com.azure.json.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
-import java.time.OffsetDateTime;
import java.util.List;
import java.util.UUID;
@@ -26,86 +25,6 @@ public final class ModernSharedScopeReservationRecommendationProperties
*/
private String scope = "Shared";
- /*
- * This is the ARM Sku name.
- */
- private String skuName;
-
- /*
- * List of sku properties
- */
- private List skuProperties;
-
- /*
- * The usage date for looking back.
- */
- private OffsetDateTime firstUsageDate;
-
- /*
- * Total estimated savings with reserved instances.
- */
- private Amount netSavings;
-
- /*
- * The total amount of cost with reserved instances.
- */
- private Amount totalCostWithReservedInstances;
-
- /*
- * Resource type.
- */
- private String resourceType;
-
- /*
- * Recommended quality for reserved instances.
- */
- private BigDecimal recommendedQuantity;
-
- /*
- * The total amount of cost without reserved instances.
- */
- private Amount costWithNoReservedInstances;
-
- /*
- * RI recommendations in one or three year terms.
- */
- private String term;
-
- /*
- * The meter id (GUID)
- */
- private UUID meterId;
-
- /*
- * The recommended Quantity Normalized.
- */
- private Float recommendedQuantityNormalized;
-
- /*
- * The normalized Size.
- */
- private String normalizedSize;
-
- /*
- * The instance Flexibility Group.
- */
- private String instanceFlexibilityGroup;
-
- /*
- * The instance Flexibility Ratio.
- */
- private Float instanceFlexibilityRatio;
-
- /*
- * The number of days of usage to look back for recommendation.
- */
- private Integer lookBackPeriod;
-
- /*
- * Resource Location.
- */
- private String location;
-
/**
* Creates an instance of ModernSharedScopeReservationRecommendationProperties class.
*/
@@ -122,166 +41,6 @@ public String scope() {
return this.scope;
}
- /**
- * Get the skuName property: This is the ARM Sku name.
- *
- * @return the skuName value.
- */
- @Override
- public String skuName() {
- return this.skuName;
- }
-
- /**
- * Get the skuProperties property: List of sku properties.
- *
- * @return the skuProperties value.
- */
- @Override
- public List skuProperties() {
- return this.skuProperties;
- }
-
- /**
- * Get the firstUsageDate property: The usage date for looking back.
- *
- * @return the firstUsageDate value.
- */
- @Override
- public OffsetDateTime firstUsageDate() {
- return this.firstUsageDate;
- }
-
- /**
- * Get the netSavings property: Total estimated savings with reserved instances.
- *
- * @return the netSavings value.
- */
- @Override
- public Amount netSavings() {
- return this.netSavings;
- }
-
- /**
- * Get the totalCostWithReservedInstances property: The total amount of cost with reserved instances.
- *
- * @return the totalCostWithReservedInstances value.
- */
- @Override
- public Amount totalCostWithReservedInstances() {
- return this.totalCostWithReservedInstances;
- }
-
- /**
- * Get the resourceType property: Resource type.
- *
- * @return the resourceType value.
- */
- @Override
- public String resourceType() {
- return this.resourceType;
- }
-
- /**
- * Get the recommendedQuantity property: Recommended quality for reserved instances.
- *
- * @return the recommendedQuantity value.
- */
- @Override
- public BigDecimal recommendedQuantity() {
- return this.recommendedQuantity;
- }
-
- /**
- * Get the costWithNoReservedInstances property: The total amount of cost without reserved instances.
- *
- * @return the costWithNoReservedInstances value.
- */
- @Override
- public Amount costWithNoReservedInstances() {
- return this.costWithNoReservedInstances;
- }
-
- /**
- * Get the term property: RI recommendations in one or three year terms.
- *
- * @return the term value.
- */
- @Override
- public String term() {
- return this.term;
- }
-
- /**
- * Get the meterId property: The meter id (GUID).
- *
- * @return the meterId value.
- */
- @Override
- public UUID meterId() {
- return this.meterId;
- }
-
- /**
- * Get the recommendedQuantityNormalized property: The recommended Quantity Normalized.
- *
- * @return the recommendedQuantityNormalized value.
- */
- @Override
- public Float recommendedQuantityNormalized() {
- return this.recommendedQuantityNormalized;
- }
-
- /**
- * Get the normalizedSize property: The normalized Size.
- *
- * @return the normalizedSize value.
- */
- @Override
- public String normalizedSize() {
- return this.normalizedSize;
- }
-
- /**
- * Get the instanceFlexibilityGroup property: The instance Flexibility Group.
- *
- * @return the instanceFlexibilityGroup value.
- */
- @Override
- public String instanceFlexibilityGroup() {
- return this.instanceFlexibilityGroup;
- }
-
- /**
- * Get the instanceFlexibilityRatio property: The instance Flexibility Ratio.
- *
- * @return the instanceFlexibilityRatio value.
- */
- @Override
- public Float instanceFlexibilityRatio() {
- return this.instanceFlexibilityRatio;
- }
-
- /**
- * Get the lookBackPeriod property: The number of days of usage to look back for recommendation.
- *
- * @return the lookBackPeriod value.
- */
- @Override
- public Integer lookBackPeriod() {
- return this.lookBackPeriod;
- }
-
- /**
- * Get the location property: Resource Location.
- *
- * @return the location value.
- */
- @Override
- public String location() {
- return this.location;
- }
-
/**
* Validates the instance.
*
@@ -331,49 +90,50 @@ public static ModernSharedScopeReservationRecommendationProperties fromJson(Json
reader.nextToken();
if ("location".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.location = reader.getString();
+ deserializedModernSharedScopeReservationRecommendationProperties.withLocation(reader.getString());
} else if ("lookBackPeriod".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.lookBackPeriod
- = reader.getNullable(JsonReader::getInt);
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withLookBackPeriod(reader.getNullable(JsonReader::getInt));
} else if ("instanceFlexibilityRatio".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.instanceFlexibilityRatio
- = reader.getNullable(JsonReader::getFloat);
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withInstanceFlexibilityRatio(reader.getNullable(JsonReader::getFloat));
} else if ("instanceFlexibilityGroup".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.instanceFlexibilityGroup
- = reader.getString();
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withInstanceFlexibilityGroup(reader.getString());
} else if ("normalizedSize".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.normalizedSize
- = reader.getString();
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withNormalizedSize(reader.getString());
} else if ("recommendedQuantityNormalized".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.recommendedQuantityNormalized
- = reader.getNullable(JsonReader::getFloat);
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withRecommendedQuantityNormalized(reader.getNullable(JsonReader::getFloat));
} else if ("meterId".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.meterId
- = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withMeterId(reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())));
} else if ("term".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.term = reader.getString();
+ deserializedModernSharedScopeReservationRecommendationProperties.withTerm(reader.getString());
} else if ("costWithNoReservedInstances".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.costWithNoReservedInstances
- = Amount.fromJson(reader);
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withCostWithNoReservedInstances(Amount.fromJson(reader));
} else if ("recommendedQuantity".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.recommendedQuantity
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedModernSharedScopeReservationRecommendationProperties.withRecommendedQuantity(
+ reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("resourceType".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.resourceType = reader.getString();
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withResourceType(reader.getString());
} else if ("totalCostWithReservedInstances".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.totalCostWithReservedInstances
- = Amount.fromJson(reader);
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withTotalCostWithReservedInstances(Amount.fromJson(reader));
} else if ("netSavings".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.netSavings
- = Amount.fromJson(reader);
+ deserializedModernSharedScopeReservationRecommendationProperties
+ .withNetSavings(Amount.fromJson(reader));
} else if ("firstUsageDate".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.firstUsageDate = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedModernSharedScopeReservationRecommendationProperties.withFirstUsageDate(reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("skuProperties".equals(fieldName)) {
List skuProperties = reader.readArray(reader1 -> SkuProperty.fromJson(reader1));
- deserializedModernSharedScopeReservationRecommendationProperties.skuProperties = skuProperties;
+ deserializedModernSharedScopeReservationRecommendationProperties.withSkuProperties(skuProperties);
} else if ("skuName".equals(fieldName)) {
- deserializedModernSharedScopeReservationRecommendationProperties.skuName = reader.getString();
+ deserializedModernSharedScopeReservationRecommendationProperties.withSkuName(reader.getString());
} else if ("scope".equals(fieldName)) {
deserializedModernSharedScopeReservationRecommendationProperties.scope = reader.getString();
} else {
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/ModernSingleScopeReservationRecommendationProperties.java b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/ModernSingleScopeReservationRecommendationProperties.java
index 21f913d358bf..1b812866527f 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/ModernSingleScopeReservationRecommendationProperties.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/main/java/com/azure/resourcemanager/consumption/models/ModernSingleScopeReservationRecommendationProperties.java
@@ -11,7 +11,6 @@
import com.azure.json.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
-import java.time.OffsetDateTime;
import java.util.List;
import java.util.UUID;
@@ -31,86 +30,6 @@ public final class ModernSingleScopeReservationRecommendationProperties
*/
private UUID subscriptionId;
- /*
- * This is the ARM Sku name.
- */
- private String skuName;
-
- /*
- * List of sku properties
- */
- private List skuProperties;
-
- /*
- * The usage date for looking back.
- */
- private OffsetDateTime firstUsageDate;
-
- /*
- * Total estimated savings with reserved instances.
- */
- private Amount netSavings;
-
- /*
- * The total amount of cost with reserved instances.
- */
- private Amount totalCostWithReservedInstances;
-
- /*
- * Resource type.
- */
- private String resourceType;
-
- /*
- * Recommended quality for reserved instances.
- */
- private BigDecimal recommendedQuantity;
-
- /*
- * The total amount of cost without reserved instances.
- */
- private Amount costWithNoReservedInstances;
-
- /*
- * RI recommendations in one or three year terms.
- */
- private String term;
-
- /*
- * The meter id (GUID)
- */
- private UUID meterId;
-
- /*
- * The recommended Quantity Normalized.
- */
- private Float recommendedQuantityNormalized;
-
- /*
- * The normalized Size.
- */
- private String normalizedSize;
-
- /*
- * The instance Flexibility Group.
- */
- private String instanceFlexibilityGroup;
-
- /*
- * The instance Flexibility Ratio.
- */
- private Float instanceFlexibilityRatio;
-
- /*
- * The number of days of usage to look back for recommendation.
- */
- private Integer lookBackPeriod;
-
- /*
- * Resource Location.
- */
- private String location;
-
/**
* Creates an instance of ModernSingleScopeReservationRecommendationProperties class.
*/
@@ -136,166 +55,6 @@ public UUID subscriptionId() {
return this.subscriptionId;
}
- /**
- * Get the skuName property: This is the ARM Sku name.
- *
- * @return the skuName value.
- */
- @Override
- public String skuName() {
- return this.skuName;
- }
-
- /**
- * Get the skuProperties property: List of sku properties.
- *
- * @return the skuProperties value.
- */
- @Override
- public List skuProperties() {
- return this.skuProperties;
- }
-
- /**
- * Get the firstUsageDate property: The usage date for looking back.
- *
- * @return the firstUsageDate value.
- */
- @Override
- public OffsetDateTime firstUsageDate() {
- return this.firstUsageDate;
- }
-
- /**
- * Get the netSavings property: Total estimated savings with reserved instances.
- *
- * @return the netSavings value.
- */
- @Override
- public Amount netSavings() {
- return this.netSavings;
- }
-
- /**
- * Get the totalCostWithReservedInstances property: The total amount of cost with reserved instances.
- *
- * @return the totalCostWithReservedInstances value.
- */
- @Override
- public Amount totalCostWithReservedInstances() {
- return this.totalCostWithReservedInstances;
- }
-
- /**
- * Get the resourceType property: Resource type.
- *
- * @return the resourceType value.
- */
- @Override
- public String resourceType() {
- return this.resourceType;
- }
-
- /**
- * Get the recommendedQuantity property: Recommended quality for reserved instances.
- *
- * @return the recommendedQuantity value.
- */
- @Override
- public BigDecimal recommendedQuantity() {
- return this.recommendedQuantity;
- }
-
- /**
- * Get the costWithNoReservedInstances property: The total amount of cost without reserved instances.
- *
- * @return the costWithNoReservedInstances value.
- */
- @Override
- public Amount costWithNoReservedInstances() {
- return this.costWithNoReservedInstances;
- }
-
- /**
- * Get the term property: RI recommendations in one or three year terms.
- *
- * @return the term value.
- */
- @Override
- public String term() {
- return this.term;
- }
-
- /**
- * Get the meterId property: The meter id (GUID).
- *
- * @return the meterId value.
- */
- @Override
- public UUID meterId() {
- return this.meterId;
- }
-
- /**
- * Get the recommendedQuantityNormalized property: The recommended Quantity Normalized.
- *
- * @return the recommendedQuantityNormalized value.
- */
- @Override
- public Float recommendedQuantityNormalized() {
- return this.recommendedQuantityNormalized;
- }
-
- /**
- * Get the normalizedSize property: The normalized Size.
- *
- * @return the normalizedSize value.
- */
- @Override
- public String normalizedSize() {
- return this.normalizedSize;
- }
-
- /**
- * Get the instanceFlexibilityGroup property: The instance Flexibility Group.
- *
- * @return the instanceFlexibilityGroup value.
- */
- @Override
- public String instanceFlexibilityGroup() {
- return this.instanceFlexibilityGroup;
- }
-
- /**
- * Get the instanceFlexibilityRatio property: The instance Flexibility Ratio.
- *
- * @return the instanceFlexibilityRatio value.
- */
- @Override
- public Float instanceFlexibilityRatio() {
- return this.instanceFlexibilityRatio;
- }
-
- /**
- * Get the lookBackPeriod property: The number of days of usage to look back for recommendation.
- *
- * @return the lookBackPeriod value.
- */
- @Override
- public Integer lookBackPeriod() {
- return this.lookBackPeriod;
- }
-
- /**
- * Get the location property: Resource Location.
- *
- * @return the location value.
- */
- @Override
- public String location() {
- return this.location;
- }
-
/**
* Validates the instance.
*
@@ -345,49 +104,50 @@ public static ModernSingleScopeReservationRecommendationProperties fromJson(Json
reader.nextToken();
if ("location".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.location = reader.getString();
+ deserializedModernSingleScopeReservationRecommendationProperties.withLocation(reader.getString());
} else if ("lookBackPeriod".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.lookBackPeriod
- = reader.getNullable(JsonReader::getInt);
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withLookBackPeriod(reader.getNullable(JsonReader::getInt));
} else if ("instanceFlexibilityRatio".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.instanceFlexibilityRatio
- = reader.getNullable(JsonReader::getFloat);
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withInstanceFlexibilityRatio(reader.getNullable(JsonReader::getFloat));
} else if ("instanceFlexibilityGroup".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.instanceFlexibilityGroup
- = reader.getString();
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withInstanceFlexibilityGroup(reader.getString());
} else if ("normalizedSize".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.normalizedSize
- = reader.getString();
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withNormalizedSize(reader.getString());
} else if ("recommendedQuantityNormalized".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.recommendedQuantityNormalized
- = reader.getNullable(JsonReader::getFloat);
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withRecommendedQuantityNormalized(reader.getNullable(JsonReader::getFloat));
} else if ("meterId".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.meterId
- = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withMeterId(reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())));
} else if ("term".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.term = reader.getString();
+ deserializedModernSingleScopeReservationRecommendationProperties.withTerm(reader.getString());
} else if ("costWithNoReservedInstances".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.costWithNoReservedInstances
- = Amount.fromJson(reader);
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withCostWithNoReservedInstances(Amount.fromJson(reader));
} else if ("recommendedQuantity".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.recommendedQuantity
- = reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString()));
+ deserializedModernSingleScopeReservationRecommendationProperties.withRecommendedQuantity(
+ reader.getNullable(nonNullReader -> new BigDecimal(nonNullReader.getString())));
} else if ("resourceType".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.resourceType = reader.getString();
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withResourceType(reader.getString());
} else if ("totalCostWithReservedInstances".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.totalCostWithReservedInstances
- = Amount.fromJson(reader);
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withTotalCostWithReservedInstances(Amount.fromJson(reader));
} else if ("netSavings".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.netSavings
- = Amount.fromJson(reader);
+ deserializedModernSingleScopeReservationRecommendationProperties
+ .withNetSavings(Amount.fromJson(reader));
} else if ("firstUsageDate".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.firstUsageDate = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ deserializedModernSingleScopeReservationRecommendationProperties.withFirstUsageDate(reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
} else if ("skuProperties".equals(fieldName)) {
List skuProperties = reader.readArray(reader1 -> SkuProperty.fromJson(reader1));
- deserializedModernSingleScopeReservationRecommendationProperties.skuProperties = skuProperties;
+ deserializedModernSingleScopeReservationRecommendationProperties.withSkuProperties(skuProperties);
} else if ("skuName".equals(fieldName)) {
- deserializedModernSingleScopeReservationRecommendationProperties.skuName = reader.getString();
+ deserializedModernSingleScopeReservationRecommendationProperties.withSkuName(reader.getString());
} else if ("scope".equals(fieldName)) {
deserializedModernSingleScopeReservationRecommendationProperties.scope = reader.getString();
} else if ("subscriptionId".equals(fieldName)) {
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationRecommendationPropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationRecommendationPropertiesTests.java
index c5b8fcdbdc29..3376ec8177f9 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationRecommendationPropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationRecommendationPropertiesTests.java
@@ -11,7 +11,7 @@ public final class LegacyReservationRecommendationPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LegacyReservationRecommendationProperties model = BinaryData.fromString(
- "{\"scope\":\"LegacyReservationRecommendationProperties\",\"lookBackPeriod\":\"ckpzvcpopmxeln\",\"instanceFlexibilityRatio\":85.79983,\"instanceFlexibilityGroup\":\"yjede\",\"normalizedSize\":\"mlfmkqs\",\"recommendedQuantityNormalized\":82.50587,\"meterId\":\"5fd821ba-e374-48bd-9d50-6b32ee8f72cd\",\"resourceType\":\"wxtzxpuamwab\",\"term\":\"rvxcush\",\"firstUsageDate\":\"2021-12-02T00:04:23Z\",\"skuProperties\":[{\"name\":\"sflvgsgzwywakoih\",\"value\":\"smjblmljhlnym\"},{\"name\":\"tqyryuzcbmqqv\",\"value\":\"vwf\"},{\"name\":\"ayxonsupeujl\",\"value\":\"nh\"}]}")
+ "{\"scope\":\"LegacyReservationRecommendationProperties\",\"lookBackPeriod\":\"ckpzvcpopmxeln\",\"instanceFlexibilityRatio\":85.79983,\"instanceFlexibilityGroup\":\"yjede\",\"normalizedSize\":\"mlfmkqs\",\"recommendedQuantityNormalized\":82.50587,\"meterId\":\"dcc748f3-04ef-4e4f-9219-6944c39ba262\",\"resourceType\":\"wxtzxpuamwab\",\"term\":\"rvxcush\",\"firstUsageDate\":\"2021-12-02T00:04:23Z\",\"skuProperties\":[{\"name\":\"sflvgsgzwywakoih\",\"value\":\"smjblmljhlnym\"},{\"name\":\"tqyryuzcbmqqv\",\"value\":\"vwf\"},{\"name\":\"ayxonsupeujl\",\"value\":\"nh\"}]}")
.toObject(LegacyReservationRecommendationProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationRecommendationTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationRecommendationTests.java
index bca2e88818d4..8af9a9bdea8d 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationRecommendationTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationRecommendationTests.java
@@ -12,7 +12,7 @@ public final class LegacyReservationRecommendationTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LegacyReservationRecommendation model = BinaryData.fromString(
- "{\"kind\":\"legacy\",\"properties\":{\"scope\":\"LegacyReservationRecommendationProperties\",\"lookBackPeriod\":\"qdqx\",\"instanceFlexibilityRatio\":6.4672947,\"instanceFlexibilityGroup\":\"gny\",\"normalizedSize\":\"sf\",\"recommendedQuantityNormalized\":61.46719,\"meterId\":\"618c387e-4d82-4bfe-9a80-c74137312190\",\"resourceType\":\"ikzhajqglcfhmlrq\",\"term\":\"xynqnz\",\"firstUsageDate\":\"2021-07-07T00:29:31Z\",\"skuProperties\":[{\"name\":\"ptgoeiybbabp\",\"value\":\"vf\"}]},\"etag\":\"kvntjlrigjkskyri\",\"tags\":{\"xwaabzmifrygznmm\":\"zid\",\"lhslnelxieixyn\":\"xrizkzobgop\",\"awjutifd\":\"lxecwcrojphslh\"},\"location\":\"mvi\",\"sku\":\"rqjb\",\"id\":\"tzh\",\"name\":\"aglkafhon\",\"type\":\"juj\"}")
+ "{\"kind\":\"legacy\",\"properties\":{\"scope\":\"LegacyReservationRecommendationProperties\",\"lookBackPeriod\":\"qdqx\",\"instanceFlexibilityRatio\":6.4672947,\"instanceFlexibilityGroup\":\"gny\",\"normalizedSize\":\"sf\",\"recommendedQuantityNormalized\":61.46719,\"meterId\":\"b8bbe38c-8eda-4c53-8949-ce18f1fa2e06\",\"resourceType\":\"ikzhajqglcfhmlrq\",\"term\":\"xynqnz\",\"firstUsageDate\":\"2021-07-07T00:29:31Z\",\"skuProperties\":[{\"name\":\"ptgoeiybbabp\",\"value\":\"vf\"}]},\"etag\":\"kvntjlrigjkskyri\",\"tags\":{\"xwaabzmifrygznmm\":\"zid\",\"lhslnelxieixyn\":\"xrizkzobgop\",\"awjutifd\":\"lxecwcrojphslh\"},\"location\":\"mvi\",\"sku\":\"rqjb\",\"id\":\"tzh\",\"name\":\"aglkafhon\",\"type\":\"juj\"}")
.toObject(LegacyReservationRecommendation.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationTransactionPropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationTransactionPropertiesTests.java
index bb1eeaedc4bf..1221befcc99e 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationTransactionPropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationTransactionPropertiesTests.java
@@ -11,7 +11,7 @@ public final class LegacyReservationTransactionPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LegacyReservationTransactionProperties model = BinaryData.fromString(
- "{\"eventDate\":\"2021-03-19T04:26:57Z\",\"reservationOrderId\":\"jsvfycxzbfvoowv\",\"description\":\"mtg\",\"eventType\":\"ppyostronzmyhgf\",\"currency\":\"xkmcwaekrrjre\",\"reservationOrderName\":\"xt\",\"purchasingEnrollment\":\"umh\",\"purchasingSubscriptionGuid\":\"c2cf73bf-56f4-41f5-9a0f-f3364bc49856\",\"purchasingSubscriptionName\":\"ikkx\",\"armSkuName\":\"lo\",\"term\":\"qpvuzlmvfelf\",\"region\":\"gplcrpwjxeznoigb\",\"accountName\":\"jwmwkpnbs\",\"accountOwnerEmail\":\"ejjoqkagfhsxtta\",\"departmentName\":\"zxnfaaz\",\"costCenter\":\"dtnkdmkq\",\"currentEnrollment\":\"lwuenvrkp\",\"billingFrequency\":\"uaibrebqaaysj\",\"billingMonth\":1330578772}")
+ "{\"eventDate\":\"2021-03-19T04:26:57Z\",\"reservationOrderId\":\"jsvfycxzbfvoowv\",\"description\":\"mtg\",\"eventType\":\"ppyostronzmyhgf\",\"currency\":\"xkmcwaekrrjre\",\"reservationOrderName\":\"xt\",\"purchasingEnrollment\":\"umh\",\"purchasingSubscriptionGuid\":\"05381785-abe0-4e75-84d4-0e79541a911f\",\"purchasingSubscriptionName\":\"ikkx\",\"armSkuName\":\"lo\",\"term\":\"qpvuzlmvfelf\",\"region\":\"gplcrpwjxeznoigb\",\"accountName\":\"jwmwkpnbs\",\"accountOwnerEmail\":\"ejjoqkagfhsxtta\",\"departmentName\":\"zxnfaaz\",\"costCenter\":\"dtnkdmkq\",\"currentEnrollment\":\"lwuenvrkp\",\"billingFrequency\":\"uaibrebqaaysj\",\"billingMonth\":1330578772}")
.toObject(LegacyReservationTransactionProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationTransactionTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationTransactionTests.java
index 9b93e9db9480..1fa84f70c9f7 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationTransactionTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyReservationTransactionTests.java
@@ -11,7 +11,7 @@ public final class LegacyReservationTransactionTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LegacyReservationTransaction model = BinaryData.fromString(
- "{\"properties\":{\"eventDate\":\"2021-04-12T22:42:56Z\",\"reservationOrderId\":\"flqo\",\"description\":\"uvr\",\"eventType\":\"mrnjh\",\"currency\":\"ztczytq\",\"reservationOrderName\":\"w\",\"purchasingEnrollment\":\"uunfprnjletlxsm\",\"purchasingSubscriptionGuid\":\"729cd174-79e5-4641-92a9-afd894ea94f2\",\"purchasingSubscriptionName\":\"do\",\"armSkuName\":\"fa\",\"term\":\"waziy\",\"region\":\"nlqwzdvpiwhx\",\"accountName\":\"zdtmaajquhuxylrj\",\"accountOwnerEmail\":\"ty\",\"departmentName\":\"bmzyospsps\",\"costCenter\":\"kfkyjp\",\"currentEnrollment\":\"pbpssdfpp\",\"billingFrequency\":\"gt\",\"billingMonth\":857144221},\"tags\":[\"czkcnyxrxmunjd\",\"vg\",\"nkvxlxpaglqi\",\"bgkc\"],\"id\":\"khpzvuqdflv\",\"name\":\"niypfpubcpzg\",\"type\":\"xtiv\"}")
+ "{\"properties\":{\"eventDate\":\"2021-04-12T22:42:56Z\",\"reservationOrderId\":\"flqo\",\"description\":\"uvr\",\"eventType\":\"mrnjh\",\"currency\":\"ztczytq\",\"reservationOrderName\":\"w\",\"purchasingEnrollment\":\"uunfprnjletlxsm\",\"purchasingSubscriptionGuid\":\"308b8e37-a948-40a4-a09b-8d8880d7ec67\",\"purchasingSubscriptionName\":\"do\",\"armSkuName\":\"fa\",\"term\":\"waziy\",\"region\":\"nlqwzdvpiwhx\",\"accountName\":\"zdtmaajquhuxylrj\",\"accountOwnerEmail\":\"ty\",\"departmentName\":\"bmzyospsps\",\"costCenter\":\"kfkyjp\",\"currentEnrollment\":\"pbpssdfpp\",\"billingFrequency\":\"gt\",\"billingMonth\":857144221},\"tags\":[\"czkcnyxrxmunjd\",\"vg\",\"nkvxlxpaglqi\",\"bgkc\"],\"id\":\"khpzvuqdflv\",\"name\":\"niypfpubcpzg\",\"type\":\"xtiv\"}")
.toObject(LegacyReservationTransaction.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacySharedScopeReservationRecommendationPropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacySharedScopeReservationRecommendationPropertiesTests.java
index 1f2527bd22b3..dd2b909133cd 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacySharedScopeReservationRecommendationPropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacySharedScopeReservationRecommendationPropertiesTests.java
@@ -11,7 +11,7 @@ public final class LegacySharedScopeReservationRecommendationPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LegacySharedScopeReservationRecommendationProperties model = BinaryData.fromString(
- "{\"scope\":\"Shared\",\"lookBackPeriod\":\"yrcmjdmspofap\",\"instanceFlexibilityRatio\":20.839088,\"instanceFlexibilityGroup\":\"ylnio\",\"normalizedSize\":\"zgb\",\"recommendedQuantityNormalized\":16.921371,\"meterId\":\"e5512c06-bd0f-445f-9bfa-1c715fe0b65a\",\"resourceType\":\"st\",\"term\":\"nlvxbcuii\",\"firstUsageDate\":\"2021-01-02T08:34:37Z\",\"skuProperties\":[{\"name\":\"v\",\"value\":\"ibmikostbzb\"},{\"name\":\"wbuqn\",\"value\":\"phzfylsgcrp\"},{\"name\":\"cunezzcezelfw\",\"value\":\"wl\"}]}")
+ "{\"scope\":\"Shared\",\"lookBackPeriod\":\"yrcmjdmspofap\",\"instanceFlexibilityRatio\":20.839088,\"instanceFlexibilityGroup\":\"ylnio\",\"normalizedSize\":\"zgb\",\"recommendedQuantityNormalized\":16.921371,\"meterId\":\"47800aef-1a45-42ca-b921-d5360f27d5ca\",\"resourceType\":\"st\",\"term\":\"nlvxbcuii\",\"firstUsageDate\":\"2021-01-02T08:34:37Z\",\"skuProperties\":[{\"name\":\"v\",\"value\":\"ibmikostbzb\"},{\"name\":\"wbuqn\",\"value\":\"phzfylsgcrp\"},{\"name\":\"cunezzcezelfw\",\"value\":\"wl\"}]}")
.toObject(LegacySharedScopeReservationRecommendationProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacySingleScopeReservationRecommendationPropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacySingleScopeReservationRecommendationPropertiesTests.java
index b2b065e39a31..d1e6e962079c 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacySingleScopeReservationRecommendationPropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacySingleScopeReservationRecommendationPropertiesTests.java
@@ -11,7 +11,7 @@ public final class LegacySingleScopeReservationRecommendationPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LegacySingleScopeReservationRecommendationProperties model = BinaryData.fromString(
- "{\"scope\":\"Single\",\"subscriptionId\":\"852d7226-302f-464f-b497-980e7f2a5a88\",\"lookBackPeriod\":\"ox\",\"instanceFlexibilityRatio\":4.6153727,\"instanceFlexibilityGroup\":\"dbxiqx\",\"normalizedSize\":\"iqbi\",\"recommendedQuantityNormalized\":28.257286,\"meterId\":\"970d9819-e432-4a91-b21a-928054fab0e5\",\"resourceType\":\"winhehfqpo\",\"term\":\"wbcb\",\"firstUsageDate\":\"2021-10-16T10:47:10Z\",\"skuProperties\":[{\"name\":\"vxkdivqihebwtswb\",\"value\":\"wfmdurage\"},{\"name\":\"zvcjfelisdjubggb\",\"value\":\"gkxkbsazgakg\"}]}")
+ "{\"scope\":\"Single\",\"subscriptionId\":\"9adbe8ea-b121-48bf-b05b-35db13592b1a\",\"lookBackPeriod\":\"ox\",\"instanceFlexibilityRatio\":4.6153727,\"instanceFlexibilityGroup\":\"dbxiqx\",\"normalizedSize\":\"iqbi\",\"recommendedQuantityNormalized\":28.257286,\"meterId\":\"2c9745f1-7945-4350-8270-bbd21af70aa1\",\"resourceType\":\"winhehfqpo\",\"term\":\"wbcb\",\"firstUsageDate\":\"2021-10-16T10:47:10Z\",\"skuProperties\":[{\"name\":\"vxkdivqihebwtswb\",\"value\":\"wfmdurage\"},{\"name\":\"zvcjfelisdjubggb\",\"value\":\"gkxkbsazgakg\"}]}")
.toObject(LegacySingleScopeReservationRecommendationProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyUsageDetailPropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyUsageDetailPropertiesTests.java
index fc89558674ac..cda75e3a47e1 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyUsageDetailPropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyUsageDetailPropertiesTests.java
@@ -11,7 +11,7 @@ public final class LegacyUsageDetailPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LegacyUsageDetailProperties model = BinaryData.fromString(
- "{\"billingAccountId\":\"xjumvq\",\"billingAccountName\":\"lihrraiouaubr\",\"billingPeriodStartDate\":\"2021-09-02T09:26:55Z\",\"billingPeriodEndDate\":\"2021-11-22T06:02:08Z\",\"billingProfileId\":\"fuojrngif\",\"billingProfileName\":\"z\",\"accountOwnerId\":\"sccbiuimzd\",\"accountName\":\"jdfqwmkyoqufdvr\",\"subscriptionId\":\"slzojh\",\"subscriptionName\":\"tfnmdx\",\"date\":\"2021-08-06T02:53:59Z\",\"product\":\"dgug\",\"partNumber\":\"zihgrkyu\",\"meterId\":\"c000072e-2ee2-4252-886b-d6b1a95e8532\",\"meterDetails\":{\"meterName\":\"snmfpphojeevy\",\"meterCategory\":\"hsgz\",\"meterSubCategory\":\"zbgomfgbeg\",\"unitOfMeasure\":\"gleohi\",\"serviceFamily\":\"tnluankrr\"},\"billingCurrency\":\"tijv\",\"resourceLocation\":\"vbmqzbqq\",\"consumedService\":\"aj\",\"resourceId\":\"wxacevehj\",\"resourceName\":\"yxoaf\",\"serviceInfo1\":\"oqltfae\",\"serviceInfo2\":\"inmfgvxirp\",\"additionalInfo\":\"riypoqeyhlqhyk\",\"invoiceSection\":\"lpyznuciqdsmexi\",\"costCenter\":\"dfuxtya\",\"resourceGroup\":\"ibmi\",\"reservationId\":\"nnust\",\"reservationName\":\"ljhnmgixhcmav\",\"productOrderId\":\"foudor\",\"productOrderName\":\"gyyprotwy\",\"offerId\":\"ndm\",\"isAzureCreditEligible\":false,\"term\":\"gcmjkavl\",\"publisherName\":\"rb\",\"publisherType\":\"tp\",\"planName\":\"tzfjltf\",\"chargeType\":\"zcyjtot\",\"frequency\":\"opv\",\"benefitId\":\"bzqgqqi\",\"benefitName\":\"dsvqwt\",\"pricingModel\":\"Reservation\"}")
+ "{\"billingAccountId\":\"xjumvq\",\"billingAccountName\":\"lihrraiouaubr\",\"billingPeriodStartDate\":\"2021-09-02T09:26:55Z\",\"billingPeriodEndDate\":\"2021-11-22T06:02:08Z\",\"billingProfileId\":\"fuojrngif\",\"billingProfileName\":\"z\",\"accountOwnerId\":\"sccbiuimzd\",\"accountName\":\"jdfqwmkyoqufdvr\",\"subscriptionId\":\"slzojh\",\"subscriptionName\":\"tfnmdx\",\"date\":\"2021-08-06T02:53:59Z\",\"product\":\"dgug\",\"partNumber\":\"zihgrkyu\",\"meterId\":\"c1dc5b9c-fdda-492b-b247-1db888c5d3a8\",\"meterDetails\":{\"meterName\":\"snmfpphojeevy\",\"meterCategory\":\"hsgz\",\"meterSubCategory\":\"zbgomfgbeg\",\"unitOfMeasure\":\"gleohi\",\"serviceFamily\":\"tnluankrr\"},\"billingCurrency\":\"tijv\",\"resourceLocation\":\"vbmqzbqq\",\"consumedService\":\"aj\",\"resourceId\":\"wxacevehj\",\"resourceName\":\"yxoaf\",\"serviceInfo1\":\"oqltfae\",\"serviceInfo2\":\"inmfgvxirp\",\"additionalInfo\":\"riypoqeyhlqhyk\",\"invoiceSection\":\"lpyznuciqdsmexi\",\"costCenter\":\"dfuxtya\",\"resourceGroup\":\"ibmi\",\"reservationId\":\"nnust\",\"reservationName\":\"ljhnmgixhcmav\",\"productOrderId\":\"foudor\",\"productOrderName\":\"gyyprotwy\",\"offerId\":\"ndm\",\"isAzureCreditEligible\":false,\"term\":\"gcmjkavl\",\"publisherName\":\"rb\",\"publisherType\":\"tp\",\"planName\":\"tzfjltf\",\"chargeType\":\"zcyjtot\",\"frequency\":\"opv\",\"benefitId\":\"bzqgqqi\",\"benefitName\":\"dsvqwt\",\"pricingModel\":\"Reservation\"}")
.toObject(LegacyUsageDetailProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyUsageDetailTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyUsageDetailTests.java
index d3c61150d539..85d8325443ee 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyUsageDetailTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/LegacyUsageDetailTests.java
@@ -11,7 +11,7 @@ public final class LegacyUsageDetailTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
LegacyUsageDetail model = BinaryData.fromString(
- "{\"kind\":\"legacy\",\"properties\":{\"billingAccountId\":\"f\",\"billingAccountName\":\"nmwmqtibx\",\"billingPeriodStartDate\":\"2021-03-01T23:53:32Z\",\"billingPeriodEndDate\":\"2021-06-21T09:24:47Z\",\"billingProfileId\":\"vqcttadija\",\"billingProfileName\":\"kmr\",\"accountOwnerId\":\"eekpndz\",\"accountName\":\"pmudqmeqwig\",\"subscriptionId\":\"bu\",\"subscriptionName\":\"wyxebeybpmzz\",\"date\":\"2021-07-31T19:09:27Z\",\"product\":\"fyaqitm\",\"partNumber\":\"eioqaqhvse\",\"meterId\":\"b6a7e529-d960-4a27-91d0-4dd041e35b13\",\"meterDetails\":{\"meterName\":\"yrxpdlcgqls\",\"meterCategory\":\"mjqfrddgamquhio\",\"meterSubCategory\":\"sjuivfcdisyir\",\"unitOfMeasure\":\"zhczexrxzbujrtrh\",\"serviceFamily\":\"wrevkhgnlnzon\"},\"billingCurrency\":\"yw\",\"resourceLocation\":\"vjtszcofize\",\"consumedService\":\"dhgbjkvre\",\"resourceId\":\"eamurvzmlo\",\"resourceName\":\"anashc\",\"serviceInfo1\":\"pmjerbdkelvidiz\",\"serviceInfo2\":\"sdbccxjmonfdgnwn\",\"additionalInfo\":\"puuw\",\"invoiceSection\":\"tvuqjctzenkeifzz\",\"costCenter\":\"kdasvflyhbxcudch\",\"resourceGroup\":\"srboldforobw\",\"reservationId\":\"vizbfhfo\",\"reservationName\":\"acqpbtuodxesza\",\"productOrderId\":\"elawumu\",\"productOrderName\":\"lzkwrrwoy\",\"offerId\":\"ucwyhahno\",\"isAzureCreditEligible\":true,\"term\":\"ywuhpsvfuur\",\"publisherName\":\"lwexxwl\",\"publisherType\":\"niexzsrzpgepq\",\"planName\":\"bb\",\"chargeType\":\"pgdakchzyvli\",\"frequency\":\"nrkcxkj\",\"benefitId\":\"xmysuxswqrntv\",\"benefitName\":\"ijpstte\",\"pricingModel\":\"Reservation\"},\"etag\":\"pwcyyufmhr\",\"tags\":{\"spkcdqzh\":\"uwm\",\"ndy\":\"ctddun\"},\"id\":\"pchrqbn\",\"name\":\"jrcg\",\"type\":\"gydcw\"}")
+ "{\"kind\":\"legacy\",\"properties\":{\"billingAccountId\":\"f\",\"billingAccountName\":\"nmwmqtibx\",\"billingPeriodStartDate\":\"2021-03-01T23:53:32Z\",\"billingPeriodEndDate\":\"2021-06-21T09:24:47Z\",\"billingProfileId\":\"vqcttadija\",\"billingProfileName\":\"kmr\",\"accountOwnerId\":\"eekpndz\",\"accountName\":\"pmudqmeqwig\",\"subscriptionId\":\"bu\",\"subscriptionName\":\"wyxebeybpmzz\",\"date\":\"2021-07-31T19:09:27Z\",\"product\":\"fyaqitm\",\"partNumber\":\"eioqaqhvse\",\"meterId\":\"256b127d-1443-428b-b000-1bbc803a18c8\",\"meterDetails\":{\"meterName\":\"yrxpdlcgqls\",\"meterCategory\":\"mjqfrddgamquhio\",\"meterSubCategory\":\"sjuivfcdisyir\",\"unitOfMeasure\":\"zhczexrxzbujrtrh\",\"serviceFamily\":\"wrevkhgnlnzon\"},\"billingCurrency\":\"yw\",\"resourceLocation\":\"vjtszcofize\",\"consumedService\":\"dhgbjkvre\",\"resourceId\":\"eamurvzmlo\",\"resourceName\":\"anashc\",\"serviceInfo1\":\"pmjerbdkelvidiz\",\"serviceInfo2\":\"sdbccxjmonfdgnwn\",\"additionalInfo\":\"puuw\",\"invoiceSection\":\"tvuqjctzenkeifzz\",\"costCenter\":\"kdasvflyhbxcudch\",\"resourceGroup\":\"srboldforobw\",\"reservationId\":\"vizbfhfo\",\"reservationName\":\"acqpbtuodxesza\",\"productOrderId\":\"elawumu\",\"productOrderName\":\"lzkwrrwoy\",\"offerId\":\"ucwyhahno\",\"isAzureCreditEligible\":true,\"term\":\"ywuhpsvfuur\",\"publisherName\":\"lwexxwl\",\"publisherType\":\"niexzsrzpgepq\",\"planName\":\"bb\",\"chargeType\":\"pgdakchzyvli\",\"frequency\":\"nrkcxkj\",\"benefitId\":\"xmysuxswqrntv\",\"benefitName\":\"ijpstte\",\"pricingModel\":\"Reservation\"},\"etag\":\"pwcyyufmhr\",\"tags\":{\"spkcdqzh\":\"uwm\",\"ndy\":\"ctddun\"},\"id\":\"pchrqbn\",\"name\":\"jrcg\",\"type\":\"gydcw\"}")
.toObject(LegacyUsageDetail.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplaceInnerTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplaceInnerTests.java
index 05f4e4a0c9a4..f68e4e479714 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplaceInnerTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplaceInnerTests.java
@@ -11,7 +11,7 @@ public final class MarketplaceInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
MarketplaceInner model = BinaryData.fromString(
- "{\"properties\":{\"billingPeriodId\":\"zqqedq\",\"usageStart\":\"2021-11-23T05:43:53Z\",\"usageEnd\":\"2021-07-02T01:03:40Z\",\"offerName\":\"ouf\",\"resourceGroup\":\"mnkzsmod\",\"additionalInfo\":\"lougpbkw\",\"orderNumber\":\"utduqktapspwgcu\",\"instanceName\":\"tumkdosvqwhbm\",\"instanceId\":\"bbjfddgmbmbexp\",\"currency\":\"htqqrolfp\",\"unitOfMeasure\":\"algbquxigjyjg\",\"isEstimated\":false,\"meterId\":\"f6a04663-1a9a-4145-accd-c2403894ef6c\",\"subscriptionGuid\":\"99fd40f0-e73c-4865-992a-39793f09cd13\",\"subscriptionName\":\"rtxilner\",\"accountName\":\"jysvl\",\"departmentName\":\"uvfqawrlyxwj\",\"consumedService\":\"prbnwbxgjvtbv\",\"costCenter\":\"sszdnru\",\"additionalProperties\":\"guhmuouqfpr\",\"publisherName\":\"wbnguitnwui\",\"planName\":\"a\",\"isRecurringCharge\":true},\"etag\":\"izuckyfihrfidfvz\",\"tags\":{\"mwisdkfthwxmnt\":\"uht\",\"aop\":\"i\",\"jcmmxdcufufsrp\":\"km\",\"sgfyccsnew\":\"mzidnsezcxtb\"},\"id\":\"dwzjeiach\",\"name\":\"oosflnr\",\"type\":\"sfqpteehz\"}")
+ "{\"properties\":{\"billingPeriodId\":\"zqqedq\",\"usageStart\":\"2021-11-23T05:43:53Z\",\"usageEnd\":\"2021-07-02T01:03:40Z\",\"offerName\":\"ouf\",\"resourceGroup\":\"mnkzsmod\",\"additionalInfo\":\"lougpbkw\",\"orderNumber\":\"utduqktapspwgcu\",\"instanceName\":\"tumkdosvqwhbm\",\"instanceId\":\"bbjfddgmbmbexp\",\"currency\":\"htqqrolfp\",\"unitOfMeasure\":\"algbquxigjyjg\",\"isEstimated\":false,\"meterId\":\"5708eef8-65d0-4ac1-95bb-0e298c845f21\",\"subscriptionGuid\":\"44bc57ba-a267-455f-8578-6cc6c4e28e47\",\"subscriptionName\":\"rtxilner\",\"accountName\":\"jysvl\",\"departmentName\":\"uvfqawrlyxwj\",\"consumedService\":\"prbnwbxgjvtbv\",\"costCenter\":\"sszdnru\",\"additionalProperties\":\"guhmuouqfpr\",\"publisherName\":\"wbnguitnwui\",\"planName\":\"a\",\"isRecurringCharge\":true},\"etag\":\"izuckyfihrfidfvz\",\"tags\":{\"mwisdkfthwxmnt\":\"uht\",\"aop\":\"i\",\"jcmmxdcufufsrp\":\"km\",\"sgfyccsnew\":\"mzidnsezcxtb\"},\"id\":\"dwzjeiach\",\"name\":\"oosflnr\",\"type\":\"sfqpteehz\"}")
.toObject(MarketplaceInner.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacePropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacePropertiesTests.java
index d4ae4b8c8b23..802e7405c87f 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacePropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacePropertiesTests.java
@@ -11,7 +11,7 @@ public final class MarketplacePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
MarketplaceProperties model = BinaryData.fromString(
- "{\"billingPeriodId\":\"ypyqrimzinp\",\"usageStart\":\"2021-01-25T11:13:44Z\",\"usageEnd\":\"2021-07-26T12:42:25Z\",\"offerName\":\"rsoodqxhcrmnoh\",\"resourceGroup\":\"ckwhds\",\"additionalInfo\":\"fiyipjxsqwpgrj\",\"orderNumber\":\"norcjxvsnbyxqab\",\"instanceName\":\"ocpcy\",\"instanceId\":\"urzafb\",\"currency\":\"j\",\"unitOfMeasure\":\"toqcjmklja\",\"isEstimated\":true,\"meterId\":\"2214b6b4-7467-4297-8ab8-a77f3345b8fb\",\"subscriptionGuid\":\"0cd5a3c9-5634-46b9-883e-ea566bc5522e\",\"subscriptionName\":\"ajzyul\",\"accountName\":\"u\",\"departmentName\":\"krlkhbzhfepg\",\"consumedService\":\"qex\",\"costCenter\":\"ocxscpaierhhbcs\",\"additionalProperties\":\"ummajtjaod\",\"publisherName\":\"bnbdxkqpxokajion\",\"planName\":\"mexgstxgcp\",\"isRecurringCharge\":false}")
+ "{\"billingPeriodId\":\"ypyqrimzinp\",\"usageStart\":\"2021-01-25T11:13:44Z\",\"usageEnd\":\"2021-07-26T12:42:25Z\",\"offerName\":\"rsoodqxhcrmnoh\",\"resourceGroup\":\"ckwhds\",\"additionalInfo\":\"fiyipjxsqwpgrj\",\"orderNumber\":\"norcjxvsnbyxqab\",\"instanceName\":\"ocpcy\",\"instanceId\":\"urzafb\",\"currency\":\"j\",\"unitOfMeasure\":\"toqcjmklja\",\"isEstimated\":true,\"meterId\":\"56f08a6b-9ea1-40e8-8008-ec4c3533a2a6\",\"subscriptionGuid\":\"fdc0d496-0cda-4c5b-b57c-6e793c81d0b6\",\"subscriptionName\":\"ajzyul\",\"accountName\":\"u\",\"departmentName\":\"krlkhbzhfepg\",\"consumedService\":\"qex\",\"costCenter\":\"ocxscpaierhhbcs\",\"additionalProperties\":\"ummajtjaod\",\"publisherName\":\"bnbdxkqpxokajion\",\"planName\":\"mexgstxgcp\",\"isRecurringCharge\":false}")
.toObject(MarketplaceProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacesListMockTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacesListMockTests.java
index 11f584444fe1..f0dd32612d1f 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacesListMockTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacesListMockTests.java
@@ -21,7 +21,7 @@ public final class MarketplacesListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"billingPeriodId\":\"vidttgepuslvyjt\",\"usageStart\":\"2021-05-30T23:50:17Z\",\"usageEnd\":\"2021-03-17T17:29:52Z\",\"offerName\":\"iziesfuughtuq\",\"resourceGroup\":\"cjxeygt\",\"additionalInfo\":\"xu\",\"orderNumber\":\"buew\",\"instanceName\":\"s\",\"instanceId\":\"jlxuz\",\"currency\":\"wpusxjbaqehg\",\"unitOfMeasure\":\"hzjqatucoige\",\"isEstimated\":true,\"meterId\":\"85347508-d454-42cd-a5de-851e30432878\",\"subscriptionGuid\":\"e6559454-4e4e-4938-b30f-79def281e08a\",\"subscriptionName\":\"epbnwgfm\",\"accountName\":\"gcgbjb\",\"departmentName\":\"lfgtdysnaquflqbc\",\"consumedService\":\"hamzjrwdkqze\",\"costCenter\":\"jleziunjx\",\"additionalProperties\":\"zantkwceg\",\"publisherName\":\"mlbnseq\",\"planName\":\"jjvpilguooqja\",\"isRecurringCharge\":false},\"etag\":\"tg\",\"tags\":{\"qacsl\":\"ookjbsahrtdtpde\",\"jkgd\":\"otoebnfxofv\",\"vcopex\":\"razftxejwabmdujt\"},\"id\":\"m\",\"name\":\"urbuhhlkyqltq\",\"type\":\"rogtuwkf\"}]}";
+ = "{\"value\":[{\"properties\":{\"billingPeriodId\":\"vidttgepuslvyjt\",\"usageStart\":\"2021-05-30T23:50:17Z\",\"usageEnd\":\"2021-03-17T17:29:52Z\",\"offerName\":\"iziesfuughtuq\",\"resourceGroup\":\"cjxeygt\",\"additionalInfo\":\"xu\",\"orderNumber\":\"buew\",\"instanceName\":\"s\",\"instanceId\":\"jlxuz\",\"currency\":\"wpusxjbaqehg\",\"unitOfMeasure\":\"hzjqatucoige\",\"isEstimated\":true,\"meterId\":\"a19f9e80-0ced-4d77-b91c-7dfbd47f64b5\",\"subscriptionGuid\":\"6a06a62b-6bf2-4474-9e54-b7507c1aa672\",\"subscriptionName\":\"epbnwgfm\",\"accountName\":\"gcgbjb\",\"departmentName\":\"lfgtdysnaquflqbc\",\"consumedService\":\"hamzjrwdkqze\",\"costCenter\":\"jleziunjx\",\"additionalProperties\":\"zantkwceg\",\"publisherName\":\"mlbnseq\",\"planName\":\"jjvpilguooqja\",\"isRecurringCharge\":false},\"etag\":\"tg\",\"tags\":{\"qacsl\":\"ookjbsahrtdtpde\",\"jkgd\":\"otoebnfxofv\",\"vcopex\":\"razftxejwabmdujt\"},\"id\":\"m\",\"name\":\"urbuhhlkyqltq\",\"type\":\"rogtuwkf\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacesListResultTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacesListResultTests.java
index 0e3c83fd78b6..704064342ad8 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacesListResultTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/MarketplacesListResultTests.java
@@ -11,7 +11,7 @@ public final class MarketplacesListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
MarketplacesListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"billingPeriodId\":\"slwejdpvw\",\"usageStart\":\"2021-07-13T16:59:20Z\",\"usageEnd\":\"2021-09-27T20:49:26Z\",\"offerName\":\"acctazakljla\",\"resourceGroup\":\"cr\",\"additionalInfo\":\"fdfdosygexpa\",\"orderNumber\":\"akhmsbzjhcrz\",\"instanceName\":\"dphlxaolt\",\"instanceId\":\"trg\",\"currency\":\"bpf\",\"unitOfMeasure\":\"inzgvfcj\",\"isEstimated\":true,\"meterId\":\"5bcd136a-92e5-4067-a1dd-275fac028f27\",\"subscriptionGuid\":\"9c4ac725-c096-438b-bc2d-d246ddf675c2\",\"subscriptionName\":\"tfell\",\"accountName\":\"fziton\",\"departmentName\":\"qfpjk\",\"consumedService\":\"xofpdvhpfxxypi\",\"costCenter\":\"nmayhuybb\",\"additionalProperties\":\"odepoogin\",\"publisherName\":\"amiheognarxz\",\"planName\":\"heotusiv\",\"isRecurringCharge\":false},\"etag\":\"ciqihnhung\",\"tags\":{\"gxg\":\"zrnf\",\"fublj\":\"spemvtzfk\"},\"id\":\"fxqeof\",\"name\":\"aeqjhqjbasvms\",\"type\":\"jqul\"},{\"properties\":{\"billingPeriodId\":\"ntnbybkzg\",\"usageStart\":\"2021-06-16T21:35:22Z\",\"usageEnd\":\"2021-10-31T07:08:50Z\",\"offerName\":\"xwrljdouskcqvkoc\",\"resourceGroup\":\"jdkwtnhxbnjb\",\"additionalInfo\":\"sqrglssainq\",\"orderNumber\":\"wnzlljfmppeeb\",\"instanceName\":\"gxsabkyq\",\"instanceId\":\"ujitcjcz\",\"currency\":\"evndh\",\"unitOfMeasure\":\"pdappds\",\"isEstimated\":false,\"meterId\":\"beae6f74-002c-4f71-b472-86613453a3df\",\"subscriptionGuid\":\"954017ec-10b4-4b06-9f4e-2b897b4c1045\",\"subscriptionName\":\"jfeusnh\",\"accountName\":\"je\",\"departmentName\":\"mrldhu\",\"consumedService\":\"zzd\",\"costCenter\":\"qxhocdgeablgphut\",\"additionalProperties\":\"ndv\",\"publisherName\":\"ozwyiftyhxhuro\",\"planName\":\"tyxolniwpwc\",\"isRecurringCharge\":true},\"etag\":\"kgiawxklryplwck\",\"tags\":{\"koty\":\"yypnddhsgcbacphe\"},\"id\":\"qgoulznd\",\"name\":\"i\",\"type\":\"wyqkgfgibm\"}],\"nextLink\":\"gakeqsr\"}")
+ "{\"value\":[{\"properties\":{\"billingPeriodId\":\"slwejdpvw\",\"usageStart\":\"2021-07-13T16:59:20Z\",\"usageEnd\":\"2021-09-27T20:49:26Z\",\"offerName\":\"acctazakljla\",\"resourceGroup\":\"cr\",\"additionalInfo\":\"fdfdosygexpa\",\"orderNumber\":\"akhmsbzjhcrz\",\"instanceName\":\"dphlxaolt\",\"instanceId\":\"trg\",\"currency\":\"bpf\",\"unitOfMeasure\":\"inzgvfcj\",\"isEstimated\":true,\"meterId\":\"e166684a-7eb9-446b-b49a-d6fd32533ba9\",\"subscriptionGuid\":\"a32692d2-3aff-4093-8c7b-33ae806b15aa\",\"subscriptionName\":\"tfell\",\"accountName\":\"fziton\",\"departmentName\":\"qfpjk\",\"consumedService\":\"xofpdvhpfxxypi\",\"costCenter\":\"nmayhuybb\",\"additionalProperties\":\"odepoogin\",\"publisherName\":\"amiheognarxz\",\"planName\":\"heotusiv\",\"isRecurringCharge\":false},\"etag\":\"ciqihnhung\",\"tags\":{\"gxg\":\"zrnf\",\"fublj\":\"spemvtzfk\"},\"id\":\"fxqeof\",\"name\":\"aeqjhqjbasvms\",\"type\":\"jqul\"},{\"properties\":{\"billingPeriodId\":\"ntnbybkzg\",\"usageStart\":\"2021-06-16T21:35:22Z\",\"usageEnd\":\"2021-10-31T07:08:50Z\",\"offerName\":\"xwrljdouskcqvkoc\",\"resourceGroup\":\"jdkwtnhxbnjb\",\"additionalInfo\":\"sqrglssainq\",\"orderNumber\":\"wnzlljfmppeeb\",\"instanceName\":\"gxsabkyq\",\"instanceId\":\"ujitcjcz\",\"currency\":\"evndh\",\"unitOfMeasure\":\"pdappds\",\"isEstimated\":false,\"meterId\":\"7b9736a1-97b0-4460-add5-153c0d04209f\",\"subscriptionGuid\":\"7739a494-c2e9-46a9-a324-4d12dda58a3c\",\"subscriptionName\":\"jfeusnh\",\"accountName\":\"je\",\"departmentName\":\"mrldhu\",\"consumedService\":\"zzd\",\"costCenter\":\"qxhocdgeablgphut\",\"additionalProperties\":\"ndv\",\"publisherName\":\"ozwyiftyhxhuro\",\"planName\":\"tyxolniwpwc\",\"isRecurringCharge\":true},\"etag\":\"kgiawxklryplwck\",\"tags\":{\"koty\":\"yypnddhsgcbacphe\"},\"id\":\"qgoulznd\",\"name\":\"i\",\"type\":\"wyqkgfgibm\"}],\"nextLink\":\"gakeqsr\"}")
.toObject(MarketplacesListResult.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationRecommendationPropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationRecommendationPropertiesTests.java
index 1be5b82c743a..301316ef46c9 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationRecommendationPropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationRecommendationPropertiesTests.java
@@ -11,7 +11,7 @@ public final class ModernReservationRecommendationPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ModernReservationRecommendationProperties model = BinaryData.fromString(
- "{\"scope\":\"ModernReservationRecommendationProperties\",\"location\":\"sxoa\",\"lookBackPeriod\":1674614666,\"instanceFlexibilityRatio\":47.442574,\"instanceFlexibilityGroup\":\"npbs\",\"normalizedSize\":\"e\",\"recommendedQuantityNormalized\":25.03646,\"meterId\":\"a996b859-39ac-4d6a-9559-da484c21eccc\",\"term\":\"srmozihmip\",\"costWithNoReservedInstances\":{\"currency\":\"txx\"},\"resourceType\":\"cxcjxgry\",\"totalCostWithReservedInstances\":{\"currency\":\"pcycilrmcaykg\"},\"netSavings\":{\"currency\":\"uztrksxwpndfcpf\"},\"firstUsageDate\":\"2021-02-28T01:50:53Z\",\"skuProperties\":[{\"name\":\"wkjaos\",\"value\":\"uzvoamktcqiosm\"},{\"name\":\"zah\",\"value\":\"qdlyrtl\"}],\"skuName\":\"ap\"}")
+ "{\"scope\":\"ModernReservationRecommendationProperties\",\"location\":\"sxoa\",\"lookBackPeriod\":1674614666,\"instanceFlexibilityRatio\":47.442574,\"instanceFlexibilityGroup\":\"npbs\",\"normalizedSize\":\"e\",\"recommendedQuantityNormalized\":25.03646,\"meterId\":\"695461f9-27e8-4f38-9110-3a7f14841eeb\",\"term\":\"srmozihmip\",\"costWithNoReservedInstances\":{\"currency\":\"txx\"},\"resourceType\":\"cxcjxgry\",\"totalCostWithReservedInstances\":{\"currency\":\"pcycilrmcaykg\"},\"netSavings\":{\"currency\":\"uztrksxwpndfcpf\"},\"firstUsageDate\":\"2021-02-28T01:50:53Z\",\"skuProperties\":[{\"name\":\"wkjaos\",\"value\":\"uzvoamktcqiosm\"},{\"name\":\"zah\",\"value\":\"qdlyrtl\"}],\"skuName\":\"ap\"}")
.toObject(ModernReservationRecommendationProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationRecommendationTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationRecommendationTests.java
index 013d849d4b27..1b8f37ec80b3 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationRecommendationTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationRecommendationTests.java
@@ -12,7 +12,7 @@ public final class ModernReservationRecommendationTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ModernReservationRecommendation model = BinaryData.fromString(
- "{\"kind\":\"modern\",\"properties\":{\"scope\":\"ModernReservationRecommendationProperties\",\"location\":\"jwetnpsihcla\",\"lookBackPeriod\":350021254,\"instanceFlexibilityRatio\":78.239784,\"instanceFlexibilityGroup\":\"pt\",\"normalizedSize\":\"qqwzt\",\"recommendedQuantityNormalized\":1.9175589,\"meterId\":\"0acc3439-6aae-4ff1-8423-61516714e697\",\"term\":\"chcxwaxfewzj\",\"costWithNoReservedInstances\":{\"currency\":\"xfdeqvhpsyl\"},\"resourceType\":\"kbffmbmx\",\"totalCostWithReservedInstances\":{\"currency\":\"gywwpgjxs\"},\"netSavings\":{\"currency\":\"ujgicgaaoe\"},\"firstUsageDate\":\"2021-07-31T03:17:47Z\",\"skuProperties\":[{\"name\":\"dewemxswv\",\"value\":\"unzzjgehk\"},{\"name\":\"imrt\",\"value\":\"okffqyinljqepqwh\"},{\"name\":\"monstshiyxgve\",\"value\":\"clduc\"}],\"skuName\":\"irdsvuwcob\"},\"etag\":\"gstmninwjizciln\",\"tags\":{\"luxlxqzvnersby\":\"shejjtbxqm\",\"ze\":\"ucrwnami\",\"fuhok\":\"rqbsmswziq\",\"czznvfbycjsxj\":\"ruswhv\"},\"location\":\"i\",\"sku\":\"vumwmxqh\",\"id\":\"dvnoamldsehaohdj\",\"name\":\"hflzokxco\",\"type\":\"pelnjetag\"}")
+ "{\"kind\":\"modern\",\"properties\":{\"scope\":\"ModernReservationRecommendationProperties\",\"location\":\"jwetnpsihcla\",\"lookBackPeriod\":350021254,\"instanceFlexibilityRatio\":78.239784,\"instanceFlexibilityGroup\":\"pt\",\"normalizedSize\":\"qqwzt\",\"recommendedQuantityNormalized\":1.9175589,\"meterId\":\"aaf82584-b4d8-4110-abfd-444a950a684a\",\"term\":\"chcxwaxfewzj\",\"costWithNoReservedInstances\":{\"currency\":\"xfdeqvhpsyl\"},\"resourceType\":\"kbffmbmx\",\"totalCostWithReservedInstances\":{\"currency\":\"gywwpgjxs\"},\"netSavings\":{\"currency\":\"ujgicgaaoe\"},\"firstUsageDate\":\"2021-07-31T03:17:47Z\",\"skuProperties\":[{\"name\":\"dewemxswv\",\"value\":\"unzzjgehk\"},{\"name\":\"imrt\",\"value\":\"okffqyinljqepqwh\"},{\"name\":\"monstshiyxgve\",\"value\":\"clduc\"}],\"skuName\":\"irdsvuwcob\"},\"etag\":\"gstmninwjizciln\",\"tags\":{\"luxlxqzvnersby\":\"shejjtbxqm\",\"ze\":\"ucrwnami\",\"fuhok\":\"rqbsmswziq\",\"czznvfbycjsxj\":\"ruswhv\"},\"location\":\"i\",\"sku\":\"vumwmxqh\",\"id\":\"dvnoamldsehaohdj\",\"name\":\"hflzokxco\",\"type\":\"pelnjetag\"}")
.toObject(ModernReservationRecommendation.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionInnerTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionInnerTests.java
index 8654a8cb8471..76964961b922 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionInnerTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionInnerTests.java
@@ -11,7 +11,7 @@ public final class ModernReservationTransactionInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ModernReservationTransactionInner model = BinaryData.fromString(
- "{\"properties\":{\"armSkuName\":\"rghxjb\",\"billingFrequency\":\"qxvcxgfrpdsofb\",\"billingProfileId\":\"rnsvbuswd\",\"billingProfileName\":\"yybyc\",\"currency\":\"nvjsrtkfa\",\"description\":\"opqgikyzirtxdyux\",\"eventDate\":\"2021-05-05T23:09:26Z\",\"eventType\":\"tpsew\",\"invoice\":\"oi\",\"invoiceId\":\"ukry\",\"invoiceSectionId\":\"tqmieox\",\"invoiceSectionName\":\"ggufhyaomtb\",\"purchasingSubscriptionGuid\":\"396c0416-ddcd-4a00-804e-f39924a6ff91\",\"purchasingSubscriptionName\":\"avgrvkffovjz\",\"region\":\"bibgjmfxumv\",\"reservationOrderId\":\"luyovwxnbkfezzx\",\"reservationOrderName\":\"yhwzdgiruj\",\"term\":\"bomvzzbtdcqv\"},\"tags\":[\"yujviylwdshfssn\",\"bgye\",\"rymsgaojfmw\",\"cotmr\"],\"id\":\"hirctymoxoftpipi\",\"name\":\"yczuhxacpq\",\"type\":\"lihhyuspskasdvlm\"}")
+ "{\"properties\":{\"armSkuName\":\"rghxjb\",\"billingFrequency\":\"qxvcxgfrpdsofb\",\"billingProfileId\":\"rnsvbuswd\",\"billingProfileName\":\"yybyc\",\"currency\":\"nvjsrtkfa\",\"description\":\"opqgikyzirtxdyux\",\"eventDate\":\"2021-05-05T23:09:26Z\",\"eventType\":\"tpsew\",\"invoice\":\"oi\",\"invoiceId\":\"ukry\",\"invoiceSectionId\":\"tqmieox\",\"invoiceSectionName\":\"ggufhyaomtb\",\"purchasingSubscriptionGuid\":\"b8b21285-b3e7-4753-82dd-a19e0996fd6d\",\"purchasingSubscriptionName\":\"avgrvkffovjz\",\"region\":\"bibgjmfxumv\",\"reservationOrderId\":\"luyovwxnbkfezzx\",\"reservationOrderName\":\"yhwzdgiruj\",\"term\":\"bomvzzbtdcqv\"},\"tags\":[\"yujviylwdshfssn\",\"bgye\",\"rymsgaojfmw\",\"cotmr\"],\"id\":\"hirctymoxoftpipi\",\"name\":\"yczuhxacpq\",\"type\":\"lihhyuspskasdvlm\"}")
.toObject(ModernReservationTransactionInner.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionPropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionPropertiesTests.java
index d9ec9b956464..0298b24ed732 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionPropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionPropertiesTests.java
@@ -11,7 +11,7 @@ public final class ModernReservationTransactionPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ModernReservationTransactionProperties model = BinaryData.fromString(
- "{\"armSkuName\":\"gz\",\"billingFrequency\":\"lucvpam\",\"billingProfileId\":\"reuzvxurisjn\",\"billingProfileName\":\"ytxifqjzgxmrh\",\"currency\":\"lw\",\"description\":\"esutrgjupauutpw\",\"eventDate\":\"2021-02-03T03:54:48Z\",\"eventType\":\"hej\",\"invoice\":\"w\",\"invoiceId\":\"nfqn\",\"invoiceSectionId\":\"ypsxjvfoim\",\"invoiceSectionName\":\"slirciz\",\"purchasingSubscriptionGuid\":\"e7b3e161-f477-427f-add8-0890dbb66eca\",\"purchasingSubscriptionName\":\"ydfce\",\"region\":\"lhvygdyftu\",\"reservationOrderId\":\"twnawjslbiwkojgc\",\"reservationOrderName\":\"tsf\",\"term\":\"nbaeqphchqn\"}")
+ "{\"armSkuName\":\"gz\",\"billingFrequency\":\"lucvpam\",\"billingProfileId\":\"reuzvxurisjn\",\"billingProfileName\":\"ytxifqjzgxmrh\",\"currency\":\"lw\",\"description\":\"esutrgjupauutpw\",\"eventDate\":\"2021-02-03T03:54:48Z\",\"eventType\":\"hej\",\"invoice\":\"w\",\"invoiceId\":\"nfqn\",\"invoiceSectionId\":\"ypsxjvfoim\",\"invoiceSectionName\":\"slirciz\",\"purchasingSubscriptionGuid\":\"aff90af7-8487-4bf8-9e6e-e6babc33fbe9\",\"purchasingSubscriptionName\":\"ydfce\",\"region\":\"lhvygdyftu\",\"reservationOrderId\":\"twnawjslbiwkojgc\",\"reservationOrderName\":\"tsf\",\"term\":\"nbaeqphchqn\"}")
.toObject(ModernReservationTransactionProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionsListResultTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionsListResultTests.java
index 844ecfaec167..56c28644dedf 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionsListResultTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernReservationTransactionsListResultTests.java
@@ -11,7 +11,7 @@ public final class ModernReservationTransactionsListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ModernReservationTransactionsListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"armSkuName\":\"otxhojujby\",\"billingFrequency\":\"lmcuvhixb\",\"billingProfileId\":\"yfwnylr\",\"billingProfileName\":\"o\",\"currency\":\"ttpkiwkkbnujrywv\",\"description\":\"lbfpncurd\",\"eventDate\":\"2021-07-17T10:48:48Z\",\"eventType\":\"ithtywu\",\"invoice\":\"cbihwqk\",\"invoiceId\":\"dntwjchrdgo\",\"invoiceSectionId\":\"xum\",\"invoiceSectionName\":\"ton\",\"purchasingSubscriptionGuid\":\"beb97c51-22e6-4808-adbe-8d3685ab970f\",\"purchasingSubscriptionName\":\"luudfdlwggytsb\",\"region\":\"vvt\",\"reservationOrderId\":\"einqf\",\"reservationOrderName\":\"fxqknpirgneptt\",\"term\":\"msniffc\"},\"tags\":[\"nrojlpijnkr\",\"frddhcrati\",\"zronasxift\",\"zq\"],\"id\":\"zh\",\"name\":\"tw\",\"type\":\"sgogczhonnxk\"}],\"nextLink\":\"gnyhmossxkkg\"}")
+ "{\"value\":[{\"properties\":{\"armSkuName\":\"otxhojujby\",\"billingFrequency\":\"lmcuvhixb\",\"billingProfileId\":\"yfwnylr\",\"billingProfileName\":\"o\",\"currency\":\"ttpkiwkkbnujrywv\",\"description\":\"lbfpncurd\",\"eventDate\":\"2021-07-17T10:48:48Z\",\"eventType\":\"ithtywu\",\"invoice\":\"cbihwqk\",\"invoiceId\":\"dntwjchrdgo\",\"invoiceSectionId\":\"xum\",\"invoiceSectionName\":\"ton\",\"purchasingSubscriptionGuid\":\"33ace339-8e72-4cb5-b1f5-6198ab938d79\",\"purchasingSubscriptionName\":\"luudfdlwggytsb\",\"region\":\"vvt\",\"reservationOrderId\":\"einqf\",\"reservationOrderName\":\"fxqknpirgneptt\",\"term\":\"msniffc\"},\"tags\":[\"nrojlpijnkr\",\"frddhcrati\",\"zronasxift\",\"zq\"],\"id\":\"zh\",\"name\":\"tw\",\"type\":\"sgogczhonnxk\"}],\"nextLink\":\"gnyhmossxkkg\"}")
.toObject(ModernReservationTransactionsListResult.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernSharedScopeReservationRecommendationPropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernSharedScopeReservationRecommendationPropertiesTests.java
index 13f9c72f9de9..a99c4362c284 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernSharedScopeReservationRecommendationPropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernSharedScopeReservationRecommendationPropertiesTests.java
@@ -11,7 +11,7 @@ public final class ModernSharedScopeReservationRecommendationPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ModernSharedScopeReservationRecommendationProperties model = BinaryData.fromString(
- "{\"scope\":\"Shared\",\"location\":\"pakdkifmjnnawt\",\"lookBackPeriod\":1667262093,\"instanceFlexibilityRatio\":82.25649,\"instanceFlexibilityGroup\":\"ckpggqoweyird\",\"normalizedSize\":\"isngwflqqmpizru\",\"recommendedQuantityNormalized\":26.464039,\"meterId\":\"dad7de60-6c33-4483-b091-a53435679474\",\"term\":\"pxiwf\",\"costWithNoReservedInstances\":{\"currency\":\"jsa\"},\"resourceType\":\"xtmkzjvkviir\",\"totalCostWithReservedInstances\":{\"currency\":\"grwsdp\"},\"netSavings\":{\"currency\":\"zvzbglbyv\"},\"firstUsageDate\":\"2021-05-26T01:46:31Z\",\"skuProperties\":[{\"name\":\"xkjzwrgxffm\",\"value\":\"kwfbkgo\"},{\"name\":\"wopdbydpiz\",\"value\":\"clnapxbiygnugjkn\"}],\"skuName\":\"mfcttux\"}")
+ "{\"scope\":\"Shared\",\"location\":\"pakdkifmjnnawt\",\"lookBackPeriod\":1667262093,\"instanceFlexibilityRatio\":82.25649,\"instanceFlexibilityGroup\":\"ckpggqoweyird\",\"normalizedSize\":\"isngwflqqmpizru\",\"recommendedQuantityNormalized\":26.464039,\"meterId\":\"3b35ff61-024c-45e9-823b-f3d74acd7805\",\"term\":\"pxiwf\",\"costWithNoReservedInstances\":{\"currency\":\"jsa\"},\"resourceType\":\"xtmkzjvkviir\",\"totalCostWithReservedInstances\":{\"currency\":\"grwsdp\"},\"netSavings\":{\"currency\":\"zvzbglbyv\"},\"firstUsageDate\":\"2021-05-26T01:46:31Z\",\"skuProperties\":[{\"name\":\"xkjzwrgxffm\",\"value\":\"kwfbkgo\"},{\"name\":\"wopdbydpiz\",\"value\":\"clnapxbiygnugjkn\"}],\"skuName\":\"mfcttux\"}")
.toObject(ModernSharedScopeReservationRecommendationProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernSingleScopeReservationRecommendationPropertiesTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernSingleScopeReservationRecommendationPropertiesTests.java
index 742a19fbad38..d73cc30d6b4c 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernSingleScopeReservationRecommendationPropertiesTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ModernSingleScopeReservationRecommendationPropertiesTests.java
@@ -11,7 +11,7 @@ public final class ModernSingleScopeReservationRecommendationPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ModernSingleScopeReservationRecommendationProperties model = BinaryData.fromString(
- "{\"scope\":\"Single\",\"subscriptionId\":\"9ae65ab9-fb49-4006-bf2b-fd7afabbffb1\",\"location\":\"zkatb\",\"lookBackPeriod\":1903197758,\"instanceFlexibilityRatio\":54.313797,\"instanceFlexibilityGroup\":\"bsoqeqala\",\"normalizedSize\":\"lagun\",\"recommendedQuantityNormalized\":49.933304,\"meterId\":\"53b7fb33-edcc-48d3-b044-b36043f65bd4\",\"term\":\"bwln\",\"costWithNoReservedInstances\":{\"currency\":\"yreeudz\"},\"resourceType\":\"pdqmjxlyyzglgouw\",\"totalCostWithReservedInstances\":{\"currency\":\"jjyuojqtobax\"},\"netSavings\":{\"currency\":\"tu\"},\"firstUsageDate\":\"2021-07-22T08:57:15Z\",\"skuProperties\":[{\"name\":\"rusnk\",\"value\":\"hsyrqunj\"}],\"skuName\":\"denxau\"}")
+ "{\"scope\":\"Single\",\"subscriptionId\":\"c388806d-533f-41cf-b857-3c11e96f2405\",\"location\":\"zkatb\",\"lookBackPeriod\":1903197758,\"instanceFlexibilityRatio\":54.313797,\"instanceFlexibilityGroup\":\"bsoqeqala\",\"normalizedSize\":\"lagun\",\"recommendedQuantityNormalized\":49.933304,\"meterId\":\"8e42ca87-15bf-4809-b98b-c4daf9945756\",\"term\":\"bwln\",\"costWithNoReservedInstances\":{\"currency\":\"yreeudz\"},\"resourceType\":\"pdqmjxlyyzglgouw\",\"totalCostWithReservedInstances\":{\"currency\":\"jjyuojqtobax\"},\"netSavings\":{\"currency\":\"tu\"},\"firstUsageDate\":\"2021-07-22T08:57:15Z\",\"skuProperties\":[{\"name\":\"rusnk\",\"value\":\"hsyrqunj\"}],\"skuName\":\"denxau\"}")
.toObject(ModernSingleScopeReservationRecommendationProperties.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionInnerTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionInnerTests.java
index 93baba13188b..507fcca4d85d 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionInnerTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionInnerTests.java
@@ -11,7 +11,7 @@ public final class ReservationTransactionInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ReservationTransactionInner model = BinaryData.fromString(
- "{\"properties\":{\"eventDate\":\"2021-09-11T08:24:22Z\",\"reservationOrderId\":\"atmtdhtmdvy\",\"description\":\"ikdgszywkbir\",\"eventType\":\"uzhlhkjoqrv\",\"currency\":\"t\",\"reservationOrderName\":\"nrvgoupmfiibfgg\",\"purchasingEnrollment\":\"ool\",\"purchasingSubscriptionGuid\":\"9cb35ae7-444e-4c29-9f57-d3c7cce20383\",\"purchasingSubscriptionName\":\"x\",\"armSkuName\":\"tkkgllqwjy\",\"term\":\"jayvblmhv\",\"region\":\"uhbxvvy\",\"accountName\":\"s\",\"accountOwnerEmail\":\"byrqufeg\",\"departmentName\":\"vwz\",\"costCenter\":\"nhlmctlpdng\",\"currentEnrollment\":\"vgbmhr\",\"billingFrequency\":\"kw\",\"billingMonth\":881216516},\"tags\":[\"egrhbpnaixexc\"],\"id\":\"b\",\"name\":\"reaxhcexdr\",\"type\":\"vqahqkghtpwi\"}")
+ "{\"properties\":{\"eventDate\":\"2021-09-11T08:24:22Z\",\"reservationOrderId\":\"atmtdhtmdvy\",\"description\":\"ikdgszywkbir\",\"eventType\":\"uzhlhkjoqrv\",\"currency\":\"t\",\"reservationOrderName\":\"nrvgoupmfiibfgg\",\"purchasingEnrollment\":\"ool\",\"purchasingSubscriptionGuid\":\"fd3b6bdc-d207-450f-ac5c-6705964ae4ae\",\"purchasingSubscriptionName\":\"x\",\"armSkuName\":\"tkkgllqwjy\",\"term\":\"jayvblmhv\",\"region\":\"uhbxvvy\",\"accountName\":\"s\",\"accountOwnerEmail\":\"byrqufeg\",\"departmentName\":\"vwz\",\"costCenter\":\"nhlmctlpdng\",\"currentEnrollment\":\"vgbmhr\",\"billingFrequency\":\"kw\",\"billingMonth\":881216516},\"tags\":[\"egrhbpnaixexc\"],\"id\":\"b\",\"name\":\"reaxhcexdr\",\"type\":\"vqahqkghtpwi\"}")
.toObject(ReservationTransactionInner.class);
}
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListByBillingProfileMockTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListByBillingProfileMockTests.java
index 9850cd5f5658..d30c66ff8437 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListByBillingProfileMockTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListByBillingProfileMockTests.java
@@ -21,7 +21,7 @@ public final class ReservationTransactionsListByBillingProfileMockTests {
@Test
public void testListByBillingProfile() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"armSkuName\":\"blevpmcluj\",\"billingFrequency\":\"kyxl\",\"billingProfileId\":\"sjgkzzltafh\",\"billingProfileName\":\"ffovwmbjlzqsczp\",\"currency\":\"dwnapf\",\"description\":\"wow\",\"eventDate\":\"2021-05-08T23:14:19Z\",\"eventType\":\"n\",\"invoice\":\"jtks\",\"invoiceId\":\"gcgqyhleseyqrhvy\",\"invoiceSectionId\":\"dotjvdk\",\"invoiceSectionName\":\"swskuk\",\"purchasingSubscriptionGuid\":\"ebeb393f-21b9-4892-b4c8-5bf204691b7e\",\"purchasingSubscriptionName\":\"sbvw\",\"region\":\"kxkdtxfkndlq\",\"reservationOrderId\":\"w\",\"reservationOrderName\":\"vgmmbugtyw\",\"term\":\"mqaqkueatgroes\"},\"tags\":[\"gzcbyf\"],\"id\":\"x\",\"name\":\"faoytehqpuv\",\"type\":\"mvqmtdwckygroej\"}]}";
+ = "{\"value\":[{\"properties\":{\"armSkuName\":\"blevpmcluj\",\"billingFrequency\":\"kyxl\",\"billingProfileId\":\"sjgkzzltafh\",\"billingProfileName\":\"ffovwmbjlzqsczp\",\"currency\":\"dwnapf\",\"description\":\"wow\",\"eventDate\":\"2021-05-08T23:14:19Z\",\"eventType\":\"n\",\"invoice\":\"jtks\",\"invoiceId\":\"gcgqyhleseyqrhvy\",\"invoiceSectionId\":\"dotjvdk\",\"invoiceSectionName\":\"swskuk\",\"purchasingSubscriptionGuid\":\"28c582f1-35b3-4935-8acc-8a9cb18192b1\",\"purchasingSubscriptionName\":\"sbvw\",\"region\":\"kxkdtxfkndlq\",\"reservationOrderId\":\"w\",\"reservationOrderName\":\"vgmmbugtyw\",\"term\":\"mqaqkueatgroes\"},\"tags\":[\"gzcbyf\"],\"id\":\"x\",\"name\":\"faoytehqpuv\",\"type\":\"mvqmtdwckygroej\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListMockTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListMockTests.java
index 986029099537..990be0da2552 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListMockTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListMockTests.java
@@ -21,7 +21,7 @@ public final class ReservationTransactionsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"eventDate\":\"2021-11-13T08:18:55Z\",\"reservationOrderId\":\"ztwhghmupg\",\"description\":\"jtcdxabbujftaben\",\"eventType\":\"klqpx\",\"currency\":\"feddwwnlza\",\"reservationOrderName\":\"xud\",\"purchasingEnrollment\":\"hgookrtalvnbwgpb\",\"purchasingSubscriptionGuid\":\"7677b2d1-63b2-45f2-aff4-35843a056399\",\"purchasingSubscriptionName\":\"luclvdjjuk\",\"armSkuName\":\"dnqodx\",\"term\":\"h\",\"region\":\"qfaqnvzoqg\",\"accountName\":\"pem\",\"accountOwnerEmail\":\"gavsczuejd\",\"departmentName\":\"ptlghwzhomewjjst\",\"costCenter\":\"uhqawmoaianc\",\"currentEnrollment\":\"vodrrslblxydkxr\",\"billingFrequency\":\"vbxiwkgfbqlj\",\"billingMonth\":1613642169},\"tags\":[\"ocokule\"],\"id\":\"urqlrqffawey\",\"name\":\"rkphyjdxr\",\"type\":\"vjuqdbrxmrgchb\"}]}";
+ = "{\"value\":[{\"properties\":{\"eventDate\":\"2021-11-13T08:18:55Z\",\"reservationOrderId\":\"ztwhghmupg\",\"description\":\"jtcdxabbujftaben\",\"eventType\":\"klqpx\",\"currency\":\"feddwwnlza\",\"reservationOrderName\":\"xud\",\"purchasingEnrollment\":\"hgookrtalvnbwgpb\",\"purchasingSubscriptionGuid\":\"6ac26951-8dbf-4ed1-a7e5-34365b3d2ce1\",\"purchasingSubscriptionName\":\"luclvdjjuk\",\"armSkuName\":\"dnqodx\",\"term\":\"h\",\"region\":\"qfaqnvzoqg\",\"accountName\":\"pem\",\"accountOwnerEmail\":\"gavsczuejd\",\"departmentName\":\"ptlghwzhomewjjst\",\"costCenter\":\"uhqawmoaianc\",\"currentEnrollment\":\"vodrrslblxydkxr\",\"billingFrequency\":\"vbxiwkgfbqlj\",\"billingMonth\":1613642169},\"tags\":[\"ocokule\"],\"id\":\"urqlrqffawey\",\"name\":\"rkphyjdxr\",\"type\":\"vjuqdbrxmrgchb\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
diff --git a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListResultTests.java b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListResultTests.java
index 026b62ac6c12..ee862b82b4c5 100644
--- a/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListResultTests.java
+++ b/sdk/consumption/azure-resourcemanager-consumption/src/test/java/com/azure/resourcemanager/consumption/generated/ReservationTransactionsListResultTests.java
@@ -11,7 +11,7 @@ public final class ReservationTransactionsListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ReservationTransactionsListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"eventDate\":\"2021-09-09T18:20:13Z\",\"reservationOrderId\":\"wpusdsttwvogv\",\"description\":\"ejdcngqqmoakuf\",\"eventType\":\"jzrwrdgrtw\",\"currency\":\"uzkopbminrfd\",\"reservationOrderName\":\"yuhhziu\",\"purchasingEnrollment\":\"fozbhdmsmlmzqhof\",\"purchasingSubscriptionGuid\":\"9d1a6d7f-e11b-43ea-a923-d17886065b1e\",\"purchasingSubscriptionName\":\"ae\",\"armSkuName\":\"iahxicsl\",\"term\":\"oqzpiyylha\",\"region\":\"swhccsphk\",\"accountName\":\"vwitqscyw\",\"accountOwnerEmail\":\"gwol\",\"departmentName\":\"czbwemhairsbr\",\"costCenter\":\"dwmsweypqwd\",\"currentEnrollment\":\"gicccnxqhuex\",\"billingFrequency\":\"ttlstvlzywemhz\",\"billingMonth\":1311146203},\"tags\":[\"lusiy\",\"bsfgytguslfea\"],\"id\":\"cy\",\"name\":\"qukyhejhzi\",\"type\":\"xgfpelolppv\"},{\"properties\":{\"eventDate\":\"2021-08-16T07:12:35Z\",\"reservationOrderId\":\"vu\",\"description\":\"raehtwdwrft\",\"eventType\":\"iby\",\"currency\":\"bhshfwpracstwity\",\"reservationOrderName\":\"evxccedcp\",\"purchasingEnrollment\":\"dyodnwzxltj\",\"purchasingSubscriptionGuid\":\"87291d97-7755-4a63-8d0e-c3f037915668\",\"purchasingSubscriptionName\":\"hlt\",\"armSkuName\":\"gcxn\",\"term\":\"vwxqibyqunyo\",\"region\":\"wlmdjrkv\",\"accountName\":\"bvfvpdbod\",\"accountOwnerEmail\":\"izsjqlhkrr\",\"departmentName\":\"deibqip\",\"costCenter\":\"ghvxndzwmkrefa\",\"currentEnrollment\":\"jorwkqnyhgbij\",\"billingFrequency\":\"ivfxzsjabibsyst\",\"billingMonth\":153673800},\"tags\":[\"vkvp\",\"jxbkzbzkdvn\",\"jabudurgkakmo\"],\"id\":\"zhjjklffhmouwq\",\"name\":\"gzrf\",\"type\":\"eeyebi\"},{\"properties\":{\"eventDate\":\"2021-08-01T17:17:52Z\",\"reservationOrderId\":\"uhqlbjbsybbqwrvt\",\"description\":\"gmfpgvmp\",\"eventType\":\"as\",\"currency\":\"qfxssmwutw\",\"reservationOrderName\":\"srezp\",\"purchasingEnrollment\":\"hneuyowqkd\",\"purchasingSubscriptionGuid\":\"508b9c68-74e7-4188-8a6f-68fc54f5e3b4\",\"purchasingSubscriptionName\":\"i\",\"armSkuName\":\"bi\",\"term\":\"gpikpzimejza\",\"region\":\"fzxiavrmb\",\"accountName\":\"nokixrjqcirgz\",\"accountOwnerEmail\":\"rlazszrnw\",\"departmentName\":\"indfpwpjyl\",\"costCenter\":\"tlhflsjcdhszf\",\"currentEnrollment\":\"fbgofeljagrqmqh\",\"billingFrequency\":\"vriiio\",\"billingMonth\":514038226},\"tags\":[\"kvtvsexso\"],\"id\":\"ueluqhhahhxvrhmz\",\"name\":\"wpjgwws\",\"type\":\"ughftqsx\"},{\"properties\":{\"eventDate\":\"2021-10-27T14:28:11Z\",\"reservationOrderId\":\"xukndxdigr\",\"description\":\"uufzdmsyqtfihw\",\"eventType\":\"otzi\",\"currency\":\"vppho\",\"reservationOrderName\":\"qzudphq\",\"purchasingEnrollment\":\"vdkfwynwcvtbvk\",\"purchasingSubscriptionGuid\":\"00a1872d-3a55-4712-96c3-b16ae77370f6\",\"purchasingSubscriptionName\":\"mtnvyq\",\"armSkuName\":\"tkzwpcnpwzc\",\"term\":\"esgvvsccyaj\",\"region\":\"qfhwyg\",\"accountName\":\"vdnkfxusem\",\"accountOwnerEmail\":\"zrmuhapfcqdps\",\"departmentName\":\"qvpsvuoymg\",\"costCenter\":\"elvezrypq\",\"currentEnrollment\":\"feo\",\"billingFrequency\":\"rqwky\",\"billingMonth\":359384916},\"tags\":[\"xedk\",\"wep\"],\"id\":\"qpcrf\",\"name\":\"bwccsnjvcdwxlpqe\",\"type\":\"ftnkhtj\"}],\"nextLink\":\"i\"}")
+ "{\"value\":[{\"properties\":{\"eventDate\":\"2021-09-09T18:20:13Z\",\"reservationOrderId\":\"wpusdsttwvogv\",\"description\":\"ejdcngqqmoakuf\",\"eventType\":\"jzrwrdgrtw\",\"currency\":\"uzkopbminrfd\",\"reservationOrderName\":\"yuhhziu\",\"purchasingEnrollment\":\"fozbhdmsmlmzqhof\",\"purchasingSubscriptionGuid\":\"110a7128-ecca-4d87-824c-a02cce05ee38\",\"purchasingSubscriptionName\":\"ae\",\"armSkuName\":\"iahxicsl\",\"term\":\"oqzpiyylha\",\"region\":\"swhccsphk\",\"accountName\":\"vwitqscyw\",\"accountOwnerEmail\":\"gwol\",\"departmentName\":\"czbwemhairsbr\",\"costCenter\":\"dwmsweypqwd\",\"currentEnrollment\":\"gicccnxqhuex\",\"billingFrequency\":\"ttlstvlzywemhz\",\"billingMonth\":1311146203},\"tags\":[\"lusiy\",\"bsfgytguslfea\"],\"id\":\"cy\",\"name\":\"qukyhejhzi\",\"type\":\"xgfpelolppv\"},{\"properties\":{\"eventDate\":\"2021-08-16T07:12:35Z\",\"reservationOrderId\":\"vu\",\"description\":\"raehtwdwrft\",\"eventType\":\"iby\",\"currency\":\"bhshfwpracstwity\",\"reservationOrderName\":\"evxccedcp\",\"purchasingEnrollment\":\"dyodnwzxltj\",\"purchasingSubscriptionGuid\":\"43e939ff-c7f2-4baf-a3e8-1470f72a7abe\",\"purchasingSubscriptionName\":\"hlt\",\"armSkuName\":\"gcxn\",\"term\":\"vwxqibyqunyo\",\"region\":\"wlmdjrkv\",\"accountName\":\"bvfvpdbod\",\"accountOwnerEmail\":\"izsjqlhkrr\",\"departmentName\":\"deibqip\",\"costCenter\":\"ghvxndzwmkrefa\",\"currentEnrollment\":\"jorwkqnyhgbij\",\"billingFrequency\":\"ivfxzsjabibsyst\",\"billingMonth\":153673800},\"tags\":[\"vkvp\",\"jxbkzbzkdvn\",\"jabudurgkakmo\"],\"id\":\"zhjjklffhmouwq\",\"name\":\"gzrf\",\"type\":\"eeyebi\"},{\"properties\":{\"eventDate\":\"2021-08-01T17:17:52Z\",\"reservationOrderId\":\"uhqlbjbsybbqwrvt\",\"description\":\"gmfpgvmp\",\"eventType\":\"as\",\"currency\":\"qfxssmwutw\",\"reservationOrderName\":\"srezp\",\"purchasingEnrollment\":\"hneuyowqkd\",\"purchasingSubscriptionGuid\":\"ca7a37ef-5435-4cc5-bf58-0a5494c7f231\",\"purchasingSubscriptionName\":\"i\",\"armSkuName\":\"bi\",\"term\":\"gpikpzimejza\",\"region\":\"fzxiavrmb\",\"accountName\":\"nokixrjqcirgz\",\"accountOwnerEmail\":\"rlazszrnw\",\"departmentName\":\"indfpwpjyl\",\"costCenter\":\"tlhflsjcdhszf\",\"currentEnrollment\":\"fbgofeljagrqmqh\",\"billingFrequency\":\"vriiio\",\"billingMonth\":514038226},\"tags\":[\"kvtvsexso\"],\"id\":\"ueluqhhahhxvrhmz\",\"name\":\"wpjgwws\",\"type\":\"ughftqsx\"},{\"properties\":{\"eventDate\":\"2021-10-27T14:28:11Z\",\"reservationOrderId\":\"xukndxdigr\",\"description\":\"uufzdmsyqtfihw\",\"eventType\":\"otzi\",\"currency\":\"vppho\",\"reservationOrderName\":\"qzudphq\",\"purchasingEnrollment\":\"vdkfwynwcvtbvk\",\"purchasingSubscriptionGuid\":\"467d0403-69cb-490d-8cd2-9b63a462edd2\",\"purchasingSubscriptionName\":\"mtnvyq\",\"armSkuName\":\"tkzwpcnpwzc\",\"term\":\"esgvvsccyaj\",\"region\":\"qfhwyg\",\"accountName\":\"vdnkfxusem\",\"accountOwnerEmail\":\"zrmuhapfcqdps\",\"departmentName\":\"qvpsvuoymg\",\"costCenter\":\"elvezrypq\",\"currentEnrollment\":\"feo\",\"billingFrequency\":\"rqwky\",\"billingMonth\":359384916},\"tags\":[\"xedk\",\"wep\"],\"id\":\"qpcrf\",\"name\":\"bwccsnjvcdwxlpqe\",\"type\":\"ftnkhtj\"}],\"nextLink\":\"i\"}")
.toObject(ReservationTransactionsListResult.class);
}