diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/CHANGELOG.md b/sdk/standbypool/azure-resourcemanager-standbypool/CHANGELOG.md
index 62b558c58bc5f..fa5aa36c63a46 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/CHANGELOG.md
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/CHANGELOG.md
@@ -1,14 +1,14 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2024-12-17)
-### 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
+#### `StandbyPoolManager` was modified
-### Other Changes
+* `fluent.StandbyPoolClient serviceClient()` -> `fluent.StandbyPoolManagementClient serviceClient()`
## 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 b0288c241a333..c7a53c970761e 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})
@@ -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)
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/pom.xml b/sdk/standbypool/azure-resourcemanager-standbypool/pom.xml
index 7f2a5d44b4277..546a84bad7714 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.3.0
-
com.azure
azure-core
@@ -70,15 +66,20 @@
test
- com.azure.resourcemanager
- azure-resourcemanager-compute
- 2.45.0
+ com.azure
+ azure-identity
+ 1.14.2
test
com.azure
- azure-identity
- 1.14.2
+ azure-json
+ 1.3.0
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-compute
+ 2.45.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 7879c25ef6aa7..64fa0656ae141 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
@@ -23,11 +23,11 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
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;
@@ -60,12 +60,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)
@@ -348,12 +348,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 943d29ef96425..b5684758cbcb2 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 c40b5d4cb9261..0fb3b0d8032d0 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 5b3d494d6532a..e06aee82e57bb 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 b0ea688952943..a53d832586ee9 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 9df0fdc8c466c..f26954f56206b 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 7fc3a0341e57c..00b6413f9a429 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,8 +222,8 @@ 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;
@@ -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 e2ca7156a0791..4343e2e4aeef4 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 d7da20d4f5c36..3e942160245dd 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 2cba0d7d86ca3..63437030881dd 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/test/java/com/azure/resourcemanager/standbypool/generated/OperationInnerTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationInnerTests.java
index 1ba1a80abcfee..bf7186ecc7de8 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationInnerTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationInnerTests.java
@@ -6,8 +6,6 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.standbypool.fluent.models.OperationInner;
-import com.azure.resourcemanager.standbypool.models.ActionType;
-import org.junit.jupiter.api.Assertions;
public final class OperationInnerTests {
@org.junit.jupiter.api.Test
@@ -15,6 +13,5 @@ public void testDeserialize() throws Exception {
OperationInner model = BinaryData.fromString(
"{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}")
.toObject(OperationInner.class);
- Assertions.assertEquals(ActionType.INTERNAL, model.actionType());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationListResultTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationListResultTests.java
index 160d724567483..e294d9c0ae92e 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationListResultTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationListResultTests.java
@@ -6,7 +6,6 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.standbypool.implementation.models.OperationListResult;
-import com.azure.resourcemanager.standbypool.models.ActionType;
import org.junit.jupiter.api.Assertions;
public final class OperationListResultTests {
@@ -15,7 +14,6 @@ public void testDeserialize() throws Exception {
OperationListResult model = BinaryData.fromString(
"{\"value\":[{\"name\":\"hq\",\"isDataAction\":true,\"display\":{\"provider\":\"pybczmehmtzopb\",\"resource\":\"h\",\"operation\":\"pidgsybbejhphoyc\",\"description\":\"xaobhdxbmtqioqjz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"fpownoizhwlr\",\"isDataAction\":false,\"display\":{\"provider\":\"oqijgkdmbpaz\",\"resource\":\"bc\",\"operation\":\"pdznrbtcqqjnqgl\",\"description\":\"gnufoooj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"esaagdfm\",\"isDataAction\":true,\"display\":{\"provider\":\"j\",\"resource\":\"ifkwmrvktsizntoc\",\"operation\":\"a\",\"description\":\"ajpsquc\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"kfo\"}")
.toObject(OperationListResult.class);
- Assertions.assertEquals(ActionType.INTERNAL, model.value().get(0).actionType());
Assertions.assertEquals("kfo", model.nextLink());
}
}
diff --git a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationsListMockTests.java b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationsListMockTests.java
index 9721a0b14e76c..f4dad6a728211 100644
--- a/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationsListMockTests.java
+++ b/sdk/standbypool/azure-resourcemanager-standbypool/src/test/java/com/azure/resourcemanager/standbypool/generated/OperationsListMockTests.java
@@ -11,11 +11,9 @@
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.ActionType;
import com.azure.resourcemanager.standbypool.models.Operation;
import java.nio.charset.StandardCharsets;
import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;
@@ -34,6 +32,5 @@ public void testList() throws Exception {
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/tsp-location.yaml b/sdk/standbypool/azure-resourcemanager-standbypool/tsp-location.yaml
index 8c53e98e7792e..d141c40c7ef73 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: 1521e6b108259d240d8b6b359247bbe072b41bc7
repo: Azure/azure-rest-api-specs
additionalDirectories: