diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/CHANGELOG.md b/sdk/standbypool/azure-resourcemanager-standbypool/CHANGELOG.md
index 62b558c58bc5..ea56d230d127 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/CHANGELOG.md
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/CHANGELOG.md
@@ -1,14 +1,62 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.1.0-beta.1 (2025-02-26)
-### Features Added
+- Azure Resource Manager Standby Pool client library for Java. This package contains Microsoft Azure SDK for Standby Pool Management SDK. 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.PoolResourceStateCount` was removed
+
+#### `StandbyPoolManager` was modified
+
+* `fluent.StandbyPoolClient serviceClient()` -> `fluent.StandbyPoolManagementClient serviceClient()`
+
+### Features Added
+
+* `models.PoolVirtualMachineState` was added
+
+* `models.StandbyVirtualMachinePoolForecastValues` was added
+
+* `models.HealthStateCode` was added
+
+* `models.StandbyVirtualMachinePoolPrediction` was added
+
+* `models.PoolContainerGroupState` was added
+
+* `models.PoolContainerGroupStateCount` was added
+
+* `models.PoolStatus` was added
+
+* `models.PoolVirtualMachineStateCount` was added
+
+* `models.StandbyContainerGroupPoolForecastValues` was added
+
+* `models.StandbyContainerGroupPoolPrediction` was added
+
+#### `models.StandbyContainerGroupPoolResourceProperties` was modified
+
+* `withZones(java.util.List)` was added
+* `zones()` was added
+
+#### `models.StandbyVirtualMachinePoolRuntimeViewResourceProperties` was modified
+
+* `prediction()` was added
+* `status()` was added
+
+#### `models.ContainerGroupInstanceCountSummary` was modified
+
+* `zone()` was added
+
+#### `models.StandbyContainerGroupPoolResourceUpdateProperties` was modified
+
+* `withZones(java.util.List)` was added
+* `zones()` was added
+
+#### `models.StandbyContainerGroupPoolRuntimeViewResourceProperties` was modified
-### Other Changes
+* `status()` was added
+* `prediction()` was added
## 1.0.0 (2024-09-25)
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/README.md b/sdk/standbypool/azure-resourcemanager-standbypool/README.md
index e5ea273fe9e9..b5f8692c3ee1 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/README.md
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-standbypool
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({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 @@ StandbyPoolManager manager = StandbyPoolManager
.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.
@@ -70,6 +70,47 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+```java
+// reference https://learn.microsoft.com/azure/virtual-machine-scale-sets/standby-pools-create
+
+// Create virtual network and virtual machine scale set
+virtualNetwork = this.computeManager.networkManager()
+ .networks()
+ .define("vmssvnet")
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withAddressSpace("10.0.0.0/27")
+ .withSubnet("default", "10.0.0.0/27")
+ .create();
+
+virtualMachineScaleSet = computeManager.virtualMachineScaleSets()
+ .define("vmss")
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withFlexibleOrchestrationMode()
+ .withSku(VirtualMachineScaleSetSkuTypes.STANDARD_A0)
+ .withExistingPrimaryNetworkSubnet(virtualNetwork, "default")
+ .withoutPrimaryInternetFacingLoadBalancer()
+ .withoutPrimaryInternalLoadBalancer()
+ .withPopularLinuxImage(KnownLinuxVirtualMachineImage.UBUNTU_SERVER_18_04_LTS)
+ .withRootUsername("Foo12")
+ .withSsh(sshPublicKey())
+ .withVirtualMachinePublicIp()
+ .withCapacity(3L)
+ .create();
+
+// create standby virtual machine pool
+standbyVirtualMachinePool = standbyPoolManager.standbyVirtualMachinePools()
+ .define(poolName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withProperties(new StandbyVirtualMachinePoolResourceProperties()
+ .withAttachedVirtualMachineScaleSetId(virtualMachineScaleSet.id())
+ .withVirtualMachineState(VirtualMachineState.DEALLOCATED)
+ .withElasticityProfile(new StandbyVirtualMachinePoolElasticityProfile().withMaxReadyCapacity(3L)
+ .withMinReadyCapacity(1L)))
+ .create();
+```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/standbypool/azure-resourcemanager-standbypool/SAMPLE.md)
@@ -100,5 +141,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/standbypool/azure-resourcemanager-standbypool/SAMPLE.md b/sdk/standbypool/azure-resourcemanager-standbypool/SAMPLE.md
index a1ef7ec93f86..c91306febf2a 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/SAMPLE.md
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/SAMPLE.md
@@ -45,7 +45,7 @@
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file: 2024-03-01/Operations_List.json
+ * x-ms-original-file: 2025-03-01/Operations_List.json
*/
/**
* Sample code: Operations_List.
@@ -66,7 +66,7 @@ public final class OperationsListSamples {
*/
public final class StandbyContainerGroupPoolRuntimeViewsGetSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_Get.json
+ * x-ms-original-file: 2025-03-01/StandbyContainerGroupPoolRuntimeViews_Get.json
*/
/**
* Sample code: StandbyContainerGroupPoolRuntimeViews_Get.
@@ -89,7 +89,7 @@ public final class StandbyContainerGroupPoolRuntimeViewsGetSamples {
*/
public final class StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_ListByStandbyPool.json
+ * x-ms-original-file: 2025-03-01/StandbyContainerGroupPoolRuntimeViews_ListByStandbyPool.json
*/
/**
* Sample code: StandbyContainerGroupPoolRuntimeViews_ListByStandbyPool.
@@ -122,7 +122,7 @@ import java.util.Map;
*/
public final class StandbyContainerGroupPoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_CreateOrUpdate.json
+ * x-ms-original-file: 2025-03-01/StandbyContainerGroupPools_CreateOrUpdate.json
*/
/**
* Sample code: StandbyContainerGroupPools_CreateOrUpdate.
@@ -144,7 +144,8 @@ public final class StandbyContainerGroupPoolsCreateOrUpdateSamples {
"/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile")
.withRevision(1L))
.withSubnetIds(Arrays.asList(new Subnet().withId(
- "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet")))))
+ "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet"))))
+ .withZones(Arrays.asList("1", "2", "3")))
.create();
}
@@ -170,7 +171,7 @@ public final class StandbyContainerGroupPoolsCreateOrUpdateSamples {
*/
public final class StandbyContainerGroupPoolsDeleteSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Delete.json
+ * x-ms-original-file: 2025-03-01/StandbyContainerGroupPools_Delete.json
*/
/**
* Sample code: StandbyContainerGroupPools_Delete.
@@ -192,7 +193,7 @@ public final class StandbyContainerGroupPoolsDeleteSamples {
*/
public final class StandbyContainerGroupPoolsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Get.json
+ * x-ms-original-file: 2025-03-01/StandbyContainerGroupPools_Get.json
*/
/**
* Sample code: StandbyContainerGroupPools_Get.
@@ -214,7 +215,7 @@ public final class StandbyContainerGroupPoolsGetByResourceGroupSamples {
*/
public final class StandbyContainerGroupPoolsListSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListBySubscription.json
+ * x-ms-original-file: 2025-03-01/StandbyContainerGroupPools_ListBySubscription.json
*/
/**
* Sample code: StandbyContainerGroupPools_ListBySubscription.
@@ -236,7 +237,7 @@ public final class StandbyContainerGroupPoolsListSamples {
*/
public final class StandbyContainerGroupPoolsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListByResourceGroup.json
+ * x-ms-original-file: 2025-03-01/StandbyContainerGroupPools_ListByResourceGroup.json
*/
/**
* Sample code: StandbyContainerGroupPools_ListByResourceGroup.
@@ -269,7 +270,7 @@ import java.util.Map;
*/
public final class StandbyContainerGroupPoolsUpdateSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Update.json
+ * x-ms-original-file: 2025-03-01/StandbyContainerGroupPools_Update.json
*/
/**
* Sample code: StandbyContainerGroupPools_Update.
@@ -291,7 +292,8 @@ public final class StandbyContainerGroupPoolsUpdateSamples {
"/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile")
.withRevision(2L))
.withSubnetIds(Arrays.asList(new Subnet().withId(
- "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet")))))
+ "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet"))))
+ .withZones(Arrays.asList("1", "2", "3")))
.apply();
}
@@ -317,7 +319,7 @@ public final class StandbyContainerGroupPoolsUpdateSamples {
*/
public final class StandbyVirtualMachinePoolRuntimeViewsGetSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_Get.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachinePoolRuntimeViews_Get.json
*/
/**
* Sample code: StandbyVirtualMachinePoolRuntimeViews_Get.
@@ -340,7 +342,7 @@ public final class StandbyVirtualMachinePoolRuntimeViewsGetSamples {
*/
public final class StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_ListByStandbyPool.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachinePoolRuntimeViews_ListByStandbyPool.json
*/
/**
* Sample code: StandbyVirtualMachinePoolRuntimeViews_ListByStandbyPool.
@@ -369,7 +371,7 @@ import java.util.Map;
*/
public final class StandbyVirtualMachinePoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_CreateOrUpdate.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachinePools_CreateOrUpdate.json
*/
/**
* Sample code: StandbyVirtualMachinePools_CreateOrUpdate.
@@ -414,7 +416,7 @@ public final class StandbyVirtualMachinePoolsCreateOrUpdateSamples {
*/
public final class StandbyVirtualMachinePoolsDeleteSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Delete.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachinePools_Delete.json
*/
/**
* Sample code: StandbyVirtualMachinePools_Delete.
@@ -436,7 +438,7 @@ public final class StandbyVirtualMachinePoolsDeleteSamples {
*/
public final class StandbyVirtualMachinePoolsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Get.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachinePools_Get.json
*/
/**
* Sample code: StandbyVirtualMachinePools_Get.
@@ -458,7 +460,7 @@ public final class StandbyVirtualMachinePoolsGetByResourceGroupSamples {
*/
public final class StandbyVirtualMachinePoolsListSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListBySubscription.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachinePools_ListBySubscription.json
*/
/**
* Sample code: StandbyVirtualMachinePools_ListBySubscription.
@@ -480,7 +482,7 @@ public final class StandbyVirtualMachinePoolsListSamples {
*/
public final class StandbyVirtualMachinePoolsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListByResourceGroup.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachinePools_ListByResourceGroup.json
*/
/**
* Sample code: StandbyVirtualMachinePools_ListByResourceGroup.
@@ -509,7 +511,7 @@ import java.util.Map;
*/
public final class StandbyVirtualMachinePoolsUpdateSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Update.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachinePools_Update.json
*/
/**
* Sample code: StandbyVirtualMachinePools_Update.
@@ -554,7 +556,7 @@ public final class StandbyVirtualMachinePoolsUpdateSamples {
*/
public final class StandbyVirtualMachinesGetSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachines_Get.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachines_Get.json
*/
/**
* Sample code: StandbyVirtualMachines_Get.
@@ -576,7 +578,7 @@ public final class StandbyVirtualMachinesGetSamples {
*/
public final class StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSamples {
/*
- * x-ms-original-file: 2024-03-01/StandbyVirtualMachines_ListByStandbyVirtualMachinePoolResource.json
+ * x-ms-original-file: 2025-03-01/StandbyVirtualMachines_ListByStandbyVirtualMachinePoolResource.json
*/
/**
* Sample code: StandbyVirtualMachines_ListByStandbyVirtualMachinePoolResource.
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/pom.xml b/sdk/standbypool/azure-resourcemanager-standbypool/pom.xml
index ec49278b6635..237573f8ce14 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/pom.xml
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/pom.xml
@@ -46,13 +46,9 @@
0
0
true
+ false
-
- com.azure
- azure-json
- 1.4.0
-
com.azure
azure-core
@@ -70,15 +66,20 @@
test
- com.azure.resourcemanager
- azure-resourcemanager-compute
- 2.47.0
+ com.azure
+ azure-identity
+ 1.15.3
test
com.azure
- azure-identity
- 1.15.3
+ azure-json
+ 1.4.0
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-compute
+ 2.47.0
test
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/StandbyPoolManager.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/StandbyPoolManager.java
index e214d76bcc47..29a8908b6c1c 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/StandbyPoolManager.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/StandbyPoolManager.java
@@ -24,11 +24,11 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.standbypool.fluent.StandbyPoolClient;
+import com.azure.resourcemanager.standbypool.fluent.StandbyPoolManagementClient;
import com.azure.resourcemanager.standbypool.implementation.OperationsImpl;
import com.azure.resourcemanager.standbypool.implementation.StandbyContainerGroupPoolRuntimeViewsImpl;
import com.azure.resourcemanager.standbypool.implementation.StandbyContainerGroupPoolsImpl;
-import com.azure.resourcemanager.standbypool.implementation.StandbyPoolClientBuilder;
+import com.azure.resourcemanager.standbypool.implementation.StandbyPoolManagementClientBuilder;
import com.azure.resourcemanager.standbypool.implementation.StandbyVirtualMachinePoolRuntimeViewsImpl;
import com.azure.resourcemanager.standbypool.implementation.StandbyVirtualMachinePoolsImpl;
import com.azure.resourcemanager.standbypool.implementation.StandbyVirtualMachinesImpl;
@@ -62,12 +62,12 @@ public final class StandbyPoolManager {
private StandbyContainerGroupPoolRuntimeViews standbyContainerGroupPoolRuntimeViews;
- private final StandbyPoolClient clientObject;
+ private final StandbyPoolManagementClient clientObject;
private StandbyPoolManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject = new StandbyPoolClientBuilder().pipeline(httpPipeline)
+ this.clientObject = new StandbyPoolManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
@@ -355,12 +355,12 @@ public StandbyContainerGroupPoolRuntimeViews standbyContainerGroupPoolRuntimeVie
}
/**
- * Gets wrapped service client StandbyPoolClient providing direct access to the underlying auto-generated API
- * implementation, based on Azure REST API.
+ * Gets wrapped service client StandbyPoolManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
*
- * @return Wrapped service client StandbyPoolClient.
+ * @return Wrapped service client StandbyPoolManagementClient.
*/
- public StandbyPoolClient serviceClient() {
+ public StandbyPoolManagementClient serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/fluent/StandbyPoolClient.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/fluent/StandbyPoolManagementClient.java
similarity index 95%
rename from sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/fluent/StandbyPoolClient.java
rename to sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/fluent/StandbyPoolManagementClient.java
index 943d29ef9642..b5684758cbcb 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/fluent/StandbyPoolClient.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/fluent/StandbyPoolManagementClient.java
@@ -8,9 +8,9 @@
import java.time.Duration;
/**
- * The interface for StandbyPoolClient class.
+ * The interface for StandbyPoolManagementClient class.
*/
-public interface StandbyPoolClient {
+public interface StandbyPoolManagementClient {
/**
* Gets Service host.
*
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/OperationsClientImpl.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/OperationsClientImpl.java
index c40b5d4cb926..0fb3b0d8032d 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/OperationsClientImpl.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/OperationsClientImpl.java
@@ -42,25 +42,25 @@ public final class OperationsClientImpl implements OperationsClient {
/**
* The service client containing this operation class.
*/
- private final StandbyPoolClientImpl client;
+ private final StandbyPoolManagementClientImpl client;
/**
* Initializes an instance of OperationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- OperationsClientImpl(StandbyPoolClientImpl client) {
+ OperationsClientImpl(StandbyPoolManagementClientImpl client) {
this.service
= RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for StandbyPoolClientOperations to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for StandbyPoolManagementClientOperations to be used by the proxy service
+ * to perform REST calls.
*/
@Host("{endpoint}")
- @ServiceInterface(name = "StandbyPoolClientOpe")
+ @ServiceInterface(name = "StandbyPoolManagemen")
public interface OperationsService {
@Headers({ "Content-Type: application/json" })
@Get("/providers/Microsoft.StandbyPool/operations")
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyContainerGroupPoolRuntimeViewsClientImpl.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyContainerGroupPoolRuntimeViewsClientImpl.java
index 5b3d494d6532..e06aee82e57b 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyContainerGroupPoolRuntimeViewsClientImpl.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyContainerGroupPoolRuntimeViewsClientImpl.java
@@ -44,25 +44,25 @@ public final class StandbyContainerGroupPoolRuntimeViewsClientImpl
/**
* The service client containing this operation class.
*/
- private final StandbyPoolClientImpl client;
+ private final StandbyPoolManagementClientImpl client;
/**
* Initializes an instance of StandbyContainerGroupPoolRuntimeViewsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- StandbyContainerGroupPoolRuntimeViewsClientImpl(StandbyPoolClientImpl client) {
+ StandbyContainerGroupPoolRuntimeViewsClientImpl(StandbyPoolManagementClientImpl client) {
this.service = RestProxy.create(StandbyContainerGroupPoolRuntimeViewsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for StandbyPoolClientStandbyContainerGroupPoolRuntimeViews to be used by
- * the proxy service to perform REST calls.
+ * The interface defining all the services for StandbyPoolManagementClientStandbyContainerGroupPoolRuntimeViews to
+ * be used by the proxy service to perform REST calls.
*/
@Host("{endpoint}")
- @ServiceInterface(name = "StandbyPoolClientSta")
+ @ServiceInterface(name = "StandbyPoolManagemen")
public interface StandbyContainerGroupPoolRuntimeViewsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}/runtimeViews/{runtimeView}")
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyContainerGroupPoolsClientImpl.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyContainerGroupPoolsClientImpl.java
index b0ea68895294..a53d832586ee 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyContainerGroupPoolsClientImpl.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyContainerGroupPoolsClientImpl.java
@@ -52,25 +52,25 @@ public final class StandbyContainerGroupPoolsClientImpl implements StandbyContai
/**
* The service client containing this operation class.
*/
- private final StandbyPoolClientImpl client;
+ private final StandbyPoolManagementClientImpl client;
/**
* Initializes an instance of StandbyContainerGroupPoolsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- StandbyContainerGroupPoolsClientImpl(StandbyPoolClientImpl client) {
+ StandbyContainerGroupPoolsClientImpl(StandbyPoolManagementClientImpl client) {
this.service = RestProxy.create(StandbyContainerGroupPoolsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for StandbyPoolClientStandbyContainerGroupPools to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for StandbyPoolManagementClientStandbyContainerGroupPools to be used by
+ * the proxy service to perform REST calls.
*/
@Host("{endpoint}")
- @ServiceInterface(name = "StandbyPoolClientSta")
+ @ServiceInterface(name = "StandbyPoolManagemen")
public interface StandbyContainerGroupPoolsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}")
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolClientBuilder.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolManagementClientBuilder.java
similarity index 68%
rename from sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolClientBuilder.java
rename to sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolManagementClientBuilder.java
index 9df0fdc8c466..f26954f56206 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolClientBuilder.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolManagementClientBuilder.java
@@ -15,10 +15,10 @@
import java.time.Duration;
/**
- * A builder for creating a new instance of the StandbyPoolClientImpl type.
+ * A builder for creating a new instance of the StandbyPoolManagementClientImpl type.
*/
-@ServiceClientBuilder(serviceClients = { StandbyPoolClientImpl.class })
-public final class StandbyPoolClientBuilder {
+@ServiceClientBuilder(serviceClients = { StandbyPoolManagementClientImpl.class })
+public final class StandbyPoolManagementClientBuilder {
/*
* Service host
*/
@@ -28,9 +28,9 @@ public final class StandbyPoolClientBuilder {
* Sets Service host.
*
* @param endpoint the endpoint value.
- * @return the StandbyPoolClientBuilder.
+ * @return the StandbyPoolManagementClientBuilder.
*/
- public StandbyPoolClientBuilder endpoint(String endpoint) {
+ public StandbyPoolManagementClientBuilder endpoint(String endpoint) {
this.endpoint = endpoint;
return this;
}
@@ -44,9 +44,9 @@ public StandbyPoolClientBuilder endpoint(String endpoint) {
* Sets The ID of the target subscription. The value must be an UUID.
*
* @param subscriptionId the subscriptionId value.
- * @return the StandbyPoolClientBuilder.
+ * @return the StandbyPoolManagementClientBuilder.
*/
- public StandbyPoolClientBuilder subscriptionId(String subscriptionId) {
+ public StandbyPoolManagementClientBuilder subscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
@@ -60,9 +60,9 @@ public StandbyPoolClientBuilder subscriptionId(String subscriptionId) {
* Sets The environment to connect to.
*
* @param environment the environment value.
- * @return the StandbyPoolClientBuilder.
+ * @return the StandbyPoolManagementClientBuilder.
*/
- public StandbyPoolClientBuilder environment(AzureEnvironment environment) {
+ public StandbyPoolManagementClientBuilder environment(AzureEnvironment environment) {
this.environment = environment;
return this;
}
@@ -76,9 +76,9 @@ public StandbyPoolClientBuilder environment(AzureEnvironment environment) {
* Sets The HTTP pipeline to send requests through.
*
* @param pipeline the pipeline value.
- * @return the StandbyPoolClientBuilder.
+ * @return the StandbyPoolManagementClientBuilder.
*/
- public StandbyPoolClientBuilder pipeline(HttpPipeline pipeline) {
+ public StandbyPoolManagementClientBuilder pipeline(HttpPipeline pipeline) {
this.pipeline = pipeline;
return this;
}
@@ -92,9 +92,9 @@ public StandbyPoolClientBuilder pipeline(HttpPipeline pipeline) {
* Sets The default poll interval for long-running operation.
*
* @param defaultPollInterval the defaultPollInterval value.
- * @return the StandbyPoolClientBuilder.
+ * @return the StandbyPoolManagementClientBuilder.
*/
- public StandbyPoolClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ public StandbyPoolManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -108,19 +108,19 @@ public StandbyPoolClientBuilder defaultPollInterval(Duration defaultPollInterval
* Sets The serializer to serialize an object into a string.
*
* @param serializerAdapter the serializerAdapter value.
- * @return the StandbyPoolClientBuilder.
+ * @return the StandbyPoolManagementClientBuilder.
*/
- public StandbyPoolClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ public StandbyPoolManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
this.serializerAdapter = serializerAdapter;
return this;
}
/**
- * Builds an instance of StandbyPoolClientImpl with the provided parameters.
+ * Builds an instance of StandbyPoolManagementClientImpl with the provided parameters.
*
- * @return an instance of StandbyPoolClientImpl.
+ * @return an instance of StandbyPoolManagementClientImpl.
*/
- public StandbyPoolClientImpl buildClient() {
+ public StandbyPoolManagementClientImpl buildClient() {
String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
HttpPipeline localPipeline = (pipeline != null)
@@ -131,8 +131,8 @@ public StandbyPoolClientImpl buildClient() {
SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
- StandbyPoolClientImpl client = new StandbyPoolClientImpl(localPipeline, localSerializerAdapter,
- localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
+ StandbyPoolManagementClientImpl client = new StandbyPoolManagementClientImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
return client;
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolClientImpl.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolManagementClientImpl.java
similarity index 95%
rename from sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolClientImpl.java
rename to sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolManagementClientImpl.java
index 7fc3a0341e57..036010cf8b67 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolClientImpl.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyPoolManagementClientImpl.java
@@ -26,7 +26,7 @@
import com.azure.resourcemanager.standbypool.fluent.OperationsClient;
import com.azure.resourcemanager.standbypool.fluent.StandbyContainerGroupPoolRuntimeViewsClient;
import com.azure.resourcemanager.standbypool.fluent.StandbyContainerGroupPoolsClient;
-import com.azure.resourcemanager.standbypool.fluent.StandbyPoolClient;
+import com.azure.resourcemanager.standbypool.fluent.StandbyPoolManagementClient;
import com.azure.resourcemanager.standbypool.fluent.StandbyVirtualMachinePoolRuntimeViewsClient;
import com.azure.resourcemanager.standbypool.fluent.StandbyVirtualMachinePoolsClient;
import com.azure.resourcemanager.standbypool.fluent.StandbyVirtualMachinesClient;
@@ -40,10 +40,10 @@
import reactor.core.publisher.Mono;
/**
- * Initializes a new instance of the StandbyPoolClientImpl type.
+ * Initializes a new instance of the StandbyPoolManagementClientImpl type.
*/
-@ServiceClient(builder = StandbyPoolClientBuilder.class)
-public final class StandbyPoolClientImpl implements StandbyPoolClient {
+@ServiceClient(builder = StandbyPoolManagementClientBuilder.class)
+public final class StandbyPoolManagementClientImpl implements StandbyPoolManagementClient {
/**
* Service host.
*/
@@ -213,7 +213,7 @@ public StandbyContainerGroupPoolRuntimeViewsClient getStandbyContainerGroupPoolR
}
/**
- * Initializes an instance of StandbyPoolClient client.
+ * Initializes an instance of StandbyPoolManagementClient client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
@@ -222,14 +222,14 @@ public StandbyContainerGroupPoolRuntimeViewsClient getStandbyContainerGroupPoolR
* @param endpoint Service host.
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
*/
- StandbyPoolClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval,
- AzureEnvironment environment, String endpoint, String subscriptionId) {
+ StandbyPoolManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
this.endpoint = endpoint;
this.subscriptionId = subscriptionId;
- this.apiVersion = "2024-03-01";
+ this.apiVersion = "2025-03-01";
this.operations = new OperationsClientImpl(this);
this.standbyVirtualMachinePools = new StandbyVirtualMachinePoolsClientImpl(this);
this.standbyVirtualMachines = new StandbyVirtualMachinesClientImpl(this);
@@ -364,5 +364,5 @@ public Mono getBodyAsString(Charset charset) {
}
}
- private static final ClientLogger LOGGER = new ClientLogger(StandbyPoolClientImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(StandbyPoolManagementClientImpl.class);
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinePoolRuntimeViewsClientImpl.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinePoolRuntimeViewsClientImpl.java
index e2ca7156a079..4343e2e4aeef 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinePoolRuntimeViewsClientImpl.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinePoolRuntimeViewsClientImpl.java
@@ -44,25 +44,25 @@ public final class StandbyVirtualMachinePoolRuntimeViewsClientImpl
/**
* The service client containing this operation class.
*/
- private final StandbyPoolClientImpl client;
+ private final StandbyPoolManagementClientImpl client;
/**
* Initializes an instance of StandbyVirtualMachinePoolRuntimeViewsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- StandbyVirtualMachinePoolRuntimeViewsClientImpl(StandbyPoolClientImpl client) {
+ StandbyVirtualMachinePoolRuntimeViewsClientImpl(StandbyPoolManagementClientImpl client) {
this.service = RestProxy.create(StandbyVirtualMachinePoolRuntimeViewsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for StandbyPoolClientStandbyVirtualMachinePoolRuntimeViews to be used by
- * the proxy service to perform REST calls.
+ * The interface defining all the services for StandbyPoolManagementClientStandbyVirtualMachinePoolRuntimeViews to
+ * be used by the proxy service to perform REST calls.
*/
@Host("{endpoint}")
- @ServiceInterface(name = "StandbyPoolClientSta")
+ @ServiceInterface(name = "StandbyPoolManagemen")
public interface StandbyVirtualMachinePoolRuntimeViewsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews/{runtimeView}")
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinePoolsClientImpl.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinePoolsClientImpl.java
index d7da20d4f5c3..3e942160245d 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinePoolsClientImpl.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinePoolsClientImpl.java
@@ -52,25 +52,25 @@ public final class StandbyVirtualMachinePoolsClientImpl implements StandbyVirtua
/**
* The service client containing this operation class.
*/
- private final StandbyPoolClientImpl client;
+ private final StandbyPoolManagementClientImpl client;
/**
* Initializes an instance of StandbyVirtualMachinePoolsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- StandbyVirtualMachinePoolsClientImpl(StandbyPoolClientImpl client) {
+ StandbyVirtualMachinePoolsClientImpl(StandbyPoolManagementClientImpl client) {
this.service = RestProxy.create(StandbyVirtualMachinePoolsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for StandbyPoolClientStandbyVirtualMachinePools to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for StandbyPoolManagementClientStandbyVirtualMachinePools to be used by
+ * the proxy service to perform REST calls.
*/
@Host("{endpoint}")
- @ServiceInterface(name = "StandbyPoolClientSta")
+ @ServiceInterface(name = "StandbyPoolManagemen")
public interface StandbyVirtualMachinePoolsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}")
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinesClientImpl.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinesClientImpl.java
index 2cba0d7d86ca..63437030881d 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinesClientImpl.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/implementation/StandbyVirtualMachinesClientImpl.java
@@ -42,25 +42,25 @@ public final class StandbyVirtualMachinesClientImpl implements StandbyVirtualMac
/**
* The service client containing this operation class.
*/
- private final StandbyPoolClientImpl client;
+ private final StandbyPoolManagementClientImpl client;
/**
* Initializes an instance of StandbyVirtualMachinesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- StandbyVirtualMachinesClientImpl(StandbyPoolClientImpl client) {
+ StandbyVirtualMachinesClientImpl(StandbyPoolManagementClientImpl client) {
this.service = RestProxy.create(StandbyVirtualMachinesService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for StandbyPoolClientStandbyVirtualMachines to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for StandbyPoolManagementClientStandbyVirtualMachines to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{endpoint}")
- @ServiceInterface(name = "StandbyPoolClientSta")
+ @ServiceInterface(name = "StandbyPoolManagemen")
public interface StandbyVirtualMachinesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}")
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/ContainerGroupInstanceCountSummary.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/ContainerGroupInstanceCountSummary.java
index 25cd171b2093..ba57a269e609 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/ContainerGroupInstanceCountSummary.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/ContainerGroupInstanceCountSummary.java
@@ -19,9 +19,14 @@
@Immutable
public final class ContainerGroupInstanceCountSummary implements JsonSerializable {
/*
- * The count of pooled resources in each state.
+ * The zone that the provided counts are in. It will not have a value if zones are not enabled.
*/
- private List instanceCountsByState;
+ private Long zone;
+
+ /*
+ * The count of pooled container groups in each state for the given zone.
+ */
+ private List instanceCountsByState;
/**
* Creates an instance of ContainerGroupInstanceCountSummary class.
@@ -30,11 +35,21 @@ private ContainerGroupInstanceCountSummary() {
}
/**
- * Get the instanceCountsByState property: The count of pooled resources in each state.
+ * Get the zone property: The zone that the provided counts are in. It will not have a value if zones are not
+ * enabled.
+ *
+ * @return the zone value.
+ */
+ public Long zone() {
+ return this.zone;
+ }
+
+ /**
+ * Get the instanceCountsByState property: The count of pooled container groups in each state for the given zone.
*
* @return the instanceCountsByState value.
*/
- public List instanceCountsByState() {
+ public List instanceCountsByState() {
return this.instanceCountsByState;
}
@@ -63,6 +78,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeArrayField("instanceCountsByState", this.instanceCountsByState,
(writer, element) -> writer.writeJson(element));
+ jsonWriter.writeNumberField("zone", this.zone);
return jsonWriter.writeEndObject();
}
@@ -84,9 +100,11 @@ public static ContainerGroupInstanceCountSummary fromJson(JsonReader jsonReader)
reader.nextToken();
if ("instanceCountsByState".equals(fieldName)) {
- List instanceCountsByState
- = reader.readArray(reader1 -> PoolResourceStateCount.fromJson(reader1));
+ List instanceCountsByState
+ = reader.readArray(reader1 -> PoolContainerGroupStateCount.fromJson(reader1));
deserializedContainerGroupInstanceCountSummary.instanceCountsByState = instanceCountsByState;
+ } else if ("zone".equals(fieldName)) {
+ deserializedContainerGroupInstanceCountSummary.zone = reader.getNullable(JsonReader::getLong);
} else {
reader.skipChildren();
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/HealthStateCode.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/HealthStateCode.java
new file mode 100644
index 000000000000..3297cfc176d2
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/HealthStateCode.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.standbypool.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * StandbyPool health state.
+ */
+public final class HealthStateCode extends ExpandableStringEnum {
+ /**
+ * StandbyPool is in healthy state.
+ */
+ public static final HealthStateCode HEALTHY = fromString("HealthState/healthy");
+
+ /**
+ * StandbyPool is in degraded state.
+ */
+ public static final HealthStateCode DEGRADED = fromString("HealthState/degraded");
+
+ /**
+ * Creates a new instance of HealthStateCode value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public HealthStateCode() {
+ }
+
+ /**
+ * Creates or finds a HealthStateCode from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding HealthStateCode.
+ */
+ public static HealthStateCode fromString(String name) {
+ return fromString(name, HealthStateCode.class);
+ }
+
+ /**
+ * Gets known HealthStateCode values.
+ *
+ * @return known HealthStateCode values.
+ */
+ public static Collection values() {
+ return values(HealthStateCode.class);
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolContainerGroupState.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolContainerGroupState.java
new file mode 100644
index 000000000000..419b2e37ff7d
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolContainerGroupState.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The state of the pooled container groups.
+ */
+public final class PoolContainerGroupState extends ExpandableStringEnum {
+ /**
+ * The container group is up and running.
+ */
+ public static final PoolContainerGroupState RUNNING = fromString("Running");
+
+ /**
+ * The container group is creating.
+ */
+ public static final PoolContainerGroupState CREATING = fromString("Creating");
+
+ /**
+ * The container group is deleting.
+ */
+ public static final PoolContainerGroupState DELETING = fromString("Deleting");
+
+ /**
+ * Creates a new instance of PoolContainerGroupState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public PoolContainerGroupState() {
+ }
+
+ /**
+ * Creates or finds a PoolContainerGroupState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding PoolContainerGroupState.
+ */
+ public static PoolContainerGroupState fromString(String name) {
+ return fromString(name, PoolContainerGroupState.class);
+ }
+
+ /**
+ * Gets known PoolContainerGroupState values.
+ *
+ * @return known PoolContainerGroupState values.
+ */
+ public static Collection values() {
+ return values(PoolContainerGroupState.class);
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolResourceStateCount.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolContainerGroupStateCount.java
similarity index 53%
rename from sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolResourceStateCount.java
rename to sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolContainerGroupStateCount.java
index fe4616157f12..995fff8d9747 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolResourceStateCount.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolContainerGroupStateCount.java
@@ -13,37 +13,37 @@
import java.io.IOException;
/**
- * Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider.
+ * Displays the counts of pooled container groups in each state, as known by the StandbyPool resource provider.
*/
@Immutable
-public final class PoolResourceStateCount implements JsonSerializable {
+public final class PoolContainerGroupStateCount implements JsonSerializable {
/*
- * The state that the pooled resources count is for.
+ * The state that the pooled container groups count is for.
*/
- private String state;
+ private PoolContainerGroupState state;
/*
- * The count of pooled resources in the given state.
+ * The count of pooled container groups in the given state.
*/
private long count;
/**
- * Creates an instance of PoolResourceStateCount class.
+ * Creates an instance of PoolContainerGroupStateCount class.
*/
- private PoolResourceStateCount() {
+ private PoolContainerGroupStateCount() {
}
/**
- * Get the state property: The state that the pooled resources count is for.
+ * Get the state property: The state that the pooled container groups count is for.
*
* @return the state value.
*/
- public String state() {
+ public PoolContainerGroupState state() {
return this.state;
}
/**
- * Get the count property: The count of pooled resources in the given state.
+ * Get the count property: The count of pooled container groups in the given state.
*
* @return the count value.
*/
@@ -59,11 +59,12 @@ public long count() {
public void validate() {
if (state() == null) {
throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property state in model PoolResourceStateCount"));
+ .log(new IllegalArgumentException(
+ "Missing required property state in model PoolContainerGroupStateCount"));
}
}
- private static final ClientLogger LOGGER = new ClientLogger(PoolResourceStateCount.class);
+ private static final ClientLogger LOGGER = new ClientLogger(PoolContainerGroupStateCount.class);
/**
* {@inheritDoc}
@@ -71,37 +72,38 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("state", this.state);
+ jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
jsonWriter.writeLongField("count", this.count);
return jsonWriter.writeEndObject();
}
/**
- * Reads an instance of PoolResourceStateCount from the JsonReader.
+ * Reads an instance of PoolContainerGroupStateCount from the JsonReader.
*
* @param jsonReader The JsonReader being read.
- * @return An instance of PoolResourceStateCount if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
+ * @return An instance of PoolContainerGroupStateCount if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the PoolResourceStateCount.
+ * @throws IOException If an error occurs while reading the PoolContainerGroupStateCount.
*/
- public static PoolResourceStateCount fromJson(JsonReader jsonReader) throws IOException {
+ public static PoolContainerGroupStateCount fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
- PoolResourceStateCount deserializedPoolResourceStateCount = new PoolResourceStateCount();
+ PoolContainerGroupStateCount deserializedPoolContainerGroupStateCount = new PoolContainerGroupStateCount();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("state".equals(fieldName)) {
- deserializedPoolResourceStateCount.state = reader.getString();
+ deserializedPoolContainerGroupStateCount.state
+ = PoolContainerGroupState.fromString(reader.getString());
} else if ("count".equals(fieldName)) {
- deserializedPoolResourceStateCount.count = reader.getLong();
+ deserializedPoolContainerGroupStateCount.count = reader.getLong();
} else {
reader.skipChildren();
}
}
- return deserializedPoolResourceStateCount;
+ return deserializedPoolContainerGroupStateCount;
});
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolStatus.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolStatus.java
new file mode 100644
index 000000000000..ac1c8df7543f
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolStatus.java
@@ -0,0 +1,98 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Displays StandbyPool status.
+ */
+@Immutable
+public final class PoolStatus implements JsonSerializable {
+ /*
+ * Displays the healthy state of the StandbyPool.
+ */
+ private HealthStateCode code;
+
+ /*
+ * Displays the StandbyPool health state details.
+ */
+ private String message;
+
+ /**
+ * Creates an instance of PoolStatus class.
+ */
+ private PoolStatus() {
+ }
+
+ /**
+ * Get the code property: Displays the healthy state of the StandbyPool.
+ *
+ * @return the code value.
+ */
+ public HealthStateCode code() {
+ return this.code;
+ }
+
+ /**
+ * Get the message property: Displays the StandbyPool health state details.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PoolStatus from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PoolStatus if the JsonReader was pointing to an instance of it, or null if it was pointing
+ * to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the PoolStatus.
+ */
+ public static PoolStatus fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PoolStatus deserializedPoolStatus = new PoolStatus();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("code".equals(fieldName)) {
+ deserializedPoolStatus.code = HealthStateCode.fromString(reader.getString());
+ } else if ("message".equals(fieldName)) {
+ deserializedPoolStatus.message = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPoolStatus;
+ });
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolVirtualMachineState.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolVirtualMachineState.java
new file mode 100644
index 000000000000..77a21d41bbee
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolVirtualMachineState.java
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The state of the pooled virtual machines.
+ */
+public final class PoolVirtualMachineState extends ExpandableStringEnum {
+ /**
+ * The virtual machine is up and running.
+ */
+ public static final PoolVirtualMachineState RUNNING = fromString("Running");
+
+ /**
+ * The virtual machine is creating.
+ */
+ public static final PoolVirtualMachineState CREATING = fromString("Creating");
+
+ /**
+ * The virtual machine is starting.
+ */
+ public static final PoolVirtualMachineState STARTING = fromString("Starting");
+
+ /**
+ * The virtual machine is deleting.
+ */
+ public static final PoolVirtualMachineState DELETING = fromString("Deleting");
+
+ /**
+ * The virtual machine has released the lease on the underlying hardware and is powered off.
+ */
+ public static final PoolVirtualMachineState DEALLOCATED = fromString("Deallocated");
+
+ /**
+ * The virtual machine is releasing the lease on the underlying hardware and is powered off.
+ */
+ public static final PoolVirtualMachineState DEALLOCATING = fromString("Deallocating");
+
+ /**
+ * The virtual machine has released the lease on the underlying hardware and is powered off. Memory contents of the
+ * VM are stored in the OS disk. When started again, applications and processes that were previously running in your
+ * VM resume from the state prior to hibernation.
+ */
+ public static final PoolVirtualMachineState HIBERNATED = fromString("Hibernated");
+
+ /**
+ * The virtual machine is hibernating.
+ */
+ public static final PoolVirtualMachineState HIBERNATING = fromString("Hibernating");
+
+ /**
+ * Creates a new instance of PoolVirtualMachineState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public PoolVirtualMachineState() {
+ }
+
+ /**
+ * Creates or finds a PoolVirtualMachineState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding PoolVirtualMachineState.
+ */
+ public static PoolVirtualMachineState fromString(String name) {
+ return fromString(name, PoolVirtualMachineState.class);
+ }
+
+ /**
+ * Gets known PoolVirtualMachineState values.
+ *
+ * @return known PoolVirtualMachineState values.
+ */
+ public static Collection values() {
+ return values(PoolVirtualMachineState.class);
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolVirtualMachineStateCount.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolVirtualMachineStateCount.java
new file mode 100644
index 000000000000..6ffcfac205b3
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/PoolVirtualMachineStateCount.java
@@ -0,0 +1,109 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Displays the counts of pooled virtual machines in each state, as known by the StandbyPool resource provider.
+ */
+@Immutable
+public final class PoolVirtualMachineStateCount implements JsonSerializable {
+ /*
+ * The state that the pooled virtual machines count is for.
+ */
+ private PoolVirtualMachineState state;
+
+ /*
+ * The count of pooled virtual machines in the given state.
+ */
+ private long count;
+
+ /**
+ * Creates an instance of PoolVirtualMachineStateCount class.
+ */
+ private PoolVirtualMachineStateCount() {
+ }
+
+ /**
+ * Get the state property: The state that the pooled virtual machines count is for.
+ *
+ * @return the state value.
+ */
+ public PoolVirtualMachineState state() {
+ return this.state;
+ }
+
+ /**
+ * Get the count property: The count of pooled virtual machines in the given state.
+ *
+ * @return the count value.
+ */
+ public long count() {
+ return this.count;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (state() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property state in model PoolVirtualMachineStateCount"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PoolVirtualMachineStateCount.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
+ jsonWriter.writeLongField("count", this.count);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PoolVirtualMachineStateCount from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PoolVirtualMachineStateCount if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the PoolVirtualMachineStateCount.
+ */
+ public static PoolVirtualMachineStateCount fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PoolVirtualMachineStateCount deserializedPoolVirtualMachineStateCount = new PoolVirtualMachineStateCount();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("state".equals(fieldName)) {
+ deserializedPoolVirtualMachineStateCount.state
+ = PoolVirtualMachineState.fromString(reader.getString());
+ } else if ("count".equals(fieldName)) {
+ deserializedPoolVirtualMachineStateCount.count = reader.getLong();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPoolVirtualMachineStateCount;
+ });
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolForecastValues.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolForecastValues.java
new file mode 100644
index 000000000000..0cf3d02ef42a
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolForecastValues.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Displays the forecast information of the standby pool.
+ */
+@Immutable
+public final class StandbyContainerGroupPoolForecastValues
+ implements JsonSerializable {
+ /*
+ * Displays the predicted count of instances to be requested from the standby pool.
+ */
+ private List instancesRequestedCount;
+
+ /**
+ * Creates an instance of StandbyContainerGroupPoolForecastValues class.
+ */
+ private StandbyContainerGroupPoolForecastValues() {
+ }
+
+ /**
+ * Get the instancesRequestedCount property: Displays the predicted count of instances to be requested from the
+ * standby pool.
+ *
+ * @return the instancesRequestedCount value.
+ */
+ public List instancesRequestedCount() {
+ return this.instancesRequestedCount;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StandbyContainerGroupPoolForecastValues from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StandbyContainerGroupPoolForecastValues if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the StandbyContainerGroupPoolForecastValues.
+ */
+ public static StandbyContainerGroupPoolForecastValues fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StandbyContainerGroupPoolForecastValues deserializedStandbyContainerGroupPoolForecastValues
+ = new StandbyContainerGroupPoolForecastValues();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("instancesRequestedCount".equals(fieldName)) {
+ List instancesRequestedCount = reader.readArray(reader1 -> reader1.getLong());
+ deserializedStandbyContainerGroupPoolForecastValues.instancesRequestedCount
+ = instancesRequestedCount;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStandbyContainerGroupPoolForecastValues;
+ });
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolPrediction.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolPrediction.java
new file mode 100644
index 000000000000..3cf9d211c3bc
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolPrediction.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+
+/**
+ * Displays prediction information of the standby pool.
+ */
+@Immutable
+public final class StandbyContainerGroupPoolPrediction
+ implements JsonSerializable {
+ /*
+ * Displays the forecast information of the standby pool.
+ */
+ private StandbyContainerGroupPoolForecastValues forecastValues;
+
+ /*
+ * Displays the UTC timestamp of when the prediction was retrieved for the standby pool.
+ */
+ private OffsetDateTime forecastStartTime;
+
+ /*
+ * Displays additional information for the prediction of the standby pool.
+ */
+ private String forecastInfo;
+
+ /**
+ * Creates an instance of StandbyContainerGroupPoolPrediction class.
+ */
+ private StandbyContainerGroupPoolPrediction() {
+ }
+
+ /**
+ * Get the forecastValues property: Displays the forecast information of the standby pool.
+ *
+ * @return the forecastValues value.
+ */
+ public StandbyContainerGroupPoolForecastValues forecastValues() {
+ return this.forecastValues;
+ }
+
+ /**
+ * Get the forecastStartTime property: Displays the UTC timestamp of when the prediction was retrieved for the
+ * standby pool.
+ *
+ * @return the forecastStartTime value.
+ */
+ public OffsetDateTime forecastStartTime() {
+ return this.forecastStartTime;
+ }
+
+ /**
+ * Get the forecastInfo property: Displays additional information for the prediction of the standby pool.
+ *
+ * @return the forecastInfo value.
+ */
+ public String forecastInfo() {
+ return this.forecastInfo;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (forecastValues() != null) {
+ forecastValues().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StandbyContainerGroupPoolPrediction from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StandbyContainerGroupPoolPrediction if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the StandbyContainerGroupPoolPrediction.
+ */
+ public static StandbyContainerGroupPoolPrediction fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StandbyContainerGroupPoolPrediction deserializedStandbyContainerGroupPoolPrediction
+ = new StandbyContainerGroupPoolPrediction();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("forecastValues".equals(fieldName)) {
+ deserializedStandbyContainerGroupPoolPrediction.forecastValues
+ = StandbyContainerGroupPoolForecastValues.fromJson(reader);
+ } else if ("forecastStartTime".equals(fieldName)) {
+ deserializedStandbyContainerGroupPoolPrediction.forecastStartTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("forecastInfo".equals(fieldName)) {
+ deserializedStandbyContainerGroupPoolPrediction.forecastInfo = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStandbyContainerGroupPoolPrediction;
+ });
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolResourceProperties.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolResourceProperties.java
index 92a9a1f45517..ae0ecbe00498 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolResourceProperties.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolResourceProperties.java
@@ -11,6 +11,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
+import java.util.List;
/**
* Details of the StandbyContainerGroupPool.
@@ -28,6 +29,11 @@ public final class StandbyContainerGroupPoolResourceProperties
*/
private ContainerGroupProperties containerGroupProperties;
+ /*
+ * Specifies zones of standby container group pools.
+ */
+ private List zones;
+
/*
* The status of the last operation.
*/
@@ -81,6 +87,26 @@ public ContainerGroupProperties containerGroupProperties() {
return this;
}
+ /**
+ * Get the zones property: Specifies zones of standby container group pools.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: Specifies zones of standby container group pools.
+ *
+ * @param zones the zones value to set.
+ * @return the StandbyContainerGroupPoolResourceProperties object itself.
+ */
+ public StandbyContainerGroupPoolResourceProperties withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
/**
* Get the provisioningState property: The status of the last operation.
*
@@ -122,6 +148,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("elasticityProfile", this.elasticityProfile);
jsonWriter.writeJsonField("containerGroupProperties", this.containerGroupProperties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -148,6 +175,9 @@ public static StandbyContainerGroupPoolResourceProperties fromJson(JsonReader js
} else if ("containerGroupProperties".equals(fieldName)) {
deserializedStandbyContainerGroupPoolResourceProperties.containerGroupProperties
= ContainerGroupProperties.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedStandbyContainerGroupPoolResourceProperties.zones = zones;
} else if ("provisioningState".equals(fieldName)) {
deserializedStandbyContainerGroupPoolResourceProperties.provisioningState
= ProvisioningState.fromString(reader.getString());
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolResourceUpdateProperties.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolResourceUpdateProperties.java
index a493b581379d..4a190943bab5 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolResourceUpdateProperties.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolResourceUpdateProperties.java
@@ -10,6 +10,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
+import java.util.List;
/**
* The updatable properties of the StandbyContainerGroupPoolResource.
@@ -27,6 +28,11 @@ public final class StandbyContainerGroupPoolResourceUpdateProperties
*/
private ContainerGroupProperties containerGroupProperties;
+ /*
+ * Specifies zones of standby container group pools.
+ */
+ private List zones;
+
/**
* Creates an instance of StandbyContainerGroupPoolResourceUpdateProperties class.
*/
@@ -75,6 +81,26 @@ public ContainerGroupProperties containerGroupProperties() {
return this;
}
+ /**
+ * Get the zones property: Specifies zones of standby container group pools.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: Specifies zones of standby container group pools.
+ *
+ * @param zones the zones value to set.
+ * @return the StandbyContainerGroupPoolResourceUpdateProperties object itself.
+ */
+ public StandbyContainerGroupPoolResourceUpdateProperties withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -97,6 +123,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("elasticityProfile", this.elasticityProfile);
jsonWriter.writeJsonField("containerGroupProperties", this.containerGroupProperties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -122,6 +149,9 @@ public static StandbyContainerGroupPoolResourceUpdateProperties fromJson(JsonRea
} else if ("containerGroupProperties".equals(fieldName)) {
deserializedStandbyContainerGroupPoolResourceUpdateProperties.containerGroupProperties
= ContainerGroupProperties.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedStandbyContainerGroupPoolResourceUpdateProperties.zones = zones;
} else {
reader.skipChildren();
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolRuntimeViewResourceProperties.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolRuntimeViewResourceProperties.java
index f7c73abadff3..234309361004 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolRuntimeViewResourceProperties.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyContainerGroupPoolRuntimeViewResourceProperties.java
@@ -24,11 +24,21 @@ public final class StandbyContainerGroupPoolRuntimeViewResourceProperties
*/
private List instanceCountSummary;
+ /*
+ * Display status of the standby pool
+ */
+ private PoolStatus status;
+
/*
* Displays the provisioning state of the standby pool
*/
private ProvisioningState provisioningState;
+ /*
+ * Displays prediction information of the standby pool
+ */
+ private StandbyContainerGroupPoolPrediction prediction;
+
/**
* Creates an instance of StandbyContainerGroupPoolRuntimeViewResourceProperties class.
*/
@@ -45,6 +55,15 @@ public List instanceCountSummary() {
return this.instanceCountSummary;
}
+ /**
+ * Get the status property: Display status of the standby pool.
+ *
+ * @return the status value.
+ */
+ public PoolStatus status() {
+ return this.status;
+ }
+
/**
* Get the provisioningState property: Displays the provisioning state of the standby pool.
*
@@ -54,6 +73,15 @@ public ProvisioningState provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the prediction property: Displays prediction information of the standby pool.
+ *
+ * @return the prediction value.
+ */
+ public StandbyContainerGroupPoolPrediction prediction() {
+ return this.prediction;
+ }
+
/**
* Validates the instance.
*
@@ -63,6 +91,12 @@ public void validate() {
if (instanceCountSummary() != null) {
instanceCountSummary().forEach(e -> e.validate());
}
+ if (status() != null) {
+ status().validate();
+ }
+ if (prediction() != null) {
+ prediction().validate();
+ }
}
/**
@@ -97,9 +131,15 @@ public static StandbyContainerGroupPoolRuntimeViewResourceProperties fromJson(Js
= reader.readArray(reader1 -> ContainerGroupInstanceCountSummary.fromJson(reader1));
deserializedStandbyContainerGroupPoolRuntimeViewResourceProperties.instanceCountSummary
= instanceCountSummary;
+ } else if ("status".equals(fieldName)) {
+ deserializedStandbyContainerGroupPoolRuntimeViewResourceProperties.status
+ = PoolStatus.fromJson(reader);
} else if ("provisioningState".equals(fieldName)) {
deserializedStandbyContainerGroupPoolRuntimeViewResourceProperties.provisioningState
= ProvisioningState.fromString(reader.getString());
+ } else if ("prediction".equals(fieldName)) {
+ deserializedStandbyContainerGroupPoolRuntimeViewResourceProperties.prediction
+ = StandbyContainerGroupPoolPrediction.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolForecastValues.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolForecastValues.java
new file mode 100644
index 000000000000..eaeb5075ca50
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolForecastValues.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Displays the forecast information of the standby pool.
+ */
+@Immutable
+public final class StandbyVirtualMachinePoolForecastValues
+ implements JsonSerializable {
+ /*
+ * Displays the predicted count of instances to be requested from the standby pool.
+ */
+ private List instancesRequestedCount;
+
+ /**
+ * Creates an instance of StandbyVirtualMachinePoolForecastValues class.
+ */
+ private StandbyVirtualMachinePoolForecastValues() {
+ }
+
+ /**
+ * Get the instancesRequestedCount property: Displays the predicted count of instances to be requested from the
+ * standby pool.
+ *
+ * @return the instancesRequestedCount value.
+ */
+ public List instancesRequestedCount() {
+ return this.instancesRequestedCount;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StandbyVirtualMachinePoolForecastValues from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StandbyVirtualMachinePoolForecastValues if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the StandbyVirtualMachinePoolForecastValues.
+ */
+ public static StandbyVirtualMachinePoolForecastValues fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StandbyVirtualMachinePoolForecastValues deserializedStandbyVirtualMachinePoolForecastValues
+ = new StandbyVirtualMachinePoolForecastValues();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("instancesRequestedCount".equals(fieldName)) {
+ List instancesRequestedCount = reader.readArray(reader1 -> reader1.getLong());
+ deserializedStandbyVirtualMachinePoolForecastValues.instancesRequestedCount
+ = instancesRequestedCount;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStandbyVirtualMachinePoolForecastValues;
+ });
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolPrediction.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolPrediction.java
new file mode 100644
index 000000000000..5a29065b0e94
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolPrediction.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+
+/**
+ * Displays prediction information of the standby pool.
+ */
+@Immutable
+public final class StandbyVirtualMachinePoolPrediction
+ implements JsonSerializable {
+ /*
+ * Displays the forecast information of the standby pool.
+ */
+ private StandbyVirtualMachinePoolForecastValues forecastValues;
+
+ /*
+ * Displays the UTC timestamp of when the prediction was retrieved for the standby pool.
+ */
+ private OffsetDateTime forecastStartTime;
+
+ /*
+ * Displays additional information for the prediction of the standby pool.
+ */
+ private String forecastInfo;
+
+ /**
+ * Creates an instance of StandbyVirtualMachinePoolPrediction class.
+ */
+ private StandbyVirtualMachinePoolPrediction() {
+ }
+
+ /**
+ * Get the forecastValues property: Displays the forecast information of the standby pool.
+ *
+ * @return the forecastValues value.
+ */
+ public StandbyVirtualMachinePoolForecastValues forecastValues() {
+ return this.forecastValues;
+ }
+
+ /**
+ * Get the forecastStartTime property: Displays the UTC timestamp of when the prediction was retrieved for the
+ * standby pool.
+ *
+ * @return the forecastStartTime value.
+ */
+ public OffsetDateTime forecastStartTime() {
+ return this.forecastStartTime;
+ }
+
+ /**
+ * Get the forecastInfo property: Displays additional information for the prediction of the standby pool.
+ *
+ * @return the forecastInfo value.
+ */
+ public String forecastInfo() {
+ return this.forecastInfo;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (forecastValues() != null) {
+ forecastValues().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StandbyVirtualMachinePoolPrediction from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StandbyVirtualMachinePoolPrediction if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the StandbyVirtualMachinePoolPrediction.
+ */
+ public static StandbyVirtualMachinePoolPrediction fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StandbyVirtualMachinePoolPrediction deserializedStandbyVirtualMachinePoolPrediction
+ = new StandbyVirtualMachinePoolPrediction();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("forecastValues".equals(fieldName)) {
+ deserializedStandbyVirtualMachinePoolPrediction.forecastValues
+ = StandbyVirtualMachinePoolForecastValues.fromJson(reader);
+ } else if ("forecastStartTime".equals(fieldName)) {
+ deserializedStandbyVirtualMachinePoolPrediction.forecastStartTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("forecastInfo".equals(fieldName)) {
+ deserializedStandbyVirtualMachinePoolPrediction.forecastInfo = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStandbyVirtualMachinePoolPrediction;
+ });
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.java
index 60a9d193b84e..5557fe6aa7ac 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/StandbyVirtualMachinePoolRuntimeViewResourceProperties.java
@@ -20,19 +20,27 @@ public final class StandbyVirtualMachinePoolRuntimeViewResourceProperties
implements JsonSerializable {
/*
* A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known
- * by the StandbyPool resource provider.
- * If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
- * Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected
- * here.
- * Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ * by the StandbyPool resource provider. If zones are not enabled on the attached VMSS, the list will contain a
+ * single entry without zone values. Note: any resources in the Running state may still be installing extensions /
+ * not fully provisioned.
*/
private List instanceCountSummary;
+ /*
+ * Display status of the standby pool
+ */
+ private PoolStatus status;
+
/*
* Displays the provisioning state of the standby pool
*/
private ProvisioningState provisioningState;
+ /*
+ * Displays prediction information of the standby pool
+ */
+ private StandbyVirtualMachinePoolPrediction prediction;
+
/**
* Creates an instance of StandbyVirtualMachinePoolRuntimeViewResourceProperties class.
*/
@@ -41,11 +49,9 @@ private StandbyVirtualMachinePoolRuntimeViewResourceProperties() {
/**
* Get the instanceCountSummary property: A list containing the counts of virtual machines in each possible power
- * state for each zone if enabled, as known by the StandbyPool resource provider.
- * If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.
- * Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected
- * here.
- * Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ * state for each zone if enabled, as known by the StandbyPool resource provider. If zones are not enabled on the
+ * attached VMSS, the list will contain a single entry without zone values. Note: any resources in the Running state
+ * may still be installing extensions / not fully provisioned.
*
* @return the instanceCountSummary value.
*/
@@ -53,6 +59,15 @@ public List instanceCountSummary() {
return this.instanceCountSummary;
}
+ /**
+ * Get the status property: Display status of the standby pool.
+ *
+ * @return the status value.
+ */
+ public PoolStatus status() {
+ return this.status;
+ }
+
/**
* Get the provisioningState property: Displays the provisioning state of the standby pool.
*
@@ -62,6 +77,15 @@ public ProvisioningState provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the prediction property: Displays prediction information of the standby pool.
+ *
+ * @return the prediction value.
+ */
+ public StandbyVirtualMachinePoolPrediction prediction() {
+ return this.prediction;
+ }
+
/**
* Validates the instance.
*
@@ -71,6 +95,12 @@ public void validate() {
if (instanceCountSummary() != null) {
instanceCountSummary().forEach(e -> e.validate());
}
+ if (status() != null) {
+ status().validate();
+ }
+ if (prediction() != null) {
+ prediction().validate();
+ }
}
/**
@@ -105,9 +135,15 @@ public static StandbyVirtualMachinePoolRuntimeViewResourceProperties fromJson(Js
= reader.readArray(reader1 -> VirtualMachineInstanceCountSummary.fromJson(reader1));
deserializedStandbyVirtualMachinePoolRuntimeViewResourceProperties.instanceCountSummary
= instanceCountSummary;
+ } else if ("status".equals(fieldName)) {
+ deserializedStandbyVirtualMachinePoolRuntimeViewResourceProperties.status
+ = PoolStatus.fromJson(reader);
} else if ("provisioningState".equals(fieldName)) {
deserializedStandbyVirtualMachinePoolRuntimeViewResourceProperties.provisioningState
= ProvisioningState.fromString(reader.getString());
+ } else if ("prediction".equals(fieldName)) {
+ deserializedStandbyVirtualMachinePoolRuntimeViewResourceProperties.prediction
+ = StandbyVirtualMachinePoolPrediction.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/VirtualMachineInstanceCountSummary.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/VirtualMachineInstanceCountSummary.java
index eb0511302d67..a9fc2730ca09 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/VirtualMachineInstanceCountSummary.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/VirtualMachineInstanceCountSummary.java
@@ -15,22 +15,19 @@
/**
* Contains the counts of VMs in each power state in a given zone, fault domain, as known by the StandbyPool resource
- * provider.
- * Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected
- * here.
- * Note: any resources in the Running state may still be installing extensions / not fully provisioned.
+ * provider. Note: any resources in the Running state may still be installing extensions / not fully provisioned.
*/
@Immutable
public final class VirtualMachineInstanceCountSummary implements JsonSerializable {
/*
- * The zone that the provided counts are in. This is null if zones are not enabled on the attached VMSS.
+ * The zone that the provided counts are in. It will not have a value if zones are not enabled on the attached VMSS.
*/
private Long zone;
/*
- * The count of pooled resources in each state for the given zone.
+ * The count of pooled virtual machines in each state for the given zone.
*/
- private List instanceCountsByState;
+ private List instanceCountsByState;
/**
* Creates an instance of VirtualMachineInstanceCountSummary class.
@@ -39,8 +36,8 @@ private VirtualMachineInstanceCountSummary() {
}
/**
- * Get the zone property: The zone that the provided counts are in. This is null if zones are not enabled on the
- * attached VMSS.
+ * Get the zone property: The zone that the provided counts are in. It will not have a value if zones are not
+ * enabled on the attached VMSS.
*
* @return the zone value.
*/
@@ -49,11 +46,11 @@ public Long zone() {
}
/**
- * Get the instanceCountsByState property: The count of pooled resources in each state for the given zone.
+ * Get the instanceCountsByState property: The count of pooled virtual machines in each state for the given zone.
*
* @return the instanceCountsByState value.
*/
- public List instanceCountsByState() {
+ public List instanceCountsByState() {
return this.instanceCountsByState;
}
@@ -104,8 +101,8 @@ public static VirtualMachineInstanceCountSummary fromJson(JsonReader jsonReader)
reader.nextToken();
if ("instanceCountsByState".equals(fieldName)) {
- List instanceCountsByState
- = reader.readArray(reader1 -> PoolResourceStateCount.fromJson(reader1));
+ List instanceCountsByState
+ = reader.readArray(reader1 -> PoolVirtualMachineStateCount.fromJson(reader1));
deserializedVirtualMachineInstanceCountSummary.instanceCountsByState = instanceCountsByState;
} else if ("zone".equals(fieldName)) {
deserializedVirtualMachineInstanceCountSummary.zone = reader.getNullable(JsonReader::getLong);
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/VirtualMachineState.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/VirtualMachineState.java
index 8ca3a732ddf1..314a1363b34b 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/VirtualMachineState.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/main/java/com/azure/resourcemanager/standbypool/models/VirtualMachineState.java
@@ -21,6 +21,13 @@ public final class VirtualMachineState extends ExpandableStringEnum Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
- Assertions.assertEquals(ActionType.INTERNAL, response.iterator().next().actionType());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/PoolContainerGroupStateCountTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/PoolContainerGroupStateCountTests.java
new file mode 100644
index 000000000000..d32daab53f5d
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/PoolContainerGroupStateCountTests.java
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.standbypool.models.PoolContainerGroupState;
+import com.azure.resourcemanager.standbypool.models.PoolContainerGroupStateCount;
+import org.junit.jupiter.api.Assertions;
+
+public final class PoolContainerGroupStateCountTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ PoolContainerGroupStateCount model
+ = BinaryData.fromString("{\"state\":\"Running\",\"count\":771419692703034268}")
+ .toObject(PoolContainerGroupStateCount.class);
+ Assertions.assertEquals(PoolContainerGroupState.RUNNING, model.state());
+ Assertions.assertEquals(771419692703034268L, model.count());
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/PoolResourceStateCountTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/PoolResourceStateCountTests.java
deleted file mode 100644
index 91e0ca46b9cd..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/PoolResourceStateCountTests.java
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.standbypool.models.PoolResourceStateCount;
-import org.junit.jupiter.api.Assertions;
-
-public final class PoolResourceStateCountTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PoolResourceStateCount model = BinaryData.fromString("{\"state\":\"wzwbnguitn\",\"count\":4695405863379842225}")
- .toObject(PoolResourceStateCount.class);
- Assertions.assertEquals("wzwbnguitn", model.state());
- Assertions.assertEquals(4695405863379842225L, model.count());
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/PoolVirtualMachineStateCountTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/PoolVirtualMachineStateCountTests.java
new file mode 100644
index 000000000000..4e82d3c5ff71
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/PoolVirtualMachineStateCountTests.java
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.standbypool.models.PoolVirtualMachineState;
+import com.azure.resourcemanager.standbypool.models.PoolVirtualMachineStateCount;
+import org.junit.jupiter.api.Assertions;
+
+public final class PoolVirtualMachineStateCountTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ PoolVirtualMachineStateCount model
+ = BinaryData.fromString("{\"state\":\"Deallocating\",\"count\":3125900770889764845}")
+ .toObject(PoolVirtualMachineStateCount.class);
+ Assertions.assertEquals(PoolVirtualMachineState.DEALLOCATING, model.state());
+ Assertions.assertEquals(3125900770889764845L, model.count());
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolElasticityProfileTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolElasticityProfileTests.java
index 2ae6fabbb00f..997dcc4efe42 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolElasticityProfileTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolElasticityProfileTests.java
@@ -13,19 +13,19 @@ public final class StandbyContainerGroupPoolElasticityProfileTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StandbyContainerGroupPoolElasticityProfile model
- = BinaryData.fromString("{\"maxReadyCapacity\":7557755322277139478,\"refillPolicy\":\"always\"}")
+ = BinaryData.fromString("{\"maxReadyCapacity\":6796715427973993525,\"refillPolicy\":\"always\"}")
.toObject(StandbyContainerGroupPoolElasticityProfile.class);
- Assertions.assertEquals(7557755322277139478L, model.maxReadyCapacity());
+ Assertions.assertEquals(6796715427973993525L, model.maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.refillPolicy());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
StandbyContainerGroupPoolElasticityProfile model
- = new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(7557755322277139478L)
+ = new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(6796715427973993525L)
.withRefillPolicy(RefillPolicy.ALWAYS);
model = BinaryData.fromObject(model).toObject(StandbyContainerGroupPoolElasticityProfile.class);
- Assertions.assertEquals(7557755322277139478L, model.maxReadyCapacity());
+ Assertions.assertEquals(6796715427973993525L, model.maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.refillPolicy());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolForecastValuesTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolForecastValuesTests.java
new file mode 100644
index 000000000000..6723d9ffa3f9
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolForecastValuesTests.java
@@ -0,0 +1,17 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.standbypool.models.StandbyContainerGroupPoolForecastValues;
+
+public final class StandbyContainerGroupPoolForecastValuesTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ StandbyContainerGroupPoolForecastValues model = BinaryData.fromString(
+ "{\"instancesRequestedCount\":[5341414855683409251,2512324147575417357,2937936941611488852,265760237696237793]}")
+ .toObject(StandbyContainerGroupPoolForecastValues.class);
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolPredictionTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolPredictionTests.java
new file mode 100644
index 000000000000..1d3d7c7522b0
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolPredictionTests.java
@@ -0,0 +1,17 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.standbypool.models.StandbyContainerGroupPoolPrediction;
+
+public final class StandbyContainerGroupPoolPredictionTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ StandbyContainerGroupPoolPrediction model = BinaryData.fromString(
+ "{\"forecastValues\":{\"instancesRequestedCount\":[35704982359174836,23708408550027881,3884440405716336055]},\"forecastStartTime\":\"2021-04-17T02:43:52Z\",\"forecastInfo\":\"eupfhyhltrpm\"}")
+ .toObject(StandbyContainerGroupPoolPrediction.class);
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceInnerTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceInnerTests.java
index 2b974869460b..160b712f184d 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceInnerTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceInnerTests.java
@@ -21,42 +21,46 @@ public final class StandbyContainerGroupPoolResourceInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StandbyContainerGroupPoolResourceInner model = BinaryData.fromString(
- "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":4465069614160015486,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"fufsrpymzi\",\"revision\":7831704875002032893},\"subnetIds\":[{\"id\":\"xtbzsgfyccsne\"},{\"id\":\"mdwzjeiachboo\"}]},\"provisioningState\":\"Failed\"},\"location\":\"ro\",\"tags\":{\"pyqr\":\"pteehzzv\",\"rsoodqxhcrmnoh\":\"mzinpvswjdk\"},\"id\":\"t\",\"name\":\"kwh\",\"type\":\"soifiyipjxsqw\"}")
+ "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":5126172098614729653,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"keqsrxybzqqedq\",\"revision\":2124589833110260151},\"subnetIds\":[{\"id\":\"fouflmmnkzsmo\"}]},\"zones\":[\"lougpbkw\",\"mutduqktaps\"],\"provisioningState\":\"Succeeded\"},\"location\":\"uertumk\",\"tags\":{\"gmbmbexppbh\":\"vqwhbmdgbbjfd\",\"rolfpfp\":\"q\",\"jaoyfhrtx\":\"algbquxigjyjg\",\"fqawrlyxw\":\"lnerkujysvleju\"},\"id\":\"kcprbnw\",\"name\":\"xgjvtbv\",\"type\":\"ysszdnrujqguh\"}")
.toObject(StandbyContainerGroupPoolResourceInner.class);
- Assertions.assertEquals("ro", model.location());
- Assertions.assertEquals("pteehzzv", model.tags().get("pyqr"));
- Assertions.assertEquals(4465069614160015486L, model.properties().elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals("uertumk", model.location());
+ Assertions.assertEquals("vqwhbmdgbbjfd", model.tags().get("gmbmbexppbh"));
+ Assertions.assertEquals(5126172098614729653L, model.properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.properties().elasticityProfile().refillPolicy());
- Assertions.assertEquals("fufsrpymzi",
+ Assertions.assertEquals("keqsrxybzqqedq",
model.properties().containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(7831704875002032893L,
+ Assertions.assertEquals(2124589833110260151L,
model.properties().containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("xtbzsgfyccsne", model.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("fouflmmnkzsmo", model.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("lougpbkw", model.properties().zones().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- StandbyContainerGroupPoolResourceInner model = new StandbyContainerGroupPoolResourceInner().withLocation("ro")
- .withTags(mapOf("pyqr", "pteehzzv", "rsoodqxhcrmnoh", "mzinpvswjdk"))
- .withProperties(new StandbyContainerGroupPoolResourceProperties()
- .withElasticityProfile(
- new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(4465069614160015486L)
- .withRefillPolicy(RefillPolicy.ALWAYS))
- .withContainerGroupProperties(new ContainerGroupProperties()
- .withContainerGroupProfile(
- new ContainerGroupProfile().withId("fufsrpymzi").withRevision(7831704875002032893L))
- .withSubnetIds(
- Arrays.asList(new Subnet().withId("xtbzsgfyccsne"), new Subnet().withId("mdwzjeiachboo")))));
+ StandbyContainerGroupPoolResourceInner model
+ = new StandbyContainerGroupPoolResourceInner().withLocation("uertumk")
+ .withTags(mapOf("gmbmbexppbh", "vqwhbmdgbbjfd", "rolfpfp", "q", "jaoyfhrtx", "algbquxigjyjg",
+ "fqawrlyxw", "lnerkujysvleju"))
+ .withProperties(new StandbyContainerGroupPoolResourceProperties()
+ .withElasticityProfile(
+ new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(5126172098614729653L)
+ .withRefillPolicy(RefillPolicy.ALWAYS))
+ .withContainerGroupProperties(new ContainerGroupProperties()
+ .withContainerGroupProfile(
+ new ContainerGroupProfile().withId("keqsrxybzqqedq").withRevision(2124589833110260151L))
+ .withSubnetIds(Arrays.asList(new Subnet().withId("fouflmmnkzsmo"))))
+ .withZones(Arrays.asList("lougpbkw", "mutduqktaps")));
model = BinaryData.fromObject(model).toObject(StandbyContainerGroupPoolResourceInner.class);
- Assertions.assertEquals("ro", model.location());
- Assertions.assertEquals("pteehzzv", model.tags().get("pyqr"));
- Assertions.assertEquals(4465069614160015486L, model.properties().elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals("uertumk", model.location());
+ Assertions.assertEquals("vqwhbmdgbbjfd", model.tags().get("gmbmbexppbh"));
+ Assertions.assertEquals(5126172098614729653L, model.properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.properties().elasticityProfile().refillPolicy());
- Assertions.assertEquals("fufsrpymzi",
+ Assertions.assertEquals("keqsrxybzqqedq",
model.properties().containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(7831704875002032893L,
+ Assertions.assertEquals(2124589833110260151L,
model.properties().containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("xtbzsgfyccsne", model.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("fouflmmnkzsmo", model.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("lougpbkw", model.properties().zones().get(0));
}
// Use "Map.of" if available
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceListResultTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceListResultTests.java
index af118904b29f..c125ae1ce1d7 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceListResultTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceListResultTests.java
@@ -13,20 +13,21 @@ public final class StandbyContainerGroupPoolResourceListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StandbyContainerGroupPoolResourceListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":5338722468788766014,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"mjthjqkwp\",\"revision\":3955309032354146781},\"subnetIds\":[{\"id\":\"qciwqvhkhixuigdt\"}]},\"provisioningState\":\"Succeeded\"},\"location\":\"bjoghmewuamau\",\"tags\":{\"iotkftutqxl\":\"ayvvtpgvdf\"},\"id\":\"gxlefgugnxkrxd\",\"name\":\"mi\",\"type\":\"tthzrvqd\"},{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":2372151122903847534,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"big\",\"revision\":3536360929027288400},\"subnetIds\":[{\"id\":\"owskanyktz\"},{\"id\":\"cuiywgqyw\"}]},\"provisioningState\":\"Failed\"},\"location\":\"vynhzgpphrcg\",\"tags\":{\"fsxlzevgbmqjqa\":\"ocpecfvmmco\",\"pmivkwlzu\":\"c\",\"ebxetqgtzxdp\":\"ccfwnfnbacfion\",\"feallnwsu\":\"qbqqwxr\"},\"id\":\"isnjampmngnz\",\"name\":\"c\",\"type\":\"aqw\"},{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":8694303623294898689,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"onq\",\"revision\":7819503026723811597},\"subnetIds\":[{\"id\":\"xnj\"},{\"id\":\"ase\"},{\"id\":\"pheoflokeyy\"},{\"id\":\"enjbdlwtgrhp\"}]},\"provisioningState\":\"Succeeded\"},\"location\":\"umasxazjpq\",\"tags\":{\"zvdudgwdslfhotwm\":\"ualhbxxhejj\"},\"id\":\"ynpwlbj\",\"name\":\"pgacftadehxnlty\",\"type\":\"sop\"},{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":7526436990032126640,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"nzwdejba\",\"revision\":8576241637170958939},\"subnetIds\":[{\"id\":\"mohctb\"}]},\"provisioningState\":\"Deleting\"},\"location\":\"wxdndnvowgujjug\",\"tags\":{\"ixhbkuofqweykhm\":\"cglhslazjdyggdt\",\"vfyexfw\":\"n\",\"nnaamdectehfiqsc\":\"ybcibvyvdcsit\"},\"id\":\"eypvhezrkg\",\"name\":\"hcjrefovgmk\",\"type\":\"sle\"}],\"nextLink\":\"vxyqjpkcattpngjc\"}")
+ "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":7557755322277139478,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"l\",\"revision\":620396584491866948},\"subnetIds\":[{\"id\":\"rlkhbzhfepgzgq\"},{\"id\":\"xzlocxscp\"},{\"id\":\"ierhhbcsglummaj\"}]},\"zones\":[\"odxobnbdxkqpxok\",\"jionpimexgstxgc\"],\"provisioningState\":\"Succeeded\"},\"location\":\"maajrmvdjwzrlo\",\"tags\":{\"qsycbkbfkgu\":\"lwhijcoejctbzaq\",\"axcfjpgddtocjjx\":\"dkexxppofm\",\"eojnxqbzvddn\":\"vpmouexhdzxib\",\"aoqvuh\":\"wndeicbtwnp\"},\"id\":\"hcffcyddglmjthjq\",\"name\":\"wpyeicxmqciwqvh\",\"type\":\"hix\"},{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":4083184887004469884,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"pbobjo\",\"revision\":44240254811320065},\"subnetIds\":[{\"id\":\"a\"}]},\"zones\":[\"hrzayvvtpgvdf\",\"iotkftutqxl\",\"gxlefgugnxkrxd\"],\"provisioningState\":\"Succeeded\"},\"location\":\"tthzrvqd\",\"tags\":{\"skanyk\":\"hjybigehoqfbo\"},\"id\":\"zlcuiywgqywgndrv\",\"name\":\"nhzgpphrcgyn\",\"type\":\"ocpecfvmmco\"},{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":3154425840860812324,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"evgbmqjq\",\"revision\":403687781519599145},\"subnetIds\":[{\"id\":\"ivkwlzuvccfwnfnb\"},{\"id\":\"cfionl\"},{\"id\":\"bxetqgtzxdpn\"}]},\"zones\":[\"qwxrjfeallnw\"],\"provisioningState\":\"Failed\"},\"location\":\"snjampmng\",\"tags\":{\"aqw\":\"c\",\"xnj\":\"ochcbonqvpkvl\"},\"id\":\"ase\",\"name\":\"pheoflokeyy\",\"type\":\"enjbdlwtgrhp\"},{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":2017008461416192410,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"asxazjpqyegualhb\",\"revision\":4998269354671391171},\"subnetIds\":[{\"id\":\"zzvdudgwds\"},{\"id\":\"fhotw\"}]},\"zones\":[\"npwlbjnpg\",\"cftadeh\"],\"provisioningState\":\"Failed\"},\"location\":\"yfsoppu\",\"tags\":{\"jbavorxzdm\":\"snzwd\",\"nvowgujju\":\"hctbqvudwxdn\"},\"id\":\"wdkcglhsl\",\"name\":\"zj\",\"type\":\"yggdtjixh\"}],\"nextLink\":\"uofqwe\"}")
.toObject(StandbyContainerGroupPoolResourceListResult.class);
- Assertions.assertEquals("bjoghmewuamau", model.value().get(0).location());
- Assertions.assertEquals("ayvvtpgvdf", model.value().get(0).tags().get("iotkftutqxl"));
- Assertions.assertEquals(5338722468788766014L,
+ Assertions.assertEquals("maajrmvdjwzrlo", model.value().get(0).location());
+ Assertions.assertEquals("lwhijcoejctbzaq", model.value().get(0).tags().get("qsycbkbfkgu"));
+ Assertions.assertEquals(7557755322277139478L,
model.value().get(0).properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS,
model.value().get(0).properties().elasticityProfile().refillPolicy());
- Assertions.assertEquals("mjthjqkwp",
+ Assertions.assertEquals("l",
model.value().get(0).properties().containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(3955309032354146781L,
+ Assertions.assertEquals(620396584491866948L,
model.value().get(0).properties().containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("qciwqvhkhixuigdt",
+ Assertions.assertEquals("rlkhbzhfepgzgq",
model.value().get(0).properties().containerGroupProperties().subnetIds().get(0).id());
- Assertions.assertEquals("vxyqjpkcattpngjc", model.nextLink());
+ Assertions.assertEquals("odxobnbdxkqpxok", model.value().get(0).properties().zones().get(0));
+ Assertions.assertEquals("uofqwe", model.nextLink());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourcePropertiesTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourcePropertiesTests.java
index 45ab3169a599..ee3b79d73721 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourcePropertiesTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourcePropertiesTests.java
@@ -18,34 +18,35 @@ public final class StandbyContainerGroupPoolResourcePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StandbyContainerGroupPoolResourceProperties model = BinaryData.fromString(
- "{\"elasticityProfile\":{\"maxReadyCapacity\":1314224972042297481,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"znorcj\",\"revision\":3202297530026478124},\"subnetIds\":[{\"id\":\"xqabnmocpcysh\"},{\"id\":\"rzafbljjgpbtoqcj\"},{\"id\":\"klj\"},{\"id\":\"vbqid\"}]},\"provisioningState\":\"Failed\"}")
+ "{\"elasticityProfile\":{\"maxReadyCapacity\":4001606914042880577,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"f\",\"revision\":1403536085047342017},\"subnetIds\":[{\"id\":\"nguitnwuizgazxu\"},{\"id\":\"izuckyfihrfidfvz\"}]},\"zones\":[\"uht\",\"mwisdkfthwxmnt\",\"i\",\"aop\"],\"provisioningState\":\"Deleting\"}")
.toObject(StandbyContainerGroupPoolResourceProperties.class);
- Assertions.assertEquals(1314224972042297481L, model.elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals(4001606914042880577L, model.elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.elasticityProfile().refillPolicy());
- Assertions.assertEquals("znorcj", model.containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(3202297530026478124L,
+ Assertions.assertEquals("f", model.containerGroupProperties().containerGroupProfile().id());
+ Assertions.assertEquals(1403536085047342017L,
model.containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("xqabnmocpcysh", model.containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("nguitnwuizgazxu", model.containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("uht", model.zones().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
StandbyContainerGroupPoolResourceProperties model = new StandbyContainerGroupPoolResourceProperties()
.withElasticityProfile(
- new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(1314224972042297481L)
+ new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(4001606914042880577L)
.withRefillPolicy(RefillPolicy.ALWAYS))
.withContainerGroupProperties(new ContainerGroupProperties()
- .withContainerGroupProfile(
- new ContainerGroupProfile().withId("znorcj").withRevision(3202297530026478124L))
+ .withContainerGroupProfile(new ContainerGroupProfile().withId("f").withRevision(1403536085047342017L))
.withSubnetIds(
- Arrays.asList(new Subnet().withId("xqabnmocpcysh"), new Subnet().withId("rzafbljjgpbtoqcj"),
- new Subnet().withId("klj"), new Subnet().withId("vbqid"))));
+ Arrays.asList(new Subnet().withId("nguitnwuizgazxu"), new Subnet().withId("izuckyfihrfidfvz"))))
+ .withZones(Arrays.asList("uht", "mwisdkfthwxmnt", "i", "aop"));
model = BinaryData.fromObject(model).toObject(StandbyContainerGroupPoolResourceProperties.class);
- Assertions.assertEquals(1314224972042297481L, model.elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals(4001606914042880577L, model.elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.elasticityProfile().refillPolicy());
- Assertions.assertEquals("znorcj", model.containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(3202297530026478124L,
+ Assertions.assertEquals("f", model.containerGroupProperties().containerGroupProfile().id());
+ Assertions.assertEquals(1403536085047342017L,
model.containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("xqabnmocpcysh", model.containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("nguitnwuizgazxu", model.containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("uht", model.zones().get(0));
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceUpdatePropertiesTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceUpdatePropertiesTests.java
index 539eeaeea143..77ffa17ef452 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceUpdatePropertiesTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceUpdatePropertiesTests.java
@@ -18,14 +18,15 @@ public final class StandbyContainerGroupPoolResourceUpdatePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StandbyContainerGroupPoolResourceUpdateProperties model = BinaryData.fromString(
- "{\"elasticityProfile\":{\"maxReadyCapacity\":7583874860615513488,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"zxibqeoj\",\"revision\":3432964589988774768},\"subnetIds\":[{\"id\":\"ddntwndei\"},{\"id\":\"btwnpzaoqvuhrhcf\"}]}}")
+ "{\"elasticityProfile\":{\"maxReadyCapacity\":8690617744614156568,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"j\",\"revision\":8808809624046194286},\"subnetIds\":[{\"id\":\"c\"}]},\"zones\":[\"ljavbqid\"]}")
.toObject(StandbyContainerGroupPoolResourceUpdateProperties.class);
- Assertions.assertEquals(7583874860615513488L, model.elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals(8690617744614156568L, model.elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.elasticityProfile().refillPolicy());
- Assertions.assertEquals("zxibqeoj", model.containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(3432964589988774768L,
+ Assertions.assertEquals("j", model.containerGroupProperties().containerGroupProfile().id());
+ Assertions.assertEquals(8808809624046194286L,
model.containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("ddntwndei", model.containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("c", model.containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("ljavbqid", model.zones().get(0));
}
@org.junit.jupiter.api.Test
@@ -33,19 +34,20 @@ public void testSerialize() throws Exception {
StandbyContainerGroupPoolResourceUpdateProperties model
= new StandbyContainerGroupPoolResourceUpdateProperties()
.withElasticityProfile(
- new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(7583874860615513488L)
+ new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(8690617744614156568L)
.withRefillPolicy(RefillPolicy.ALWAYS))
.withContainerGroupProperties(new ContainerGroupProperties()
.withContainerGroupProfile(
- new ContainerGroupProfile().withId("zxibqeoj").withRevision(3432964589988774768L))
- .withSubnetIds(
- Arrays.asList(new Subnet().withId("ddntwndei"), new Subnet().withId("btwnpzaoqvuhrhcf"))));
+ new ContainerGroupProfile().withId("j").withRevision(8808809624046194286L))
+ .withSubnetIds(Arrays.asList(new Subnet().withId("c"))))
+ .withZones(Arrays.asList("ljavbqid"));
model = BinaryData.fromObject(model).toObject(StandbyContainerGroupPoolResourceUpdateProperties.class);
- Assertions.assertEquals(7583874860615513488L, model.elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals(8690617744614156568L, model.elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.elasticityProfile().refillPolicy());
- Assertions.assertEquals("zxibqeoj", model.containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(3432964589988774768L,
+ Assertions.assertEquals("j", model.containerGroupProperties().containerGroupProfile().id());
+ Assertions.assertEquals(8808809624046194286L,
model.containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("ddntwndei", model.containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("c", model.containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("ljavbqid", model.zones().get(0));
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceUpdateTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceUpdateTests.java
index 5e57449e5763..63f1b61d6158 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceUpdateTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolResourceUpdateTests.java
@@ -21,38 +21,42 @@ public final class StandbyContainerGroupPoolResourceUpdateTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StandbyContainerGroupPoolResourceUpdate model = BinaryData.fromString(
- "{\"tags\":{\"aajrm\":\"pimexgstxgcpodg\",\"clwhijcoejctbz\":\"djwzrlov\"},\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":3226770590349878189,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"kbfkg\",\"revision\":1699471784577737162},\"subnetIds\":[{\"id\":\"xppofmxaxcfjp\"},{\"id\":\"ddtocjjxhvp\"}]}}}")
+ "{\"tags\":{\"vypyqrimzinpv\":\"sfqpteehz\",\"rsoodqxhcrmnoh\":\"wjdk\",\"kwh\":\"t\"},\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":7706383625926000656,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"pjxsqwpgrjbznor\",\"revision\":2167665554311227126},\"subnetIds\":[{\"id\":\"byxqabn\"}]},\"zones\":[\"pcyshu\"]}}")
.toObject(StandbyContainerGroupPoolResourceUpdate.class);
- Assertions.assertEquals("pimexgstxgcpodg", model.tags().get("aajrm"));
- Assertions.assertEquals(3226770590349878189L, model.properties().elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals("sfqpteehz", model.tags().get("vypyqrimzinpv"));
+ Assertions.assertEquals(7706383625926000656L, model.properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.properties().elasticityProfile().refillPolicy());
- Assertions.assertEquals("kbfkg", model.properties().containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(1699471784577737162L,
+ Assertions.assertEquals("pjxsqwpgrjbznor",
+ model.properties().containerGroupProperties().containerGroupProfile().id());
+ Assertions.assertEquals(2167665554311227126L,
model.properties().containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("xppofmxaxcfjp", model.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("byxqabn", model.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("pcyshu", model.properties().zones().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
StandbyContainerGroupPoolResourceUpdate model = new StandbyContainerGroupPoolResourceUpdate()
- .withTags(mapOf("aajrm", "pimexgstxgcpodg", "clwhijcoejctbz", "djwzrlov"))
+ .withTags(mapOf("vypyqrimzinpv", "sfqpteehz", "rsoodqxhcrmnoh", "wjdk", "kwh", "t"))
.withProperties(new StandbyContainerGroupPoolResourceUpdateProperties()
.withElasticityProfile(
- new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(3226770590349878189L)
+ new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(7706383625926000656L)
.withRefillPolicy(RefillPolicy.ALWAYS))
.withContainerGroupProperties(new ContainerGroupProperties()
.withContainerGroupProfile(
- new ContainerGroupProfile().withId("kbfkg").withRevision(1699471784577737162L))
- .withSubnetIds(
- Arrays.asList(new Subnet().withId("xppofmxaxcfjp"), new Subnet().withId("ddtocjjxhvp")))));
+ new ContainerGroupProfile().withId("pjxsqwpgrjbznor").withRevision(2167665554311227126L))
+ .withSubnetIds(Arrays.asList(new Subnet().withId("byxqabn"))))
+ .withZones(Arrays.asList("pcyshu")));
model = BinaryData.fromObject(model).toObject(StandbyContainerGroupPoolResourceUpdate.class);
- Assertions.assertEquals("pimexgstxgcpodg", model.tags().get("aajrm"));
- Assertions.assertEquals(3226770590349878189L, model.properties().elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals("sfqpteehz", model.tags().get("vypyqrimzinpv"));
+ Assertions.assertEquals(7706383625926000656L, model.properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, model.properties().elasticityProfile().refillPolicy());
- Assertions.assertEquals("kbfkg", model.properties().containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(1699471784577737162L,
+ Assertions.assertEquals("pjxsqwpgrjbznor",
+ model.properties().containerGroupProperties().containerGroupProfile().id());
+ Assertions.assertEquals(2167665554311227126L,
model.properties().containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("xppofmxaxcfjp", model.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("byxqabn", model.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("pcyshu", model.properties().zones().get(0));
}
// Use "Map.of" if available
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewResourceInnerTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewResourceInnerTests.java
deleted file mode 100644
index 8f4e60d2e135..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewResourceInnerTests.java
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.standbypool.fluent.models.StandbyContainerGroupPoolRuntimeViewResourceInner;
-
-public final class StandbyContainerGroupPoolRuntimeViewResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StandbyContainerGroupPoolRuntimeViewResourceInner model = BinaryData.fromString(
- "{\"properties\":{\"instanceCountSummary\":[{\"instanceCountsByState\":[{\"state\":\"sqpjhvmdajvn\",\"count\":5255504053671338528},{\"state\":\"unqecanoae\",\"count\":5775718208045786446},{\"state\":\"hy\",\"count\":9024707891893513418},{\"state\":\"rpmopjmc\",\"count\":2937936941611488852}]},{\"instanceCountsByState\":[{\"state\":\"okth\",\"count\":8971269835816487776}]},{\"instanceCountsByState\":[{\"state\":\"aodsfcpkv\",\"count\":4623800830468359424},{\"state\":\"puozmyzydag\",\"count\":4688924333134133449},{\"state\":\"xbezyiuokktwh\",\"count\":8904566609153391762}]}],\"provisioningState\":\"Canceled\"},\"id\":\"wqsmbsur\",\"name\":\"xim\",\"type\":\"ryocfsfksymdd\"}")
- .toObject(StandbyContainerGroupPoolRuntimeViewResourceInner.class);
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewResourceListResultTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewResourceListResultTests.java
deleted file mode 100644
index d6fde3fc2125..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewResourceListResultTests.java
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.standbypool.implementation.models.StandbyContainerGroupPoolRuntimeViewResourceListResult;
-import org.junit.jupiter.api.Assertions;
-
-public final class StandbyContainerGroupPoolRuntimeViewResourceListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StandbyContainerGroupPoolRuntimeViewResourceListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"instanceCountSummary\":[{\"instanceCountsByState\":[{\"state\":\"ofoskghs\",\"count\":6509457731219989757}]}],\"provisioningState\":\"Deleting\"},\"id\":\"mvxi\",\"name\":\"duugidyjr\",\"type\":\"f\"},{\"properties\":{\"instanceCountSummary\":[{\"instanceCountsByState\":[{\"state\":\"svexcsonpclhoco\",\"count\":7973148990313454716},{\"state\":\"kevle\",\"count\":2274582039635393609},{\"state\":\"fbuhfmvfaxkffe\",\"count\":5927456276640878144},{\"state\":\"hl\",\"count\":274821982679696564}]}],\"provisioningState\":\"Failed\"},\"id\":\"shxmzsbbzoggigrx\",\"name\":\"burvjxxjnspy\",\"type\":\"ptkoenkoukn\"}],\"nextLink\":\"dwtiukbldngkp\"}")
- .toObject(StandbyContainerGroupPoolRuntimeViewResourceListResult.class);
- Assertions.assertEquals("dwtiukbldngkp", model.nextLink());
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewResourcePropertiesTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewResourcePropertiesTests.java
deleted file mode 100644
index ce7809d9b336..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewResourcePropertiesTests.java
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.standbypool.models.StandbyContainerGroupPoolRuntimeViewResourceProperties;
-
-public final class StandbyContainerGroupPoolRuntimeViewResourcePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StandbyContainerGroupPoolRuntimeViewResourceProperties model = BinaryData.fromString(
- "{\"instanceCountSummary\":[{\"instanceCountsByState\":[{\"state\":\"kiiuxhqyudxor\",\"count\":1487537965581482416}]},{\"instanceCountsByState\":[{\"state\":\"poczvyifqrvkdvjs\",\"count\":3602114313463571295}]},{\"instanceCountsByState\":[{\"state\":\"vvdfwatkpnpul\",\"count\":8370475166510948935}]}],\"provisioningState\":\"Deleting\"}")
- .toObject(StandbyContainerGroupPoolRuntimeViewResourceProperties.class);
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewsGetWithResponseMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewsGetWithResponseMockTests.java
deleted file mode 100644
index f99d240bc0cd..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.standbypool.StandbyPoolManager;
-import com.azure.resourcemanager.standbypool.models.StandbyContainerGroupPoolRuntimeViewResource;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StandbyContainerGroupPoolRuntimeViewsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"instanceCountSummary\":[{\"instanceCountsByState\":[{\"state\":\"blmpewww\",\"count\":3820765705092103463}]},{\"instanceCountsByState\":[{\"state\":\"vrnsvshqjohxc\",\"count\":4836259477113614061},{\"state\":\"fovasr\",\"count\":887229974544908280},{\"state\":\"wbhsqfsub\",\"count\":3414433910630634364},{\"state\":\"birx\",\"count\":3651382328618235762}]},{\"instanceCountsByState\":[{\"state\":\"srfbjfdtwss\",\"count\":95258817016981366},{\"state\":\"tpvjzbexilzznfqq\",\"count\":4106479212982614094}]}],\"provisioningState\":\"Deleting\"},\"id\":\"taruoujmkcj\",\"name\":\"wqytjrybnwjewgdr\",\"type\":\"ervnaenqpehi\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- StandbyPoolManager manager = StandbyPoolManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- StandbyContainerGroupPoolRuntimeViewResource response = manager.standbyContainerGroupPoolRuntimeViews()
- .getWithResponse("qtdo", "mcbxvwvxysl", "bhsfxob", com.azure.core.util.Context.NONE)
- .getValue();
-
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolMockTests.java
deleted file mode 100644
index e420970a0ba6..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolMockTests.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.standbypool.StandbyPoolManager;
-import com.azure.resourcemanager.standbypool.models.StandbyContainerGroupPoolRuntimeViewResource;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolMockTests {
- @Test
- public void testListByStandbyPool() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"instanceCountSummary\":[{\"instanceCountsByState\":[{\"state\":\"ayqigynduhav\",\"count\":5173080348817508321},{\"state\":\"kthumaqolbgycdui\",\"count\":766659448073134411}]},{\"instanceCountsByState\":[{\"state\":\"ccymvaolpsslql\",\"count\":3084758361383358481},{\"state\":\"dnbbglzps\",\"count\":3740135590125473385},{\"state\":\"d\",\"count\":1234182854379113397},{\"state\":\"yhz\",\"count\":3868778507667885775}]},{\"instanceCountsByState\":[{\"state\":\"adbzmnvdfznud\",\"count\":1231902121490659040},{\"state\":\"vxzbncb\",\"count\":7713256166194734332}]}],\"provisioningState\":\"Deleting\"},\"id\":\"dbh\",\"name\":\"xsrz\",\"type\":\"zucerscdntnev\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- StandbyPoolManager manager = StandbyPoolManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.standbyContainerGroupPoolRuntimeViews()
- .listByStandbyPool("doy", "mifthnzdnd", com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsCreateOrUpdateMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsCreateOrUpdateMockTests.java
index ef57411dea3a..32f4b96ab295 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsCreateOrUpdateMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsCreateOrUpdateMockTests.java
@@ -6,8 +6,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.ContainerGroupProfile;
@@ -30,40 +30,42 @@ public final class StandbyContainerGroupPoolsCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":5849348987172300465,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"cwzzhxgktr\",\"revision\":6598774338835583357},\"subnetIds\":[{\"id\":\"pkteo\"},{\"id\":\"llwptfdy\"},{\"id\":\"pfqbuaceopzf\"},{\"id\":\"rhhuaopppcqeqx\"}]},\"provisioningState\":\"Succeeded\"},\"location\":\"ahzxctobgbk\",\"tags\":{\"grcfb\":\"izpost\",\"bpvjymjhx\":\"nrmfqjhhk\",\"n\":\"j\",\"ivkrtsw\":\"u\"},\"id\":\"xqzvszjfa\",\"name\":\"vjfdx\",\"type\":\"ivetvtcq\"}";
+ = "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":8550144632866513257,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"dhxujznbmpo\",\"revision\":3222705953592047297},\"subnetIds\":[{\"id\":\"qlveualupjmkh\"},{\"id\":\"xobbcswsrt\"},{\"id\":\"riplrbpbewtg\"},{\"id\":\"fgb\"}]},\"zones\":[\"wxzvlvqhjkb\"],\"provisioningState\":\"Succeeded\"},\"location\":\"t\",\"tags\":{\"j\":\"iebwwaloayqcgwrt\",\"yzm\":\"zg\",\"mtsavjcbpwxqp\":\"txon\",\"yvxqtayriwwroy\":\"rknftguvriuhprwm\"},\"id\":\"bexrmcq\",\"name\":\"bycnojvkn\",\"type\":\"e\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
StandbyContainerGroupPoolResource response = manager.standbyContainerGroupPools()
- .define("ultskzbbtdz")
- .withRegion("qvkelnsm")
- .withExistingResourceGroup("xipeilpjzuaejx")
- .withTags(mapOf("sxyawjoyaqcs", "wyjsflhhcaalnjix", "eli", "yjpkiidzyexz", "bnxknalaulppg", "hnrztfol"))
+ .define("vgomz")
+ .withRegion("shsfwxosowzxcu")
+ .withExistingResourceGroup("rcrgvx")
+ .withTags(mapOf("ucww", "jooxdjebw", "bvmeuecivy", "vo", "ueiotwmcdyt", "zceuojgjrw", "it", "x"))
.withProperties(new StandbyContainerGroupPoolResourceProperties()
.withElasticityProfile(
- new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(5977049031075533879L)
+ new StandbyContainerGroupPoolElasticityProfile().withMaxReadyCapacity(8511094552590420060L)
.withRefillPolicy(RefillPolicy.ALWAYS))
.withContainerGroupProperties(new ContainerGroupProperties()
.withContainerGroupProfile(
- new ContainerGroupProfile().withId("gpw").withRevision(1337598975315689836L))
- .withSubnetIds(Arrays.asList(new Subnet().withId("p"), new Subnet().withId("sjyofdx"),
- new Subnet().withId("uusdttouwa")))))
+ new ContainerGroupProfile().withId("wbnb").withRevision(8988719472980860271L))
+ .withSubnetIds(Arrays.asList(new Subnet().withId("k"))))
+ .withZones(Arrays.asList("liourqhak")))
.create();
- Assertions.assertEquals("ahzxctobgbk", response.location());
- Assertions.assertEquals("izpost", response.tags().get("grcfb"));
- Assertions.assertEquals(5849348987172300465L, response.properties().elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals("t", response.location());
+ Assertions.assertEquals("iebwwaloayqcgwrt", response.tags().get("j"));
+ Assertions.assertEquals(8550144632866513257L, response.properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, response.properties().elasticityProfile().refillPolicy());
- Assertions.assertEquals("cwzzhxgktr",
+ Assertions.assertEquals("dhxujznbmpo",
response.properties().containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(6598774338835583357L,
+ Assertions.assertEquals(3222705953592047297L,
response.properties().containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("pkteo", response.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("qlveualupjmkh",
+ response.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("wxzvlvqhjkb", response.properties().zones().get(0));
}
// Use "Map.of" if available
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsGetByResourceGroupWithResponseMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsGetByResourceGroupWithResponseMockTests.java
index cf746c9e33fc..08d49aefe0b3 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsGetByResourceGroupWithResponseMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsGetByResourceGroupWithResponseMockTests.java
@@ -6,8 +6,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.RefillPolicy;
@@ -22,26 +22,28 @@ public final class StandbyContainerGroupPoolsGetByResourceGroupWithResponseMockT
@Test
public void testGetByResourceGroupWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":63425912391453146,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"mdua\",\"revision\":2559158309988957100},\"subnetIds\":[{\"id\":\"vfadmws\"},{\"id\":\"crgvxpvgom\"},{\"id\":\"lf\"}]},\"provisioningState\":\"Canceled\"},\"location\":\"wbnb\",\"tags\":{\"urqhaka\":\"dawkzbali\",\"xcug\":\"hashsfwxosow\",\"ovbvmeueciv\":\"cjooxdjebwpucwwf\",\"otwmcdyt\":\"hzceuojgjrwjue\"},\"id\":\"x\",\"name\":\"it\",\"type\":\"nrjawgqwg\"}";
+ = "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":8537222250971960818,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"wbavxbniwdj\",\"revision\":2198924095068889531},\"subnetIds\":[{\"id\":\"bpg\"},{\"id\":\"xytxhpzxbz\"},{\"id\":\"fzab\"}]},\"zones\":[\"uhxwtctyqiklbbov\"],\"provisioningState\":\"Canceled\"},\"location\":\"bhvgy\",\"tags\":{\"ss\":\"osvmk\",\"gmgsxnkjzkde\":\"qukkfp\",\"yighxpk\":\"lpvlopw\",\"baumnyqupedeoj\":\"wzbaiue\"},\"id\":\"a\",\"name\":\"ckhsmtxpsieb\",\"type\":\"fhvpesaps\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
StandbyContainerGroupPoolResource response = manager.standbyContainerGroupPools()
- .getByResourceGroupWithResponse("ofmxagkvtmelmqkr", "ahvljuaha", com.azure.core.util.Context.NONE)
+ .getByResourceGroupWithResponse("walm", "zyoxaepdkzjan", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("wbnb", response.location());
- Assertions.assertEquals("dawkzbali", response.tags().get("urqhaka"));
- Assertions.assertEquals(63425912391453146L, response.properties().elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals("bhvgy", response.location());
+ Assertions.assertEquals("osvmk", response.tags().get("ss"));
+ Assertions.assertEquals(8537222250971960818L, response.properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS, response.properties().elasticityProfile().refillPolicy());
- Assertions.assertEquals("mdua", response.properties().containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(2559158309988957100L,
+ Assertions.assertEquals("wbavxbniwdj",
+ response.properties().containerGroupProperties().containerGroupProfile().id());
+ Assertions.assertEquals(2198924095068889531L,
response.properties().containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("vfadmws", response.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("bpg", response.properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("uhxwtctyqiklbbov", response.properties().zones().get(0));
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsListByResourceGroupMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsListByResourceGroupMockTests.java
index fa5af23606b1..38125c80f3d9 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsListByResourceGroupMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsListByResourceGroupMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.RefillPolicy;
@@ -23,29 +23,30 @@ public final class StandbyContainerGroupPoolsListByResourceGroupMockTests {
@Test
public void testListByResourceGroup() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":3207887590068682243,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"nhjdauw\",\"revision\":4384812183587717732},\"subnetIds\":[{\"id\":\"btdhxujznbm\"}]},\"provisioningState\":\"Canceled\"},\"location\":\"wpr\",\"tags\":{\"pjmkhfxobbc\":\"veual\"},\"id\":\"wsrtjriplrbpbe\",\"name\":\"tghfgblcgwxzvl\",\"type\":\"qhjk\"}]}";
+ = "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":5735733954229084765,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"cwscwsvlx\",\"revision\":6070678532052073652},\"subnetIds\":[{\"id\":\"rupqsxvnmicy\"},{\"id\":\"vce\"},{\"id\":\"vei\"},{\"id\":\"ovnotyfjfcnjbkcn\"}]},\"zones\":[\"bttk\",\"h\",\"wpn\"],\"provisioningState\":\"Succeeded\"},\"location\":\"qnermclfplphoxu\",\"tags\":{\"jta\":\"pabgyeps\",\"kqujidsuyono\":\"qugxywpmueefjzwf\"},\"id\":\"glaocq\",\"name\":\"tcc\",\"type\":\"g\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response = manager.standbyContainerGroupPools()
- .listByResourceGroup("hniskxfbkpyc", com.azure.core.util.Context.NONE);
+ .listByResourceGroup("rdqmhjjdhtldwkyz", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("wpr", response.iterator().next().location());
- Assertions.assertEquals("veual", response.iterator().next().tags().get("pjmkhfxobbc"));
- Assertions.assertEquals(3207887590068682243L,
+ Assertions.assertEquals("qnermclfplphoxu", response.iterator().next().location());
+ Assertions.assertEquals("pabgyeps", response.iterator().next().tags().get("jta"));
+ Assertions.assertEquals(5735733954229084765L,
response.iterator().next().properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS,
response.iterator().next().properties().elasticityProfile().refillPolicy());
- Assertions.assertEquals("nhjdauw",
+ Assertions.assertEquals("cwscwsvlx",
response.iterator().next().properties().containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(4384812183587717732L,
+ Assertions.assertEquals(6070678532052073652L,
response.iterator().next().properties().containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("btdhxujznbm",
+ Assertions.assertEquals("rupqsxvnmicy",
response.iterator().next().properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("bttk", response.iterator().next().properties().zones().get(0));
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsListMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsListMockTests.java
index dd9295dd032d..2d2f2cd4546c 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsListMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyContainerGroupPoolsListMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.RefillPolicy;
@@ -23,29 +23,30 @@ public final class StandbyContainerGroupPoolsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":6151134788443047817,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"nmxiebwwaloayqc\",\"revision\":5215437254203844787},\"subnetIds\":[{\"id\":\"uzgwyzmhtx\"}]},\"provisioningState\":\"Deleting\"},\"location\":\"ts\",\"tags\":{\"uvriuhprwm\":\"cbpwxqpsrknft\",\"bexrmcq\":\"yvxqtayriwwroy\",\"e\":\"bycnojvkn\",\"zhpvgqzcjrvxd\":\"qsgzvahapj\"},\"id\":\"zlmwlxkvugfhz\",\"name\":\"vawjvzunlu\",\"type\":\"hnnpr\"}]}";
+ = "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":4531156159452032810,\"refillPolicy\":\"always\"},\"containerGroupProperties\":{\"containerGroupProfile\":{\"id\":\"lmoyrx\",\"revision\":9152024250663489455},\"subnetIds\":[{\"id\":\"pz\"},{\"id\":\"txhdzh\"},{\"id\":\"rqjbhckfrl\"}]},\"zones\":[\"sbkyvpycanuzbp\",\"kafkuwbcrnwbm\",\"hhseyv\"],\"provisioningState\":\"Deleting\"},\"location\":\"tslhspkdeem\",\"tags\":{\"gkvtmelmqkrhah\":\"mx\"},\"id\":\"ljuahaquhcdh\",\"name\":\"duala\",\"type\":\"xqpvfadmw\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response
= manager.standbyContainerGroupPools().list(com.azure.core.util.Context.NONE);
- Assertions.assertEquals("ts", response.iterator().next().location());
- Assertions.assertEquals("cbpwxqpsrknft", response.iterator().next().tags().get("uvriuhprwm"));
- Assertions.assertEquals(6151134788443047817L,
+ Assertions.assertEquals("tslhspkdeem", response.iterator().next().location());
+ Assertions.assertEquals("mx", response.iterator().next().tags().get("gkvtmelmqkrhah"));
+ Assertions.assertEquals(4531156159452032810L,
response.iterator().next().properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(RefillPolicy.ALWAYS,
response.iterator().next().properties().elasticityProfile().refillPolicy());
- Assertions.assertEquals("nmxiebwwaloayqc",
+ Assertions.assertEquals("lmoyrx",
response.iterator().next().properties().containerGroupProperties().containerGroupProfile().id());
- Assertions.assertEquals(5215437254203844787L,
+ Assertions.assertEquals(9152024250663489455L,
response.iterator().next().properties().containerGroupProperties().containerGroupProfile().revision());
- Assertions.assertEquals("uzgwyzmhtx",
+ Assertions.assertEquals("pz",
response.iterator().next().properties().containerGroupProperties().subnetIds().get(0).id());
+ Assertions.assertEquals("sbkyvpycanuzbp", response.iterator().next().properties().zones().get(0));
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolForecastValuesTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolForecastValuesTests.java
new file mode 100644
index 000000000000..25736530b84c
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolForecastValuesTests.java
@@ -0,0 +1,17 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachinePoolForecastValues;
+
+public final class StandbyVirtualMachinePoolForecastValuesTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ StandbyVirtualMachinePoolForecastValues model
+ = BinaryData.fromString("{\"instancesRequestedCount\":[8869802227218422097,9089023115541451089]}")
+ .toObject(StandbyVirtualMachinePoolForecastValues.class);
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolPredictionTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolPredictionTests.java
new file mode 100644
index 000000000000..ce17d425ade5
--- /dev/null
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolPredictionTests.java
@@ -0,0 +1,17 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.standbypool.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachinePoolPrediction;
+
+public final class StandbyVirtualMachinePoolPredictionTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ StandbyVirtualMachinePoolPrediction model = BinaryData.fromString(
+ "{\"forecastValues\":{\"instancesRequestedCount\":[4153982267147823381]},\"forecastStartTime\":\"2021-07-02T10:42:02Z\",\"forecastInfo\":\"pnddhsgcbacphejk\"}")
+ .toObject(StandbyVirtualMachinePoolPrediction.class);
+ }
+}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourceListResultTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourceListResultTests.java
index b84400da24e8..57d165933a4a 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourceListResultTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourceListResultTests.java
@@ -13,7 +13,7 @@ public final class StandbyVirtualMachinePoolResourceListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StandbyVirtualMachinePoolResourceListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":6994648788334081274,\"minReadyCapacity\":1638654012680876058},\"virtualMachineState\":\"Deallocated\",\"attachedVirtualMachineScaleSetId\":\"dfdosygexp\",\"provisioningState\":\"Canceled\"},\"location\":\"khmsbz\",\"tags\":{\"hqtrgqjbpf\":\"rzevdphlxaol\",\"tfell\":\"fsinzgvfcjrwzoxx\",\"lxofpdvhpfxxypin\":\"wfzitonpeqfpjk\"},\"id\":\"nmayhuybb\",\"name\":\"podepoo\",\"type\":\"inuvamiheogn\"}],\"nextLink\":\"xzxtheo\"}")
+ "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":6994648788334081274,\"minReadyCapacity\":1638654012680876058},\"virtualMachineState\":\"Running\",\"attachedVirtualMachineScaleSetId\":\"dfdosygexp\",\"provisioningState\":\"Canceled\"},\"location\":\"khmsbz\",\"tags\":{\"hqtrgqjbpf\":\"rzevdphlxaol\",\"tfell\":\"fsinzgvfcjrwzoxx\",\"lxofpdvhpfxxypin\":\"wfzitonpeqfpjk\"},\"id\":\"nmayhuybb\",\"name\":\"podepoo\",\"type\":\"inuvamiheogn\"}],\"nextLink\":\"xzxtheo\"}")
.toObject(StandbyVirtualMachinePoolResourceListResult.class);
Assertions.assertEquals("khmsbz", model.value().get(0).location());
Assertions.assertEquals("rzevdphlxaol", model.value().get(0).tags().get("hqtrgqjbpf"));
@@ -21,8 +21,7 @@ public void testDeserialize() throws Exception {
model.value().get(0).properties().elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(1638654012680876058L,
model.value().get(0).properties().elasticityProfile().minReadyCapacity());
- Assertions.assertEquals(VirtualMachineState.DEALLOCATED,
- model.value().get(0).properties().virtualMachineState());
+ Assertions.assertEquals(VirtualMachineState.RUNNING, model.value().get(0).properties().virtualMachineState());
Assertions.assertEquals("dfdosygexp", model.value().get(0).properties().attachedVirtualMachineScaleSetId());
Assertions.assertEquals("xzxtheo", model.nextLink());
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourcePropertiesTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourcePropertiesTests.java
index c2333e2b8638..465f9f03be63 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourcePropertiesTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourcePropertiesTests.java
@@ -14,11 +14,11 @@ public final class StandbyVirtualMachinePoolResourcePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StandbyVirtualMachinePoolResourceProperties model = BinaryData.fromString(
- "{\"elasticityProfile\":{\"maxReadyCapacity\":4836526931131367321,\"minReadyCapacity\":31147603080003868},\"virtualMachineState\":\"Running\",\"attachedVirtualMachineScaleSetId\":\"udccsnhsjc\",\"provisioningState\":\"Failed\"}")
+ "{\"elasticityProfile\":{\"maxReadyCapacity\":4836526931131367321,\"minReadyCapacity\":31147603080003868},\"virtualMachineState\":\"Hibernated\",\"attachedVirtualMachineScaleSetId\":\"udccsnhsjc\",\"provisioningState\":\"Failed\"}")
.toObject(StandbyVirtualMachinePoolResourceProperties.class);
Assertions.assertEquals(4836526931131367321L, model.elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(31147603080003868L, model.elasticityProfile().minReadyCapacity());
- Assertions.assertEquals(VirtualMachineState.RUNNING, model.virtualMachineState());
+ Assertions.assertEquals(VirtualMachineState.HIBERNATED, model.virtualMachineState());
Assertions.assertEquals("udccsnhsjc", model.attachedVirtualMachineScaleSetId());
}
@@ -28,12 +28,12 @@ public void testSerialize() throws Exception {
.withElasticityProfile(
new StandbyVirtualMachinePoolElasticityProfile().withMaxReadyCapacity(4836526931131367321L)
.withMinReadyCapacity(31147603080003868L))
- .withVirtualMachineState(VirtualMachineState.RUNNING)
+ .withVirtualMachineState(VirtualMachineState.HIBERNATED)
.withAttachedVirtualMachineScaleSetId("udccsnhsjc");
model = BinaryData.fromObject(model).toObject(StandbyVirtualMachinePoolResourceProperties.class);
Assertions.assertEquals(4836526931131367321L, model.elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(31147603080003868L, model.elasticityProfile().minReadyCapacity());
- Assertions.assertEquals(VirtualMachineState.RUNNING, model.virtualMachineState());
+ Assertions.assertEquals(VirtualMachineState.HIBERNATED, model.virtualMachineState());
Assertions.assertEquals("udccsnhsjc", model.attachedVirtualMachineScaleSetId());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourceUpdatePropertiesTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourceUpdatePropertiesTests.java
index 086f8aadf366..97dd8c4e5a09 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourceUpdatePropertiesTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolResourceUpdatePropertiesTests.java
@@ -14,11 +14,11 @@ public final class StandbyVirtualMachinePoolResourceUpdatePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
StandbyVirtualMachinePoolResourceUpdateProperties model = BinaryData.fromString(
- "{\"elasticityProfile\":{\"maxReadyCapacity\":8711878802176602351,\"minReadyCapacity\":947899804697083962},\"virtualMachineState\":\"Deallocated\",\"attachedVirtualMachineScaleSetId\":\"qpsoacctazak\"}")
+ "{\"elasticityProfile\":{\"maxReadyCapacity\":8711878802176602351,\"minReadyCapacity\":947899804697083962},\"virtualMachineState\":\"Hibernated\",\"attachedVirtualMachineScaleSetId\":\"qpsoacctazak\"}")
.toObject(StandbyVirtualMachinePoolResourceUpdateProperties.class);
Assertions.assertEquals(8711878802176602351L, model.elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(947899804697083962L, model.elasticityProfile().minReadyCapacity());
- Assertions.assertEquals(VirtualMachineState.DEALLOCATED, model.virtualMachineState());
+ Assertions.assertEquals(VirtualMachineState.HIBERNATED, model.virtualMachineState());
Assertions.assertEquals("qpsoacctazak", model.attachedVirtualMachineScaleSetId());
}
@@ -29,12 +29,12 @@ public void testSerialize() throws Exception {
.withElasticityProfile(
new StandbyVirtualMachinePoolElasticityProfile().withMaxReadyCapacity(8711878802176602351L)
.withMinReadyCapacity(947899804697083962L))
- .withVirtualMachineState(VirtualMachineState.DEALLOCATED)
+ .withVirtualMachineState(VirtualMachineState.HIBERNATED)
.withAttachedVirtualMachineScaleSetId("qpsoacctazak");
model = BinaryData.fromObject(model).toObject(StandbyVirtualMachinePoolResourceUpdateProperties.class);
Assertions.assertEquals(8711878802176602351L, model.elasticityProfile().maxReadyCapacity());
Assertions.assertEquals(947899804697083962L, model.elasticityProfile().minReadyCapacity());
- Assertions.assertEquals(VirtualMachineState.DEALLOCATED, model.virtualMachineState());
+ Assertions.assertEquals(VirtualMachineState.HIBERNATED, model.virtualMachineState());
Assertions.assertEquals("qpsoacctazak", model.attachedVirtualMachineScaleSetId());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewResourceInnerTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewResourceInnerTests.java
deleted file mode 100644
index 7990cff84b49..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewResourceInnerTests.java
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.standbypool.fluent.models.StandbyVirtualMachinePoolRuntimeViewResourceInner;
-
-public final class StandbyVirtualMachinePoolRuntimeViewResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StandbyVirtualMachinePoolRuntimeViewResourceInner model = BinaryData.fromString(
- "{\"properties\":{\"instanceCountSummary\":[{\"zone\":6252386858806975297,\"instanceCountsByState\":[{\"state\":\"yiftyhxhuro\",\"count\":1001500064471222811},{\"state\":\"yxolniwp\",\"count\":5709229519327126665},{\"state\":\"kjfkg\",\"count\":6655543031987188756}]}],\"provisioningState\":\"Canceled\"},\"id\":\"ryplwckbasyypn\",\"name\":\"dhsgcba\",\"type\":\"phejkotynqgoulz\"}")
- .toObject(StandbyVirtualMachinePoolRuntimeViewResourceInner.class);
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewResourceListResultTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewResourceListResultTests.java
deleted file mode 100644
index f878dd1086eb..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewResourceListResultTests.java
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.standbypool.implementation.models.StandbyVirtualMachinePoolRuntimeViewResourceListResult;
-import org.junit.jupiter.api.Assertions;
-
-public final class StandbyVirtualMachinePoolRuntimeViewResourceListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StandbyVirtualMachinePoolRuntimeViewResourceListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"instanceCountSummary\":[{\"zone\":435793093682081047,\"instanceCountsByState\":[{\"state\":\"izuckyfihrfidfvz\",\"count\":576595030144008235},{\"state\":\"uht\",\"count\":6116347242940995661}]}],\"provisioningState\":\"Succeeded\"},\"id\":\"kfthwxmntei\",\"name\":\"aop\",\"type\":\"km\"}],\"nextLink\":\"c\"}")
- .toObject(StandbyVirtualMachinePoolRuntimeViewResourceListResult.class);
- Assertions.assertEquals("c", model.nextLink());
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewResourcePropertiesTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewResourcePropertiesTests.java
deleted file mode 100644
index c6c1035906db..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewResourcePropertiesTests.java
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachinePoolRuntimeViewResourceProperties;
-
-public final class StandbyVirtualMachinePoolRuntimeViewResourcePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StandbyVirtualMachinePoolRuntimeViewResourceProperties model = BinaryData.fromString(
- "{\"instanceCountSummary\":[{\"zone\":1076268923335791776,\"instanceCountsByState\":[{\"state\":\"yqkgfg\",\"count\":7731827269478530135},{\"state\":\"adgakeqsrxybz\",\"count\":7229748892246039848},{\"state\":\"dqytbciqfouflmm\",\"count\":7852889630388099405}]},{\"zone\":3243159377154539361,\"instanceCountsByState\":[{\"state\":\"mglougpbkw\",\"count\":2331240743756595548},{\"state\":\"tduqktapspwgcuer\",\"count\":5085835917600063324}]},{\"zone\":7897278653566127978,\"instanceCountsByState\":[{\"state\":\"vqwhbmdgbbjfd\",\"count\":3280081528721556245},{\"state\":\"bmbexppbhtqqro\",\"count\":7839032708041662310},{\"state\":\"fpsalgbqu\",\"count\":6569487787120678049},{\"state\":\"jyj\",\"count\":3662129632751771998}]},{\"zone\":1047453943745624773,\"instanceCountsByState\":[{\"state\":\"hr\",\"count\":9151074590172586446},{\"state\":\"lnerkujysvleju\",\"count\":603378641684068010},{\"state\":\"awrlyx\",\"count\":4750730999379748342},{\"state\":\"cpr\",\"count\":7324352188525247523}]}],\"provisioningState\":\"Failed\"}")
- .toObject(StandbyVirtualMachinePoolRuntimeViewResourceProperties.class);
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewsGetWithResponseMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewsGetWithResponseMockTests.java
deleted file mode 100644
index 52db4a836ec5..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.standbypool.StandbyPoolManager;
-import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachinePoolRuntimeViewResource;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StandbyVirtualMachinePoolRuntimeViewsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"instanceCountSummary\":[{\"zone\":6627631118472357246,\"instanceCountsByState\":[{\"state\":\"apskrdqm\",\"count\":7005227375358827798},{\"state\":\"dhtldwkyz\",\"count\":7349098368059665316}]},{\"zone\":1630788511439763337,\"instanceCountsByState\":[{\"state\":\"ws\",\"count\":8510740878740325389},{\"state\":\"vlxotogtwrupqsx\",\"count\":3534987396424038530},{\"state\":\"i\",\"count\":1442555394211709568}]},{\"zone\":2479857435116958141,\"instanceCountsByState\":[{\"state\":\"vei\",\"count\":8849802441441482700}]},{\"zone\":2837447101588730204,\"instanceCountsByState\":[{\"state\":\"fj\",\"count\":4491439225933409580},{\"state\":\"jbkcnxdhbttkph\",\"count\":3389150411931097384},{\"state\":\"nv\",\"count\":962291776216015099}]}],\"provisioningState\":\"Failed\"},\"id\":\"rmclfplphoxu\",\"name\":\"crpab\",\"type\":\"ye\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- StandbyPoolManager manager = StandbyPoolManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- StandbyVirtualMachinePoolRuntimeViewResource response = manager.standbyVirtualMachinePoolRuntimeViews()
- .getWithResponse("baumnyqupedeoj", "a", "ckhsmtxpsieb", com.azure.core.util.Context.NONE)
- .getValue();
-
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolMockTests.java
deleted file mode 100644
index 9a6340bceaf4..000000000000
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolMockTests.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.standbypool.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.standbypool.StandbyPoolManager;
-import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachinePoolRuntimeViewResource;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolMockTests {
- @Test
- public void testListByStandbyPool() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"instanceCountSummary\":[{\"zone\":4465958882074841253,\"instanceCountsByState\":[{\"state\":\"jidsuyonobglaoc\",\"count\":6109729315906421159},{\"state\":\"ccm\",\"count\":2268947559228407869},{\"state\":\"dxyt\",\"count\":5579898580342682580}]},{\"zone\":2820167512194411958,\"instanceCountsByState\":[{\"state\":\"wfudwpzntxhdzhl\",\"count\":2074686312708379193},{\"state\":\"bh\",\"count\":3107566314690039792},{\"state\":\"rlhrxs\",\"count\":3255446735265573328},{\"state\":\"vpycanuzbp\",\"count\":5373828477618369096}]}],\"provisioningState\":\"Canceled\"},\"id\":\"wbcrnwbmehhseyv\",\"name\":\"us\",\"type\":\"tslhspkdeem\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- StandbyPoolManager manager = StandbyPoolManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.standbyVirtualMachinePoolRuntimeViews()
- .listByStandbyPool("sbj", "azqugxywpmueefj", com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsCreateOrUpdateMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsCreateOrUpdateMockTests.java
index b6e8f551d011..49dbe499b471 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsCreateOrUpdateMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsCreateOrUpdateMockTests.java
@@ -6,8 +6,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachinePoolElasticityProfile;
@@ -26,35 +26,34 @@ public final class StandbyVirtualMachinePoolsCreateOrUpdateMockTests {
@Test
public void testCreateOrUpdate() throws Exception {
String responseStr
- = "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":4821929249053782454,\"minReadyCapacity\":485400333348355779},\"virtualMachineState\":\"Deallocated\",\"attachedVirtualMachineScaleSetId\":\"wrqlfktsthsuco\",\"provisioningState\":\"Succeeded\"},\"location\":\"yazttbtwwrqpue\",\"tags\":{\"fey\":\"zywbiex\",\"ujwb\":\"eaxib\"},\"id\":\"qwalmuzyoxaepd\",\"name\":\"zjancuxr\",\"type\":\"d\"}";
+ = "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":961124014694533513,\"minReadyCapacity\":4986041102570951835},\"virtualMachineState\":\"Deallocated\",\"attachedVirtualMachineScaleSetId\":\"v\",\"provisioningState\":\"Succeeded\"},\"location\":\"gbiqylihkaet\",\"tags\":{\"qhjfbebr\":\"vfcivfsnkymuc\",\"wutttxfvjrbi\":\"cxerf\",\"ljkyqxjvuuj\":\"phxepcyvahf\"},\"id\":\"gidokgjljyoxgvcl\",\"name\":\"bgsncghkjeszzhb\",\"type\":\"jhtxfvgxbfsmxne\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
StandbyVirtualMachinePoolResource response = manager.standbyVirtualMachinePools()
- .define("gr")
- .withRegion("pnq")
- .withExistingResourceGroup("godebfqkkrbmpu")
- .withTags(
- mapOf("qqkpikadrg", "mgkbrpyydhibn", "jggmebfsiarbu", "tqagnbuynh", "ttdbhrbnl", "rcvpnazzmhjrunmp"))
+ .define("alpbuxwgipwhon")
+ .withRegion("qftiy")
+ .withExistingResourceGroup("hajdeyeamdpha")
+ .withTags(mapOf("cqvyxlwhzlsico", "n", "hheunmmqhgyx", "oqqnwvlryav", "oklyaxuconuq", "konocu"))
.withProperties(new StandbyVirtualMachinePoolResourceProperties()
.withElasticityProfile(
- new StandbyVirtualMachinePoolElasticityProfile().withMaxReadyCapacity(1675759018761850231L)
- .withMinReadyCapacity(3889123581107506214L))
- .withVirtualMachineState(VirtualMachineState.DEALLOCATED)
- .withAttachedVirtualMachineScaleSetId("puz"))
+ new StandbyVirtualMachinePoolElasticityProfile().withMaxReadyCapacity(1519436992113151985L)
+ .withMinReadyCapacity(297817339455421273L))
+ .withVirtualMachineState(VirtualMachineState.HIBERNATED)
+ .withAttachedVirtualMachineScaleSetId("ixzbinjeputtmryw"))
.create();
- Assertions.assertEquals("yazttbtwwrqpue", response.location());
- Assertions.assertEquals("zywbiex", response.tags().get("fey"));
- Assertions.assertEquals(4821929249053782454L, response.properties().elasticityProfile().maxReadyCapacity());
- Assertions.assertEquals(485400333348355779L, response.properties().elasticityProfile().minReadyCapacity());
+ Assertions.assertEquals("gbiqylihkaet", response.location());
+ Assertions.assertEquals("vfcivfsnkymuc", response.tags().get("qhjfbebr"));
+ Assertions.assertEquals(961124014694533513L, response.properties().elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals(4986041102570951835L, response.properties().elasticityProfile().minReadyCapacity());
Assertions.assertEquals(VirtualMachineState.DEALLOCATED, response.properties().virtualMachineState());
- Assertions.assertEquals("wrqlfktsthsuco", response.properties().attachedVirtualMachineScaleSetId());
+ Assertions.assertEquals("v", response.properties().attachedVirtualMachineScaleSetId());
}
// Use "Map.of" if available
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsGetByResourceGroupWithResponseMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsGetByResourceGroupWithResponseMockTests.java
index 0edcd0ff43f0..9891f03cbd6e 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsGetByResourceGroupWithResponseMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsGetByResourceGroupWithResponseMockTests.java
@@ -6,8 +6,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachinePoolResource;
@@ -22,24 +22,24 @@ public final class StandbyVirtualMachinePoolsGetByResourceGroupWithResponseMockT
@Test
public void testGetByResourceGroupWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":6053350952914955236,\"minReadyCapacity\":5121289277423210616},\"virtualMachineState\":\"Running\",\"attachedVirtualMachineScaleSetId\":\"md\",\"provisioningState\":\"Deleting\"},\"location\":\"alpbuxwgipwhon\",\"tags\":{\"injep\":\"gshwankixz\",\"iyqzrnk\":\"ttmrywnuzoqf\"},\"id\":\"qvyxlwhzlsicoho\",\"name\":\"qnwvlrya\",\"type\":\"w\"}";
+ = "{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":524078729547921435,\"minReadyCapacity\":892637753153699343},\"virtualMachineState\":\"Hibernated\",\"attachedVirtualMachineScaleSetId\":\"exxbczwtr\",\"provisioningState\":\"Failed\"},\"location\":\"zb\",\"tags\":{\"zdobpxjmflbvvnch\":\"sovmyokacspkwl\",\"ajiwkuo\":\"kcciwwzjuqkhr\",\"sauuimj\":\"oskg\"},\"id\":\"vxieduugidyj\",\"name\":\"rfbyaosvexcso\",\"type\":\"pclhocohslk\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
StandbyVirtualMachinePoolResource response = manager.standbyVirtualMachinePools()
- .getByResourceGroupWithResponse("jttgzf", "ishc", com.azure.core.util.Context.NONE)
+ .getByResourceGroupWithResponse("yifqrvkdvjsllrmv", "d", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("alpbuxwgipwhon", response.location());
- Assertions.assertEquals("gshwankixz", response.tags().get("injep"));
- Assertions.assertEquals(6053350952914955236L, response.properties().elasticityProfile().maxReadyCapacity());
- Assertions.assertEquals(5121289277423210616L, response.properties().elasticityProfile().minReadyCapacity());
- Assertions.assertEquals(VirtualMachineState.RUNNING, response.properties().virtualMachineState());
- Assertions.assertEquals("md", response.properties().attachedVirtualMachineScaleSetId());
+ Assertions.assertEquals("zb", response.location());
+ Assertions.assertEquals("sovmyokacspkwl", response.tags().get("zdobpxjmflbvvnch"));
+ Assertions.assertEquals(524078729547921435L, response.properties().elasticityProfile().maxReadyCapacity());
+ Assertions.assertEquals(892637753153699343L, response.properties().elasticityProfile().minReadyCapacity());
+ Assertions.assertEquals(VirtualMachineState.HIBERNATED, response.properties().virtualMachineState());
+ Assertions.assertEquals("exxbczwtr", response.properties().attachedVirtualMachineScaleSetId());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsListByResourceGroupMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsListByResourceGroupMockTests.java
index 11c575a57924..d6f48f5aec93 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsListByResourceGroupMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsListByResourceGroupMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachinePoolResource;
@@ -23,26 +23,26 @@ public final class StandbyVirtualMachinePoolsListByResourceGroupMockTests {
@Test
public void testListByResourceGroup() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":1614258889577107887,\"minReadyCapacity\":4109761267326894562},\"virtualMachineState\":\"Running\",\"attachedVirtualMachineScaleSetId\":\"noc\",\"provisioningState\":\"Canceled\"},\"location\":\"lyaxuc\",\"tags\":{\"beypewrmjmw\":\"qszf\",\"lrsf\":\"vjektcxsenh\"},\"id\":\"rzpwvlqdqgbiq\",\"name\":\"lihkaetcktvfc\",\"type\":\"vf\"}]}";
+ = "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":1895207882840842396,\"minReadyCapacity\":2222190240805338362},\"virtualMachineState\":\"Running\",\"attachedVirtualMachineScaleSetId\":\"m\",\"provisioningState\":\"Failed\"},\"location\":\"shxmzsbbzoggigrx\",\"tags\":{\"jnspydp\":\"rvjx\"},\"id\":\"koen\",\"name\":\"ou\",\"type\":\"nvudwtiukb\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
- PagedIterable response
- = manager.standbyVirtualMachinePools().listByResourceGroup("heun", com.azure.core.util.Context.NONE);
+ PagedIterable response = manager.standbyVirtualMachinePools()
+ .listByResourceGroup("vleggzfbuhfmvfax", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("lyaxuc", response.iterator().next().location());
- Assertions.assertEquals("qszf", response.iterator().next().tags().get("beypewrmjmw"));
- Assertions.assertEquals(1614258889577107887L,
+ Assertions.assertEquals("shxmzsbbzoggigrx", response.iterator().next().location());
+ Assertions.assertEquals("rvjx", response.iterator().next().tags().get("jnspydp"));
+ Assertions.assertEquals(1895207882840842396L,
response.iterator().next().properties().elasticityProfile().maxReadyCapacity());
- Assertions.assertEquals(4109761267326894562L,
+ Assertions.assertEquals(2222190240805338362L,
response.iterator().next().properties().elasticityProfile().minReadyCapacity());
Assertions.assertEquals(VirtualMachineState.RUNNING,
response.iterator().next().properties().virtualMachineState());
- Assertions.assertEquals("noc", response.iterator().next().properties().attachedVirtualMachineScaleSetId());
+ Assertions.assertEquals("m", response.iterator().next().properties().attachedVirtualMachineScaleSetId());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsListMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsListMockTests.java
index f1cf9af4e18c..92dbb77334fd 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsListMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinePoolsListMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachinePoolResource;
@@ -23,26 +23,27 @@ public final class StandbyVirtualMachinePoolsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":6384766698560420676,\"minReadyCapacity\":3228641384783910997},\"virtualMachineState\":\"Running\",\"attachedVirtualMachineScaleSetId\":\"jf\",\"provisioningState\":\"Failed\"},\"location\":\"jcxerfuwu\",\"tags\":{\"xepcyvahfn\":\"xfvjrbirp\",\"xjvuujqgidokg\":\"jky\",\"sncghkjeszz\":\"ljyoxgvcltb\"},\"id\":\"bijhtxfvgxbf\",\"name\":\"mxnehmp\",\"type\":\"ec\"}]}";
+ = "{\"value\":[{\"properties\":{\"elasticityProfile\":{\"maxReadyCapacity\":5310628995485261293,\"minReadyCapacity\":2691769915516552060},\"virtualMachineState\":\"Hibernated\",\"attachedVirtualMachineScaleSetId\":\"azyxoegukg\",\"provisioningState\":\"Succeeded\"},\"location\":\"ucgygevqz\",\"tags\":{\"p\":\"pmr\"},\"id\":\"zcdrqjsdpydnfyhx\",\"name\":\"eoejzic\",\"type\":\"ifsjttgzfbishcb\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response
= manager.standbyVirtualMachinePools().list(com.azure.core.util.Context.NONE);
- Assertions.assertEquals("jcxerfuwu", response.iterator().next().location());
- Assertions.assertEquals("xfvjrbirp", response.iterator().next().tags().get("xepcyvahfn"));
- Assertions.assertEquals(6384766698560420676L,
+ Assertions.assertEquals("ucgygevqz", response.iterator().next().location());
+ Assertions.assertEquals("pmr", response.iterator().next().tags().get("p"));
+ Assertions.assertEquals(5310628995485261293L,
response.iterator().next().properties().elasticityProfile().maxReadyCapacity());
- Assertions.assertEquals(3228641384783910997L,
+ Assertions.assertEquals(2691769915516552060L,
response.iterator().next().properties().elasticityProfile().minReadyCapacity());
- Assertions.assertEquals(VirtualMachineState.RUNNING,
+ Assertions.assertEquals(VirtualMachineState.HIBERNATED,
response.iterator().next().properties().virtualMachineState());
- Assertions.assertEquals("jf", response.iterator().next().properties().attachedVirtualMachineScaleSetId());
+ Assertions.assertEquals("azyxoegukg",
+ response.iterator().next().properties().attachedVirtualMachineScaleSetId());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinesGetWithResponseMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinesGetWithResponseMockTests.java
index c7010893ca34..355c81794fed 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinesGetWithResponseMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinesGetWithResponseMockTests.java
@@ -6,8 +6,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachineResource;
@@ -21,19 +21,19 @@ public final class StandbyVirtualMachinesGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"virtualMachineResourceId\":\"cuh\",\"provisioningState\":\"Succeeded\"},\"id\":\"tyq\",\"name\":\"klbb\",\"type\":\"vplwzbhv\"}";
+ = "{\"properties\":{\"virtualMachineResourceId\":\"bxzpuzycisp\",\"provisioningState\":\"Deleting\"},\"id\":\"hmgkbrpyy\",\"name\":\"hibnuqqkpika\",\"type\":\"rgvtqag\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
StandbyVirtualMachineResource response = manager.standbyVirtualMachines()
- .getWithResponse("bavxbniwdjswzt", "dbpgnxytxhp", "xbzpfzab", com.azure.core.util.Context.NONE)
+ .getWithResponse("mpvecxgodebfqk", "rbmpukgri", "flz", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("cuh", response.properties().virtualMachineResourceId());
+ Assertions.assertEquals("bxzpuzycisp", response.properties().virtualMachineResourceId());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceMockTests.java
index 492b91c2a41e..73765b473098 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceMockTests.java
@@ -7,8 +7,8 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.standbypool.StandbyPoolManager;
import com.azure.resourcemanager.standbypool.models.StandbyVirtualMachineResource;
@@ -22,18 +22,18 @@ public final class StandbyVirtualMachinesListByStandbyVirtualMachinePoolResource
@Test
public void testListByStandbyVirtualMachinePoolResource() throws Exception {
String responseStr
- = "{\"value\":[{\"properties\":{\"virtualMachineResourceId\":\"kjz\",\"provisioningState\":\"Succeeded\"},\"id\":\"lpvlopw\",\"name\":\"yighxpk\",\"type\":\"wzbaiue\"}]}";
+ = "{\"value\":[{\"properties\":{\"virtualMachineResourceId\":\"rbu\",\"provisioningState\":\"Deleting\"},\"id\":\"pnazzm\",\"name\":\"jrunmpxtt\",\"type\":\"bh\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
StandbyPoolManager manager = StandbyPoolManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response = manager.standbyVirtualMachines()
- .listByStandbyVirtualMachinePoolResource("yuguosvmkfssx", "ukkfplgmgs", com.azure.core.util.Context.NONE);
+ .listByStandbyVirtualMachinePoolResource("buynhijggm", "bfs", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("kjz", response.iterator().next().properties().virtualMachineResourceId());
+ Assertions.assertEquals("rbu", response.iterator().next().properties().virtualMachineResourceId());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/SubnetTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/SubnetTests.java
index f5eb48151979..135bcff6e71d 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/SubnetTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/SubnetTests.java
@@ -11,14 +11,14 @@
public final class SubnetTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- Subnet model = BinaryData.fromString("{\"id\":\"obnbdxkqpxokaj\"}").toObject(Subnet.class);
- Assertions.assertEquals("obnbdxkqpxokaj", model.id());
+ Subnet model = BinaryData.fromString("{\"id\":\"jeiachboosfl\"}").toObject(Subnet.class);
+ Assertions.assertEquals("jeiachboosfl", model.id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- Subnet model = new Subnet().withId("obnbdxkqpxokaj");
+ Subnet model = new Subnet().withId("jeiachboosfl");
model = BinaryData.fromObject(model).toObject(Subnet.class);
- Assertions.assertEquals("obnbdxkqpxokaj", model.id());
+ Assertions.assertEquals("jeiachboosfl", model.id());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/VirtualMachineInstanceCountSummaryTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/VirtualMachineInstanceCountSummaryTests.java
index e625ae15de54..49dd182c3e0e 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/VirtualMachineInstanceCountSummaryTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/VirtualMachineInstanceCountSummaryTests.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.standbypool.generated;
import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.standbypool.models.PoolVirtualMachineState;
import com.azure.resourcemanager.standbypool.models.VirtualMachineInstanceCountSummary;
import org.junit.jupiter.api.Assertions;
@@ -12,10 +13,10 @@ public final class VirtualMachineInstanceCountSummaryTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
VirtualMachineInstanceCountSummary model = BinaryData.fromString(
- "{\"zone\":85796477749100882,\"instanceCountsByState\":[{\"state\":\"bvpyss\",\"count\":8719182936346256715},{\"state\":\"rujqg\",\"count\":6415098811593450314},{\"state\":\"uouq\",\"count\":7503430012540655419}]}")
+ "{\"zone\":6655543031987188756,\"instanceCountsByState\":[{\"state\":\"Deallocated\",\"count\":5217327379206362670},{\"state\":\"Creating\",\"count\":9057037144424682502}]}")
.toObject(VirtualMachineInstanceCountSummary.class);
- Assertions.assertEquals(85796477749100882L, model.zone());
- Assertions.assertEquals("bvpyss", model.instanceCountsByState().get(0).state());
- Assertions.assertEquals(8719182936346256715L, model.instanceCountsByState().get(0).count());
+ Assertions.assertEquals(6655543031987188756L, model.zone());
+ Assertions.assertEquals(PoolVirtualMachineState.DEALLOCATED, model.instanceCountsByState().get(0).state());
+ Assertions.assertEquals(5217327379206362670L, model.instanceCountsByState().get(0).count());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/tsp-location.yaml b/sdk/standbypool/azure-resourcemanager-standbypool/tsp-location.yaml
index 8c53e98e7792..dda2cbee589e 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/tsp-location.yaml
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/tsp-location.yaml
@@ -1,4 +1,4 @@
directory: specification/standbypool/StandbyPool.Management
-commit: f93850874010501f216ceadf19459402efd16d9e
+commit: 3d260fd2d0204f30ffe6c081d4605bbd30d918c5
repo: Azure/azure-rest-api-specs
additionalDirectories: