diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 1020337c8dc2..16c73f0c74db 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -476,7 +476,7 @@ com.azure.resourcemanager:azure-resourcemanager-computefleet;1.0.0;1.1.0-beta.5
com.azure.resourcemanager:azure-resourcemanager-servicefabricmanagedclusters;1.1.0;1.2.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-healthdataaiservices;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-redhatopenshift;1.0.0;1.1.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-fabric;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-fabric;1.0.0;1.1.0
com.azure.resourcemanager:azure-resourcemanager-computeschedule;1.1.0;1.2.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-trustedsigning;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-iotoperations;1.1.0;1.2.0
diff --git a/sdk/fabric/azure-resourcemanager-fabric/CHANGELOG.md b/sdk/fabric/azure-resourcemanager-fabric/CHANGELOG.md
index 68ba2a8b2906..3db114d9b4da 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/CHANGELOG.md
+++ b/sdk/fabric/azure-resourcemanager-fabric/CHANGELOG.md
@@ -1,14 +1,63 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.1.0 (2026-08-07)
-### Features Added
+- Azure Resource Manager Fabric client library for Java. This package contains Microsoft Azure SDK for Fabric Management SDK. Package api-version 2026-08-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.FabricCapacityUpdate` was modified
+
+* `validate()` was removed
+
+#### `models.FabricCapacityProperties` was modified
+
+* `validate()` was removed
+
+#### `models.CheckNameAvailabilityRequest` was modified
+
+* `validate()` was removed
+
+#### `models.RpSku` was modified
+
+* `validate()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `validate()` was removed
+
+#### `models.FabricCapacityUpdateProperties` was modified
+
+* `validate()` was removed
+
+#### `models.CapacityAdministration` was modified
+
+* `validate()` was removed
+
+### Features Added
+
+* `models.QuotaName` was added
+
+* `models.Quota` was added
+
+* `models.CapacityOverageState` was added
+
+* `models.CapacityOverageProperties` was added
+
+#### `models.FabricCapacityProperties` was modified
+
+* `withOverage(models.CapacityOverageProperties)` was added
+* `overage()` was added
+
+#### `models.FabricCapacityUpdateProperties` was modified
+
+* `withOverage(models.CapacityOverageProperties)` was added
+* `overage()` was added
+
+#### `models.FabricCapacities` was modified
-### Other Changes
+* `listUsages(java.lang.String,com.azure.core.util.Context)` was added
+* `listUsages(java.lang.String)` was added
## 1.0.0 (2024-10-17)
diff --git a/sdk/fabric/azure-resourcemanager-fabric/README.md b/sdk/fabric/azure-resourcemanager-fabric/README.md
index 5020c43bebb3..430eb24e22c4 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/README.md
+++ b/sdk/fabric/azure-resourcemanager-fabric/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Fabric client library for Java.
-This package contains Microsoft Azure SDK for Fabric Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Fabric Management SDK. Package api-version 2026-08-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-fabric
- 1.1.0-beta.1
+ 1.1.0
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ FabricManager manager = FabricManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/fabric/azure-resourcemanager-fabric/SAMPLE.md b/sdk/fabric/azure-resourcemanager-fabric/SAMPLE.md
index 8823598b0095..2497178251cf 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/SAMPLE.md
+++ b/sdk/fabric/azure-resourcemanager-fabric/SAMPLE.md
@@ -29,7 +29,7 @@ import com.azure.resourcemanager.fabric.models.CheckNameAvailabilityRequest;
*/
public final class FabricCapacitiesCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_CheckNameAvailability.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_CheckNameAvailability.json
*/
/**
* Sample code: Check name availability of a capacity.
@@ -49,6 +49,8 @@ public final class FabricCapacitiesCheckNameAvailabilitySamples {
```java
import com.azure.resourcemanager.fabric.models.CapacityAdministration;
+import com.azure.resourcemanager.fabric.models.CapacityOverageProperties;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacityProperties;
import com.azure.resourcemanager.fabric.models.RpSku;
import com.azure.resourcemanager.fabric.models.RpSkuTier;
@@ -59,7 +61,7 @@ import java.util.Arrays;
*/
public final class FabricCapacitiesCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_CreateOrUpdate.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_CreateOrUpdate.json
*/
/**
* Sample code: Create or update a capacity.
@@ -71,8 +73,11 @@ public final class FabricCapacitiesCreateOrUpdateSamples {
.define("azsdktest")
.withRegion("westcentralus")
.withExistingResourceGroup("TestRG")
- .withProperties(new FabricCapacityProperties().withAdministration(new CapacityAdministration()
- .withMembers(Arrays.asList("azsdktest@microsoft.com", "azsdktest2@microsoft.com"))))
+ .withProperties(new FabricCapacityProperties()
+ .withOverage(new CapacityOverageProperties().withState(CapacityOverageState.ENABLED)
+ .withThresholdCapacityUnitHours(4))
+ .withAdministration(new CapacityAdministration()
+ .withMembers(Arrays.asList("azsdktest@microsoft.com", "azsdktest2@microsoft.com"))))
.withSku(new RpSku().withName("F2").withTier(RpSkuTier.FABRIC))
.create();
}
@@ -87,7 +92,7 @@ public final class FabricCapacitiesCreateOrUpdateSamples {
*/
public final class FabricCapacitiesDeleteSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_Delete.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_Delete.json
*/
/**
* Sample code: Delete a capacity.
@@ -108,7 +113,7 @@ public final class FabricCapacitiesDeleteSamples {
*/
public final class FabricCapacitiesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_Get.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_Get.json
*/
/**
* Sample code: Get a capacity.
@@ -130,7 +135,7 @@ public final class FabricCapacitiesGetByResourceGroupSamples {
*/
public final class FabricCapacitiesListSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_ListBySubscription.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_ListBySubscription.json
*/
/**
* Sample code: List capacities by subscription.
@@ -151,7 +156,7 @@ public final class FabricCapacitiesListSamples {
*/
public final class FabricCapacitiesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_ListByResourceGroup.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_ListByResourceGroup.json
*/
/**
* Sample code: List capacities by resource group.
@@ -172,7 +177,7 @@ public final class FabricCapacitiesListByResourceGroupSamples {
*/
public final class FabricCapacitiesListSkusSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_ListSkus.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_ListSkus.json
*/
/**
* Sample code: List eligible SKUs for a new capacity.
@@ -193,7 +198,7 @@ public final class FabricCapacitiesListSkusSamples {
*/
public final class FabricCapacitiesListSkusForCapacitySamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_ListSkusForCapacity.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_ListSkusForCapacity.json
*/
/**
* Sample code: List eligible SKUs for an existing capacity.
@@ -214,7 +219,7 @@ public final class FabricCapacitiesListSkusForCapacitySamples {
*/
public final class FabricCapacitiesListUsagesSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_ListUsagesBySubscription.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_ListUsagesBySubscription.json
*/
/**
* Sample code: List quota usages for a subscription.
@@ -235,7 +240,7 @@ public final class FabricCapacitiesListUsagesSamples {
*/
public final class FabricCapacitiesResumeSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_Resume.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_Resume.json
*/
/**
* Sample code: Resume capacity.
@@ -256,7 +261,7 @@ public final class FabricCapacitiesResumeSamples {
*/
public final class FabricCapacitiesSuspendSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_Suspend.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_Suspend.json
*/
/**
* Sample code: Suspend capacity.
@@ -273,6 +278,8 @@ public final class FabricCapacitiesSuspendSamples {
```java
import com.azure.resourcemanager.fabric.models.CapacityAdministration;
+import com.azure.resourcemanager.fabric.models.CapacityOverageProperties;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacity;
import com.azure.resourcemanager.fabric.models.FabricCapacityUpdateProperties;
import com.azure.resourcemanager.fabric.models.RpSku;
@@ -286,7 +293,7 @@ import java.util.Map;
*/
public final class FabricCapacitiesUpdateSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/FabricCapacities_Update.json
+ * x-ms-original-file: 2026-08-01-preview/FabricCapacities_Update.json
*/
/**
* Sample code: Update capacity properties.
@@ -300,8 +307,11 @@ public final class FabricCapacitiesUpdateSamples {
resource.update()
.withTags(mapOf("testKey", "fakeTokenPlaceholder"))
.withSku(new RpSku().withName("F8").withTier(RpSkuTier.FABRIC))
- .withProperties(new FabricCapacityUpdateProperties().withAdministration(
- new CapacityAdministration().withMembers(Arrays.asList("azsdktest2@microsoft.com"))))
+ .withProperties(new FabricCapacityUpdateProperties()
+ .withOverage(new CapacityOverageProperties().withState(CapacityOverageState.ENABLED)
+ .withThresholdCapacityUnitHours(4))
+ .withAdministration(
+ new CapacityAdministration().withMembers(Arrays.asList("azsdktest2@microsoft.com"))))
.apply();
}
@@ -327,7 +337,7 @@ public final class FabricCapacitiesUpdateSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file: 2025-01-15-preview/Operations_List.json
+ * x-ms-original-file: 2026-08-01-preview/Operations_List.json
*/
/**
* Sample code: List operations.
diff --git a/sdk/fabric/azure-resourcemanager-fabric/pom.xml b/sdk/fabric/azure-resourcemanager-fabric/pom.xml
index 4ebddbf7075a..3feb3622593e 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/pom.xml
+++ b/sdk/fabric/azure-resourcemanager-fabric/pom.xml
@@ -3,7 +3,7 @@
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) TypeSpec Code Generator.
-->
-
+
4.0.0
com.azure
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-fabric
- 1.1.0-beta.1
+ 1.1.0
jar
Microsoft Azure SDK for Fabric Management
- This package contains Microsoft Azure SDK for Fabric Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt.
+ This package contains Microsoft Azure SDK for Fabric Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2026-08-01-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@
UTF-8
0
0
- true
+ false
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/fluent/FabricCapacitiesClient.java b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/fluent/FabricCapacitiesClient.java
index 4cc7e905afa7..62f3b5016f7d 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/fluent/FabricCapacitiesClient.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/fluent/FabricCapacitiesClient.java
@@ -486,7 +486,7 @@ PagedIterable listSkusForCapacity(String r
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -498,7 +498,7 @@ PagedIterable listSkusForCapacity(String r
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/implementation/FabricCapacitiesClientImpl.java b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/implementation/FabricCapacitiesClientImpl.java
index 510e086a78d1..87067531bafb 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/implementation/FabricCapacitiesClientImpl.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/implementation/FabricCapacitiesClientImpl.java
@@ -1777,7 +1777,7 @@ public PagedIterable listSkus(Context context)
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1798,7 +1798,7 @@ private Mono> listUsagesSinglePageAsync(String locatio
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1813,7 +1813,7 @@ private PagedFlux listUsagesAsync(String location) {
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1831,7 +1831,7 @@ private PagedResponse listUsagesSinglePage(String location) {
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1850,7 +1850,7 @@ private PagedResponse listUsagesSinglePage(String location, Context
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1865,7 +1865,7 @@ public PagedIterable listUsages(String location) {
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/implementation/FabricManagementClientImpl.java b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/implementation/FabricManagementClientImpl.java
index eed42f6c6635..915a553c06f6 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/implementation/FabricManagementClientImpl.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/implementation/FabricManagementClientImpl.java
@@ -172,7 +172,7 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.endpoint = endpoint;
this.subscriptionId = subscriptionId;
- this.apiVersion = "2025-01-15-preview";
+ this.apiVersion = "2026-08-01-preview";
this.fabricCapacities = new FabricCapacitiesClientImpl(this);
this.operations = new OperationsClientImpl(this);
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/CapacityOverageProperties.java b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/CapacityOverageProperties.java
new file mode 100644
index 000000000000..053e34e784a4
--- /dev/null
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/CapacityOverageProperties.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.fabric.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The capacity overage properties of the Fabric capacity resource.
+ */
+@Fluent
+public final class CapacityOverageProperties implements JsonSerializable {
+ /*
+ * The capacity overage state for the Fabric capacity resource.
+ */
+ private CapacityOverageState state;
+
+ /*
+ * 24-hour rolling threshold for capacity overage. Reaching this threshold results in capacity throttling.
+ */
+ private Integer thresholdCapacityUnitHours;
+
+ /**
+ * Creates an instance of CapacityOverageProperties class.
+ */
+ public CapacityOverageProperties() {
+ }
+
+ /**
+ * Get the state property: The capacity overage state for the Fabric capacity resource.
+ *
+ * @return the state value.
+ */
+ public CapacityOverageState state() {
+ return this.state;
+ }
+
+ /**
+ * Set the state property: The capacity overage state for the Fabric capacity resource.
+ *
+ * @param state the state value to set.
+ * @return the CapacityOverageProperties object itself.
+ */
+ public CapacityOverageProperties withState(CapacityOverageState state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * Get the thresholdCapacityUnitHours property: 24-hour rolling threshold for capacity overage. Reaching this
+ * threshold results in capacity throttling.
+ *
+ * @return the thresholdCapacityUnitHours value.
+ */
+ public Integer thresholdCapacityUnitHours() {
+ return this.thresholdCapacityUnitHours;
+ }
+
+ /**
+ * Set the thresholdCapacityUnitHours property: 24-hour rolling threshold for capacity overage. Reaching this
+ * threshold results in capacity throttling.
+ *
+ * @param thresholdCapacityUnitHours the thresholdCapacityUnitHours value to set.
+ * @return the CapacityOverageProperties object itself.
+ */
+ public CapacityOverageProperties withThresholdCapacityUnitHours(Integer thresholdCapacityUnitHours) {
+ this.thresholdCapacityUnitHours = thresholdCapacityUnitHours;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
+ jsonWriter.writeNumberField("thresholdCapacityUnitHours", this.thresholdCapacityUnitHours);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CapacityOverageProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CapacityOverageProperties if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the CapacityOverageProperties.
+ */
+ public static CapacityOverageProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CapacityOverageProperties deserializedCapacityOverageProperties = new CapacityOverageProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("state".equals(fieldName)) {
+ deserializedCapacityOverageProperties.state = CapacityOverageState.fromString(reader.getString());
+ } else if ("thresholdCapacityUnitHours".equals(fieldName)) {
+ deserializedCapacityOverageProperties.thresholdCapacityUnitHours
+ = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCapacityOverageProperties;
+ });
+ }
+}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/CapacityOverageState.java b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/CapacityOverageState.java
new file mode 100644
index 000000000000..3a234d330c70
--- /dev/null
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/CapacityOverageState.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.fabric.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The capacity overage state for the Fabric capacity resource.
+ */
+public final class CapacityOverageState extends ExpandableStringEnum {
+ /**
+ * Capacity overage is disabled.
+ */
+ public static final CapacityOverageState DISABLED = fromString("Disabled");
+
+ /**
+ * Capacity overage is enabled.
+ */
+ public static final CapacityOverageState ENABLED = fromString("Enabled");
+
+ /**
+ * Creates a new instance of CapacityOverageState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public CapacityOverageState() {
+ }
+
+ /**
+ * Creates or finds a CapacityOverageState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CapacityOverageState.
+ */
+ public static CapacityOverageState fromString(String name) {
+ return fromString(name, CapacityOverageState.class);
+ }
+
+ /**
+ * Gets known CapacityOverageState values.
+ *
+ * @return known CapacityOverageState values.
+ */
+ public static Collection values() {
+ return values(CapacityOverageState.class);
+ }
+}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/FabricCapacities.java b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/FabricCapacities.java
index b67860c6e0ba..44d6e9b03fd1 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/FabricCapacities.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/FabricCapacities.java
@@ -239,7 +239,7 @@ PagedIterable listSkusForCapacity(String resour
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -250,7 +250,7 @@ PagedIterable listSkusForCapacity(String resour
/**
* List the current consumption and limit in this location for the provided subscription.
*
- * @param location The location name.
+ * @param location The name of the Azure region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/FabricCapacityProperties.java b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/FabricCapacityProperties.java
index aa50134faf24..acd27104cbd6 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/FabricCapacityProperties.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/main/java/com/azure/resourcemanager/fabric/models/FabricCapacityProperties.java
@@ -28,6 +28,11 @@ public final class FabricCapacityProperties implements JsonSerializable {
+ /*
+ * The capacity overage properties of the Fabric capacity resource.
+ */
+ private CapacityOverageProperties overage;
+
/*
* The capacity administration
*/
@@ -27,6 +32,26 @@ public final class FabricCapacityUpdateProperties implements JsonSerializable Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,13 +32,13 @@ public void testCheckNameAvailabilityWithResponse() throws Exception {
new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
CheckNameAvailabilityResponse response = manager.fabricCapacities()
- .checkNameAvailabilityWithResponse("ccfwnfnbacfion",
- new CheckNameAvailabilityRequest().withName("bxetqgtzxdpn").withType("qqwx"),
+ .checkNameAvailabilityWithResponse("pmivkwlzu",
+ new CheckNameAvailabilityRequest().withName("c").withType("nfnbacfionlebxe"),
com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertTrue(response.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, response.reason());
- Assertions.assertEquals("lnwsubisn", response.message());
+ Assertions.assertFalse(response.nameAvailable());
+ Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason());
+ Assertions.assertEquals("dpnqbq", response.message());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesCreateOrUpdateMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesCreateOrUpdateMockTests.java
index dac5d2613bb0..b7c06799060d 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesCreateOrUpdateMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesCreateOrUpdateMockTests.java
@@ -11,6 +11,8 @@
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.fabric.FabricManager;
import com.azure.resourcemanager.fabric.models.CapacityAdministration;
+import com.azure.resourcemanager.fabric.models.CapacityOverageProperties;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacity;
import com.azure.resourcemanager.fabric.models.FabricCapacityProperties;
import com.azure.resourcemanager.fabric.models.RpSku;
@@ -28,7 +30,7 @@ public final class FabricCapacitiesCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Pausing\",\"administration\":{\"members\":[\"jpkcattpng\",\"cr\",\"czsqpjhvm\",\"ajvnysounqe\"]}},\"sku\":{\"name\":\"a\",\"tier\":\"Fabric\"},\"location\":\"eupfhyhltrpm\",\"tags\":{\"odsfcpkvxodpuozm\":\"mcmatuokthfuiu\",\"ktwh\":\"zydagfuaxbezyiuo\",\"o\":\"dxwzywqsmbsurexi\",\"fksymddystki\":\"yocf\"},\"id\":\"uxh\",\"name\":\"yudxorrqnbp\",\"type\":\"czvyifq\"}";
+ = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Updating\",\"overage\":{\"state\":\"Enabled\",\"thresholdCapacityUnitHours\":1860942440},\"administration\":{\"members\":[\"jeyp\"]}},\"sku\":{\"name\":\"hezrkgq\",\"tier\":\"Fabric\"},\"location\":\"refovgmkqsleyyvx\",\"tags\":{\"t\":\"pkc\",\"ajvnysounqe\":\"pngjcrcczsqpjhvm\",\"oaeupfhyhltrpmo\":\"a\"},\"id\":\"jmcmatuokthfu\",\"name\":\"uaodsfcpk\",\"type\":\"xodpuozmyzydagfu\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -38,20 +40,23 @@ public void testCreateOrUpdate() throws Exception {
new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
FabricCapacity response = manager.fabricCapacities()
- .define("ynpwlbj")
- .withRegion("dwxdndnv")
- .withExistingResourceGroup("gwdslfhotwm")
- .withProperties(new FabricCapacityProperties().withAdministration(
- new CapacityAdministration().withMembers(Arrays.asList("tadehxnltyfsopp", "suesnzw", "ej", "avo"))))
- .withSku(new RpSku().withName("xzdmohctb").withTier(RpSkuTier.FABRIC))
- .withTags(mapOf("lazjdyggdtjixhbk", "ujjugwdkcglh", "fwhybcibvy", "ofqweykhmenevfye", "ynnaam", "dcsi",
- "qsc", "ectehf"))
+ .define("cftadeh")
+ .withRegion("orxzdmohctbqvud")
+ .withExistingResourceGroup("jnpg")
+ .withProperties(new FabricCapacityProperties()
+ .withOverage(new CapacityOverageProperties().withState(CapacityOverageState.ENABLED)
+ .withThresholdCapacityUnitHours(1772029927))
+ .withAdministration(new CapacityAdministration().withMembers(Arrays.asList("suesnzw"))))
+ .withSku(new RpSku().withName("ej").withTier(RpSkuTier.FABRIC))
+ .withTags(mapOf("gujjugwdkcglh", "ndnvo", "ofqweykhmenevfye", "lazjdyggdtjixhbk"))
.create();
- Assertions.assertEquals("eupfhyhltrpm", response.location());
- Assertions.assertEquals("mcmatuokthfuiu", response.tags().get("odsfcpkvxodpuozm"));
- Assertions.assertEquals("jpkcattpng", response.properties().administration().members().get(0));
- Assertions.assertEquals("a", response.sku().name());
+ Assertions.assertEquals("refovgmkqsleyyvx", response.location());
+ Assertions.assertEquals("pkc", response.tags().get("t"));
+ Assertions.assertEquals(CapacityOverageState.ENABLED, response.properties().overage().state());
+ Assertions.assertEquals(1860942440, response.properties().overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("jeyp", response.properties().administration().members().get(0));
+ Assertions.assertEquals("hezrkgq", response.sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, response.sku().tier());
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesGetByResourceGroupWithResponseMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesGetByResourceGroupWithResponseMockTests.java
index 8933d30072a7..bafb34b52200 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesGetByResourceGroupWithResponseMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesGetByResourceGroupWithResponseMockTests.java
@@ -10,6 +10,7 @@
import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.fabric.FabricManager;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacity;
import com.azure.resourcemanager.fabric.models.RpSkuTier;
import java.nio.charset.StandardCharsets;
@@ -22,7 +23,7 @@ public final class FabricCapacitiesGetByResourceGroupWithResponseMockTests {
@Test
public void testGetByResourceGroupWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"provisioningState\":\"Canceled\",\"state\":\"Updating\",\"administration\":{\"members\":[\"ulpkudjkrl\",\"hbzhfepg\",\"gqexzlocxs\"]}},\"sku\":{\"name\":\"paierh\",\"tier\":\"Fabric\"},\"location\":\"sglumma\",\"tags\":{\"nbdxk\":\"aodxo\"},\"id\":\"pxokajionp\",\"name\":\"mexgstxgcp\",\"type\":\"dg\"}";
+ = "{\"properties\":{\"provisioningState\":\"Failed\",\"state\":\"Deleting\",\"overage\":{\"state\":\"Disabled\",\"thresholdCapacityUnitHours\":844718571},\"administration\":{\"members\":[\"btoqcjmkljavbqid\",\"qajzyulpkudjkr\",\"khbzhfepgzg\"]}},\"sku\":{\"name\":\"e\",\"tier\":\"Fabric\"},\"location\":\"ocxscpaierhhbcs\",\"tags\":{\"bnbdxkqpxokajion\":\"mmajtjaodx\",\"jrmvdjwzrlo\":\"imexgstxgcpodgma\",\"hijco\":\"mcl\"},\"id\":\"jctbza\",\"name\":\"s\",\"type\":\"sycbkbfk\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,13 +33,15 @@ public void testGetByResourceGroupWithResponse() throws Exception {
new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
FabricCapacity response = manager.fabricCapacities()
- .getByResourceGroupWithResponse("gpbtoqcjmklj", "vbqid", com.azure.core.util.Context.NONE)
+ .getByResourceGroupWithResponse("vsnb", "xqabnmocpcysh", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("sglumma", response.location());
- Assertions.assertEquals("aodxo", response.tags().get("nbdxk"));
- Assertions.assertEquals("ulpkudjkrl", response.properties().administration().members().get(0));
- Assertions.assertEquals("paierh", response.sku().name());
+ Assertions.assertEquals("ocxscpaierhhbcs", response.location());
+ Assertions.assertEquals("mmajtjaodx", response.tags().get("bnbdxkqpxokajion"));
+ Assertions.assertEquals(CapacityOverageState.DISABLED, response.properties().overage().state());
+ Assertions.assertEquals(844718571, response.properties().overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("btoqcjmkljavbqid", response.properties().administration().members().get(0));
+ Assertions.assertEquals("e", response.sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, response.sku().tier());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListByResourceGroupMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListByResourceGroupMockTests.java
index fa5a426fad83..4a3767c57fda 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListByResourceGroupMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListByResourceGroupMockTests.java
@@ -11,6 +11,7 @@
import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.fabric.FabricManager;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacity;
import com.azure.resourcemanager.fabric.models.RpSkuTier;
import java.nio.charset.StandardCharsets;
@@ -23,7 +24,7 @@ public final class FabricCapacitiesListByResourceGroupMockTests {
@Test
public void testListByResourceGroup() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"state\":\"Failed\",\"administration\":{\"members\":[\"lovmclwhijcoe\",\"ctbzaq\",\"qsycbkbfkgu\",\"dkexxppofm\"]}},\"sku\":{\"name\":\"axcfjpgddtocjjx\",\"tier\":\"Fabric\"},\"location\":\"mouexhdzx\",\"tags\":{\"wndeicbtwnp\":\"eojnxqbzvddn\",\"hcffcyddglmjthjq\":\"aoqvuh\",\"hix\":\"wpyeicxmqciwqvh\",\"og\":\"igdtopbob\"},\"id\":\"m\",\"name\":\"w\",\"type\":\"a\"}]}";
+ = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Updating\",\"overage\":{\"state\":\"Disabled\",\"thresholdCapacityUnitHours\":1410609059},\"administration\":{\"members\":[\"jjxhvpmo\"]}},\"sku\":{\"name\":\"exhd\",\"tier\":\"Fabric\"},\"location\":\"bqe\",\"tags\":{\"icbtwnpzao\":\"xqbzvddntwnd\",\"jthjqkwpyei\":\"vuhrhcffcyddgl\",\"q\":\"xmqci\"},\"id\":\"hkh\",\"name\":\"xuigdtopbobj\",\"type\":\"ghmewuam\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,13 +34,16 @@ public void testListByResourceGroup() throws Exception {
new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response
- = manager.fabricCapacities().listByResourceGroup("aajrm", com.azure.core.util.Context.NONE);
+ = manager.fabricCapacities().listByResourceGroup("ukdkexxppofmxa", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("mouexhdzx", response.iterator().next().location());
- Assertions.assertEquals("eojnxqbzvddn", response.iterator().next().tags().get("wndeicbtwnp"));
- Assertions.assertEquals("lovmclwhijcoe",
- response.iterator().next().properties().administration().members().get(0));
- Assertions.assertEquals("axcfjpgddtocjjx", response.iterator().next().sku().name());
+ Assertions.assertEquals("bqe", response.iterator().next().location());
+ Assertions.assertEquals("xqbzvddntwnd", response.iterator().next().tags().get("icbtwnpzao"));
+ Assertions.assertEquals(CapacityOverageState.DISABLED,
+ response.iterator().next().properties().overage().state());
+ Assertions.assertEquals(1410609059,
+ response.iterator().next().properties().overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("jjxhvpmo", response.iterator().next().properties().administration().members().get(0));
+ Assertions.assertEquals("exhd", response.iterator().next().sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, response.iterator().next().sku().tier());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListMockTests.java
index e3ed83693e0e..0144f7c4be29 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListMockTests.java
@@ -11,6 +11,7 @@
import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.fabric.FabricManager;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacity;
import com.azure.resourcemanager.fabric.models.RpSkuTier;
import java.nio.charset.StandardCharsets;
@@ -23,7 +24,7 @@ public final class FabricCapacitiesListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"provisioningState\":\"Provisioning\",\"state\":\"Updating\",\"administration\":{\"members\":[\"ayvvtpgvdf\"]}},\"sku\":{\"name\":\"iotkftutqxl\",\"tier\":\"Fabric\"},\"location\":\"lefgugnxk\",\"tags\":{\"tthzrvqd\":\"qmi\",\"ehoqfbowskan\":\"abhjybi\"},\"id\":\"ktzlcuiywg\",\"name\":\"ywgndrv\",\"type\":\"nhzgpphrcgyn\"}]}";
+ = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Provisioning\",\"overage\":{\"state\":\"Enabled\",\"thresholdCapacityUnitHours\":204314750},\"administration\":{\"members\":[\"gvdfgiotkftutq\",\"ln\"]}},\"sku\":{\"name\":\"xlefgugnxkrx\",\"tier\":\"Fabric\"},\"location\":\"i\",\"tags\":{\"abhjybi\":\"hzrvqd\"},\"id\":\"ehoqfbowskan\",\"name\":\"ktzlcuiywg\",\"type\":\"ywgndrv\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -34,11 +35,15 @@ public void testList() throws Exception {
PagedIterable response = manager.fabricCapacities().list(com.azure.core.util.Context.NONE);
- Assertions.assertEquals("lefgugnxk", response.iterator().next().location());
- Assertions.assertEquals("qmi", response.iterator().next().tags().get("tthzrvqd"));
- Assertions.assertEquals("ayvvtpgvdf",
+ Assertions.assertEquals("i", response.iterator().next().location());
+ Assertions.assertEquals("hzrvqd", response.iterator().next().tags().get("abhjybi"));
+ Assertions.assertEquals(CapacityOverageState.ENABLED,
+ response.iterator().next().properties().overage().state());
+ Assertions.assertEquals(204314750,
+ response.iterator().next().properties().overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("gvdfgiotkftutq",
response.iterator().next().properties().administration().members().get(0));
- Assertions.assertEquals("iotkftutqxl", response.iterator().next().sku().name());
+ Assertions.assertEquals("xlefgugnxkrx", response.iterator().next().sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, response.iterator().next().sku().tier());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListSkusForCapacityMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListSkusForCapacityMockTests.java
index e4147b51f7cf..f0fd52fb15fe 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListSkusForCapacityMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListSkusForCapacityMockTests.java
@@ -23,7 +23,7 @@ public final class FabricCapacitiesListSkusForCapacityMockTests {
@Test
public void testListSkusForCapacity() throws Exception {
String responseStr
- = "{\"value\":[{\"resourceType\":\"aqw\",\"sku\":{\"name\":\"ochcbonqvpkvl\",\"tier\":\"Fabric\"}}]}";
+ = "{\"value\":[{\"resourceType\":\"zscxaqwo\",\"sku\":{\"name\":\"chcbonqvpkvlrxnj\",\"tier\":\"Fabric\"}}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -32,11 +32,11 @@ public void testListSkusForCapacity() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
- PagedIterable response
- = manager.fabricCapacities().listSkusForCapacity("ampmngnz", "c", com.azure.core.util.Context.NONE);
+ PagedIterable response = manager.fabricCapacities()
+ .listSkusForCapacity("wxrjfeallnwsub", "snjampmng", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("aqw", response.iterator().next().resourceType());
- Assertions.assertEquals("ochcbonqvpkvl", response.iterator().next().sku().name());
+ Assertions.assertEquals("zscxaqwo", response.iterator().next().resourceType());
+ Assertions.assertEquals("chcbonqvpkvlrxnj", response.iterator().next().sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, response.iterator().next().sku().tier());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListSkusMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListSkusMockTests.java
index 8be059937e5f..ba2dfe9bf848 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListSkusMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListSkusMockTests.java
@@ -22,7 +22,7 @@ public final class FabricCapacitiesListSkusMockTests {
@Test
public void testListSkus() throws Exception {
String responseStr
- = "{\"value\":[{\"resourceType\":\"njeaseipheofloke\",\"name\":\"y\",\"locations\":[\"nj\",\"dlwtgrhpdj\",\"jumasx\"]}]}";
+ = "{\"value\":[{\"resourceType\":\"seiphe\",\"name\":\"f\",\"locations\":[\"keyyi\",\"nj\",\"dlwtgrhpdj\"]}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -34,8 +34,8 @@ public void testListSkus() throws Exception {
PagedIterable response
= manager.fabricCapacities().listSkus(com.azure.core.util.Context.NONE);
- Assertions.assertEquals("njeaseipheofloke", response.iterator().next().resourceType());
- Assertions.assertEquals("y", response.iterator().next().name());
- Assertions.assertEquals("nj", response.iterator().next().locations().get(0));
+ Assertions.assertEquals("seiphe", response.iterator().next().resourceType());
+ Assertions.assertEquals("f", response.iterator().next().name());
+ Assertions.assertEquals("keyyi", response.iterator().next().locations().get(0));
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListUsagesMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListUsagesMockTests.java
index 4375ea897f7d..090b0eb76f5a 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListUsagesMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesListUsagesMockTests.java
@@ -22,7 +22,7 @@ public final class FabricCapacitiesListUsagesMockTests {
@Test
public void testListUsages() throws Exception {
String responseStr
- = "{\"value\":[{\"name\":{\"value\":\"e\",\"localizedValue\":\"alhbx\"},\"unit\":\"hejjz\",\"currentValue\":246259275856309822,\"limit\":2207707054810160445}]}";
+ = "{\"value\":[{\"name\":{\"value\":\"pqyegualhbxxh\",\"localizedValue\":\"jzzvdud\"},\"unit\":\"wdslfhotwmcy\",\"currentValue\":8219003189774073818,\"limit\":7443640931865034302}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -31,10 +31,11 @@ public void testListUsages() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
- PagedIterable response = manager.fabricCapacities().listUsages("zj", com.azure.core.util.Context.NONE);
+ PagedIterable response
+ = manager.fabricCapacities().listUsages("jumasx", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("hejjz", response.iterator().next().unit());
- Assertions.assertEquals(246259275856309822L, response.iterator().next().currentValue());
- Assertions.assertEquals(2207707054810160445L, response.iterator().next().limit());
+ Assertions.assertEquals("wdslfhotwmcy", response.iterator().next().unit());
+ Assertions.assertEquals(8219003189774073818L, response.iterator().next().currentValue());
+ Assertions.assertEquals(7443640931865034302L, response.iterator().next().limit());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesResumeMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesResumeMockTests.java
index 764853438779..09a2d68ddef8 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesResumeMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesResumeMockTests.java
@@ -27,7 +27,7 @@ public void testResume() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
- manager.fabricCapacities().resume("ocpecfvmmco", "fsxlzevgbmqjqa", com.azure.core.util.Context.NONE);
+ manager.fabricCapacities().resume("nhzgpphrcgyn", "ocpecfvmmco", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesSuspendMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesSuspendMockTests.java
index 23a64b9ddfd4..c77153b0d888 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesSuspendMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacitiesSuspendMockTests.java
@@ -27,7 +27,7 @@ public void testSuspend() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
- manager.fabricCapacities().suspend("c", "pmivkwlzu", com.azure.core.util.Context.NONE);
+ manager.fabricCapacities().suspend("fsxlzevgbmqjqa", "c", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityInnerTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityInnerTests.java
index 07bcec03cddb..ab5956a40d9f 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityInnerTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityInnerTests.java
@@ -7,6 +7,8 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.fabric.fluent.models.FabricCapacityInner;
import com.azure.resourcemanager.fabric.models.CapacityAdministration;
+import com.azure.resourcemanager.fabric.models.CapacityOverageProperties;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacityProperties;
import com.azure.resourcemanager.fabric.models.RpSku;
import com.azure.resourcemanager.fabric.models.RpSkuTier;
@@ -19,27 +21,34 @@ public final class FabricCapacityInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
FabricCapacityInner model = BinaryData.fromString(
- "{\"properties\":{\"provisioningState\":\"Canceled\",\"state\":\"Provisioning\",\"administration\":{\"members\":[\"vgjxpybczm\"]}},\"sku\":{\"name\":\"hmtzopbsphrup\",\"tier\":\"Fabric\"},\"location\":\"sybbejhph\",\"tags\":{\"bmtqioq\":\"msxaobhd\",\"p\":\"zehtbmu\",\"hwlrx\":\"wnoi\"},\"id\":\"bqsoqijg\",\"name\":\"dmbpazlobcufpdz\",\"type\":\"rbt\"}")
+ "{\"properties\":{\"provisioningState\":\"Canceled\",\"state\":\"Provisioning\",\"overage\":{\"state\":\"Enabled\",\"thresholdCapacityUnitHours\":976394918},\"administration\":{\"members\":[\"ybczmehmtzo\",\"bsphrupidgsybbe\",\"hphoycm\",\"xaobhdxbmtqioqjz\"]}},\"sku\":{\"name\":\"htbmuf\",\"tier\":\"Fabric\"},\"location\":\"noi\",\"tags\":{\"jgkdmbpazlobcu\":\"lrxybqsoq\",\"qgn\":\"pdznrbtcqqjnqgl\"},\"id\":\"foooj\",\"name\":\"wifsq\",\"type\":\"saagdf\"}")
.toObject(FabricCapacityInner.class);
- Assertions.assertEquals("sybbejhph", model.location());
- Assertions.assertEquals("msxaobhd", model.tags().get("bmtqioq"));
- Assertions.assertEquals("vgjxpybczm", model.properties().administration().members().get(0));
- Assertions.assertEquals("hmtzopbsphrup", model.sku().name());
+ Assertions.assertEquals("noi", model.location());
+ Assertions.assertEquals("lrxybqsoq", model.tags().get("jgkdmbpazlobcu"));
+ Assertions.assertEquals(CapacityOverageState.ENABLED, model.properties().overage().state());
+ Assertions.assertEquals(976394918, model.properties().overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("ybczmehmtzo", model.properties().administration().members().get(0));
+ Assertions.assertEquals("htbmuf", model.sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, model.sku().tier());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- FabricCapacityInner model = new FabricCapacityInner().withLocation("sybbejhph")
- .withTags(mapOf("bmtqioq", "msxaobhd", "p", "zehtbmu", "hwlrx", "wnoi"))
+ FabricCapacityInner model = new FabricCapacityInner().withLocation("noi")
+ .withTags(mapOf("jgkdmbpazlobcu", "lrxybqsoq", "qgn", "pdznrbtcqqjnqgl"))
.withProperties(new FabricCapacityProperties()
- .withAdministration(new CapacityAdministration().withMembers(Arrays.asList("vgjxpybczm"))))
- .withSku(new RpSku().withName("hmtzopbsphrup").withTier(RpSkuTier.FABRIC));
+ .withOverage(new CapacityOverageProperties().withState(CapacityOverageState.ENABLED)
+ .withThresholdCapacityUnitHours(976394918))
+ .withAdministration(new CapacityAdministration()
+ .withMembers(Arrays.asList("ybczmehmtzo", "bsphrupidgsybbe", "hphoycm", "xaobhdxbmtqioqjz"))))
+ .withSku(new RpSku().withName("htbmuf").withTier(RpSkuTier.FABRIC));
model = BinaryData.fromObject(model).toObject(FabricCapacityInner.class);
- Assertions.assertEquals("sybbejhph", model.location());
- Assertions.assertEquals("msxaobhd", model.tags().get("bmtqioq"));
- Assertions.assertEquals("vgjxpybczm", model.properties().administration().members().get(0));
- Assertions.assertEquals("hmtzopbsphrup", model.sku().name());
+ Assertions.assertEquals("noi", model.location());
+ Assertions.assertEquals("lrxybqsoq", model.tags().get("jgkdmbpazlobcu"));
+ Assertions.assertEquals(CapacityOverageState.ENABLED, model.properties().overage().state());
+ Assertions.assertEquals(976394918, model.properties().overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("ybczmehmtzo", model.properties().administration().members().get(0));
+ Assertions.assertEquals("htbmuf", model.sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, model.sku().tier());
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityListResultTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityListResultTests.java
index 85e5101016a3..bf244e5760a0 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityListResultTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityListResultTests.java
@@ -6,6 +6,7 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.fabric.implementation.models.FabricCapacityListResult;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.RpSkuTier;
import org.junit.jupiter.api.Assertions;
@@ -13,14 +14,15 @@ public final class FabricCapacityListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
FabricCapacityListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Suspending\",\"administration\":{\"members\":[\"ukcdmparcryuanzw\",\"xzdxtayrlhmwh\",\"pmrqobm\"]}},\"sku\":{\"name\":\"u\",\"tier\":\"Fabric\"},\"location\":\"ryrtihfxtijbpzv\",\"tags\":{\"ihanuf\":\"zsymglzufcyzkohd\",\"ifpikxwczby\":\"fcbjysagithxqha\",\"rkxvdum\":\"cnpqxuhivyqniwby\"},\"id\":\"grtfwvu\",\"name\":\"xgaudccs\",\"type\":\"h\"},{\"properties\":{\"provisioningState\":\"Updating\",\"state\":\"Updating\",\"administration\":{\"members\":[\"j\",\"kryhtnapczwlokj\"]}},\"sku\":{\"name\":\"emkkvnipjox\",\"tier\":\"Fabric\"},\"location\":\"chgejspodm\",\"tags\":{\"o\":\"zyde\",\"wixjsprozvcp\":\"wyahuxinpmqnja\",\"atscmd\":\"tegjvwmf\",\"zkrwfn\":\"pjhulsuuvmkj\"},\"id\":\"iodjp\",\"name\":\"lwejdpv\",\"type\":\"ryo\"},{\"properties\":{\"provisioningState\":\"Updating\",\"state\":\"Scaling\",\"administration\":{\"members\":[\"ctazakljlahbcryf\",\"dfdosygexp\",\"ojakhmsbzjhcrze\",\"dphlxaolt\"]}},\"sku\":{\"name\":\"qtrgqjbpfzfsinzg\",\"tier\":\"Fabric\"},\"location\":\"jrwzox\",\"tags\":{\"fpjkjlxofp\":\"felluwfzitonpe\",\"uybbkpodep\":\"vhpfxxypininmay\"},\"id\":\"oginuvamiheognar\",\"name\":\"zxtheotusivyevcc\",\"type\":\"qi\"}],\"nextLink\":\"hungbwjzrnf\"}")
+ "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"state\":\"Scaling\",\"overage\":{\"state\":\"Disabled\",\"thresholdCapacityUnitHours\":1208927606},\"administration\":{\"members\":[\"ufhfcbjysa\",\"ithxqhabifpi\"]}},\"sku\":{\"name\":\"xwczbyscnp\",\"tier\":\"Fabric\"},\"location\":\"hiv\",\"tags\":{\"tfwvukxgaudc\":\"iwbybrkxvdumjg\"},\"id\":\"snhsjcnyejhkryh\",\"name\":\"napczwlokjy\",\"type\":\"mkkvnip\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"state\":\"Suspending\",\"overage\":{\"state\":\"Enabled\",\"thresholdCapacityUnitHours\":519746852},\"administration\":{\"members\":[\"spodmail\",\"ydehoj\",\"yahux\",\"npmqnjaqwixjspro\"]}},\"sku\":{\"name\":\"vcputegj\",\"tier\":\"Fabric\"},\"location\":\"fdatsc\",\"tags\":{\"zkrwfn\":\"pjhulsuuvmkj\",\"lwejdpv\":\"iodjp\",\"psoacctazakljl\":\"ryo\"},\"id\":\"hbcryffdfdosyge\",\"name\":\"paojakhmsbzjh\",\"type\":\"rzevdphlxaol\"},{\"properties\":{\"provisioningState\":\"Failed\",\"state\":\"Preparing\",\"overage\":{\"state\":\"Disabled\",\"thresholdCapacityUnitHours\":1007211846},\"administration\":{\"members\":[\"zfsinzgvf\"]}},\"sku\":{\"name\":\"jrwzox\",\"tier\":\"Fabric\"},\"location\":\"felluwfzitonpe\",\"tags\":{\"ypininm\":\"jkjlxofpdvhpfx\",\"po\":\"yhuybbkpod\",\"ognarxzxtheotus\":\"ginuvamih\"},\"id\":\"vyevcciqi\",\"name\":\"nhungbw\",\"type\":\"zrnf\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"state\":\"Failed\",\"overage\":{\"state\":\"Disabled\",\"thresholdCapacityUnitHours\":761437116},\"administration\":{\"members\":[\"zfkufubljofx\",\"eofjaeqjh\",\"jbasvmsmjqulngs\"]}},\"sku\":{\"name\":\"tnb\",\"tier\":\"Fabric\"},\"location\":\"zgcwrw\",\"tags\":{\"cjdkwtnhxbnjbi\":\"xwrljdouskcqvkoc\"},\"id\":\"sqrglssainq\",\"name\":\"jwnzlljfmp\",\"type\":\"eebvmgxsab\"}],\"nextLink\":\"qduujitcjczdz\"}")
.toObject(FabricCapacityListResult.class);
- Assertions.assertEquals("ryrtihfxtijbpzv", model.value().get(0).location());
- Assertions.assertEquals("zsymglzufcyzkohd", model.value().get(0).tags().get("ihanuf"));
- Assertions.assertEquals("ukcdmparcryuanzw",
- model.value().get(0).properties().administration().members().get(0));
- Assertions.assertEquals("u", model.value().get(0).sku().name());
+ Assertions.assertEquals("hiv", model.value().get(0).location());
+ Assertions.assertEquals("iwbybrkxvdumjg", model.value().get(0).tags().get("tfwvukxgaudc"));
+ Assertions.assertEquals(CapacityOverageState.DISABLED, model.value().get(0).properties().overage().state());
+ Assertions.assertEquals(1208927606, model.value().get(0).properties().overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("ufhfcbjysa", model.value().get(0).properties().administration().members().get(0));
+ Assertions.assertEquals("xwczbyscnp", model.value().get(0).sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, model.value().get(0).sku().tier());
- Assertions.assertEquals("hungbwjzrnf", model.nextLink());
+ Assertions.assertEquals("qduujitcjczdz", model.nextLink());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityPropertiesTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityPropertiesTests.java
index 29623940b7ac..f9c2e94c16c3 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityPropertiesTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityPropertiesTests.java
@@ -6,6 +6,8 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.fabric.models.CapacityAdministration;
+import com.azure.resourcemanager.fabric.models.CapacityOverageProperties;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacityProperties;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;
@@ -14,16 +16,22 @@ public final class FabricCapacityPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
FabricCapacityProperties model = BinaryData.fromString(
- "{\"provisioningState\":\"Provisioning\",\"state\":\"Resuming\",\"administration\":{\"members\":[\"glhqg\",\"ufo\"]}}")
+ "{\"provisioningState\":\"Provisioning\",\"state\":\"Suspending\",\"overage\":{\"state\":\"Enabled\",\"thresholdCapacityUnitHours\":1979108310},\"administration\":{\"members\":[\"kwm\"]}}")
.toObject(FabricCapacityProperties.class);
- Assertions.assertEquals("glhqg", model.administration().members().get(0));
+ Assertions.assertEquals(CapacityOverageState.ENABLED, model.overage().state());
+ Assertions.assertEquals(1979108310, model.overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("kwm", model.administration().members().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
FabricCapacityProperties model = new FabricCapacityProperties()
- .withAdministration(new CapacityAdministration().withMembers(Arrays.asList("glhqg", "ufo")));
+ .withOverage(new CapacityOverageProperties().withState(CapacityOverageState.ENABLED)
+ .withThresholdCapacityUnitHours(1979108310))
+ .withAdministration(new CapacityAdministration().withMembers(Arrays.asList("kwm")));
model = BinaryData.fromObject(model).toObject(FabricCapacityProperties.class);
- Assertions.assertEquals("glhqg", model.administration().members().get(0));
+ Assertions.assertEquals(CapacityOverageState.ENABLED, model.overage().state());
+ Assertions.assertEquals(1979108310, model.overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("kwm", model.administration().members().get(0));
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityUpdatePropertiesTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityUpdatePropertiesTests.java
index 8f448ec235fb..97f5053c5364 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityUpdatePropertiesTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityUpdatePropertiesTests.java
@@ -6,6 +6,8 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.fabric.models.CapacityAdministration;
+import com.azure.resourcemanager.fabric.models.CapacityOverageProperties;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacityUpdateProperties;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;
@@ -13,17 +15,24 @@
public final class FabricCapacityUpdatePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- FabricCapacityUpdateProperties model
- = BinaryData.fromString("{\"administration\":{\"members\":[\"flusarhmof\",\"qhsmyurkdtml\",\"he\"]}}")
- .toObject(FabricCapacityUpdateProperties.class);
- Assertions.assertEquals("flusarhmof", model.administration().members().get(0));
+ FabricCapacityUpdateProperties model = BinaryData.fromString(
+ "{\"overage\":{\"state\":\"Enabled\",\"thresholdCapacityUnitHours\":1681565862},\"administration\":{\"members\":[\"tihfx\",\"ijbpzvgnwzsymgl\",\"uf\"]}}")
+ .toObject(FabricCapacityUpdateProperties.class);
+ Assertions.assertEquals(CapacityOverageState.ENABLED, model.overage().state());
+ Assertions.assertEquals(1681565862, model.overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("tihfx", model.administration().members().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- FabricCapacityUpdateProperties model = new FabricCapacityUpdateProperties().withAdministration(
- new CapacityAdministration().withMembers(Arrays.asList("flusarhmof", "qhsmyurkdtml", "he")));
+ FabricCapacityUpdateProperties model = new FabricCapacityUpdateProperties()
+ .withOverage(new CapacityOverageProperties().withState(CapacityOverageState.ENABLED)
+ .withThresholdCapacityUnitHours(1681565862))
+ .withAdministration(
+ new CapacityAdministration().withMembers(Arrays.asList("tihfx", "ijbpzvgnwzsymgl", "uf")));
model = BinaryData.fromObject(model).toObject(FabricCapacityUpdateProperties.class);
- Assertions.assertEquals("flusarhmof", model.administration().members().get(0));
+ Assertions.assertEquals(CapacityOverageState.ENABLED, model.overage().state());
+ Assertions.assertEquals(1681565862, model.overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("tihfx", model.administration().members().get(0));
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityUpdateTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityUpdateTests.java
index e0d2e6e1724d..0cee287a8796 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityUpdateTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/FabricCapacityUpdateTests.java
@@ -6,6 +6,8 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.fabric.models.CapacityAdministration;
+import com.azure.resourcemanager.fabric.models.CapacityOverageProperties;
+import com.azure.resourcemanager.fabric.models.CapacityOverageState;
import com.azure.resourcemanager.fabric.models.FabricCapacityUpdate;
import com.azure.resourcemanager.fabric.models.FabricCapacityUpdateProperties;
import com.azure.resourcemanager.fabric.models.RpSku;
@@ -19,26 +21,32 @@ public final class FabricCapacityUpdateTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
FabricCapacityUpdate model = BinaryData.fromString(
- "{\"sku\":{\"name\":\"to\",\"tier\":\"Fabric\"},\"tags\":{\"kfo\":\"ouajpsqucmpoyf\"},\"properties\":{\"administration\":{\"members\":[\"gjofjd\",\"eqsrdeupewnwreit\"]}}}")
+ "{\"sku\":{\"name\":\"upewnwreitjzy\",\"tier\":\"Fabric\"},\"tags\":{\"rkdtmlxh\":\"arhmofcqhsmy\",\"arcryuanzwuxzdxt\":\"kuksjtxukcdm\"},\"properties\":{\"overage\":{\"state\":\"Enabled\",\"thresholdCapacityUnitHours\":906261877},\"administration\":{\"members\":[\"pmrqobm\"]}}}")
.toObject(FabricCapacityUpdate.class);
- Assertions.assertEquals("to", model.sku().name());
+ Assertions.assertEquals("upewnwreitjzy", model.sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, model.sku().tier());
- Assertions.assertEquals("ouajpsqucmpoyf", model.tags().get("kfo"));
- Assertions.assertEquals("gjofjd", model.properties().administration().members().get(0));
+ Assertions.assertEquals("arhmofcqhsmy", model.tags().get("rkdtmlxh"));
+ Assertions.assertEquals(CapacityOverageState.ENABLED, model.properties().overage().state());
+ Assertions.assertEquals(906261877, model.properties().overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("pmrqobm", model.properties().administration().members().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
FabricCapacityUpdate model
- = new FabricCapacityUpdate().withSku(new RpSku().withName("to").withTier(RpSkuTier.FABRIC))
- .withTags(mapOf("kfo", "ouajpsqucmpoyf"))
- .withProperties(new FabricCapacityUpdateProperties().withAdministration(
- new CapacityAdministration().withMembers(Arrays.asList("gjofjd", "eqsrdeupewnwreit"))));
+ = new FabricCapacityUpdate().withSku(new RpSku().withName("upewnwreitjzy").withTier(RpSkuTier.FABRIC))
+ .withTags(mapOf("rkdtmlxh", "arhmofcqhsmy", "arcryuanzwuxzdxt", "kuksjtxukcdm"))
+ .withProperties(new FabricCapacityUpdateProperties()
+ .withOverage(new CapacityOverageProperties().withState(CapacityOverageState.ENABLED)
+ .withThresholdCapacityUnitHours(906261877))
+ .withAdministration(new CapacityAdministration().withMembers(Arrays.asList("pmrqobm"))));
model = BinaryData.fromObject(model).toObject(FabricCapacityUpdate.class);
- Assertions.assertEquals("to", model.sku().name());
+ Assertions.assertEquals("upewnwreitjzy", model.sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, model.sku().tier());
- Assertions.assertEquals("ouajpsqucmpoyf", model.tags().get("kfo"));
- Assertions.assertEquals("gjofjd", model.properties().administration().members().get(0));
+ Assertions.assertEquals("arhmofcqhsmy", model.tags().get("rkdtmlxh"));
+ Assertions.assertEquals(CapacityOverageState.ENABLED, model.properties().overage().state());
+ Assertions.assertEquals(906261877, model.properties().overage().thresholdCapacityUnitHours());
+ Assertions.assertEquals("pmrqobm", model.properties().administration().members().get(0));
}
// Use "Map.of" if available
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationDisplayTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationDisplayTests.java
index 9353944c2e0c..186a9950d5d6 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationDisplayTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationDisplayTests.java
@@ -10,9 +10,8 @@
public final class OperationDisplayTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- OperationDisplay model = BinaryData
- .fromString(
- "{\"provider\":\"xv\",\"resource\":\"byxqabn\",\"operation\":\"cpc\",\"description\":\"hurzafblj\"}")
+ OperationDisplay model = BinaryData.fromString(
+ "{\"provider\":\"irsoodqxhcrmnohj\",\"resource\":\"kwh\",\"operation\":\"oifiyipjxsqwpgr\",\"description\":\"znorcj\"}")
.toObject(OperationDisplay.class);
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationInnerTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationInnerTests.java
index 33e05529a337..16a7cd3af7a9 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationInnerTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationInnerTests.java
@@ -11,7 +11,7 @@ public final class OperationInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
OperationInner model = BinaryData.fromString(
- "{\"name\":\"ypyqrimzinp\",\"isDataAction\":false,\"display\":{\"provider\":\"kirsoodqxhc\",\"resource\":\"nohjt\",\"operation\":\"whdsoifiyip\",\"description\":\"sqwpgrjb\"},\"origin\":\"system\",\"actionType\":\"Internal\"}")
+ "{\"name\":\"gfycc\",\"isDataAction\":false,\"display\":{\"provider\":\"dwzjeiach\",\"resource\":\"osfln\",\"operation\":\"sfqpteehz\",\"description\":\"ypyqrimzinp\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}")
.toObject(OperationInner.class);
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationListResultTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationListResultTests.java
index f79fd7e34185..ab486fdd6fea 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationListResultTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationListResultTests.java
@@ -12,8 +12,8 @@ public final class OperationListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
OperationListResult model = BinaryData.fromString(
- "{\"value\":[{\"name\":\"uhmuouqfprwzwbn\",\"isDataAction\":true,\"display\":{\"provider\":\"wu\",\"resource\":\"gazxuf\",\"operation\":\"uckyf\",\"description\":\"rfidfvzwdz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"isdkfthwxmnteiw\",\"isDataAction\":true,\"display\":{\"provider\":\"mijcmmxdcufufs\",\"resource\":\"ymzidn\",\"operation\":\"zcxtbzsgfyccsn\",\"description\":\"mdwzjeiachboo\"},\"origin\":\"user\",\"actionType\":\"Internal\"}],\"nextLink\":\"sfqpteehz\"}")
+ "{\"value\":[{\"name\":\"fizuckyf\",\"isDataAction\":true,\"display\":{\"provider\":\"dfvzwdzuhty\",\"resource\":\"isdkfthwxmnteiw\",\"operation\":\"pvkmijcmmxdcuf\",\"description\":\"srp\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"sezcxtb\"}")
.toObject(OperationListResult.class);
- Assertions.assertEquals("sfqpteehz", model.nextLink());
+ Assertions.assertEquals("sezcxtb", model.nextLink());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationsListMockTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationsListMockTests.java
index a74b65d03acd..464fb95b7dcc 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationsListMockTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/OperationsListMockTests.java
@@ -21,7 +21,7 @@ public final class OperationsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"name\":\"kdvjsll\",\"isDataAction\":true,\"display\":{\"provider\":\"f\",\"resource\":\"t\",\"operation\":\"n\",\"description\":\"lexxbczwtru\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}";
+ = "{\"value\":[{\"name\":\"bezy\",\"isDataAction\":true,\"display\":{\"provider\":\"twhrdxwzywqsm\",\"resource\":\"ureximoryocfs\",\"operation\":\"s\",\"description\":\"ddystkiiuxhqy\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/PagedQuotaTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/PagedQuotaTests.java
index 7b4eb5252a9f..2d2382a0eb2f 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/PagedQuotaTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/PagedQuotaTests.java
@@ -12,11 +12,11 @@ public final class PagedQuotaTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PagedQuota model = BinaryData.fromString(
- "{\"value\":[{\"name\":{\"value\":\"ta\",\"localizedValue\":\"pwgcuertu\"},\"unit\":\"kdosvqw\",\"currentValue\":4117897998779209947,\"limit\":3494827514980222479},{\"name\":{\"value\":\"jfddgmbmbe\",\"localizedValue\":\"pbhtqqrolfpfpsa\"},\"unit\":\"gbquxigj\",\"currentValue\":3940628181525155930,\"limit\":3662129632751771998}],\"nextLink\":\"o\"}")
+ "{\"value\":[{\"name\":{\"value\":\"cuertu\",\"localizedValue\":\"dosvqwhbmdgbbjf\"},\"unit\":\"dgmb\",\"currentValue\":6485857331329667518,\"limit\":2284886745840588459},{\"name\":{\"value\":\"htqqrolfp\",\"localizedValue\":\"s\"},\"unit\":\"lgbquxig\",\"currentValue\":8887279261185993844,\"limit\":7472404552920235904},{\"name\":{\"value\":\"o\",\"localizedValue\":\"hr\"},\"unit\":\"xilnerku\",\"currentValue\":35192060123738772,\"limit\":1076277813436926770}],\"nextLink\":\"juvf\"}")
.toObject(PagedQuota.class);
- Assertions.assertEquals("kdosvqw", model.value().get(0).unit());
- Assertions.assertEquals(4117897998779209947L, model.value().get(0).currentValue());
- Assertions.assertEquals(3494827514980222479L, model.value().get(0).limit());
- Assertions.assertEquals("o", model.nextLink());
+ Assertions.assertEquals("dgmb", model.value().get(0).unit());
+ Assertions.assertEquals(6485857331329667518L, model.value().get(0).currentValue());
+ Assertions.assertEquals(2284886745840588459L, model.value().get(0).limit());
+ Assertions.assertEquals("juvf", model.nextLink());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/QuotaInnerTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/QuotaInnerTests.java
index b9ca3cff48f1..1d831cd6493c 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/QuotaInnerTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/QuotaInnerTests.java
@@ -12,10 +12,10 @@ public final class QuotaInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
QuotaInner model = BinaryData.fromString(
- "{\"name\":{\"value\":\"rtxilner\",\"localizedValue\":\"jysvl\"},\"unit\":\"juvf\",\"currentValue\":6007575711591888285,\"limit\":4876463209595309239}")
+ "{\"name\":{\"value\":\"rlyxwjkcprbnw\",\"localizedValue\":\"gjvtbv\"},\"unit\":\"ysszdnrujqguh\",\"currentValue\":4001606914042880577,\"limit\":9055326959685278668}")
.toObject(QuotaInner.class);
- Assertions.assertEquals("juvf", model.unit());
- Assertions.assertEquals(6007575711591888285L, model.currentValue());
- Assertions.assertEquals(4876463209595309239L, model.limit());
+ Assertions.assertEquals("ysszdnrujqguh", model.unit());
+ Assertions.assertEquals(4001606914042880577L, model.currentValue());
+ Assertions.assertEquals(9055326959685278668L, model.limit());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/QuotaNameTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/QuotaNameTests.java
index 02fda92e23f4..46def98317d1 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/QuotaNameTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/QuotaNameTests.java
@@ -11,9 +11,9 @@
public final class QuotaNameTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- QuotaName model = BinaryData.fromString("{\"value\":\"xwjkcprbnwbxg\",\"localizedValue\":\"tbvpysszdnru\"}")
+ QuotaName model = BinaryData.fromString("{\"value\":\"prwzwbnguitnwui\",\"localizedValue\":\"a\"}")
.toObject(QuotaName.class);
- Assertions.assertEquals("xwjkcprbnwbxg", model.value());
- Assertions.assertEquals("tbvpysszdnru", model.localizedValue());
+ Assertions.assertEquals("prwzwbnguitnwui", model.value());
+ Assertions.assertEquals("a", model.localizedValue());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuDetailsForExistingResourceInnerTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuDetailsForExistingResourceInnerTests.java
index 2a1b34aa7b5d..d1015e6b3d45 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuDetailsForExistingResourceInnerTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuDetailsForExistingResourceInnerTests.java
@@ -13,10 +13,10 @@ public final class RpSkuDetailsForExistingResourceInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RpSkuDetailsForExistingResourceInner model = BinaryData
- .fromString("{\"resourceType\":\"yqduujit\",\"sku\":{\"name\":\"jczdzevndh\",\"tier\":\"Fabric\"}}")
+ .fromString("{\"resourceType\":\"icndvkaozwyifty\",\"sku\":{\"name\":\"xhurok\",\"tier\":\"Fabric\"}}")
.toObject(RpSkuDetailsForExistingResourceInner.class);
- Assertions.assertEquals("yqduujit", model.resourceType());
- Assertions.assertEquals("jczdzevndh", model.sku().name());
+ Assertions.assertEquals("icndvkaozwyifty", model.resourceType());
+ Assertions.assertEquals("xhurok", model.sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, model.sku().tier());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuDetailsForNewResourceInnerTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuDetailsForNewResourceInnerTests.java
index e80eb90b8b4c..a6427018fe22 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuDetailsForNewResourceInnerTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuDetailsForNewResourceInnerTests.java
@@ -11,11 +11,11 @@
public final class RpSkuDetailsForNewResourceInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- RpSkuDetailsForNewResourceInner model = BinaryData.fromString(
- "{\"resourceType\":\"gakeqsr\",\"name\":\"yb\",\"locations\":[\"qedqytbciqfoufl\",\"mnkzsmod\",\"glougpbk\",\"tmut\"]}")
- .toObject(RpSkuDetailsForNewResourceInner.class);
- Assertions.assertEquals("gakeqsr", model.resourceType());
- Assertions.assertEquals("yb", model.name());
- Assertions.assertEquals("qedqytbciqfoufl", model.locations().get(0));
+ RpSkuDetailsForNewResourceInner model
+ = BinaryData.fromString("{\"resourceType\":\"dmgloug\",\"name\":\"b\",\"locations\":[\"tmut\",\"uqktap\"]}")
+ .toObject(RpSkuDetailsForNewResourceInner.class);
+ Assertions.assertEquals("dmgloug", model.resourceType());
+ Assertions.assertEquals("b", model.name());
+ Assertions.assertEquals("tmut", model.locations().get(0));
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuEnumerationForExistingResourceResultTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuEnumerationForExistingResourceResultTests.java
index f3eea86b6ccb..69cff2437cfb 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuEnumerationForExistingResourceResultTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuEnumerationForExistingResourceResultTests.java
@@ -13,11 +13,11 @@ public final class RpSkuEnumerationForExistingResourceResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RpSkuEnumerationForExistingResourceResult model = BinaryData.fromString(
- "{\"value\":[{\"resourceType\":\"sntnbybkzgcw\",\"sku\":{\"name\":\"wclxxwrl\",\"tier\":\"Fabric\"}},{\"resourceType\":\"ouskcqvkocrc\",\"sku\":{\"name\":\"dkwt\",\"tier\":\"Fabric\"}},{\"resourceType\":\"xbnjbiksq\",\"sku\":{\"name\":\"gls\",\"tier\":\"Fabric\"}},{\"resourceType\":\"inqpjwnzll\",\"sku\":{\"name\":\"fmppe\",\"tier\":\"Fabric\"}}],\"nextLink\":\"mgxsab\"}")
+ "{\"value\":[{\"resourceType\":\"nhutjeltmrldhugj\",\"sku\":{\"name\":\"zdatqxhocdg\",\"tier\":\"Fabric\"}}],\"nextLink\":\"lgphu\"}")
.toObject(RpSkuEnumerationForExistingResourceResult.class);
- Assertions.assertEquals("sntnbybkzgcw", model.value().get(0).resourceType());
- Assertions.assertEquals("wclxxwrl", model.value().get(0).sku().name());
+ Assertions.assertEquals("nhutjeltmrldhugj", model.value().get(0).resourceType());
+ Assertions.assertEquals("zdatqxhocdg", model.value().get(0).sku().name());
Assertions.assertEquals(RpSkuTier.FABRIC, model.value().get(0).sku().tier());
- Assertions.assertEquals("mgxsab", model.nextLink());
+ Assertions.assertEquals("lgphu", model.nextLink());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuEnumerationForNewResourceResultTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuEnumerationForNewResourceResultTests.java
index 81dacd182bea..061d67790105 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuEnumerationForNewResourceResultTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuEnumerationForNewResourceResultTests.java
@@ -12,11 +12,11 @@ public final class RpSkuEnumerationForNewResourceResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RpSkuEnumerationForNewResourceResult model = BinaryData.fromString(
- "{\"value\":[{\"resourceType\":\"pdappds\",\"name\":\"dkvwrwjfe\",\"locations\":[\"nhutjeltmrldhugj\"]},{\"resourceType\":\"zdatqxhocdg\",\"name\":\"ablgphuticndvk\",\"locations\":[\"zwyiftyhxhur\",\"k\",\"tyxolniwpwc\",\"kjfkg\"]},{\"resourceType\":\"awxklr\",\"name\":\"plwckbas\",\"locations\":[\"pnddhsgcbacphejk\",\"tynqgoul\",\"ndlik\"]}],\"nextLink\":\"qkgfgibma\"}")
+ "{\"value\":[{\"resourceType\":\"xolniwpwcukjfk\",\"name\":\"iawxklry\",\"locations\":[\"wckbasyypnd\",\"hsgcbacphejkot\",\"nqgoulzndli\",\"wyqkgfgibm\"]},{\"resourceType\":\"dgak\",\"name\":\"qsrxybzqqed\",\"locations\":[\"tbciqfouflmm\"]}],\"nextLink\":\"zsm\"}")
.toObject(RpSkuEnumerationForNewResourceResult.class);
- Assertions.assertEquals("pdappds", model.value().get(0).resourceType());
- Assertions.assertEquals("dkvwrwjfe", model.value().get(0).name());
- Assertions.assertEquals("nhutjeltmrldhugj", model.value().get(0).locations().get(0));
- Assertions.assertEquals("qkgfgibma", model.nextLink());
+ Assertions.assertEquals("xolniwpwcukjfk", model.value().get(0).resourceType());
+ Assertions.assertEquals("iawxklry", model.value().get(0).name());
+ Assertions.assertEquals("wckbasyypnd", model.value().get(0).locations().get(0));
+ Assertions.assertEquals("zsm", model.nextLink());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuTests.java b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuTests.java
index e62e41169f32..82eedd698f2d 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuTests.java
+++ b/sdk/fabric/azure-resourcemanager-fabric/src/test/java/com/azure/resourcemanager/fabric/generated/RpSkuTests.java
@@ -12,16 +12,16 @@
public final class RpSkuTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- RpSku model = BinaryData.fromString("{\"name\":\"xrifkwmrvkts\",\"tier\":\"Fabric\"}").toObject(RpSku.class);
- Assertions.assertEquals("xrifkwmrvkts", model.name());
+ RpSku model = BinaryData.fromString("{\"name\":\"s\",\"tier\":\"Fabric\"}").toObject(RpSku.class);
+ Assertions.assertEquals("s", model.name());
Assertions.assertEquals(RpSkuTier.FABRIC, model.tier());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- RpSku model = new RpSku().withName("xrifkwmrvkts").withTier(RpSkuTier.FABRIC);
+ RpSku model = new RpSku().withName("s").withTier(RpSkuTier.FABRIC);
model = BinaryData.fromObject(model).toObject(RpSku.class);
- Assertions.assertEquals("xrifkwmrvkts", model.name());
+ Assertions.assertEquals("s", model.name());
Assertions.assertEquals(RpSkuTier.FABRIC, model.tier());
}
}
diff --git a/sdk/fabric/azure-resourcemanager-fabric/tsp-location.yaml b/sdk/fabric/azure-resourcemanager-fabric/tsp-location.yaml
index a2fdef2713cd..0c2ab368f8c5 100644
--- a/sdk/fabric/azure-resourcemanager-fabric/tsp-location.yaml
+++ b/sdk/fabric/azure-resourcemanager-fabric/tsp-location.yaml
@@ -1,4 +1,4 @@
directory: specification/fabric/resource-manager/Microsoft.Fabric/Fabric
-commit: 51222a6a7977e9753a709144cb554d40144c81de
+commit: a11c8d40bf2ab8aed7c8debec9528bff36a7ae2a
repo: Azure/azure-rest-api-specs
additionalDirectories: