> listHealthDetailsNext
res.getValue().nextLink(),
null));
}
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return values returned by the List operation along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listOutboundNetworkDependenciesEndpointsNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listOutboundNetworkDependenciesEndpointsNext(
+ nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return values returned by the List operation along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listOutboundNetworkDependenciesEndpointsNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listOutboundNetworkDependenciesEndpointsNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/NetworkConnectionsImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/NetworkConnectionsImpl.java
index ebb5165335a9d..637910c25d68a 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/NetworkConnectionsImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/NetworkConnectionsImpl.java
@@ -12,9 +12,11 @@
import com.azure.resourcemanager.devcenter.fluent.NetworkConnectionsClient;
import com.azure.resourcemanager.devcenter.fluent.models.HealthCheckStatusDetailsInner;
import com.azure.resourcemanager.devcenter.fluent.models.NetworkConnectionInner;
+import com.azure.resourcemanager.devcenter.fluent.models.OutboundEnvironmentEndpointInner;
import com.azure.resourcemanager.devcenter.models.HealthCheckStatusDetails;
import com.azure.resourcemanager.devcenter.models.NetworkConnection;
import com.azure.resourcemanager.devcenter.models.NetworkConnections;
+import com.azure.resourcemanager.devcenter.models.OutboundEnvironmentEndpoint;
public final class NetworkConnectionsImpl implements NetworkConnections {
private static final ClientLogger LOGGER = new ClientLogger(NetworkConnectionsImpl.class);
@@ -131,6 +133,22 @@ public void runHealthChecks(String resourceGroupName, String networkConnectionNa
this.serviceClient().runHealthChecks(resourceGroupName, networkConnectionName, context);
}
+ public PagedIterable listOutboundNetworkDependenciesEndpoints(
+ String resourceGroupName, String networkConnectionName) {
+ PagedIterable inner =
+ this.serviceClient().listOutboundNetworkDependenciesEndpoints(resourceGroupName, networkConnectionName);
+ return Utils.mapPage(inner, inner1 -> new OutboundEnvironmentEndpointImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listOutboundNetworkDependenciesEndpoints(
+ String resourceGroupName, String networkConnectionName, Integer top, Context context) {
+ PagedIterable inner =
+ this
+ .serviceClient()
+ .listOutboundNetworkDependenciesEndpoints(resourceGroupName, networkConnectionName, top, context);
+ return Utils.mapPage(inner, inner1 -> new OutboundEnvironmentEndpointImpl(inner1, this.manager()));
+ }
+
public NetworkConnection getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/OutboundEnvironmentEndpointImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/OutboundEnvironmentEndpointImpl.java
new file mode 100644
index 0000000000000..56f1611c99b7e
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/OutboundEnvironmentEndpointImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.implementation;
+
+import com.azure.resourcemanager.devcenter.fluent.models.OutboundEnvironmentEndpointInner;
+import com.azure.resourcemanager.devcenter.models.EndpointDependency;
+import com.azure.resourcemanager.devcenter.models.OutboundEnvironmentEndpoint;
+import java.util.Collections;
+import java.util.List;
+
+public final class OutboundEnvironmentEndpointImpl implements OutboundEnvironmentEndpoint {
+ private OutboundEnvironmentEndpointInner innerObject;
+
+ private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
+
+ OutboundEnvironmentEndpointImpl(
+ OutboundEnvironmentEndpointInner innerObject,
+ com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String category() {
+ return this.innerModel().category();
+ }
+
+ public List endpoints() {
+ List inner = this.innerModel().endpoints();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public OutboundEnvironmentEndpointInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolImpl.java
index a701f6e5a91b6..3ae57248240ba 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolImpl.java
@@ -8,12 +8,16 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.fluent.models.PoolInner;
+import com.azure.resourcemanager.devcenter.models.HealthStatus;
+import com.azure.resourcemanager.devcenter.models.HealthStatusDetail;
import com.azure.resourcemanager.devcenter.models.LicenseType;
import com.azure.resourcemanager.devcenter.models.LocalAdminStatus;
import com.azure.resourcemanager.devcenter.models.Pool;
import com.azure.resourcemanager.devcenter.models.PoolUpdate;
import com.azure.resourcemanager.devcenter.models.ProvisioningState;
+import com.azure.resourcemanager.devcenter.models.StopOnDisconnectConfiguration;
import java.util.Collections;
+import java.util.List;
import java.util.Map;
public final class PoolImpl implements Pool, Pool.Definition, Pool.Update {
@@ -50,6 +54,19 @@ public SystemData systemData() {
return this.innerModel().systemData();
}
+ public HealthStatus healthStatus() {
+ return this.innerModel().healthStatus();
+ }
+
+ public List healthStatusDetails() {
+ List inner = this.innerModel().healthStatusDetails();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
public ProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
@@ -70,6 +87,10 @@ public LocalAdminStatus localAdministrator() {
return this.innerModel().localAdministrator();
}
+ public StopOnDisconnectConfiguration stopOnDisconnect() {
+ return this.innerModel().stopOnDisconnect();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -179,6 +200,14 @@ public Pool refresh(Context context) {
return this;
}
+ public void runHealthChecks() {
+ serviceManager.pools().runHealthChecks(resourceGroupName, projectName, poolName);
+ }
+
+ public void runHealthChecks(Context context) {
+ serviceManager.pools().runHealthChecks(resourceGroupName, projectName, poolName, context);
+ }
+
public PoolImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
@@ -239,6 +268,16 @@ public PoolImpl withLocalAdministrator(LocalAdminStatus localAdministrator) {
}
}
+ public PoolImpl withStopOnDisconnect(StopOnDisconnectConfiguration stopOnDisconnect) {
+ if (isInCreateMode()) {
+ this.innerModel().withStopOnDisconnect(stopOnDisconnect);
+ return this;
+ } else {
+ this.updateBody.withStopOnDisconnect(stopOnDisconnect);
+ return this;
+ }
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolsClientImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolsClientImpl.java
index 4e95ce4416c1f..19516143f518d 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolsClientImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolsClientImpl.java
@@ -14,6 +14,7 @@
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -147,6 +148,22 @@ Mono>> delete(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects"
+ + "/{projectName}/pools/{poolName}/runHealthChecks")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> runHealthChecks(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("projectName") String projectName,
+ @PathParam("poolName") String poolName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -702,7 +719,7 @@ private PollerFlux, PoolInner> beginCreateOrUpdateAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, PoolInner> beginCreateOrUpdate(
String resourceGroupName, String projectName, String poolName, PoolInner body) {
- return beginCreateOrUpdateAsync(resourceGroupName, projectName, poolName, body).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceGroupName, projectName, poolName, body).getSyncPoller();
}
/**
@@ -721,7 +738,7 @@ public SyncPoller, PoolInner> beginCreateOrUpdate(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, PoolInner> beginCreateOrUpdate(
String resourceGroupName, String projectName, String poolName, PoolInner body, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, projectName, poolName, body, context).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceGroupName, projectName, poolName, body, context).getSyncPoller();
}
/**
@@ -981,7 +998,7 @@ private PollerFlux, PoolInner> beginUpdateAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, PoolInner> beginUpdate(
String resourceGroupName, String projectName, String poolName, PoolUpdate body) {
- return beginUpdateAsync(resourceGroupName, projectName, poolName, body).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, projectName, poolName, body).getSyncPoller();
}
/**
@@ -1000,7 +1017,7 @@ public SyncPoller, PoolInner> beginUpdate(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, PoolInner> beginUpdate(
String resourceGroupName, String projectName, String poolName, PoolUpdate body, Context context) {
- return beginUpdateAsync(resourceGroupName, projectName, poolName, body, context).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, projectName, poolName, body, context).getSyncPoller();
}
/**
@@ -1242,7 +1259,7 @@ private PollerFlux, Void> beginDeleteAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String projectName, String poolName) {
- return beginDeleteAsync(resourceGroupName, projectName, poolName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, projectName, poolName).getSyncPoller();
}
/**
@@ -1260,7 +1277,7 @@ public SyncPoller, Void> beginDelete(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String projectName, String poolName, Context context) {
- return beginDeleteAsync(resourceGroupName, projectName, poolName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, projectName, poolName, context).getSyncPoller();
}
/**
@@ -1331,6 +1348,259 @@ public void delete(String resourceGroupName, String projectName, String poolName
deleteAsync(resourceGroupName, projectName, poolName, context).block();
}
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> runHealthChecksWithResponseAsync(
+ String resourceGroupName, String projectName, String poolName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .runHealthChecks(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ projectName,
+ poolName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> runHealthChecksWithResponseAsync(
+ String resourceGroupName, String projectName, String poolName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (poolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .runHealthChecks(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ projectName,
+ poolName,
+ accept,
+ context);
+ }
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginRunHealthChecksAsync(
+ String resourceGroupName, String projectName, String poolName) {
+ Mono>> mono =
+ runHealthChecksWithResponseAsync(resourceGroupName, projectName, poolName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginRunHealthChecksAsync(
+ String resourceGroupName, String projectName, String poolName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ runHealthChecksWithResponseAsync(resourceGroupName, projectName, poolName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginRunHealthChecks(
+ String resourceGroupName, String projectName, String poolName) {
+ return this.beginRunHealthChecksAsync(resourceGroupName, projectName, poolName).getSyncPoller();
+ }
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginRunHealthChecks(
+ String resourceGroupName, String projectName, String poolName, Context context) {
+ return this.beginRunHealthChecksAsync(resourceGroupName, projectName, poolName, context).getSyncPoller();
+ }
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono runHealthChecksAsync(String resourceGroupName, String projectName, String poolName) {
+ return beginRunHealthChecksAsync(resourceGroupName, projectName, poolName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono runHealthChecksAsync(
+ String resourceGroupName, String projectName, String poolName, Context context) {
+ return beginRunHealthChecksAsync(resourceGroupName, projectName, poolName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void runHealthChecks(String resourceGroupName, String projectName, String poolName) {
+ runHealthChecksAsync(resourceGroupName, projectName, poolName).block();
+ }
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void runHealthChecks(String resourceGroupName, String projectName, String poolName, Context context) {
+ runHealthChecksAsync(resourceGroupName, projectName, poolName, context).block();
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolsImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolsImpl.java
index 81c1a04208aff..456bef1090664 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolsImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/PoolsImpl.java
@@ -70,6 +70,14 @@ public void delete(String resourceGroupName, String projectName, String poolName
this.serviceClient().delete(resourceGroupName, projectName, poolName, context);
}
+ public void runHealthChecks(String resourceGroupName, String projectName, String poolName) {
+ this.serviceClient().runHealthChecks(resourceGroupName, projectName, poolName);
+ }
+
+ public void runHealthChecks(String resourceGroupName, String projectName, String poolName, Context context) {
+ this.serviceClient().runHealthChecks(resourceGroupName, projectName, poolName, context);
+ }
+
public Pool getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectEnvironmentTypeImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectEnvironmentTypeImpl.java
index 18bab97e2fea1..f8d3e81c4cffb 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectEnvironmentTypeImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectEnvironmentTypeImpl.java
@@ -8,7 +8,7 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.fluent.models.ProjectEnvironmentTypeInner;
-import com.azure.resourcemanager.devcenter.models.EnableStatus;
+import com.azure.resourcemanager.devcenter.models.EnvironmentTypeEnableStatus;
import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentity;
import com.azure.resourcemanager.devcenter.models.ProjectEnvironmentType;
import com.azure.resourcemanager.devcenter.models.ProjectEnvironmentTypeUpdate;
@@ -65,7 +65,7 @@ public String deploymentTargetId() {
return this.innerModel().deploymentTargetId();
}
- public EnableStatus status() {
+ public EnvironmentTypeEnableStatus status() {
return this.innerModel().status();
}
@@ -238,7 +238,7 @@ public ProjectEnvironmentTypeImpl withDeploymentTargetId(String deploymentTarget
}
}
- public ProjectEnvironmentTypeImpl withStatus(EnableStatus status) {
+ public ProjectEnvironmentTypeImpl withStatus(EnvironmentTypeEnableStatus status) {
if (isInCreateMode()) {
this.innerModel().withStatus(status);
return this;
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectImpl.java
index bb3954bab0824..aa28e29861f3f 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectImpl.java
@@ -64,6 +64,10 @@ public String description() {
return this.innerModel().description();
}
+ public Integer maxDevBoxesPerUser() {
+ return this.innerModel().maxDevBoxesPerUser();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -206,6 +210,16 @@ public ProjectImpl withDescription(String description) {
}
}
+ public ProjectImpl withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser) {
+ if (isInCreateMode()) {
+ this.innerModel().withMaxDevBoxesPerUser(maxDevBoxesPerUser);
+ return this;
+ } else {
+ this.updateBody.withMaxDevBoxesPerUser(maxDevBoxesPerUser);
+ return this;
+ }
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectsClientImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectsClientImpl.java
index 2dcf8b6b0ac82..358d2b8d32dd9 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectsClientImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ProjectsClientImpl.java
@@ -842,7 +842,7 @@ private PollerFlux, ProjectInner> beginCreateOrUpdateAs
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ProjectInner> beginCreateOrUpdate(
String resourceGroupName, String projectName, ProjectInner body) {
- return beginCreateOrUpdateAsync(resourceGroupName, projectName, body).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceGroupName, projectName, body).getSyncPoller();
}
/**
@@ -860,7 +860,7 @@ public SyncPoller, ProjectInner> beginCreateOrUpdate(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ProjectInner> beginCreateOrUpdate(
String resourceGroupName, String projectName, ProjectInner body, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, projectName, body, context).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceGroupName, projectName, body, context).getSyncPoller();
}
/**
@@ -1101,7 +1101,7 @@ private PollerFlux, ProjectInner> beginUpdateAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ProjectInner> beginUpdate(
String resourceGroupName, String projectName, ProjectUpdate body) {
- return beginUpdateAsync(resourceGroupName, projectName, body).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, projectName, body).getSyncPoller();
}
/**
@@ -1119,7 +1119,7 @@ public SyncPoller, ProjectInner> beginUpdate(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ProjectInner> beginUpdate(
String resourceGroupName, String projectName, ProjectUpdate body, Context context) {
- return beginUpdateAsync(resourceGroupName, projectName, body, context).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, projectName, body, context).getSyncPoller();
}
/**
@@ -1338,7 +1338,7 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String projectName) {
- return beginDeleteAsync(resourceGroupName, projectName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, projectName).getSyncPoller();
}
/**
@@ -1355,7 +1355,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String projectName, Context context) {
- return beginDeleteAsync(resourceGroupName, projectName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, projectName, context).getSyncPoller();
}
/**
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ScheduleImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ScheduleImpl.java
index bae3cab45f2ed..37d0cb9916847 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ScheduleImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/ScheduleImpl.java
@@ -7,9 +7,9 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.fluent.models.ScheduleInner;
-import com.azure.resourcemanager.devcenter.models.EnableStatus;
import com.azure.resourcemanager.devcenter.models.ProvisioningState;
import com.azure.resourcemanager.devcenter.models.Schedule;
+import com.azure.resourcemanager.devcenter.models.ScheduleEnableStatus;
import com.azure.resourcemanager.devcenter.models.ScheduleUpdate;
import com.azure.resourcemanager.devcenter.models.ScheduledFrequency;
import com.azure.resourcemanager.devcenter.models.ScheduledType;
@@ -56,7 +56,7 @@ public String timeZone() {
return this.innerModel().timeZone();
}
- public EnableStatus state() {
+ public ScheduleEnableStatus state() {
return this.innerModel().state();
}
@@ -210,7 +210,7 @@ public ScheduleImpl withTimeZone(String timeZone) {
}
}
- public ScheduleImpl withState(EnableStatus state) {
+ public ScheduleImpl withState(ScheduleEnableStatus state) {
if (isInCreateMode()) {
this.innerModel().withState(state);
return this;
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/SchedulesClientImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/SchedulesClientImpl.java
index f7224428e4ee7..456b92ac91c30 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/SchedulesClientImpl.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/SchedulesClientImpl.java
@@ -836,7 +836,8 @@ private PollerFlux, ScheduleInner> beginCreateOrUpdate
public SyncPoller, ScheduleInner> beginCreateOrUpdate(
String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleInner body) {
final Integer top = null;
- return beginCreateOrUpdateAsync(resourceGroupName, projectName, poolName, scheduleName, body, top)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, projectName, poolName, scheduleName, body, top)
.getSyncPoller();
}
@@ -864,7 +865,8 @@ public SyncPoller, ScheduleInner> beginCreateOrUpdate(
ScheduleInner body,
Integer top,
Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, projectName, poolName, scheduleName, body, top, context)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, projectName, poolName, scheduleName, body, top, context)
.getSyncPoller();
}
@@ -1251,7 +1253,7 @@ private PollerFlux, ScheduleInner> beginUpdateAsync(
public SyncPoller, ScheduleInner> beginUpdate(
String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleUpdate body) {
final Integer top = null;
- return beginUpdateAsync(resourceGroupName, projectName, poolName, scheduleName, body, top).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, projectName, poolName, scheduleName, body, top).getSyncPoller();
}
/**
@@ -1278,7 +1280,8 @@ public SyncPoller, ScheduleInner> beginUpdate(
ScheduleUpdate body,
Integer top,
Context context) {
- return beginUpdateAsync(resourceGroupName, projectName, poolName, scheduleName, body, top, context)
+ return this
+ .beginUpdateAsync(resourceGroupName, projectName, poolName, scheduleName, body, top, context)
.getSyncPoller();
}
@@ -1624,7 +1627,7 @@ private PollerFlux, Void> beginDeleteAsync(
public SyncPoller, Void> beginDelete(
String resourceGroupName, String projectName, String poolName, String scheduleName) {
final Integer top = null;
- return beginDeleteAsync(resourceGroupName, projectName, poolName, scheduleName, top).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, projectName, poolName, scheduleName, top).getSyncPoller();
}
/**
@@ -1649,7 +1652,9 @@ public SyncPoller, Void> beginDelete(
String scheduleName,
Integer top,
Context context) {
- return beginDeleteAsync(resourceGroupName, projectName, poolName, scheduleName, top, context).getSyncPoller();
+ return this
+ .beginDeleteAsync(resourceGroupName, projectName, poolName, scheduleName, top, context)
+ .getSyncPoller();
}
/**
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/UsageImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/UsageImpl.java
deleted file mode 100644
index 7f566ad645c0d..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/UsageImpl.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.implementation;
-
-import com.azure.resourcemanager.devcenter.fluent.models.UsageInner;
-import com.azure.resourcemanager.devcenter.models.Usage;
-import com.azure.resourcemanager.devcenter.models.UsageName;
-import com.azure.resourcemanager.devcenter.models.UsageUnit;
-
-public final class UsageImpl implements Usage {
- private UsageInner innerObject;
-
- private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
-
- UsageImpl(UsageInner innerObject, com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public Long currentValue() {
- return this.innerModel().currentValue();
- }
-
- public Long limit() {
- return this.innerModel().limit();
- }
-
- public UsageUnit unit() {
- return this.innerModel().unit();
- }
-
- public UsageName name() {
- return this.innerModel().name();
- }
-
- public UsageInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/UsagesClientImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/UsagesClientImpl.java
deleted file mode 100644
index c5d1a3e7582ab..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/UsagesClientImpl.java
+++ /dev/null
@@ -1,312 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.implementation;
-
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.devcenter.fluent.UsagesClient;
-import com.azure.resourcemanager.devcenter.fluent.models.UsageInner;
-import com.azure.resourcemanager.devcenter.models.ListUsagesResult;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in UsagesClient. */
-public final class UsagesClientImpl implements UsagesClient {
- /** The proxy service used to perform REST calls. */
- private final UsagesService service;
-
- /** The service client containing this operation class. */
- private final DevCenterManagementClientImpl client;
-
- /**
- * Initializes an instance of UsagesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- UsagesClientImpl(DevCenterManagementClientImpl client) {
- this.service = RestProxy.create(UsagesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for DevCenterManagementClientUsages to be used by the proxy service to
- * perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "DevCenterManagementC")
- public interface UsagesService {
- @Headers({"Content-Type: application/json"})
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByLocation(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("location") String location,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByLocationNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Lists the current usages and limits in this location for the provided subscription.
- *
- * @param location The Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByLocationSinglePageAsync(String location) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (location == null) {
- return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .listByLocation(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- location,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Lists the current usages and limits in this location for the provided subscription.
- *
- * @param location The Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByLocationSinglePageAsync(String location, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (location == null) {
- return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByLocation(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- location,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
- }
-
- /**
- * Lists the current usages and limits in this location for the provided subscription.
- *
- * @param location The Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByLocationAsync(String location) {
- return new PagedFlux<>(
- () -> listByLocationSinglePageAsync(location), nextLink -> listByLocationNextSinglePageAsync(nextLink));
- }
-
- /**
- * Lists the current usages and limits in this location for the provided subscription.
- *
- * @param location The Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByLocationAsync(String location, Context context) {
- return new PagedFlux<>(
- () -> listByLocationSinglePageAsync(location, context),
- nextLink -> listByLocationNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Lists the current usages and limits in this location for the provided subscription.
- *
- * @param location The Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByLocation(String location) {
- return new PagedIterable<>(listByLocationAsync(location));
- }
-
- /**
- * Lists the current usages and limits in this location for the provided subscription.
- *
- * @param location The Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByLocation(String location, Context context) {
- return new PagedIterable<>(listByLocationAsync(location, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByLocationNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByLocationNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByLocationNextSinglePageAsync(String nextLink, Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByLocationNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/UsagesImpl.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/UsagesImpl.java
deleted file mode 100644
index 11887db84f98a..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/implementation/UsagesImpl.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.devcenter.fluent.UsagesClient;
-import com.azure.resourcemanager.devcenter.fluent.models.UsageInner;
-import com.azure.resourcemanager.devcenter.models.Usage;
-import com.azure.resourcemanager.devcenter.models.Usages;
-
-public final class UsagesImpl implements Usages {
- private static final ClientLogger LOGGER = new ClientLogger(UsagesImpl.class);
-
- private final UsagesClient innerClient;
-
- private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;
-
- public UsagesImpl(UsagesClient innerClient, com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable listByLocation(String location) {
- PagedIterable inner = this.serviceClient().listByLocation(location);
- return Utils.mapPage(inner, inner1 -> new UsageImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByLocation(String location, Context context) {
- PagedIterable inner = this.serviceClient().listByLocation(location, context);
- return Utils.mapPage(inner, inner1 -> new UsageImpl(inner1, this.manager()));
- }
-
- private UsagesClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ActionType.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ActionType.java
index 36b4c2dac19af..974c5019c3a46 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ActionType.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ActionType.java
@@ -13,6 +13,15 @@ public final class ActionType extends ExpandableStringEnum {
/** Static value Internal for ActionType. */
public static final ActionType INTERNAL = fromString("Internal");
+ /**
+ * Creates a new instance of ActionType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ActionType() {
+ }
+
/**
* Creates or finds a ActionType from its string representation.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogSyncState.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogSyncState.java
index ce1ddf2868cd7..b6126a4e56795 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogSyncState.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/CatalogSyncState.java
@@ -22,6 +22,15 @@ public final class CatalogSyncState extends ExpandableStringEnum {
/** Static value AzureADJoin for DomainJoinType. */
public static final DomainJoinType AZURE_ADJOIN = fromString("AzureADJoin");
+ /**
+ * Creates a new instance of DomainJoinType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DomainJoinType() {
+ }
+
/**
* Creates or finds a DomainJoinType from its string representation.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnableStatus.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnableStatus.java
deleted file mode 100644
index 5cd40cbfefea1..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnableStatus.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.models;
-
-import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import java.util.Collection;
-
-/** Enable or disable status. Indicates whether the property applied to is either enabled or disabled. */
-public final class EnableStatus extends ExpandableStringEnum {
- /** Static value Enabled for EnableStatus. */
- public static final EnableStatus ENABLED = fromString("Enabled");
-
- /** Static value Disabled for EnableStatus. */
- public static final EnableStatus DISABLED = fromString("Disabled");
-
- /**
- * Creates or finds a EnableStatus from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding EnableStatus.
- */
- @JsonCreator
- public static EnableStatus fromString(String name) {
- return fromString(name, EnableStatus.class);
- }
-
- /**
- * Gets known EnableStatus values.
- *
- * @return known EnableStatus values.
- */
- public static Collection values() {
- return values(EnableStatus.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EndpointDependency.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EndpointDependency.java
new file mode 100644
index 0000000000000..5e03354b42adf
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EndpointDependency.java
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A domain name and connection details used to access a dependency. */
+@Immutable
+public final class EndpointDependency {
+ /*
+ * The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard.
+ */
+ @JsonProperty(value = "domainName", access = JsonProperty.Access.WRITE_ONLY)
+ private String domainName;
+
+ /*
+ * Human-readable supplemental information about the dependency and when it is applicable.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /*
+ * The list of connection details for this endpoint.
+ */
+ @JsonProperty(value = "endpointDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private List endpointDetails;
+
+ /** Creates an instance of EndpointDependency class. */
+ public EndpointDependency() {
+ }
+
+ /**
+ * Get the domainName property: The domain name of the dependency. Domain names may be fully qualified or may
+ * contain a * wildcard.
+ *
+ * @return the domainName value.
+ */
+ public String domainName() {
+ return this.domainName;
+ }
+
+ /**
+ * Get the description property: Human-readable supplemental information about the dependency and when it is
+ * applicable.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the endpointDetails property: The list of connection details for this endpoint.
+ *
+ * @return the endpointDetails value.
+ */
+ public List endpointDetails() {
+ return this.endpointDetails;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (endpointDetails() != null) {
+ endpointDetails().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EndpointDetail.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EndpointDetail.java
new file mode 100644
index 0000000000000..a5fee9e11c03d
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EndpointDetail.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Details about the connection between the Batch service and the endpoint. */
+@Immutable
+public final class EndpointDetail {
+ /*
+ * The port an endpoint is connected to.
+ */
+ @JsonProperty(value = "port", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer port;
+
+ /** Creates an instance of EndpointDetail class. */
+ public EndpointDetail() {
+ }
+
+ /**
+ * Get the port property: The port an endpoint is connected to.
+ *
+ * @return the port value.
+ */
+ public Integer port() {
+ return this.port;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentTypeEnableStatus.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentTypeEnableStatus.java
new file mode 100644
index 0000000000000..beba5c0c548ec
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/EnvironmentTypeEnableStatus.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Indicates whether the environment type is either enabled or disabled. */
+public final class EnvironmentTypeEnableStatus extends ExpandableStringEnum {
+ /** Static value Enabled for EnvironmentTypeEnableStatus. */
+ public static final EnvironmentTypeEnableStatus ENABLED = fromString("Enabled");
+
+ /** Static value Disabled for EnvironmentTypeEnableStatus. */
+ public static final EnvironmentTypeEnableStatus DISABLED = fromString("Disabled");
+
+ /**
+ * Creates a new instance of EnvironmentTypeEnableStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public EnvironmentTypeEnableStatus() {
+ }
+
+ /**
+ * Creates or finds a EnvironmentTypeEnableStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding EnvironmentTypeEnableStatus.
+ */
+ @JsonCreator
+ public static EnvironmentTypeEnableStatus fromString(String name) {
+ return fromString(name, EnvironmentTypeEnableStatus.class);
+ }
+
+ /**
+ * Gets known EnvironmentTypeEnableStatus values.
+ *
+ * @return known EnvironmentTypeEnableStatus values.
+ */
+ public static Collection values() {
+ return values(EnvironmentTypeEnableStatus.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HealthCheckStatus.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HealthCheckStatus.java
index c40ec0404134b..717d139ebe817 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HealthCheckStatus.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HealthCheckStatus.java
@@ -10,6 +10,9 @@
/** Health check status values. */
public final class HealthCheckStatus extends ExpandableStringEnum {
+ /** Static value Unknown for HealthCheckStatus. */
+ public static final HealthCheckStatus UNKNOWN = fromString("Unknown");
+
/** Static value Pending for HealthCheckStatus. */
public static final HealthCheckStatus PENDING = fromString("Pending");
@@ -19,14 +22,20 @@ public final class HealthCheckStatus extends ExpandableStringEnum {
+ /** Static value Unknown for HealthStatus. */
+ public static final HealthStatus UNKNOWN = fromString("Unknown");
+
+ /** Static value Pending for HealthStatus. */
+ public static final HealthStatus PENDING = fromString("Pending");
+
+ /** Static value Healthy for HealthStatus. */
+ public static final HealthStatus HEALTHY = fromString("Healthy");
+
+ /** Static value Warning for HealthStatus. */
+ public static final HealthStatus WARNING = fromString("Warning");
+
+ /** Static value Unhealthy for HealthStatus. */
+ public static final HealthStatus UNHEALTHY = fromString("Unhealthy");
+
+ /**
+ * Creates a new instance of HealthStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public HealthStatus() {
+ }
+
+ /**
+ * Creates or finds a HealthStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding HealthStatus.
+ */
+ @JsonCreator
+ public static HealthStatus fromString(String name) {
+ return fromString(name, HealthStatus.class);
+ }
+
+ /**
+ * Gets known HealthStatus values.
+ *
+ * @return known HealthStatus values.
+ */
+ public static Collection values() {
+ return values(HealthStatus.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HealthStatusDetail.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HealthStatusDetail.java
new file mode 100644
index 0000000000000..510b7bf8fbb2d
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HealthStatusDetail.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Pool health status detail. */
+@Immutable
+public final class HealthStatusDetail {
+ /*
+ * An identifier for the issue.
+ */
+ @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
+ private String code;
+
+ /*
+ * A message describing the issue, intended to be suitable for display in a user interface
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /** Creates an instance of HealthStatusDetail class. */
+ public HealthStatusDetail() {
+ }
+
+ /**
+ * Get the code property: An identifier for the issue.
+ *
+ * @return the code value.
+ */
+ public String code() {
+ return this.code;
+ }
+
+ /**
+ * Get the message property: A message describing the issue, intended to be suitable for display in a user
+ * interface.
+ *
+ * @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() {
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HibernateSupport.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HibernateSupport.java
index c3892a3d6cafa..800b6dee0a9b9 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HibernateSupport.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/HibernateSupport.java
@@ -16,6 +16,15 @@ public final class HibernateSupport extends ExpandableStringEnum {
/** Static value Windows_Client for LicenseType. */
public static final LicenseType WINDOWS_CLIENT = fromString("Windows_Client");
+ /**
+ * Creates a new instance of LicenseType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public LicenseType() {
+ }
+
/**
* Creates or finds a LicenseType from its string representation.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ListUsagesResult.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ListUsagesResult.java
deleted file mode 100644
index b7f1d5d2239c7..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ListUsagesResult.java
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.resourcemanager.devcenter.fluent.models.UsageInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** List of Core Usages. */
-@Immutable
-public final class ListUsagesResult {
- /*
- * The array page of Usages.
- */
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
- private List value;
-
- /*
- * The link to get the next page of Usage result.
- */
- @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
- private String nextLink;
-
- /** Creates an instance of ListUsagesResult class. */
- public ListUsagesResult() {
- }
-
- /**
- * Get the value property: The array page of Usages.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Get the nextLink property: The link to get the next page of Usage result.
- *
- * @return the nextLink value.
- */
- public String nextLink() {
- return this.nextLink;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/LocalAdminStatus.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/LocalAdminStatus.java
index efd76551e7b0e..84a67cdd92ab0 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/LocalAdminStatus.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/LocalAdminStatus.java
@@ -16,6 +16,15 @@ public final class LocalAdminStatus extends ExpandableStringEnum getHealthDetailsWithResponse(
*/
void runHealthChecks(String resourceGroupName, String networkConnectionName, Context context);
+ /**
+ * Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed
+ * for outbound access in order for the Dev Box service to function.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listOutboundNetworkDependenciesEndpoints(
+ String resourceGroupName, String networkConnectionName);
+
+ /**
+ * Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed
+ * for outbound access in order for the Dev Box service to function.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listOutboundNetworkDependenciesEndpoints(
+ String resourceGroupName, String networkConnectionName, Integer top, Context context);
+
/**
* Gets a network connection resource.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Origin.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Origin.java
index 920555085b39f..9e5fee8f49ce4 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Origin.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Origin.java
@@ -22,6 +22,15 @@ public final class Origin extends ExpandableStringEnum {
/** Static value user,system for Origin. */
public static final Origin USER_SYSTEM = fromString("user,system");
+ /**
+ * Creates a new instance of Origin value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public Origin() {
+ }
+
/**
* Creates or finds a Origin from its string representation.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/OutboundEnvironmentEndpoint.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/OutboundEnvironmentEndpoint.java
new file mode 100644
index 0000000000000..71243e340c3ba
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/OutboundEnvironmentEndpoint.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.resourcemanager.devcenter.fluent.models.OutboundEnvironmentEndpointInner;
+import java.util.List;
+
+/** An immutable client-side representation of OutboundEnvironmentEndpoint. */
+public interface OutboundEnvironmentEndpoint {
+ /**
+ * Gets the category property: The type of service that the agent connects to.
+ *
+ * @return the category value.
+ */
+ String category();
+
+ /**
+ * Gets the endpoints property: The endpoints for this service for which the agent requires outbound access.
+ *
+ * @return the endpoints value.
+ */
+ List endpoints();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.devcenter.fluent.models.OutboundEnvironmentEndpointInner object.
+ *
+ * @return the inner object.
+ */
+ OutboundEnvironmentEndpointInner innerModel();
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/OutboundEnvironmentEndpointCollection.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/OutboundEnvironmentEndpointCollection.java
new file mode 100644
index 0000000000000..43ef06d296825
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/OutboundEnvironmentEndpointCollection.java
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.devcenter.fluent.models.OutboundEnvironmentEndpointInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Values returned by the List operation. */
+@Fluent
+public final class OutboundEnvironmentEndpointCollection {
+ /*
+ * The collection of outbound network dependency endpoints returned by the listing operation.
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private List value;
+
+ /*
+ * The continuation token.
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /** Creates an instance of OutboundEnvironmentEndpointCollection class. */
+ public OutboundEnvironmentEndpointCollection() {
+ }
+
+ /**
+ * Get the value property: The collection of outbound network dependency endpoints returned by the listing
+ * operation.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: The continuation token.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: The continuation token.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the OutboundEnvironmentEndpointCollection object itself.
+ */
+ public OutboundEnvironmentEndpointCollection withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pool.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pool.java
index b2766c0e2c628..6d73afd35564b 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pool.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pool.java
@@ -8,6 +8,7 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.fluent.models.PoolInner;
+import java.util.List;
import java.util.Map;
/** An immutable client-side representation of Pool. */
@@ -54,6 +55,22 @@ public interface Pool {
*/
SystemData systemData();
+ /**
+ * Gets the healthStatus property: Overall health status of the Pool. Indicates whether or not the Pool is available
+ * to create Dev Boxes.
+ *
+ * @return the healthStatus value.
+ */
+ HealthStatus healthStatus();
+
+ /**
+ * Gets the healthStatusDetails property: Details on the Pool health status to help diagnose issues. This is only
+ * populated when the pool status indicates the pool is in a non-healthy state.
+ *
+ * @return the healthStatusDetails value.
+ */
+ List healthStatusDetails();
+
/**
* Gets the provisioningState property: The provisioning state of the resource.
*
@@ -91,6 +108,13 @@ public interface Pool {
*/
LocalAdminStatus localAdministrator();
+ /**
+ * Gets the stopOnDisconnect property: Stop on disconnect configuration settings for Dev Boxes created in this pool.
+ *
+ * @return the stopOnDisconnect value.
+ */
+ StopOnDisconnectConfiguration stopOnDisconnect();
+
/**
* Gets the region of the resource.
*
@@ -169,7 +193,8 @@ interface WithCreate
DefinitionStages.WithDevBoxDefinitionName,
DefinitionStages.WithNetworkConnectionName,
DefinitionStages.WithLicenseType,
- DefinitionStages.WithLocalAdministrator {
+ DefinitionStages.WithLocalAdministrator,
+ DefinitionStages.WithStopOnDisconnect {
/**
* Executes the create request.
*
@@ -240,6 +265,17 @@ interface WithLocalAdministrator {
*/
WithCreate withLocalAdministrator(LocalAdminStatus localAdministrator);
}
+ /** The stage of the Pool definition allowing to specify stopOnDisconnect. */
+ interface WithStopOnDisconnect {
+ /**
+ * Specifies the stopOnDisconnect property: Stop on disconnect configuration settings for Dev Boxes created
+ * in this pool..
+ *
+ * @param stopOnDisconnect Stop on disconnect configuration settings for Dev Boxes created in this pool.
+ * @return the next definition stage.
+ */
+ WithCreate withStopOnDisconnect(StopOnDisconnectConfiguration stopOnDisconnect);
+ }
}
/**
* Begins update for the Pool resource.
@@ -254,7 +290,8 @@ interface Update
UpdateStages.WithDevBoxDefinitionName,
UpdateStages.WithNetworkConnectionName,
UpdateStages.WithLicenseType,
- UpdateStages.WithLocalAdministrator {
+ UpdateStages.WithLocalAdministrator,
+ UpdateStages.WithStopOnDisconnect {
/**
* Executes the update request.
*
@@ -327,6 +364,17 @@ interface WithLocalAdministrator {
*/
Update withLocalAdministrator(LocalAdminStatus localAdministrator);
}
+ /** The stage of the Pool update allowing to specify stopOnDisconnect. */
+ interface WithStopOnDisconnect {
+ /**
+ * Specifies the stopOnDisconnect property: Stop on disconnect configuration settings for Dev Boxes created
+ * in this pool..
+ *
+ * @param stopOnDisconnect Stop on disconnect configuration settings for Dev Boxes created in this pool.
+ * @return the next definition stage.
+ */
+ Update withStopOnDisconnect(StopOnDisconnectConfiguration stopOnDisconnect);
+ }
}
/**
* Refreshes the resource to sync with Azure.
@@ -342,4 +390,22 @@ interface WithLocalAdministrator {
* @return the refreshed resource.
*/
Pool refresh(Context context);
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void runHealthChecks();
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void runHealthChecks(Context context);
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/PoolUpdate.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/PoolUpdate.java
index 3a0465d2a56d2..468422a3aeb7e 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/PoolUpdate.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/PoolUpdate.java
@@ -141,6 +141,29 @@ public PoolUpdate withLocalAdministrator(LocalAdminStatus localAdministrator) {
return this;
}
+ /**
+ * Get the stopOnDisconnect property: Stop on disconnect configuration settings for Dev Boxes created in this pool.
+ *
+ * @return the stopOnDisconnect value.
+ */
+ public StopOnDisconnectConfiguration stopOnDisconnect() {
+ return this.innerProperties() == null ? null : this.innerProperties().stopOnDisconnect();
+ }
+
+ /**
+ * Set the stopOnDisconnect property: Stop on disconnect configuration settings for Dev Boxes created in this pool.
+ *
+ * @param stopOnDisconnect the stopOnDisconnect value to set.
+ * @return the PoolUpdate object itself.
+ */
+ public PoolUpdate withStopOnDisconnect(StopOnDisconnectConfiguration stopOnDisconnect) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PoolUpdateProperties();
+ }
+ this.innerProperties().withStopOnDisconnect(stopOnDisconnect);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pools.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pools.java
index 0a1677969b161..d684a4d78b6d3 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pools.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Pools.java
@@ -88,6 +88,31 @@ public interface Pools {
*/
void delete(String resourceGroupName, String projectName, String poolName, Context context);
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void runHealthChecks(String resourceGroupName, String projectName, String poolName);
+
+ /**
+ * Triggers a refresh of the pool status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName The name of the project.
+ * @param poolName Name of the pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void runHealthChecks(String resourceGroupName, String projectName, String poolName, Context context);
+
/**
* Gets a machine pool.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Project.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Project.java
index 39b0b17a4a57a..c91e6ab942d58 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Project.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Project.java
@@ -82,6 +82,14 @@ public interface Project {
*/
String description();
+ /**
+ * Gets the maxDevBoxesPerUser property: When specified, limits the maximum number of Dev Boxes a single user can
+ * create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.
+ *
+ * @return the maxDevBoxesPerUser value.
+ */
+ Integer maxDevBoxesPerUser();
+
/**
* Gets the region of the resource.
*
@@ -155,7 +163,10 @@ interface WithResourceGroup {
* created, but also allows for any other optional properties to be specified.
*/
interface WithCreate
- extends DefinitionStages.WithTags, DefinitionStages.WithDevCenterId, DefinitionStages.WithDescription {
+ extends DefinitionStages.WithTags,
+ DefinitionStages.WithDevCenterId,
+ DefinitionStages.WithDescription,
+ DefinitionStages.WithMaxDevBoxesPerUser {
/**
* Executes the create request.
*
@@ -201,6 +212,19 @@ interface WithDescription {
*/
WithCreate withDescription(String description);
}
+ /** The stage of the Project definition allowing to specify maxDevBoxesPerUser. */
+ interface WithMaxDevBoxesPerUser {
+ /**
+ * Specifies the maxDevBoxesPerUser property: When specified, limits the maximum number of Dev Boxes a
+ * single user can create across all pools in the project. This will have no effect on existing Dev Boxes
+ * when reduced..
+ *
+ * @param maxDevBoxesPerUser When specified, limits the maximum number of Dev Boxes a single user can create
+ * across all pools in the project. This will have no effect on existing Dev Boxes when reduced.
+ * @return the next definition stage.
+ */
+ WithCreate withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser);
+ }
}
/**
* Begins update for the Project resource.
@@ -210,7 +234,11 @@ interface WithDescription {
Project.Update update();
/** The template for Project update. */
- interface Update extends UpdateStages.WithTags, UpdateStages.WithDevCenterId, UpdateStages.WithDescription {
+ interface Update
+ extends UpdateStages.WithTags,
+ UpdateStages.WithDevCenterId,
+ UpdateStages.WithDescription,
+ UpdateStages.WithMaxDevBoxesPerUser {
/**
* Executes the update request.
*
@@ -258,6 +286,19 @@ interface WithDescription {
*/
Update withDescription(String description);
}
+ /** The stage of the Project update allowing to specify maxDevBoxesPerUser. */
+ interface WithMaxDevBoxesPerUser {
+ /**
+ * Specifies the maxDevBoxesPerUser property: When specified, limits the maximum number of Dev Boxes a
+ * single user can create across all pools in the project. This will have no effect on existing Dev Boxes
+ * when reduced..
+ *
+ * @param maxDevBoxesPerUser When specified, limits the maximum number of Dev Boxes a single user can create
+ * across all pools in the project. This will have no effect on existing Dev Boxes when reduced.
+ * @return the next definition stage.
+ */
+ Update withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser);
+ }
}
/**
* Refreshes the resource to sync with Azure.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentType.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentType.java
index 74530f76f5867..13035c09bd079 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentType.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentType.java
@@ -81,7 +81,7 @@ public interface ProjectEnvironmentType {
*
* @return the status value.
*/
- EnableStatus status();
+ EnvironmentTypeEnableStatus status();
/**
* Gets the creatorRoleAssignment property: The role definition assigned to the environment creator on backing
@@ -232,7 +232,7 @@ interface WithStatus {
* @param status Defines whether this Environment Type can be used in this Project.
* @return the next definition stage.
*/
- WithCreate withStatus(EnableStatus status);
+ WithCreate withStatus(EnvironmentTypeEnableStatus status);
}
/** The stage of the ProjectEnvironmentType definition allowing to specify creatorRoleAssignment. */
interface WithCreatorRoleAssignment {
@@ -332,7 +332,7 @@ interface WithStatus {
* @param status Defines whether this Environment Type can be used in this Project.
* @return the next definition stage.
*/
- Update withStatus(EnableStatus status);
+ Update withStatus(EnvironmentTypeEnableStatus status);
}
/** The stage of the ProjectEnvironmentType update allowing to specify creatorRoleAssignment. */
interface WithCreatorRoleAssignment {
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentTypeUpdate.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentTypeUpdate.java
index e0f33d59a3e7e..34c49d139ffbf 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentTypeUpdate.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectEnvironmentTypeUpdate.java
@@ -117,7 +117,7 @@ public ProjectEnvironmentTypeUpdate withDeploymentTargetId(String deploymentTarg
*
* @return the status value.
*/
- public EnableStatus status() {
+ public EnvironmentTypeEnableStatus status() {
return this.innerProperties() == null ? null : this.innerProperties().status();
}
@@ -127,7 +127,7 @@ public EnableStatus status() {
* @param status the status value to set.
* @return the ProjectEnvironmentTypeUpdate object itself.
*/
- public ProjectEnvironmentTypeUpdate withStatus(EnableStatus status) {
+ public ProjectEnvironmentTypeUpdate withStatus(EnvironmentTypeEnableStatus status) {
if (this.innerProperties() == null) {
this.innerProperties = new ProjectEnvironmentTypeUpdateProperties();
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectUpdate.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectUpdate.java
index c64fdc153b76c..b3dc76cd969aa 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectUpdate.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProjectUpdate.java
@@ -91,6 +91,31 @@ public ProjectUpdate withDescription(String description) {
return this;
}
+ /**
+ * Get the maxDevBoxesPerUser property: When specified, limits the maximum number of Dev Boxes a single user can
+ * create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.
+ *
+ * @return the maxDevBoxesPerUser value.
+ */
+ public Integer maxDevBoxesPerUser() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxDevBoxesPerUser();
+ }
+
+ /**
+ * Set the maxDevBoxesPerUser property: When specified, limits the maximum number of Dev Boxes a single user can
+ * create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.
+ *
+ * @param maxDevBoxesPerUser the maxDevBoxesPerUser value to set.
+ * @return the ProjectUpdate object itself.
+ */
+ public ProjectUpdate withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProjectUpdateProperties();
+ }
+ this.innerProperties().withMaxDevBoxesPerUser(maxDevBoxesPerUser);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProvisioningState.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProvisioningState.java
index 06b356108723f..49b29e7992627 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProvisioningState.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ProvisioningState.java
@@ -58,6 +58,15 @@ public final class ProvisioningState extends ExpandableStringEnum {
+ /** Static value Enabled for ScheduleEnableStatus. */
+ public static final ScheduleEnableStatus ENABLED = fromString("Enabled");
+
+ /** Static value Disabled for ScheduleEnableStatus. */
+ public static final ScheduleEnableStatus DISABLED = fromString("Disabled");
+
+ /**
+ * Creates a new instance of ScheduleEnableStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ScheduleEnableStatus() {
+ }
+
+ /**
+ * Creates or finds a ScheduleEnableStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ScheduleEnableStatus.
+ */
+ @JsonCreator
+ public static ScheduleEnableStatus fromString(String name) {
+ return fromString(name, ScheduleEnableStatus.class);
+ }
+
+ /**
+ * Gets known ScheduleEnableStatus values.
+ *
+ * @return known ScheduleEnableStatus values.
+ */
+ public static Collection values() {
+ return values(ScheduleEnableStatus.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ScheduleUpdate.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ScheduleUpdate.java
index eff249617e439..600b781d9db3e 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ScheduleUpdate.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ScheduleUpdate.java
@@ -142,7 +142,7 @@ public ScheduleUpdate withTimeZone(String timeZone) {
*
* @return the state value.
*/
- public EnableStatus state() {
+ public ScheduleEnableStatus state() {
return this.innerProperties() == null ? null : this.innerProperties().state();
}
@@ -152,7 +152,7 @@ public EnableStatus state() {
* @param state the state value to set.
* @return the ScheduleUpdate object itself.
*/
- public ScheduleUpdate withState(EnableStatus state) {
+ public ScheduleUpdate withState(ScheduleEnableStatus state) {
if (this.innerProperties() == null) {
this.innerProperties = new ScheduleUpdateProperties();
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ScheduledFrequency.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ScheduledFrequency.java
index 364d70b2e15a3..05848f9a1bf02 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ScheduledFrequency.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/ScheduledFrequency.java
@@ -13,6 +13,15 @@ public final class ScheduledFrequency extends ExpandableStringEnum {
/** Static value StopDevBox for ScheduledType. */
public static final ScheduledType STOP_DEV_BOX = fromString("StopDevBox");
+ /**
+ * Creates a new instance of ScheduledType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ScheduledType() {
+ }
+
/**
* Creates or finds a ScheduledType from its string representation.
*
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/StopOnDisconnectConfiguration.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/StopOnDisconnectConfiguration.java
new file mode 100644
index 0000000000000..300710d056d0b
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/StopOnDisconnectConfiguration.java
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Stop on disconnect configuration settings for Dev Boxes created in this pool. */
+@Fluent
+public final class StopOnDisconnectConfiguration {
+ /*
+ * Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
+ */
+ @JsonProperty(value = "status")
+ private StopOnDisconnectEnableStatus status;
+
+ /*
+ * The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.
+ */
+ @JsonProperty(value = "gracePeriodMinutes")
+ private Integer gracePeriodMinutes;
+
+ /** Creates an instance of StopOnDisconnectConfiguration class. */
+ public StopOnDisconnectConfiguration() {
+ }
+
+ /**
+ * Get the status property: Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed
+ * is enabled.
+ *
+ * @return the status value.
+ */
+ public StopOnDisconnectEnableStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed
+ * is enabled.
+ *
+ * @param status the status value to set.
+ * @return the StopOnDisconnectConfiguration object itself.
+ */
+ public StopOnDisconnectConfiguration withStatus(StopOnDisconnectEnableStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the gracePeriodMinutes property: The specified time in minutes to wait before stopping a Dev Box once
+ * disconnect is detected.
+ *
+ * @return the gracePeriodMinutes value.
+ */
+ public Integer gracePeriodMinutes() {
+ return this.gracePeriodMinutes;
+ }
+
+ /**
+ * Set the gracePeriodMinutes property: The specified time in minutes to wait before stopping a Dev Box once
+ * disconnect is detected.
+ *
+ * @param gracePeriodMinutes the gracePeriodMinutes value to set.
+ * @return the StopOnDisconnectConfiguration object itself.
+ */
+ public StopOnDisconnectConfiguration withGracePeriodMinutes(Integer gracePeriodMinutes) {
+ this.gracePeriodMinutes = gracePeriodMinutes;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/StopOnDisconnectEnableStatus.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/StopOnDisconnectEnableStatus.java
new file mode 100644
index 0000000000000..61ccb235c1556
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/StopOnDisconnectEnableStatus.java
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/**
+ * Stop on disconnect enable or disable status. Indicates whether stop on disconnect to is either enabled or disabled.
+ */
+public final class StopOnDisconnectEnableStatus extends ExpandableStringEnum {
+ /** Static value Enabled for StopOnDisconnectEnableStatus. */
+ public static final StopOnDisconnectEnableStatus ENABLED = fromString("Enabled");
+
+ /** Static value Disabled for StopOnDisconnectEnableStatus. */
+ public static final StopOnDisconnectEnableStatus DISABLED = fromString("Disabled");
+
+ /**
+ * Creates a new instance of StopOnDisconnectEnableStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public StopOnDisconnectEnableStatus() {
+ }
+
+ /**
+ * Creates or finds a StopOnDisconnectEnableStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding StopOnDisconnectEnableStatus.
+ */
+ @JsonCreator
+ public static StopOnDisconnectEnableStatus fromString(String name) {
+ return fromString(name, StopOnDisconnectEnableStatus.class);
+ }
+
+ /**
+ * Gets known StopOnDisconnectEnableStatus values.
+ *
+ * @return known StopOnDisconnectEnableStatus values.
+ */
+ public static Collection values() {
+ return values(StopOnDisconnectEnableStatus.class);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Usage.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Usage.java
deleted file mode 100644
index 4c9eba99c7a85..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Usage.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.models;
-
-import com.azure.resourcemanager.devcenter.fluent.models.UsageInner;
-
-/** An immutable client-side representation of Usage. */
-public interface Usage {
- /**
- * Gets the currentValue property: The current usage.
- *
- * @return the currentValue value.
- */
- Long currentValue();
-
- /**
- * Gets the limit property: The limit integer.
- *
- * @return the limit value.
- */
- Long limit();
-
- /**
- * Gets the unit property: The unit details.
- *
- * @return the unit value.
- */
- UsageUnit unit();
-
- /**
- * Gets the name property: The name.
- *
- * @return the name value.
- */
- UsageName name();
-
- /**
- * Gets the inner com.azure.resourcemanager.devcenter.fluent.models.UsageInner object.
- *
- * @return the inner object.
- */
- UsageInner innerModel();
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/UsageName.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/UsageName.java
deleted file mode 100644
index fa8fea48115d7..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/UsageName.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The Usage Names. */
-@Fluent
-public final class UsageName {
- /*
- * The localized name of the resource.
- */
- @JsonProperty(value = "localizedValue")
- private String localizedValue;
-
- /*
- * The name of the resource.
- */
- @JsonProperty(value = "value")
- private String value;
-
- /** Creates an instance of UsageName class. */
- public UsageName() {
- }
-
- /**
- * Get the localizedValue property: The localized name of the resource.
- *
- * @return the localizedValue value.
- */
- public String localizedValue() {
- return this.localizedValue;
- }
-
- /**
- * Set the localizedValue property: The localized name of the resource.
- *
- * @param localizedValue the localizedValue value to set.
- * @return the UsageName object itself.
- */
- public UsageName withLocalizedValue(String localizedValue) {
- this.localizedValue = localizedValue;
- return this;
- }
-
- /**
- * Get the value property: The name of the resource.
- *
- * @return the value value.
- */
- public String value() {
- return this.value;
- }
-
- /**
- * Set the value property: The name of the resource.
- *
- * @param value the value value to set.
- * @return the UsageName object itself.
- */
- public UsageName withValue(String value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/UsageUnit.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/UsageUnit.java
deleted file mode 100644
index df58e5b95bf19..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/UsageUnit.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.models;
-
-import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import java.util.Collection;
-
-/** The unit details. */
-public final class UsageUnit extends ExpandableStringEnum {
- /** Static value Count for UsageUnit. */
- public static final UsageUnit COUNT = fromString("Count");
-
- /**
- * Creates or finds a UsageUnit from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding UsageUnit.
- */
- @JsonCreator
- public static UsageUnit fromString(String name) {
- return fromString(name, UsageUnit.class);
- }
-
- /**
- * Gets known UsageUnit values.
- *
- * @return known UsageUnit values.
- */
- public static Collection values() {
- return values(UsageUnit.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Usages.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Usages.java
deleted file mode 100644
index 21c8ec9ab14e4..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/main/java/com/azure/resourcemanager/devcenter/models/Usages.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.models;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-
-/** Resource collection API of Usages. */
-public interface Usages {
- /**
- * Lists the current usages and limits in this location for the provided subscription.
- *
- * @param location The Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages as paginated response with {@link PagedIterable}.
- */
- PagedIterable listByLocation(String location);
-
- /**
- * Lists the current usages and limits in this location for the provided subscription.
- *
- * @param location The Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Core Usages as paginated response with {@link PagedIterable}.
- */
- PagedIterable listByLocation(String location, Context context);
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksCreateOrUpdateSamples.java
index 70475da0ad00c..46c04c374e2a1 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksCreateOrUpdateSamples.java
@@ -7,7 +7,7 @@
/** Samples for AttachedNetworks CreateOrUpdate. */
public final class AttachedNetworksCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/AttachedNetworks_Create.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/AttachedNetworks_Create.json
*/
/**
* Sample code: AttachedNetworks_Create.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteSamples.java
index 8b152b6b597b0..f44c6cdf575b6 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for AttachedNetworks Delete. */
public final class AttachedNetworksDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/AttachedNetworks_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/AttachedNetworks_Delete.json
*/
/**
* Sample code: AttachedNetworks_Delete.
@@ -17,6 +15,6 @@ public final class AttachedNetworksDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void attachedNetworksDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.attachedNetworks().delete("rg1", "Contoso", "network-uswest3", Context.NONE);
+ manager.attachedNetworks().delete("rg1", "Contoso", "network-uswest3", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterSamples.java
index 6d9a5c5be523f..22f783a686a85 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for AttachedNetworks GetByDevCenter. */
public final class AttachedNetworksGetByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/AttachedNetworks_GetByDevCenter.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/AttachedNetworks_GetByDevCenter.json
*/
/**
* Sample code: AttachedNetworks_GetByDevCenter.
@@ -17,6 +15,8 @@ public final class AttachedNetworksGetByDevCenterSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void attachedNetworksGetByDevCenter(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.attachedNetworks().getByDevCenterWithResponse("rg1", "Contoso", "network-uswest3", Context.NONE);
+ manager
+ .attachedNetworks()
+ .getByDevCenterWithResponse("rg1", "Contoso", "network-uswest3", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectSamples.java
index 10c0ca0349a67..1dd8f3e1623f7 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for AttachedNetworks GetByProject. */
public final class AttachedNetworksGetByProjectSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/AttachedNetworks_GetByProject.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/AttachedNetworks_GetByProject.json
*/
/**
* Sample code: AttachedNetworks_GetByProject.
@@ -17,6 +15,8 @@ public final class AttachedNetworksGetByProjectSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void attachedNetworksGetByProject(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.attachedNetworks().getByProjectWithResponse("rg1", "DevProject", "network-uswest3", Context.NONE);
+ manager
+ .attachedNetworks()
+ .getByProjectWithResponse("rg1", "DevProject", "network-uswest3", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterSamples.java
index 204b6b94d6aa6..61bde13f10806 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for AttachedNetworks ListByDevCenter. */
public final class AttachedNetworksListByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/AttachedNetworks_ListByDevCenter.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/AttachedNetworks_ListByDevCenter.json
*/
/**
* Sample code: AttachedNetworks_ListByDevCenter.
@@ -17,6 +15,6 @@ public final class AttachedNetworksListByDevCenterSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void attachedNetworksListByDevCenter(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.attachedNetworks().listByDevCenter("rg1", "Contoso", null, Context.NONE);
+ manager.attachedNetworks().listByDevCenter("rg1", "Contoso", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectSamples.java
index 50dfb4fea4df9..65b9950909539 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for AttachedNetworks ListByProject. */
public final class AttachedNetworksListByProjectSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/AttachedNetworks_ListByProject.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/AttachedNetworks_ListByProject.json
*/
/**
* Sample code: AttachedNetworks_ListByProject.
@@ -17,6 +15,6 @@ public final class AttachedNetworksListByProjectSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void attachedNetworksListByProject(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.attachedNetworks().listByProject("rg1", "DevProject", null, Context.NONE);
+ manager.attachedNetworks().listByProject("rg1", "DevProject", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsCreateOrUpdateSamples.java
index 1a7223773ed76..d8978d7607c94 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsCreateOrUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for Catalogs CreateOrUpdate. */
public final class CatalogsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Catalogs_CreateAdo.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Catalogs_CreateAdo.json
*/
/**
* Sample code: Catalogs_CreateOrUpdateAdo.
@@ -31,7 +31,7 @@ public static void catalogsCreateOrUpdateAdo(com.azure.resourcemanager.devcenter
}
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Catalogs_CreateGitHub.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Catalogs_CreateGitHub.json
*/
/**
* Sample code: Catalogs_CreateOrUpdateGitHub.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteSamples.java
index 24c776b3677e3..3f307a2d492b3 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Catalogs Delete. */
public final class CatalogsDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Catalogs_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Catalogs_Delete.json
*/
/**
* Sample code: Catalogs_Delete.
@@ -17,6 +15,6 @@ public final class CatalogsDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void catalogsDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.catalogs().delete("rg1", "Contoso", "CentralCatalog", Context.NONE);
+ manager.catalogs().delete("rg1", "Contoso", "CentralCatalog", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSamples.java
index b000d470b9ea1..e59b560e172ff 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Catalogs Get. */
public final class CatalogsGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Catalogs_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Catalogs_Get.json
*/
/**
* Sample code: Catalogs_Get.
@@ -17,6 +15,6 @@ public final class CatalogsGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void catalogsGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.catalogs().getWithResponse("rg1", "Contoso", "CentralCatalog", Context.NONE);
+ manager.catalogs().getWithResponse("rg1", "Contoso", "CentralCatalog", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsListByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsListByDevCenterSamples.java
index 563a78338e273..cc28783feacbb 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsListByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsListByDevCenterSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Catalogs ListByDevCenter. */
public final class CatalogsListByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Catalogs_List.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Catalogs_List.json
*/
/**
* Sample code: Catalogs_ListByDevCenter.
@@ -17,6 +15,6 @@ public final class CatalogsListByDevCenterSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void catalogsListByDevCenter(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.catalogs().listByDevCenter("rg1", "Contoso", null, Context.NONE);
+ manager.catalogs().listByDevCenter("rg1", "Contoso", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsSyncSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsSyncSamples.java
index 00a3c4dfb5933..57041809b3782 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsSyncSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsSyncSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Catalogs Sync. */
public final class CatalogsSyncSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Catalogs_Sync.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Catalogs_Sync.json
*/
/**
* Sample code: Catalogs_Sync.
@@ -17,6 +15,6 @@ public final class CatalogsSyncSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void catalogsSync(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.catalogs().sync("rg1", "Contoso", "CentralCatalog", Context.NONE);
+ manager.catalogs().sync("rg1", "Contoso", "CentralCatalog", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsUpdateSamples.java
index 410c8102acc72..8e250f5296ef9 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CatalogsUpdateSamples.java
@@ -4,14 +4,13 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.models.Catalog;
import com.azure.resourcemanager.devcenter.models.GitCatalog;
/** Samples for Catalogs Update. */
public final class CatalogsUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Catalogs_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Catalogs_Patch.json
*/
/**
* Sample code: Catalogs_Update.
@@ -20,7 +19,10 @@ public final class CatalogsUpdateSamples {
*/
public static void catalogsUpdate(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
Catalog resource =
- manager.catalogs().getWithResponse("rg1", "Contoso", "CentralCatalog", Context.NONE).getValue();
+ manager
+ .catalogs()
+ .getWithResponse("rg1", "Contoso", "CentralCatalog", com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withGitHub(new GitCatalog().withPath("/environments")).apply();
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityExecuteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityExecuteSamples.java
index 4eab0893ad51b..dc4fa2fdd5aee 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityExecuteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityExecuteSamples.java
@@ -4,13 +4,12 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.models.CheckNameAvailabilityRequest;
/** Samples for CheckNameAvailability Execute. */
public final class CheckNameAvailabilityExecuteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/CheckNameAvailability.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/CheckNameAvailability.json
*/
/**
* Sample code: NameAvailability.
@@ -22,6 +21,6 @@ public static void nameAvailability(com.azure.resourcemanager.devcenter.DevCente
.checkNameAvailabilities()
.executeWithResponse(
new CheckNameAvailabilityRequest().withName("name1").withType("Microsoft.DevCenter/devcenters"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsCreateOrUpdateSamples.java
index 5ff4f0ba5a1be..dfc130e7382f3 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for DevBoxDefinitions CreateOrUpdate. */
public final class DevBoxDefinitionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevBoxDefinitions_Create.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevBoxDefinitions_Create.json
*/
/**
* Sample code: DevBoxDefinitions_Create.
@@ -29,7 +29,6 @@ public static void devBoxDefinitionsCreate(com.azure.resourcemanager.devcenter.D
.withId(
"/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/1.0.0"))
.withSku(new Sku().withName("Preview"))
- .withOsStorageType("SSD_1024")
.withHibernateSupport(HibernateSupport.ENABLED)
.create();
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteSamples.java
index e858e3362b518..ea4911b7a84fc 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for DevBoxDefinitions Delete. */
public final class DevBoxDefinitionsDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevBoxDefinitions_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevBoxDefinitions_Delete.json
*/
/**
* Sample code: DevBoxDefinitions_Delete.
@@ -17,6 +15,6 @@ public final class DevBoxDefinitionsDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void devBoxDefinitionsDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.devBoxDefinitions().delete("rg1", "Contoso", "WebDevBox", Context.NONE);
+ manager.devBoxDefinitions().delete("rg1", "Contoso", "WebDevBox", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetByProjectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetByProjectSamples.java
index d9f12444ad615..17703bd6fc808 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetByProjectSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetByProjectSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for DevBoxDefinitions GetByProject. */
public final class DevBoxDefinitionsGetByProjectSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevBoxDefinitions_GetByProject.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevBoxDefinitions_GetByProject.json
*/
/**
* Sample code: DevBoxDefinitions_GetByProject.
@@ -17,6 +15,8 @@ public final class DevBoxDefinitionsGetByProjectSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void devBoxDefinitionsGetByProject(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.devBoxDefinitions().getByProjectWithResponse("rg1", "ContosoProject", "WebDevBox", Context.NONE);
+ manager
+ .devBoxDefinitions()
+ .getByProjectWithResponse("rg1", "ContosoProject", "WebDevBox", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetSamples.java
index 7887a729e7643..b1a9356242cc0 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for DevBoxDefinitions Get. */
public final class DevBoxDefinitionsGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevBoxDefinitions_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevBoxDefinitions_Get.json
*/
/**
* Sample code: DevBoxDefinitions_Get.
@@ -17,6 +15,6 @@ public final class DevBoxDefinitionsGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void devBoxDefinitionsGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.devBoxDefinitions().getWithResponse("rg1", "Contoso", "WebDevBox", Context.NONE);
+ manager.devBoxDefinitions().getWithResponse("rg1", "Contoso", "WebDevBox", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByDevCenterSamples.java
index 848da61e46310..917d9a85b337b 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByDevCenterSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for DevBoxDefinitions ListByDevCenter. */
public final class DevBoxDefinitionsListByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevBoxDefinitions_ListByDevCenter.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json
*/
/**
* Sample code: DevBoxDefinitions_ListByDevCenter.
@@ -17,6 +15,6 @@ public final class DevBoxDefinitionsListByDevCenterSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void devBoxDefinitionsListByDevCenter(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.devBoxDefinitions().listByDevCenter("rg1", "Contoso", null, Context.NONE);
+ manager.devBoxDefinitions().listByDevCenter("rg1", "Contoso", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByProjectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByProjectSamples.java
index 257b575c76414..0556690d73f5f 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByProjectSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsListByProjectSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for DevBoxDefinitions ListByProject. */
public final class DevBoxDefinitionsListByProjectSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevBoxDefinitions_ListByProject.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevBoxDefinitions_ListByProject.json
*/
/**
* Sample code: DevBoxDefinitions_ListByProject.
@@ -17,6 +15,6 @@ public final class DevBoxDefinitionsListByProjectSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void devBoxDefinitionsListByProject(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.devBoxDefinitions().listByProject("rg1", "ContosoProject", null, Context.NONE);
+ manager.devBoxDefinitions().listByProject("rg1", "ContosoProject", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsUpdateSamples.java
index 9275a8be5015c..4074442965f56 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsUpdateSamples.java
@@ -4,14 +4,13 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.models.DevBoxDefinition;
import com.azure.resourcemanager.devcenter.models.ImageReference;
/** Samples for DevBoxDefinitions Update. */
public final class DevBoxDefinitionsUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevBoxDefinitions_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevBoxDefinitions_Patch.json
*/
/**
* Sample code: DevBoxDefinitions_Patch.
@@ -20,7 +19,10 @@ public final class DevBoxDefinitionsUpdateSamples {
*/
public static void devBoxDefinitionsPatch(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
DevBoxDefinition resource =
- manager.devBoxDefinitions().getWithResponse("rg1", "Contoso", "WebDevBox", Context.NONE).getValue();
+ manager
+ .devBoxDefinitions()
+ .getWithResponse("rg1", "Contoso", "WebDevBox", com.azure.core.util.Context.NONE)
+ .getValue();
resource
.update()
.withImageReference(
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateSamples.java
index a2e33a6821e04..fbbb4a1f0b3c4 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateSamples.java
@@ -13,7 +13,7 @@
/** Samples for DevCenters CreateOrUpdate. */
public final class DevCentersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevCenters_Create.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevCenters_Create.json
*/
/**
* Sample code: DevCenters_Create.
@@ -31,7 +31,7 @@ public static void devCentersCreate(com.azure.resourcemanager.devcenter.DevCente
}
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevCenters_CreateWithUserIdentity.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevCenters_CreateWithUserIdentity.json
*/
/**
* Sample code: DevCenters_CreateWithUserIdentity.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersDeleteSamples.java
index cb1c5c2f734d8..ed69e66a3e47f 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for DevCenters Delete. */
public final class DevCentersDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevCenters_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevCenters_Delete.json
*/
/**
* Sample code: DevCenters_Delete.
@@ -17,6 +15,6 @@ public final class DevCentersDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void devCentersDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.devCenters().delete("rg1", "Contoso", Context.NONE);
+ manager.devCenters().delete("rg1", "Contoso", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersGetByResourceGroupSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersGetByResourceGroupSamples.java
index 72c6209bb2a90..4a7c9c9750f79 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersGetByResourceGroupSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersGetByResourceGroupSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for DevCenters GetByResourceGroup. */
public final class DevCentersGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevCenters_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevCenters_Get.json
*/
/**
* Sample code: DevCenters_Get.
@@ -17,6 +15,6 @@ public final class DevCentersGetByResourceGroupSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void devCentersGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.devCenters().getByResourceGroupWithResponse("rg1", "Contoso", Context.NONE);
+ manager.devCenters().getByResourceGroupWithResponse("rg1", "Contoso", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersListByResourceGroupSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersListByResourceGroupSamples.java
index 27717262c18f6..79a223fb5a353 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersListByResourceGroupSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersListByResourceGroupSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for DevCenters ListByResourceGroup. */
public final class DevCentersListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevCenters_ListByResourceGroup.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevCenters_ListByResourceGroup.json
*/
/**
* Sample code: DevCenters_ListByResourceGroup.
@@ -17,6 +15,6 @@ public final class DevCentersListByResourceGroupSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void devCentersListByResourceGroup(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.devCenters().listByResourceGroup("rg1", null, Context.NONE);
+ manager.devCenters().listByResourceGroup("rg1", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersListSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersListSamples.java
index 923107ccb6127..8abf40e221e30 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersListSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersListSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for DevCenters List. */
public final class DevCentersListSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevCenters_ListBySubscription.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevCenters_ListBySubscription.json
*/
/**
* Sample code: DevCenters_ListBySubscription.
@@ -17,6 +15,6 @@ public final class DevCentersListSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void devCentersListBySubscription(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.devCenters().list(null, Context.NONE);
+ manager.devCenters().list(null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersUpdateSamples.java
index d9a05ec9cbda6..350fe4b80f27f 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/DevCentersUpdateSamples.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.models.DevCenter;
import java.util.HashMap;
import java.util.Map;
@@ -12,7 +11,7 @@
/** Samples for DevCenters Update. */
public final class DevCentersUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/DevCenters_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/DevCenters_Patch.json
*/
/**
* Sample code: DevCenters_Update.
@@ -21,7 +20,10 @@ public final class DevCentersUpdateSamples {
*/
public static void devCentersUpdate(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
DevCenter resource =
- manager.devCenters().getByResourceGroupWithResponse("rg1", "Contoso", Context.NONE).getValue();
+ manager
+ .devCenters()
+ .getByResourceGroupWithResponse("rg1", "Contoso", com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withTags(mapOf("CostCode", "12345")).apply();
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesCreateOrUpdateSamples.java
index d8b07e899244b..02beb84237884 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesCreateOrUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for EnvironmentTypes CreateOrUpdate. */
public final class EnvironmentTypesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/EnvironmentTypes_Put.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/EnvironmentTypes_Put.json
*/
/**
* Sample code: EnvironmentTypes_CreateOrUpdate.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesDeleteSamples.java
index 9ef39f621b1c8..2677c84483be5 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for EnvironmentTypes Delete. */
public final class EnvironmentTypesDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/EnvironmentTypes_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/EnvironmentTypes_Delete.json
*/
/**
* Sample code: EnvironmentTypes_Delete.
@@ -17,6 +15,6 @@ public final class EnvironmentTypesDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void environmentTypesDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.environmentTypes().deleteWithResponse("rg1", "Contoso", "DevTest", Context.NONE);
+ manager.environmentTypes().deleteWithResponse("rg1", "Contoso", "DevTest", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesGetSamples.java
index 7a7ad9d854f1a..a2448be057bb8 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for EnvironmentTypes Get. */
public final class EnvironmentTypesGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/EnvironmentTypes_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/EnvironmentTypes_Get.json
*/
/**
* Sample code: EnvironmentTypes_Get.
@@ -17,6 +15,6 @@ public final class EnvironmentTypesGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void environmentTypesGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.environmentTypes().getWithResponse("rg1", "Contoso", "DevTest", Context.NONE);
+ manager.environmentTypes().getWithResponse("rg1", "Contoso", "DevTest", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesListByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesListByDevCenterSamples.java
index ef4ea4122411a..03741f5143e87 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesListByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesListByDevCenterSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for EnvironmentTypes ListByDevCenter. */
public final class EnvironmentTypesListByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/EnvironmentTypes_List.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/EnvironmentTypes_List.json
*/
/**
* Sample code: EnvironmentTypes_ListByDevCenter.
@@ -17,6 +15,6 @@ public final class EnvironmentTypesListByDevCenterSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void environmentTypesListByDevCenter(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.environmentTypes().listByDevCenter("rg1", "Contoso", null, Context.NONE);
+ manager.environmentTypes().listByDevCenter("rg1", "Contoso", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesUpdateSamples.java
index 0cf4bb8f9c870..208e9513b6601 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesUpdateSamples.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.models.EnvironmentType;
import java.util.HashMap;
import java.util.Map;
@@ -12,7 +11,7 @@
/** Samples for EnvironmentTypes Update. */
public final class EnvironmentTypesUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/EnvironmentTypes_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/EnvironmentTypes_Patch.json
*/
/**
* Sample code: EnvironmentTypes_Update.
@@ -21,7 +20,10 @@ public final class EnvironmentTypesUpdateSamples {
*/
public static void environmentTypesUpdate(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
EnvironmentType resource =
- manager.environmentTypes().getWithResponse("rg1", "Contoso", "DevTest", Context.NONE).getValue();
+ manager
+ .environmentTypes()
+ .getWithResponse("rg1", "Contoso", "DevTest", com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withTags(mapOf("Owner", "superuser")).apply();
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesCreateOrUpdateSamples.java
index 5dda2395b250b..0847b20e6589e 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesCreateOrUpdateSamples.java
@@ -7,7 +7,7 @@
/** Samples for Galleries CreateOrUpdate. */
public final class GalleriesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Galleries_Create.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Galleries_Create.json
*/
/**
* Sample code: Galleries_CreateOrUpdate.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesDeleteSamples.java
index 52d04bc5854d6..f9ec3f67f6926 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Galleries Delete. */
public final class GalleriesDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Galleries_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Galleries_Delete.json
*/
/**
* Sample code: Galleries_Delete.
@@ -17,6 +15,6 @@ public final class GalleriesDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void galleriesDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.galleries().delete("rg1", "Contoso", "StandardGallery", Context.NONE);
+ manager.galleries().delete("rg1", "Contoso", "StandardGallery", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesGetSamples.java
index 4b36877571e92..7456745e076b6 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Galleries Get. */
public final class GalleriesGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Galleries_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Galleries_Get.json
*/
/**
* Sample code: Galleries_Get.
@@ -17,6 +15,6 @@ public final class GalleriesGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void galleriesGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.galleries().getWithResponse("rg1", "Contoso", "StandardGallery", Context.NONE);
+ manager.galleries().getWithResponse("rg1", "Contoso", "StandardGallery", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesListByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesListByDevCenterSamples.java
index cdbc742c1a55b..42362ab2cbbde 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesListByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/GalleriesListByDevCenterSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Galleries ListByDevCenter. */
public final class GalleriesListByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Galleries_List.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Galleries_List.json
*/
/**
* Sample code: Galleries_ListByDevCenter.
@@ -17,6 +15,6 @@ public final class GalleriesListByDevCenterSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void galleriesListByDevCenter(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.galleries().listByDevCenter("rg1", "Contoso", null, Context.NONE);
+ manager.galleries().listByDevCenter("rg1", "Contoso", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImageVersionsGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImageVersionsGetSamples.java
index ee09f51b4787b..d695eae1aefad 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImageVersionsGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImageVersionsGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for ImageVersions Get. */
public final class ImageVersionsGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/ImageVersions_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/ImageVersions_Get.json
*/
/**
* Sample code: Versions_Get.
@@ -17,6 +15,8 @@ public final class ImageVersionsGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void versionsGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.imageVersions().getWithResponse("rg1", "Contoso", "DefaultDevGallery", "Win11", "1.0.0", Context.NONE);
+ manager
+ .imageVersions()
+ .getWithResponse("rg1", "Contoso", "DefaultDevGallery", "Win11", "1.0.0", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImageVersionsListByImageSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImageVersionsListByImageSamples.java
index 6d5c7e4789117..3c5a4be3e6633 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImageVersionsListByImageSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImageVersionsListByImageSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for ImageVersions ListByImage. */
public final class ImageVersionsListByImageSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/ImageVersions_List.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/ImageVersions_List.json
*/
/**
* Sample code: ImageVersions_ListByImage.
@@ -17,6 +15,8 @@ public final class ImageVersionsListByImageSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void imageVersionsListByImage(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.imageVersions().listByImage("rg1", "Contoso", "DefaultDevGallery", "Win11", Context.NONE);
+ manager
+ .imageVersions()
+ .listByImage("rg1", "Contoso", "DefaultDevGallery", "Win11", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesGetSamples.java
index 32cfd1cefd90c..9c99a72bc8aed 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Images Get. */
public final class ImagesGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Images_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Images_Get.json
*/
/**
* Sample code: Images_Get.
@@ -17,6 +15,9 @@ public final class ImagesGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void imagesGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.images().getWithResponse("rg1", "Contoso", "DefaultDevGallery", "ContosoBaseImage", Context.NONE);
+ manager
+ .images()
+ .getWithResponse(
+ "rg1", "Contoso", "DefaultDevGallery", "ContosoBaseImage", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesListByDevCenterSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesListByDevCenterSamples.java
index 13eba19b193e0..1206b04664240 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesListByDevCenterSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesListByDevCenterSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Images ListByDevCenter. */
public final class ImagesListByDevCenterSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Images_ListByDevCenter.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Images_ListByDevCenter.json
*/
/**
* Sample code: Images_ListByDevCenter.
@@ -17,6 +15,6 @@ public final class ImagesListByDevCenterSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void imagesListByDevCenter(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.images().listByDevCenter("rg1", "Contoso", null, Context.NONE);
+ manager.images().listByDevCenter("rg1", "Contoso", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesListByGallerySamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesListByGallerySamples.java
index 0e7d8f10fdb2b..1a620e83c0c10 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesListByGallerySamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ImagesListByGallerySamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Images ListByGallery. */
public final class ImagesListByGallerySamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Images_ListByGallery.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Images_ListByGallery.json
*/
/**
* Sample code: Images_ListByGallery.
@@ -17,6 +15,6 @@ public final class ImagesListByGallerySamples {
* @param manager Entry point to DevCenterManager.
*/
public static void imagesListByGallery(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.images().listByGallery("rg1", "Contoso", "DevGallery", null, Context.NONE);
+ manager.images().listByGallery("rg1", "Contoso", "DevGallery", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsCreateOrUpdateSamples.java
index 5cd53874021c4..fd2d96aa582e7 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsCreateOrUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for NetworkConnections CreateOrUpdate. */
public final class NetworkConnectionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/NetworkConnections_Put.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_Put.json
*/
/**
* Sample code: NetworkConnections_CreateOrUpdate.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsDeleteSamples.java
index e7a638c94ff1f..1077fe1d00205 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for NetworkConnections Delete. */
public final class NetworkConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/NetworkConnections_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_Delete.json
*/
/**
* Sample code: NetworkConnections_Delete.
@@ -17,6 +15,6 @@ public final class NetworkConnectionsDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void networkConnectionsDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.networkConnections().delete("rg1", "eastusnetwork", Context.NONE);
+ manager.networkConnections().delete("rg1", "eastusnetwork", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsGetByResourceGroupSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsGetByResourceGroupSamples.java
index 306088f5c6a3d..2d75ae1a525c7 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsGetByResourceGroupSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsGetByResourceGroupSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for NetworkConnections GetByResourceGroup. */
public final class NetworkConnectionsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/NetworkConnections_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_Get.json
*/
/**
* Sample code: NetworkConnections_Get.
@@ -17,6 +15,8 @@ public final class NetworkConnectionsGetByResourceGroupSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void networkConnectionsGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.networkConnections().getByResourceGroupWithResponse("rg1", "uswest3network", Context.NONE);
+ manager
+ .networkConnections()
+ .getByResourceGroupWithResponse("rg1", "uswest3network", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsGetHealthDetailsSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsGetHealthDetailsSamples.java
index 2acca08c8ac1b..a20364b0c89f5 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsGetHealthDetailsSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsGetHealthDetailsSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for NetworkConnections GetHealthDetails. */
public final class NetworkConnectionsGetHealthDetailsSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/NetworkConnections_GetHealthDetails.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_GetHealthDetails.json
*/
/**
* Sample code: NetworkConnections_GetHealthDetails.
@@ -18,6 +16,8 @@ public final class NetworkConnectionsGetHealthDetailsSamples {
*/
public static void networkConnectionsGetHealthDetails(
com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.networkConnections().getHealthDetailsWithResponse("rg1", "eastusnetwork", Context.NONE);
+ manager
+ .networkConnections()
+ .getHealthDetailsWithResponse("rg1", "eastusnetwork", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListByResourceGroupSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListByResourceGroupSamples.java
index 33d44740b3f77..de958e75c0587 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListByResourceGroupSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListByResourceGroupSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for NetworkConnections ListByResourceGroup. */
public final class NetworkConnectionsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/NetworkConnections_ListByResourceGroup.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_ListByResourceGroup.json
*/
/**
* Sample code: NetworkConnections_ListByResourceGroup.
@@ -18,6 +16,6 @@ public final class NetworkConnectionsListByResourceGroupSamples {
*/
public static void networkConnectionsListByResourceGroup(
com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.networkConnections().listByResourceGroup("rg1", null, Context.NONE);
+ manager.networkConnections().listByResourceGroup("rg1", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListHealthDetailsSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListHealthDetailsSamples.java
index aa5de4aa6f473..14aaf14f18e1a 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListHealthDetailsSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListHealthDetailsSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for NetworkConnections ListHealthDetails. */
public final class NetworkConnectionsListHealthDetailsSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/NetworkConnections_ListHealthDetails.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_ListHealthDetails.json
*/
/**
* Sample code: NetworkConnections_ListHealthDetails.
@@ -18,6 +16,6 @@ public final class NetworkConnectionsListHealthDetailsSamples {
*/
public static void networkConnectionsListHealthDetails(
com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.networkConnections().listHealthDetails("rg1", "uswest3network", null, Context.NONE);
+ manager.networkConnections().listHealthDetails("rg1", "uswest3network", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListOutboundNetworkDependenciesEndpointsSamples.java
new file mode 100644
index 0000000000000..386d1a98931cd
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListOutboundNetworkDependenciesEndpointsSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for NetworkConnections ListOutboundNetworkDependenciesEndpoints. */
+public final class NetworkConnectionsListOutboundNetworkDependenciesEndpointsSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json
+ */
+ /**
+ * Sample code: ListOutboundNetworkDependencies.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void listOutboundNetworkDependencies(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .networkConnections()
+ .listOutboundNetworkDependenciesEndpoints("rg1", "uswest3network", null, com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListSamples.java
index 19b412af4bd1e..1b67acf57f1e6 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsListSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for NetworkConnections List. */
public final class NetworkConnectionsListSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/NetworkConnections_ListBySubscription.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_ListBySubscription.json
*/
/**
* Sample code: NetworkConnections_ListBySubscription.
@@ -18,6 +16,6 @@ public final class NetworkConnectionsListSamples {
*/
public static void networkConnectionsListBySubscription(
com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.networkConnections().list(null, Context.NONE);
+ manager.networkConnections().list(null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsRunHealthChecksSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsRunHealthChecksSamples.java
index c45218936b8c9..2361d35d4575d 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsRunHealthChecksSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsRunHealthChecksSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for NetworkConnections RunHealthChecks. */
public final class NetworkConnectionsRunHealthChecksSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/NetworkConnections_RunHealthChecks.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_RunHealthChecks.json
*/
/**
* Sample code: NetworkConnections_RunHealthChecks.
@@ -17,6 +15,6 @@ public final class NetworkConnectionsRunHealthChecksSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void networkConnectionsRunHealthChecks(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.networkConnections().runHealthChecks("rg1", "uswest3network", Context.NONE);
+ manager.networkConnections().runHealthChecks("rg1", "uswest3network", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsUpdateSamples.java
index ccd509dcb7418..f891c2990196a 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/NetworkConnectionsUpdateSamples.java
@@ -4,13 +4,12 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.models.NetworkConnection;
/** Samples for NetworkConnections Update. */
public final class NetworkConnectionsUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/NetworkConnections_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/NetworkConnections_Patch.json
*/
/**
* Sample code: NetworkConnections_Update.
@@ -21,7 +20,7 @@ public static void networkConnectionsUpdate(com.azure.resourcemanager.devcenter.
NetworkConnection resource =
manager
.networkConnections()
- .getByResourceGroupWithResponse("rg1", "uswest3network", Context.NONE)
+ .getByResourceGroupWithResponse("rg1", "uswest3network", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withDomainPassword("New Password value for user").apply();
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/OperationStatusesGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/OperationStatusesGetSamples.java
index 959eb0662d53b..b209945496961 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/OperationStatusesGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/OperationStatusesGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for OperationStatuses Get. */
public final class OperationStatusesGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/OperationStatus_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/OperationStatus_Get.json
*/
/**
* Sample code: Get OperationStatus.
@@ -17,6 +15,8 @@ public final class OperationStatusesGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void getOperationStatus(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.operationStatuses().getWithResponse("westus3", "3fa1a29d-e807-488d-81d1-f1c5456a08cd", Context.NONE);
+ manager
+ .operationStatuses()
+ .getWithResponse("westus3", "3fa1a29d-e807-488d-81d1-f1c5456a08cd", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/OperationsListSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/OperationsListSamples.java
index 28fe1f66f1467..97b05250d2c18 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/OperationsListSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/OperationsListSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Operations_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Operations_Get.json
*/
/**
* Sample code: Operations_Get.
@@ -17,6 +15,6 @@ public final class OperationsListSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void operationsGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.operations().list(Context.NONE);
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsCreateOrUpdateSamples.java
index 3d2393d287570..90e4520cd4497 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsCreateOrUpdateSamples.java
@@ -6,11 +6,13 @@
import com.azure.resourcemanager.devcenter.models.LicenseType;
import com.azure.resourcemanager.devcenter.models.LocalAdminStatus;
+import com.azure.resourcemanager.devcenter.models.StopOnDisconnectConfiguration;
+import com.azure.resourcemanager.devcenter.models.StopOnDisconnectEnableStatus;
/** Samples for Pools CreateOrUpdate. */
public final class PoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Pools_Put.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Pools_Put.json
*/
/**
* Sample code: Pools_CreateOrUpdate.
@@ -27,6 +29,10 @@ public static void poolsCreateOrUpdate(com.azure.resourcemanager.devcenter.DevCe
.withNetworkConnectionName("Network1-westus2")
.withLicenseType(LicenseType.WINDOWS_CLIENT)
.withLocalAdministrator(LocalAdminStatus.ENABLED)
+ .withStopOnDisconnect(
+ new StopOnDisconnectConfiguration()
+ .withStatus(StopOnDisconnectEnableStatus.ENABLED)
+ .withGracePeriodMinutes(60))
.create();
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsDeleteSamples.java
index 21894e7f6e569..a2ddc983f3ea0 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Pools Delete. */
public final class PoolsDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Pools_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Pools_Delete.json
*/
/**
* Sample code: Pools_Delete.
@@ -17,6 +15,6 @@ public final class PoolsDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void poolsDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.pools().delete("rg1", "DevProject", "poolName", Context.NONE);
+ manager.pools().delete("rg1", "DevProject", "poolName", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsGetSamples.java
index ec52504c6449a..2bfa54a954418 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsGetSamples.java
@@ -4,12 +4,22 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Pools Get. */
public final class PoolsGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Pools_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Pools_GetUnhealthyStatus.json
+ */
+ /**
+ * Sample code: Pools_GetUnhealthyStatus.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void poolsGetUnhealthyStatus(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager.pools().getWithResponse("rg1", "DevProject", "DevPool", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Pools_Get.json
*/
/**
* Sample code: Pools_Get.
@@ -17,6 +27,6 @@ public final class PoolsGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void poolsGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.pools().getWithResponse("rg1", "DevProject", "DevPool", Context.NONE);
+ manager.pools().getWithResponse("rg1", "DevProject", "DevPool", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsListByProjectSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsListByProjectSamples.java
index e318f25f0c28a..35975e82c0e5d 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsListByProjectSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsListByProjectSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Pools ListByProject. */
public final class PoolsListByProjectSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Pools_List.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Pools_List.json
*/
/**
* Sample code: Pools_ListByProject.
@@ -17,6 +15,6 @@ public final class PoolsListByProjectSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void poolsListByProject(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.pools().listByProject("rg1", "DevProject", null, Context.NONE);
+ manager.pools().listByProject("rg1", "DevProject", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsRunHealthChecksSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsRunHealthChecksSamples.java
new file mode 100644
index 0000000000000..dde47b79284bb
--- /dev/null
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsRunHealthChecksSamples.java
@@ -0,0 +1,20 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devcenter.generated;
+
+/** Samples for Pools RunHealthChecks. */
+public final class PoolsRunHealthChecksSamples {
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Pools_RunHealthChecks.json
+ */
+ /**
+ * Sample code: Pools_RefreshStatus.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void poolsRefreshStatus(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager.pools().runHealthChecks("rg1", "DevProject", "DevPool", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsUpdateSamples.java
index 5dd15c93597f2..8fc33fda579df 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/PoolsUpdateSamples.java
@@ -4,13 +4,12 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.models.Pool;
/** Samples for Pools Update. */
public final class PoolsUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Pools_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Pools_Patch.json
*/
/**
* Sample code: Pools_Update.
@@ -18,7 +17,11 @@ public final class PoolsUpdateSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void poolsUpdate(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- Pool resource = manager.pools().getWithResponse("rg1", "DevProject", "DevPool", Context.NONE).getValue();
+ Pool resource =
+ manager
+ .pools()
+ .getWithResponse("rg1", "DevProject", "DevPool", com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withDevBoxDefinitionName("WebDevBox2").apply();
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectAllowedEnvironmentTypesGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectAllowedEnvironmentTypesGetSamples.java
index 783c3c59c926a..b550f90488027 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectAllowedEnvironmentTypesGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectAllowedEnvironmentTypesGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for ProjectAllowedEnvironmentTypes Get. */
public final class ProjectAllowedEnvironmentTypesGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/ProjectAllowedEnvironmentTypes_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json
*/
/**
* Sample code: ProjectAllowedEnvironmentTypes_Get.
@@ -17,6 +15,8 @@ public final class ProjectAllowedEnvironmentTypesGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void projectAllowedEnvironmentTypesGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.projectAllowedEnvironmentTypes().getWithResponse("rg1", "Contoso", "DevTest", Context.NONE);
+ manager
+ .projectAllowedEnvironmentTypes()
+ .getWithResponse("rg1", "Contoso", "DevTest", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectAllowedEnvironmentTypesListSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectAllowedEnvironmentTypesListSamples.java
index 0c4ff46201881..d5dd6ed0d8522 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectAllowedEnvironmentTypesListSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectAllowedEnvironmentTypesListSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for ProjectAllowedEnvironmentTypes List. */
public final class ProjectAllowedEnvironmentTypesListSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/ProjectAllowedEnvironmentTypes_List.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json
*/
/**
* Sample code: ProjectAllowedEnvironmentTypes_List.
@@ -18,6 +16,6 @@ public final class ProjectAllowedEnvironmentTypesListSamples {
*/
public static void projectAllowedEnvironmentTypesList(
com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.projectAllowedEnvironmentTypes().list("rg1", "Contoso", null, Context.NONE);
+ manager.projectAllowedEnvironmentTypes().list("rg1", "Contoso", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesCreateOrUpdateSamples.java
index fe50d41037c39..4445e59bc7d5f 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesCreateOrUpdateSamples.java
@@ -4,8 +4,8 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.resourcemanager.devcenter.models.EnableStatus;
import com.azure.resourcemanager.devcenter.models.EnvironmentRole;
+import com.azure.resourcemanager.devcenter.models.EnvironmentTypeEnableStatus;
import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentity;
import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.devcenter.models.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment;
@@ -17,7 +17,7 @@
/** Samples for ProjectEnvironmentTypes CreateOrUpdate. */
public final class ProjectEnvironmentTypesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/ProjectEnvironmentTypes_Put.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/ProjectEnvironmentTypes_Put.json
*/
/**
* Sample code: ProjectEnvironmentTypes_CreateOrUpdate.
@@ -39,7 +39,7 @@ public static void projectEnvironmentTypesCreateOrUpdate(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1",
new UserAssignedIdentity())))
.withDeploymentTargetId("/subscriptions/00000000-0000-0000-0000-000000000000")
- .withStatus(EnableStatus.ENABLED)
+ .withStatus(EnvironmentTypeEnableStatus.ENABLED)
.withCreatorRoleAssignment(
new ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment()
.withRoles(mapOf("4cbf0b6c-e750-441c-98a7-10da8387e4d6", new EnvironmentRole())))
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesDeleteSamples.java
index 7bd18e6fe6782..bbe3db7a9933a 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for ProjectEnvironmentTypes Delete. */
public final class ProjectEnvironmentTypesDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/ProjectEnvironmentTypes_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/ProjectEnvironmentTypes_Delete.json
*/
/**
* Sample code: ProjectEnvironmentTypes_Delete.
@@ -17,6 +15,8 @@ public final class ProjectEnvironmentTypesDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void projectEnvironmentTypesDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.projectEnvironmentTypes().deleteWithResponse("rg1", "ContosoProj", "DevTest", Context.NONE);
+ manager
+ .projectEnvironmentTypes()
+ .deleteWithResponse("rg1", "ContosoProj", "DevTest", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesGetSamples.java
index 1ae51f2526585..7fb70ff384c98 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for ProjectEnvironmentTypes Get. */
public final class ProjectEnvironmentTypesGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/ProjectEnvironmentTypes_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/ProjectEnvironmentTypes_Get.json
*/
/**
* Sample code: ProjectEnvironmentTypes_Get.
@@ -17,6 +15,8 @@ public final class ProjectEnvironmentTypesGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void projectEnvironmentTypesGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.projectEnvironmentTypes().getWithResponse("rg1", "ContosoProj", "DevTest", Context.NONE);
+ manager
+ .projectEnvironmentTypes()
+ .getWithResponse("rg1", "ContosoProj", "DevTest", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesListSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesListSamples.java
index 93e3a7287d940..53b300ab83bda 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesListSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesListSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for ProjectEnvironmentTypes List. */
public final class ProjectEnvironmentTypesListSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/ProjectEnvironmentTypes_List.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/ProjectEnvironmentTypes_List.json
*/
/**
* Sample code: ProjectEnvironmentTypes_List.
@@ -17,6 +15,6 @@ public final class ProjectEnvironmentTypesListSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void projectEnvironmentTypesList(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.projectEnvironmentTypes().list("rg1", "ContosoProj", null, Context.NONE);
+ manager.projectEnvironmentTypes().list("rg1", "ContosoProj", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesUpdateSamples.java
index 66418e0691b03..763a2b49daadc 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectEnvironmentTypesUpdateSamples.java
@@ -4,9 +4,8 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.models.EnableStatus;
import com.azure.resourcemanager.devcenter.models.EnvironmentRole;
+import com.azure.resourcemanager.devcenter.models.EnvironmentTypeEnableStatus;
import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentity;
import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.devcenter.models.ProjectEnvironmentType;
@@ -18,7 +17,7 @@
/** Samples for ProjectEnvironmentTypes Update. */
public final class ProjectEnvironmentTypesUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/ProjectEnvironmentTypes_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/ProjectEnvironmentTypes_Patch.json
*/
/**
* Sample code: ProjectEnvironmentTypes_Update.
@@ -27,7 +26,10 @@ public final class ProjectEnvironmentTypesUpdateSamples {
*/
public static void projectEnvironmentTypesUpdate(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
ProjectEnvironmentType resource =
- manager.projectEnvironmentTypes().getWithResponse("rg1", "ContosoProj", "DevTest", Context.NONE).getValue();
+ manager
+ .projectEnvironmentTypes()
+ .getWithResponse("rg1", "ContosoProj", "DevTest", com.azure.core.util.Context.NONE)
+ .getValue();
resource
.update()
.withTags(mapOf("CostCenter", "RnD"))
@@ -39,7 +41,7 @@ public static void projectEnvironmentTypesUpdate(com.azure.resourcemanager.devce
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1",
new UserAssignedIdentity())))
.withDeploymentTargetId("/subscriptions/00000000-0000-0000-0000-000000000000")
- .withStatus(EnableStatus.ENABLED)
+ .withStatus(EnvironmentTypeEnableStatus.ENABLED)
.withUserRoleAssignments(
mapOf(
"e45e3m7c-176e-416a-b466-0c5ec8298f8a",
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsCreateOrUpdateSamples.java
index f9a12578c9b0c..6c85fb99a7ec0 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsCreateOrUpdateSamples.java
@@ -10,7 +10,30 @@
/** Samples for Projects CreateOrUpdate. */
public final class ProjectsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Projects_Put.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json
+ */
+ /**
+ * Sample code: Projects_CreateOrUpdateWithLimitsPerDev.
+ *
+ * @param manager Entry point to DevCenterManager.
+ */
+ public static void projectsCreateOrUpdateWithLimitsPerDev(
+ com.azure.resourcemanager.devcenter.DevCenterManager manager) {
+ manager
+ .projects()
+ .define("DevProject")
+ .withRegion("centralus")
+ .withExistingResourceGroup("rg1")
+ .withTags(mapOf("CostCenter", "R&D"))
+ .withDevCenterId(
+ "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso")
+ .withDescription("This is my first project.")
+ .withMaxDevBoxesPerUser(3)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Projects_Put.json
*/
/**
* Sample code: Projects_CreateOrUpdate.
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsDeleteSamples.java
index a9b944947ed5f..bfb6374f828ba 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Projects Delete. */
public final class ProjectsDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Projects_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Projects_Delete.json
*/
/**
* Sample code: Projects_Delete.
@@ -17,6 +15,6 @@ public final class ProjectsDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void projectsDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.projects().delete("rg1", "DevProject", Context.NONE);
+ manager.projects().delete("rg1", "DevProject", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsGetByResourceGroupSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsGetByResourceGroupSamples.java
index 3a2c1ec2fe7d8..e84a816d2fd9d 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsGetByResourceGroupSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsGetByResourceGroupSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Projects GetByResourceGroup. */
public final class ProjectsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Projects_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Projects_Get.json
*/
/**
* Sample code: Projects_Get.
@@ -17,6 +15,6 @@ public final class ProjectsGetByResourceGroupSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void projectsGet(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.projects().getByResourceGroupWithResponse("rg1", "DevProject", Context.NONE);
+ manager.projects().getByResourceGroupWithResponse("rg1", "DevProject", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsListByResourceGroupSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsListByResourceGroupSamples.java
index 89e1e28fcf766..e6738cec3bee5 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsListByResourceGroupSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsListByResourceGroupSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Projects ListByResourceGroup. */
public final class ProjectsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Projects_ListByResourceGroup.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Projects_ListByResourceGroup.json
*/
/**
* Sample code: Projects_ListByResourceGroup.
@@ -17,6 +15,6 @@ public final class ProjectsListByResourceGroupSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void projectsListByResourceGroup(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.projects().listByResourceGroup("rg1", null, Context.NONE);
+ manager.projects().listByResourceGroup("rg1", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsListSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsListSamples.java
index 5b7b06b93d6be..10da2d3cca4fc 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsListSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsListSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Projects List. */
public final class ProjectsListSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Projects_ListBySubscription.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Projects_ListBySubscription.json
*/
/**
* Sample code: Projects_ListBySubscription.
@@ -17,6 +15,6 @@ public final class ProjectsListSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void projectsListBySubscription(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.projects().list(null, Context.NONE);
+ manager.projects().list(null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsUpdateSamples.java
index 0d8b3fc5824ed..d7528c44a22ca 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/ProjectsUpdateSamples.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.models.Project;
import java.util.HashMap;
import java.util.Map;
@@ -12,7 +11,7 @@
/** Samples for Projects Update. */
public final class ProjectsUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Projects_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Projects_Patch.json
*/
/**
* Sample code: Projects_Update.
@@ -21,7 +20,10 @@ public final class ProjectsUpdateSamples {
*/
public static void projectsUpdate(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
Project resource =
- manager.projects().getByResourceGroupWithResponse("rg1", "DevProject", Context.NONE).getValue();
+ manager
+ .projects()
+ .getByResourceGroupWithResponse("rg1", "DevProject", com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withTags(mapOf("CostCenter", "R&D")).withDescription("This is my first project.").apply();
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesCreateOrUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesCreateOrUpdateSamples.java
index a5892875e9911..8a3f1cb8a9285 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesCreateOrUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesCreateOrUpdateSamples.java
@@ -4,14 +4,14 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.resourcemanager.devcenter.models.EnableStatus;
+import com.azure.resourcemanager.devcenter.models.ScheduleEnableStatus;
import com.azure.resourcemanager.devcenter.models.ScheduledFrequency;
import com.azure.resourcemanager.devcenter.models.ScheduledType;
/** Samples for Schedules CreateOrUpdate. */
public final class SchedulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json
*/
/**
* Sample code: Schedules_CreateDailyShutdownPoolSchedule.
@@ -28,7 +28,7 @@ public static void schedulesCreateDailyShutdownPoolSchedule(
.withFrequency(ScheduledFrequency.DAILY)
.withTime("17:30")
.withTimeZone("America/Los_Angeles")
- .withState(EnableStatus.ENABLED)
+ .withState(ScheduleEnableStatus.ENABLED)
.create();
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesDeleteSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesDeleteSamples.java
index 587d26eb97431..aea9308cfc8dd 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesDeleteSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesDeleteSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Schedules Delete. */
public final class SchedulesDeleteSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Schedules_Delete.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Schedules_Delete.json
*/
/**
* Sample code: Schedules_Delete.
@@ -17,6 +15,8 @@ public final class SchedulesDeleteSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void schedulesDelete(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.schedules().delete("rg1", "TestProject", "DevPool", "autoShutdown", null, Context.NONE);
+ manager
+ .schedules()
+ .delete("rg1", "TestProject", "DevPool", "autoShutdown", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesGetSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesGetSamples.java
index 5da8da70b36c8..9f4ae0615aeb2 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesGetSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesGetSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Schedules Get. */
public final class SchedulesGetSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Schedules_Get.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Schedules_Get.json
*/
/**
* Sample code: Schedules_GetByPool.
@@ -17,6 +15,8 @@ public final class SchedulesGetSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void schedulesGetByPool(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.schedules().getWithResponse("rg1", "TestProject", "DevPool", "autoShutdown", null, Context.NONE);
+ manager
+ .schedules()
+ .getWithResponse("rg1", "TestProject", "DevPool", "autoShutdown", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesListByPoolSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesListByPoolSamples.java
index be36a6efa0f30..daf39ba96327d 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesListByPoolSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesListByPoolSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Schedules ListByPool. */
public final class SchedulesListByPoolSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Schedules_ListByPool.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Schedules_ListByPool.json
*/
/**
* Sample code: Schedules_ListByPool.
@@ -17,6 +15,6 @@ public final class SchedulesListByPoolSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void schedulesListByPool(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.schedules().listByPool("rg1", "TestProject", "DevPool", null, Context.NONE);
+ manager.schedules().listByPool("rg1", "TestProject", "DevPool", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesUpdateSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesUpdateSamples.java
index 6d54c2925fda7..9f7269ee2bec1 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesUpdateSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SchedulesUpdateSamples.java
@@ -4,13 +4,12 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.models.Schedule;
/** Samples for Schedules Update. */
public final class SchedulesUpdateSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Schedules_Patch.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Schedules_Patch.json
*/
/**
* Sample code: Schedules_Update.
@@ -21,7 +20,8 @@ public static void schedulesUpdate(com.azure.resourcemanager.devcenter.DevCenter
Schedule resource =
manager
.schedules()
- .getWithResponse("rg1", "TestProject", "DevPool", "autoShutdown", null, Context.NONE)
+ .getWithResponse(
+ "rg1", "TestProject", "DevPool", "autoShutdown", null, com.azure.core.util.Context.NONE)
.getValue();
resource.update().withTime("18:00").apply();
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SkusListSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SkusListSamples.java
index bca1bcd65cedd..42d54e37991f5 100644
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SkusListSamples.java
+++ b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/SkusListSamples.java
@@ -4,12 +4,10 @@
package com.azure.resourcemanager.devcenter.generated;
-import com.azure.core.util.Context;
-
/** Samples for Skus List. */
public final class SkusListSamples {
/*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Skus_ListBySubscription.json
+ * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-01-01-preview/examples/Skus_ListBySubscription.json
*/
/**
* Sample code: Skus_ListBySubscription.
@@ -17,6 +15,6 @@ public final class SkusListSamples {
* @param manager Entry point to DevCenterManager.
*/
public static void skusListBySubscription(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.skus().list(null, Context.NONE);
+ manager.skus().list(null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/UsagesListByLocationSamples.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/UsagesListByLocationSamples.java
deleted file mode 100644
index d3d4be5958482..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/samples/java/com/azure/resourcemanager/devcenter/generated/UsagesListByLocationSamples.java
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.Context;
-
-/** Samples for Usages ListByLocation. */
-public final class UsagesListByLocationSamples {
- /*
- * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2022-11-11-preview/examples/Usages_ListByLocation.json
- */
- /**
- * Sample code: listUsages.
- *
- * @param manager Entry point to DevCenterManager.
- */
- public static void listUsages(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
- manager.usages().listByLocation("westus", Context.NONE);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AllowedEnvironmentTypeInnerTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AllowedEnvironmentTypeInnerTests.java
deleted file mode 100644
index 3a44e966a4c01..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AllowedEnvironmentTypeInnerTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.AllowedEnvironmentTypeInner;
-import org.junit.jupiter.api.Test;
-
-public final class AllowedEnvironmentTypeInnerTests {
- @Test
- public void testDeserialize() {
- AllowedEnvironmentTypeInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"provisioningState\":\"Canceled\"},\"id\":\"eun\",\"name\":\"mqhgyxzkonocuk\",\"type\":\"klyaxuconu\"}")
- .toObject(AllowedEnvironmentTypeInner.class);
- }
-
- @Test
- public void testSerialize() {
- AllowedEnvironmentTypeInner model = new AllowedEnvironmentTypeInner();
- model = BinaryData.fromObject(model).toObject(AllowedEnvironmentTypeInner.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AllowedEnvironmentTypeListResultTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AllowedEnvironmentTypeListResultTests.java
deleted file mode 100644
index 7100d7990908a..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AllowedEnvironmentTypeListResultTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.AllowedEnvironmentTypeListResult;
-import org.junit.jupiter.api.Test;
-
-public final class AllowedEnvironmentTypeListResultTests {
- @Test
- public void testDeserialize() {
- AllowedEnvironmentTypeListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Created\"},\"id\":\"rywn\",\"name\":\"zoqftiyqzrnkcqvy\",\"type\":\"lwh\"}],\"nextLink\":\"sicohoqqnwvlry\"}")
- .toObject(AllowedEnvironmentTypeListResult.class);
- }
-
- @Test
- public void testSerialize() {
- AllowedEnvironmentTypeListResult model = new AllowedEnvironmentTypeListResult();
- model = BinaryData.fromObject(model).toObject(AllowedEnvironmentTypeListResult.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AllowedEnvironmentTypePropertiesTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AllowedEnvironmentTypePropertiesTests.java
deleted file mode 100644
index 7ac2828d21102..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AllowedEnvironmentTypePropertiesTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.AllowedEnvironmentTypeProperties;
-import org.junit.jupiter.api.Test;
-
-public final class AllowedEnvironmentTypePropertiesTests {
- @Test
- public void testDeserialize() {
- AllowedEnvironmentTypeProperties model =
- BinaryData
- .fromString("{\"provisioningState\":\"Accepted\"}")
- .toObject(AllowedEnvironmentTypeProperties.class);
- }
-
- @Test
- public void testSerialize() {
- AllowedEnvironmentTypeProperties model = new AllowedEnvironmentTypeProperties();
- model = BinaryData.fromObject(model).toObject(AllowedEnvironmentTypeProperties.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworkConnectionInnerTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworkConnectionInnerTests.java
deleted file mode 100644
index 7bdde727d675c..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworkConnectionInnerTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.AttachedNetworkConnectionInner;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AttachedNetworkConnectionInnerTests {
- @Test
- public void testDeserialize() {
- AttachedNetworkConnectionInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"provisioningState\":\"Deleted\",\"networkConnectionId\":\"od\",\"networkConnectionLocation\":\"hc\",\"healthCheckStatus\":\"Passed\",\"domainJoinType\":\"HybridAzureADJoin\"},\"id\":\"t\",\"name\":\"kwh\",\"type\":\"soifiyipjxsqw\"}")
- .toObject(AttachedNetworkConnectionInner.class);
- Assertions.assertEquals("od", model.networkConnectionId());
- }
-
- @Test
- public void testSerialize() {
- AttachedNetworkConnectionInner model = new AttachedNetworkConnectionInner().withNetworkConnectionId("od");
- model = BinaryData.fromObject(model).toObject(AttachedNetworkConnectionInner.class);
- Assertions.assertEquals("od", model.networkConnectionId());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworkConnectionPropertiesTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworkConnectionPropertiesTests.java
deleted file mode 100644
index 74ee23b97fadc..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworkConnectionPropertiesTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.AttachedNetworkConnectionProperties;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AttachedNetworkConnectionPropertiesTests {
- @Test
- public void testDeserialize() {
- AttachedNetworkConnectionProperties model =
- BinaryData
- .fromString(
- "{\"provisioningState\":\"Running\",\"networkConnectionId\":\"jbznorc\",\"networkConnectionLocation\":\"vsnb\",\"healthCheckStatus\":\"Failed\",\"domainJoinType\":\"HybridAzureADJoin\"}")
- .toObject(AttachedNetworkConnectionProperties.class);
- Assertions.assertEquals("jbznorc", model.networkConnectionId());
- }
-
- @Test
- public void testSerialize() {
- AttachedNetworkConnectionProperties model =
- new AttachedNetworkConnectionProperties().withNetworkConnectionId("jbznorc");
- model = BinaryData.fromObject(model).toObject(AttachedNetworkConnectionProperties.class);
- Assertions.assertEquals("jbznorc", model.networkConnectionId());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworkListResultTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworkListResultTests.java
deleted file mode 100644
index c15677bafc7cb..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworkListResultTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.AttachedNetworkListResult;
-import org.junit.jupiter.api.Test;
-
-public final class AttachedNetworkListResultTests {
- @Test
- public void testDeserialize() {
- AttachedNetworkListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"networkConnectionId\":\"i\",\"networkConnectionLocation\":\"fidfvzw\",\"healthCheckStatus\":\"Failed\",\"domainJoinType\":\"HybridAzureADJoin\"},\"id\":\"mwisdkfthwxmnt\",\"name\":\"i\",\"type\":\"aop\"},{\"properties\":{\"provisioningState\":\"Updating\",\"networkConnectionId\":\"jcmmxdcufufsrp\",\"networkConnectionLocation\":\"zidnsezcxtbzsgfy\",\"healthCheckStatus\":\"Pending\",\"domainJoinType\":\"HybridAzureADJoin\"},\"id\":\"mdwzjeiachboo\",\"name\":\"flnrosfqpteehzz\",\"type\":\"ypyqrimzinp\"}],\"nextLink\":\"wjdk\"}")
- .toObject(AttachedNetworkListResult.class);
- }
-
- @Test
- public void testSerialize() {
- AttachedNetworkListResult model = new AttachedNetworkListResult();
- model = BinaryData.fromObject(model).toObject(AttachedNetworkListResult.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteMockTests.java
deleted file mode 100644
index 1ff1cd554bb91..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksDeleteMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AttachedNetworksDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.attachedNetworks().delete("uxzejntpsew", "ioilqukrydxtq", "ieoxorggufhyaomt", Context.NONE);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterWithResponseMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterWithResponseMockTests.java
deleted file mode 100644
index 1dcddac12b7b3..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByDevCenterWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.AttachedNetworkConnection;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AttachedNetworksGetByDevCenterWithResponseMockTests {
- @Test
- public void testGetByDevCenterWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Updating\",\"networkConnectionId\":\"kgthrrghxjbd\",\"networkConnectionLocation\":\"xvcxgfrpdsofbshr\",\"healthCheckStatus\":\"Passed\",\"domainJoinType\":\"HybridAzureADJoin\"},\"id\":\"wdvzyy\",\"name\":\"ycnunvjsrtk\",\"type\":\"awnopqgikyzirtxd\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AttachedNetworkConnection response =
- manager
- .attachedNetworks()
- .getByDevCenterWithResponse("tw", "sgogczhonnxk", "lgnyhmo", Context.NONE)
- .getValue();
-
- Assertions.assertEquals("kgthrrghxjbd", response.networkConnectionId());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectWithResponseMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectWithResponseMockTests.java
deleted file mode 100644
index 88aa5fcdadef3..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksGetByProjectWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.AttachedNetworkConnection;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AttachedNetworksGetByProjectWithResponseMockTests {
- @Test
- public void testGetByProjectWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Updating\",\"networkConnectionId\":\"twjchrdg\",\"networkConnectionLocation\":\"hxumwctondzj\",\"healthCheckStatus\":\"Warning\",\"domainJoinType\":\"HybridAzureADJoin\"},\"id\":\"lwg\",\"name\":\"ytsbwtovv\",\"type\":\"gseinq\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AttachedNetworkConnection response =
- manager
- .attachedNetworks()
- .getByProjectWithResponse("fpncurdo", "wiithtywub", "cbihwqk", Context.NONE)
- .getValue();
-
- Assertions.assertEquals("twjchrdg", response.networkConnectionId());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterMockTests.java
deleted file mode 100644
index 084e622e351be..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByDevCenterMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.AttachedNetworkConnection;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AttachedNetworksListByDevCenterMockTests {
- @Test
- public void testListByDevCenter() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"provisioningState\":\"MovingResources\",\"networkConnectionId\":\"qnrojlpijnkrxfrd\",\"networkConnectionLocation\":\"c\",\"healthCheckStatus\":\"Warning\",\"domainJoinType\":\"HybridAzureADJoin\"},\"id\":\"ronasxift\",\"name\":\"zq\",\"type\":\"zh\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.attachedNetworks().listByDevCenter("iufxqknpir", "nepttwqmsni", 1579066306, Context.NONE);
-
- Assertions.assertEquals("qnrojlpijnkrxfrd", response.iterator().next().networkConnectionId());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectMockTests.java
deleted file mode 100644
index 8012e680da6cf..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/AttachedNetworksListByProjectMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.AttachedNetworkConnection;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AttachedNetworksListByProjectMockTests {
- @Test
- public void testListByProject() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"networkConnectionId\":\"otxhojujby\",\"networkConnectionLocation\":\"lmcuvhixb\",\"healthCheckStatus\":\"Unknown\",\"domainJoinType\":\"HybridAzureADJoin\"},\"id\":\"yl\",\"name\":\"coolsttpkiwkkb\",\"type\":\"ujrywvtyl\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.attachedNetworks().listByProject("qncygupkvi", "mdscwxqupev", 1875273166, Context.NONE);
-
- Assertions.assertEquals("otxhojujby", response.iterator().next().networkConnectionId());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CapabilityTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CapabilityTests.java
deleted file mode 100644
index db3c2747cf1d5..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CapabilityTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.Capability;
-import org.junit.jupiter.api.Test;
-
-public final class CapabilityTests {
- @Test
- public void testDeserialize() {
- Capability model =
- BinaryData.fromString("{\"name\":\"nqxwbp\",\"value\":\"ulpiuj\"}").toObject(Capability.class);
- }
-
- @Test
- public void testSerialize() {
- Capability model = new Capability();
- model = BinaryData.fromObject(model).toObject(Capability.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CatalogListResultTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CatalogListResultTests.java
deleted file mode 100644
index 9cbc301095d89..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CatalogListResultTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.CatalogListResult;
-import org.junit.jupiter.api.Test;
-
-public final class CatalogListResultTests {
- @Test
- public void testDeserialize() {
- CatalogListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"syncState\":\"Failed\",\"lastSyncTime\":\"2021-07-19T22:57:03Z\"},\"id\":\"tynnaamdectehfi\",\"name\":\"scjeypv\",\"type\":\"ezrkgqhcjrefo\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"syncState\":\"Succeeded\",\"lastSyncTime\":\"2021-09-05T10:33:45Z\"},\"id\":\"xyqj\",\"name\":\"k\",\"type\":\"attpngjcrcczsq\"},{\"properties\":{\"provisioningState\":\"Failed\",\"syncState\":\"Succeeded\",\"lastSyncTime\":\"2021-03-30T22:07:42Z\"},\"id\":\"sounqecanoaeu\",\"name\":\"fhyhltrpmopjmcma\",\"type\":\"u\"},{\"properties\":{\"provisioningState\":\"Failed\",\"syncState\":\"Canceled\",\"lastSyncTime\":\"2021-07-12T12:37:48Z\"},\"id\":\"sfcpkvxodpuozm\",\"name\":\"zydagfuaxbezyiuo\",\"type\":\"ktwh\"}],\"nextLink\":\"xw\"}")
- .toObject(CatalogListResult.class);
- }
-
- @Test
- public void testSerialize() {
- CatalogListResult model = new CatalogListResult();
- model = BinaryData.fromObject(model).toObject(CatalogListResult.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteMockTests.java
deleted file mode 100644
index a8afbc3456d67..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CatalogsDeleteMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CatalogsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.catalogs().delete("uvwpklvxwmyg", "xpgpq", "hiszepnnbjcrxgib", Context.NONE);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilitiesExecuteWithResponseMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilitiesExecuteWithResponseMockTests.java
deleted file mode 100644
index 938ff2617cb44..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilitiesExecuteWithResponseMockTests.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.CheckNameAvailabilityReason;
-import com.azure.resourcemanager.devcenter.models.CheckNameAvailabilityRequest;
-import com.azure.resourcemanager.devcenter.models.CheckNameAvailabilityResponse;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CheckNameAvailabilitiesExecuteWithResponseMockTests {
- @Test
- public void testExecuteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"ft\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckNameAvailabilityResponse response =
- manager
- .checkNameAvailabilities()
- .executeWithResponse(
- new CheckNameAvailabilityRequest().withName("jj").withType("oqbeitpkxzt"), Context.NONE)
- .getValue();
-
- Assertions.assertEquals(false, response.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, response.reason());
- Assertions.assertEquals("ft", response.message());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityRequestTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityRequestTests.java
deleted file mode 100644
index 11ce0e407e7d1..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityRequestTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.CheckNameAvailabilityRequest;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class CheckNameAvailabilityRequestTests {
- @Test
- public void testDeserialize() {
- CheckNameAvailabilityRequest model =
- BinaryData
- .fromString("{\"name\":\"sjnkal\",\"type\":\"tiiswacffg\"}")
- .toObject(CheckNameAvailabilityRequest.class);
- Assertions.assertEquals("sjnkal", model.name());
- Assertions.assertEquals("tiiswacffg", model.type());
- }
-
- @Test
- public void testSerialize() {
- CheckNameAvailabilityRequest model =
- new CheckNameAvailabilityRequest().withName("sjnkal").withType("tiiswacffg");
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class);
- Assertions.assertEquals("sjnkal", model.name());
- Assertions.assertEquals("tiiswacffg", model.type());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityResponseInnerTests.java
deleted file mode 100644
index 68a3516f24c86..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/CheckNameAvailabilityResponseInnerTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.CheckNameAvailabilityResponseInner;
-import com.azure.resourcemanager.devcenter.models.CheckNameAvailabilityReason;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class CheckNameAvailabilityResponseInnerTests {
- @Test
- public void testDeserialize() {
- CheckNameAvailabilityResponseInner model =
- BinaryData
- .fromString("{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"kfvhqcrailvpn\"}")
- .toObject(CheckNameAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, model.reason());
- Assertions.assertEquals("kfvhqcrailvpn", model.message());
- }
-
- @Test
- public void testSerialize() {
- CheckNameAvailabilityResponseInner model =
- new CheckNameAvailabilityResponseInner()
- .withNameAvailable(true)
- .withReason(CheckNameAvailabilityReason.ALREADY_EXISTS)
- .withMessage("kfvhqcrailvpn");
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, model.reason());
- Assertions.assertEquals("kfvhqcrailvpn", model.message());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionListResultTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionListResultTests.java
deleted file mode 100644
index 1bdc302cd0083..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionListResultTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.DevBoxDefinitionListResult;
-import org.junit.jupiter.api.Test;
-
-public final class DevBoxDefinitionListResultTests {
- @Test
- public void testDeserialize() {
- DevBoxDefinitionListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"RolloutInProgress\",\"imageValidationStatus\":\"Succeeded\",\"osStorageType\":\"gklwn\",\"hibernateSupport\":\"Enabled\"},\"location\":\"dauwhvylwzbtd\",\"tags\":{\"pow\":\"jznb\",\"qlveualupjmkh\":\"wpr\"},\"id\":\"xobbcswsrt\",\"name\":\"riplrbpbewtg\",\"type\":\"fgb\"}],\"nextLink\":\"gw\"}")
- .toObject(DevBoxDefinitionListResult.class);
- }
-
- @Test
- public void testSerialize() {
- DevBoxDefinitionListResult model = new DevBoxDefinitionListResult();
- model = BinaryData.fromObject(model).toObject(DevBoxDefinitionListResult.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionUpdatePropertiesTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionUpdatePropertiesTests.java
deleted file mode 100644
index 9c817480a2ea5..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionUpdatePropertiesTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.DevBoxDefinitionUpdateProperties;
-import com.azure.resourcemanager.devcenter.models.HibernateSupport;
-import com.azure.resourcemanager.devcenter.models.ImageReference;
-import com.azure.resourcemanager.devcenter.models.Sku;
-import com.azure.resourcemanager.devcenter.models.SkuTier;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class DevBoxDefinitionUpdatePropertiesTests {
- @Test
- public void testDeserialize() {
- DevBoxDefinitionUpdateProperties model =
- BinaryData
- .fromString(
- "{\"imageReference\":{\"id\":\"e\",\"exactVersion\":\"sgzvahapjyzhpv\",\"publisher\":\"zcjrvxdjzlmwlx\",\"offer\":\"ug\",\"sku\":\"zovawjvz\"},\"sku\":{\"name\":\"luthn\",\"tier\":\"Basic\",\"size\":\"xipeilpjzuaejx\",\"family\":\"ltskzbbtd\",\"capacity\":369228588},\"osStorageType\":\"e\",\"hibernateSupport\":\"Disabled\"}")
- .toObject(DevBoxDefinitionUpdateProperties.class);
- Assertions.assertEquals("e", model.imageReference().id());
- Assertions.assertEquals("zcjrvxdjzlmwlx", model.imageReference().publisher());
- Assertions.assertEquals("ug", model.imageReference().offer());
- Assertions.assertEquals("zovawjvz", model.imageReference().sku());
- Assertions.assertEquals("luthn", model.sku().name());
- Assertions.assertEquals(SkuTier.BASIC, model.sku().tier());
- Assertions.assertEquals("xipeilpjzuaejx", model.sku().size());
- Assertions.assertEquals("ltskzbbtd", model.sku().family());
- Assertions.assertEquals(369228588, model.sku().capacity());
- Assertions.assertEquals("e", model.osStorageType());
- Assertions.assertEquals(HibernateSupport.DISABLED, model.hibernateSupport());
- }
-
- @Test
- public void testSerialize() {
- DevBoxDefinitionUpdateProperties model =
- new DevBoxDefinitionUpdateProperties()
- .withImageReference(
- new ImageReference()
- .withId("e")
- .withPublisher("zcjrvxdjzlmwlx")
- .withOffer("ug")
- .withSku("zovawjvz"))
- .withSku(
- new Sku()
- .withName("luthn")
- .withTier(SkuTier.BASIC)
- .withSize("xipeilpjzuaejx")
- .withFamily("ltskzbbtd")
- .withCapacity(369228588))
- .withOsStorageType("e")
- .withHibernateSupport(HibernateSupport.DISABLED);
- model = BinaryData.fromObject(model).toObject(DevBoxDefinitionUpdateProperties.class);
- Assertions.assertEquals("e", model.imageReference().id());
- Assertions.assertEquals("zcjrvxdjzlmwlx", model.imageReference().publisher());
- Assertions.assertEquals("ug", model.imageReference().offer());
- Assertions.assertEquals("zovawjvz", model.imageReference().sku());
- Assertions.assertEquals("luthn", model.sku().name());
- Assertions.assertEquals(SkuTier.BASIC, model.sku().tier());
- Assertions.assertEquals("xipeilpjzuaejx", model.sku().size());
- Assertions.assertEquals("ltskzbbtd", model.sku().family());
- Assertions.assertEquals(369228588, model.sku().capacity());
- Assertions.assertEquals("e", model.osStorageType());
- Assertions.assertEquals(HibernateSupport.DISABLED, model.hibernateSupport());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionUpdateTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionUpdateTests.java
deleted file mode 100644
index 606fb15fd76b5..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionUpdateTests.java
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.DevBoxDefinitionUpdate;
-import com.azure.resourcemanager.devcenter.models.HibernateSupport;
-import com.azure.resourcemanager.devcenter.models.ImageReference;
-import com.azure.resourcemanager.devcenter.models.Sku;
-import com.azure.resourcemanager.devcenter.models.SkuTier;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class DevBoxDefinitionUpdateTests {
- @Test
- public void testDeserialize() {
- DevBoxDefinitionUpdate model =
- BinaryData
- .fromString(
- "{\"properties\":{\"imageReference\":{\"id\":\"boekqvkel\",\"exactVersion\":\"mvb\",\"publisher\":\"yjsflhhcaalnji\",\"offer\":\"sxyawjoyaqcs\",\"sku\":\"jpkiidzyexznelix\"},\"sku\":{\"name\":\"rzt\",\"tier\":\"Basic\",\"size\":\"bnxknalaulppg\",\"family\":\"tpnapnyiropuhpig\",\"capacity\":2140009722},\"osStorageType\":\"lgqg\",\"hibernateSupport\":\"Enabled\"},\"tags\":{\"n\":\"djvcsl\",\"rmgucnap\":\"wwncwzzhxgk\",\"oellwp\":\"t\"},\"location\":\"d\"}")
- .toObject(DevBoxDefinitionUpdate.class);
- Assertions.assertEquals("djvcsl", model.tags().get("n"));
- Assertions.assertEquals("d", model.location());
- Assertions.assertEquals("boekqvkel", model.imageReference().id());
- Assertions.assertEquals("yjsflhhcaalnji", model.imageReference().publisher());
- Assertions.assertEquals("sxyawjoyaqcs", model.imageReference().offer());
- Assertions.assertEquals("jpkiidzyexznelix", model.imageReference().sku());
- Assertions.assertEquals("rzt", model.sku().name());
- Assertions.assertEquals(SkuTier.BASIC, model.sku().tier());
- Assertions.assertEquals("bnxknalaulppg", model.sku().size());
- Assertions.assertEquals("tpnapnyiropuhpig", model.sku().family());
- Assertions.assertEquals(2140009722, model.sku().capacity());
- Assertions.assertEquals("lgqg", model.osStorageType());
- Assertions.assertEquals(HibernateSupport.ENABLED, model.hibernateSupport());
- }
-
- @Test
- public void testSerialize() {
- DevBoxDefinitionUpdate model =
- new DevBoxDefinitionUpdate()
- .withTags(mapOf("n", "djvcsl", "rmgucnap", "wwncwzzhxgk", "oellwp", "t"))
- .withLocation("d")
- .withImageReference(
- new ImageReference()
- .withId("boekqvkel")
- .withPublisher("yjsflhhcaalnji")
- .withOffer("sxyawjoyaqcs")
- .withSku("jpkiidzyexznelix"))
- .withSku(
- new Sku()
- .withName("rzt")
- .withTier(SkuTier.BASIC)
- .withSize("bnxknalaulppg")
- .withFamily("tpnapnyiropuhpig")
- .withCapacity(2140009722))
- .withOsStorageType("lgqg")
- .withHibernateSupport(HibernateSupport.ENABLED);
- model = BinaryData.fromObject(model).toObject(DevBoxDefinitionUpdate.class);
- Assertions.assertEquals("djvcsl", model.tags().get("n"));
- Assertions.assertEquals("d", model.location());
- Assertions.assertEquals("boekqvkel", model.imageReference().id());
- Assertions.assertEquals("yjsflhhcaalnji", model.imageReference().publisher());
- Assertions.assertEquals("sxyawjoyaqcs", model.imageReference().offer());
- Assertions.assertEquals("jpkiidzyexznelix", model.imageReference().sku());
- Assertions.assertEquals("rzt", model.sku().name());
- Assertions.assertEquals(SkuTier.BASIC, model.sku().tier());
- Assertions.assertEquals("bnxknalaulppg", model.sku().size());
- Assertions.assertEquals("tpnapnyiropuhpig", model.sku().family());
- Assertions.assertEquals(2140009722, model.sku().capacity());
- Assertions.assertEquals("lgqg", model.osStorageType());
- Assertions.assertEquals(HibernateSupport.ENABLED, model.hibernateSupport());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteMockTests.java
deleted file mode 100644
index ac38e6c5a2c17..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevBoxDefinitionsDeleteMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DevBoxDefinitionsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.devBoxDefinitions().delete("agtltdhlfkqoj", "ykvgtrdcnifmz", "sdymbrn", Context.NONE);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterInnerTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterInnerTests.java
deleted file mode 100644
index c4f7d53648ad7..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterInnerTests.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.DevCenterInner;
-import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.devcenter.models.UserAssignedIdentity;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class DevCenterInnerTests {
- @Test
- public void testDeserialize() {
- DevCenterInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"provisioningState\":\"MovingResources\",\"devCenterUri\":\"pzvgnwzsymglzufc\"},\"identity\":{\"principalId\":\"3198e8cd-958c-4a35-824c-10bb7c932ddd\",\"tenantId\":\"614ac35e-6862-4675-a406-842c8163db35\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"anufhfcbjysag\":{\"principalId\":\"ecaf0ce5-f5d4-465c-a52f-e56df92b6e65\",\"clientId\":\"5441a2e3-e3d4-4652-9f0b-7dbd0cd692c1\"},\"xqhabi\":{\"principalId\":\"1d861053-93f8-4042-9089-513f85ea841a\",\"clientId\":\"c1e5cc6e-d197-4ab0-97da-392ac5c345d5\"}}},\"location\":\"ikxwc\",\"tags\":{\"n\":\"scnpqxuhivy\",\"rkxvdum\":\"wby\"},\"id\":\"grtfwvu\",\"name\":\"xgaudccs\",\"type\":\"h\"}")
- .toObject(DevCenterInner.class);
- Assertions.assertEquals("ikxwc", model.location());
- Assertions.assertEquals("scnpqxuhivy", model.tags().get("n"));
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type());
- }
-
- @Test
- public void testSerialize() {
- DevCenterInner model =
- new DevCenterInner()
- .withLocation("ikxwc")
- .withTags(mapOf("n", "scnpqxuhivy", "rkxvdum", "wby"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf("anufhfcbjysag", new UserAssignedIdentity(), "xqhabi", new UserAssignedIdentity())));
- model = BinaryData.fromObject(model).toObject(DevCenterInner.class);
- Assertions.assertEquals("ikxwc", model.location());
- Assertions.assertEquals("scnpqxuhivy", model.tags().get("n"));
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterListResultTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterListResultTests.java
deleted file mode 100644
index e6a0112654767..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterListResultTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.DevCenterListResult;
-import org.junit.jupiter.api.Test;
-
-public final class DevCenterListResultTests {
- @Test
- public void testDeserialize() {
- DevCenterListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"devCenterUri\":\"gjxpybczmehmt\"},\"identity\":{\"principalId\":\"084be245-8a2b-45fc-82bb-bd6db1eb398a\",\"tenantId\":\"f3b48b54-e277-4901-981d-cf0bb4267060\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"location\":\"rupidgsyb\",\"tags\":{\"xaobhdxbmtqioqjz\":\"hphoycm\",\"ownoizhw\":\"htbmuf\"},\"id\":\"rxybqsoq\",\"name\":\"jgkdmbpazlobcu\",\"type\":\"pdznrbtcqqjnqgl\"},{\"properties\":{\"provisioningState\":\"Creating\",\"devCenterUri\":\"foooj\"},\"identity\":{\"principalId\":\"03475844-5760-4648-9ca8-465bbab16ebd\",\"tenantId\":\"fe49a613-19e9-4d6c-96f1-d652ec462cc0\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"location\":\"saagdf\",\"tags\":{\"izntocipao\":\"zlhjxrifkwmrvkt\"},\"id\":\"ajpsquc\",\"name\":\"poyfdkfogkn\",\"type\":\"gjofjd\"},{\"properties\":{\"provisioningState\":\"NotSpecified\",\"devCenterUri\":\"deupewnwrei\"},\"identity\":{\"principalId\":\"ce989883-7976-4a7e-9a50-f7969f5764bd\",\"tenantId\":\"413da7af-7575-47cf-bf21-15a5ccc86186\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"location\":\"sarhmofc\",\"tags\":{\"rkdtmlxh\":\"my\"},\"id\":\"kuksjtxukcdm\",\"name\":\"arcryuanzwuxzdxt\",\"type\":\"yrlhmwhfpmrqobm\"}],\"nextLink\":\"kknryrtihf\"}")
- .toObject(DevCenterListResult.class);
- }
-
- @Test
- public void testSerialize() {
- DevCenterListResult model = new DevCenterListResult();
- model = BinaryData.fromObject(model).toObject(DevCenterListResult.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterPropertiesTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterPropertiesTests.java
deleted file mode 100644
index 0f98e73ffe6a9..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterPropertiesTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.DevCenterProperties;
-import org.junit.jupiter.api.Test;
-
-public final class DevCenterPropertiesTests {
- @Test
- public void testDeserialize() {
- DevCenterProperties model =
- BinaryData
- .fromString("{\"provisioningState\":\"StorageProvisioningFailed\",\"devCenterUri\":\"yejhk\"}")
- .toObject(DevCenterProperties.class);
- }
-
- @Test
- public void testSerialize() {
- DevCenterProperties model = new DevCenterProperties();
- model = BinaryData.fromObject(model).toObject(DevCenterProperties.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterSkuInnerTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterSkuInnerTests.java
deleted file mode 100644
index dc08d03466d61..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterSkuInnerTests.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.DevCenterSkuInner;
-import com.azure.resourcemanager.devcenter.models.SkuTier;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class DevCenterSkuInnerTests {
- @Test
- public void testDeserialize() {
- DevCenterSkuInner model =
- BinaryData
- .fromString(
- "{\"resourceType\":\"zapvhelx\",\"locations\":[\"lya\",\"dd\",\"kcbcue\",\"rjxgciqib\"],\"capabilities\":[{\"name\":\"xsdqrhzoymibmrqy\",\"value\":\"ahwfluszdtmhrk\"}],\"name\":\"ofyyvoqacpi\",\"tier\":\"Free\",\"size\":\"tg\",\"family\":\"bwoenwashrt\",\"capacity\":268126054}")
- .toObject(DevCenterSkuInner.class);
- Assertions.assertEquals("ofyyvoqacpi", model.name());
- Assertions.assertEquals(SkuTier.FREE, model.tier());
- Assertions.assertEquals("tg", model.size());
- Assertions.assertEquals("bwoenwashrt", model.family());
- Assertions.assertEquals(268126054, model.capacity());
- }
-
- @Test
- public void testSerialize() {
- DevCenterSkuInner model =
- new DevCenterSkuInner()
- .withName("ofyyvoqacpi")
- .withTier(SkuTier.FREE)
- .withSize("tg")
- .withFamily("bwoenwashrt")
- .withCapacity(268126054);
- model = BinaryData.fromObject(model).toObject(DevCenterSkuInner.class);
- Assertions.assertEquals("ofyyvoqacpi", model.name());
- Assertions.assertEquals(SkuTier.FREE, model.tier());
- Assertions.assertEquals("tg", model.size());
- Assertions.assertEquals("bwoenwashrt", model.family());
- Assertions.assertEquals(268126054, model.capacity());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterUpdateTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterUpdateTests.java
deleted file mode 100644
index 7538f04fc1562..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCenterUpdateTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.DevCenterUpdate;
-import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.devcenter.models.UserAssignedIdentity;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class DevCenterUpdateTests {
- @Test
- public void testDeserialize() {
- DevCenterUpdate model =
- BinaryData
- .fromString(
- "{\"identity\":{\"principalId\":\"0218f7cb-1973-4891-b7a7-b7e7bf835cc1\",\"tenantId\":\"c007f053-ec3c-4a7e-bb6e-e6547fdd282e\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ipjoxzjnchgejs\":{\"principalId\":\"46b87a21-c120-405e-aa71-751626bf8229\",\"clientId\":\"28bd133f-32bd-473d-bd8f-5068af5ba9da\"},\"mailzydehojw\":{\"principalId\":\"844c7466-6256-47ac-b865-cb907bed5c93\",\"clientId\":\"07144762-8153-450d-9688-dafe1f7ccd63\"},\"uxinpmqnjaq\":{\"principalId\":\"edc06086-f8b5-44c4-bf6d-fc586b42a36c\",\"clientId\":\"ffe278c5-9a31-43c5-97b5-ec3ca3c776d1\"}}},\"tags\":{\"jvwmfda\":\"jsprozvcpute\"},\"location\":\"cmdv\"}")
- .toObject(DevCenterUpdate.class);
- Assertions.assertEquals("jsprozvcpute", model.tags().get("jvwmfda"));
- Assertions.assertEquals("cmdv", model.location());
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type());
- }
-
- @Test
- public void testSerialize() {
- DevCenterUpdate model =
- new DevCenterUpdate()
- .withTags(mapOf("jvwmfda", "jsprozvcpute"))
- .withLocation("cmdv")
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "ipjoxzjnchgejs",
- new UserAssignedIdentity(),
- "mailzydehojw",
- new UserAssignedIdentity(),
- "uxinpmqnjaq",
- new UserAssignedIdentity())));
- model = BinaryData.fromObject(model).toObject(DevCenterUpdate.class);
- Assertions.assertEquals("jsprozvcpute", model.tags().get("jvwmfda"));
- Assertions.assertEquals("cmdv", model.location());
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateMockTests.java
deleted file mode 100644
index b5e24e2826a5b..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.DevCenter;
-import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentityType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DevCentersCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Succeeded\",\"devCenterUri\":\"dhszfjv\"},\"identity\":{\"principalId\":\"76a1a0f6-be18-4551-8ef6-bc4e975f65a0\",\"tenantId\":\"b25e406a-3f34-476b-bbb3-7743a40acae4\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"location\":\"a\",\"tags\":{\"ojnal\":\"mqhldvrii\",\"qhhahhxvrhmzkwpj\":\"hfkvtvsexsowuel\",\"ughftqsx\":\"wws\"},\"id\":\"qxujxukndxd\",\"name\":\"grjguufzd\",\"type\":\"syqtfi\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- DevCenter response =
- manager
- .devCenters()
- .define("hneuyowqkd")
- .withRegion("zimejzanlfzx")
- .withExistingResourceGroup("smwutwbdsrezpd")
- .withTags(mapOf("okixrjqcir", "rmbzo", "szrnwo", "zpfrla"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .create();
-
- Assertions.assertEquals("a", response.location());
- Assertions.assertEquals("mqhldvrii", response.tags().get("ojnal"));
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersDeleteMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersDeleteMockTests.java
deleted file mode 100644
index a72e50049699a..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersDeleteMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DevCentersDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.devCenters().delete("slthaq", "x", Context.NONE);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersGetByResourceGroupWithResponseMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersGetByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index 407ed38607f71..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersGetByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.DevCenter;
-import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentityType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DevCentersGetByResourceGroupWithResponseMockTests {
- @Test
- public void testGetByResourceGroupWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Creating\",\"devCenterUri\":\"mkrefajpjorwkq\"},\"identity\":{\"principalId\":\"ec08b2b1-d1de-4f3f-a07c-23b1c306fcf6\",\"tenantId\":\"71bd909a-1f26-427f-84ce-b46ae805950a\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"location\":\"jivfxzsjabib\",\"tags\":{\"jxbkzbzkdvn\":\"tawfsdjpvkvp\",\"zhjjklffhmouwq\":\"jabudurgkakmo\",\"eeyebi\":\"gzrf\"},\"id\":\"ikayuhqlbjbsybb\",\"name\":\"wrv\",\"type\":\"ldgmfpgvmpip\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- DevCenter response = manager.devCenters().getByResourceGroupWithResponse("p", "kghv", Context.NONE).getValue();
-
- Assertions.assertEquals("jivfxzsjabib", response.location());
- Assertions.assertEquals("tawfsdjpvkvp", response.tags().get("jxbkzbzkdvn"));
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, response.identity().type());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersListByResourceGroupMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersListByResourceGroupMockTests.java
deleted file mode 100644
index 6f83c7b9adf1f..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersListByResourceGroupMockTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.DevCenter;
-import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentityType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DevCentersListByResourceGroupMockTests {
- @Test
- public void testListByResourceGroup() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"provisioningState\":\"NotSpecified\",\"devCenterUri\":\"hfwpracstwit\"},\"identity\":{\"principalId\":\"4158bb19-2a5e-4ace-8f80-ae7740871014\",\"tenantId\":\"b3be5ba5-4938-487f-b793-6fb806b904c1\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"location\":\"edcpnmdyodnwzxl\",\"tags\":{\"avvwxqi\":\"vnhltiugcx\",\"unyowxwl\":\"y\",\"odacizs\":\"djrkvfgbvfvpd\"},\"id\":\"q\",\"name\":\"hkr\",\"type\":\"ibdeibq\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.devCenters().listByResourceGroup("swibyr", 403427600, Context.NONE);
-
- Assertions.assertEquals("edcpnmdyodnwzxl", response.iterator().next().location());
- Assertions.assertEquals("vnhltiugcx", response.iterator().next().tags().get("avvwxqi"));
- Assertions
- .assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersListMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersListMockTests.java
deleted file mode 100644
index fc29e5cbd4ae3..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/DevCentersListMockTests.java
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.DevCenter;
-import com.azure.resourcemanager.devcenter.models.ManagedServiceIdentityType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DevCentersListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleted\",\"devCenterUri\":\"itqscywuggwoluhc\"},\"identity\":{\"principalId\":\"dae60f8d-942d-4891-a014-8e17b8d0913f\",\"tenantId\":\"89e07989-e019-4e2b-be67-ed9dba459180\",\"type\":\"SystemAssigned,"
- + " UserAssigned\",\"userAssignedIdentities\":{}},\"location\":\"rsbrgzdwm\",\"tags\":{\"xqhuexm\":\"ypqwdxggiccc\",\"ncsdtclusiyp\":\"ttlstvlzywemhz\",\"ygqukyhejh\":\"sfgytguslfead\",\"lolp\":\"isxgfp\"},\"id\":\"vk\",\"name\":\"r\",\"type\":\"qvujzraehtwdwrf\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.devCenters().list(1791253895, Context.NONE);
-
- Assertions.assertEquals("rsbrgzdwm", response.iterator().next().location());
- Assertions.assertEquals("ypqwdxggiccc", response.iterator().next().tags().get("xqhuexm"));
- Assertions
- .assertEquals(
- ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.iterator().next().identity().type());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentRoleTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentRoleTests.java
deleted file mode 100644
index af104b03168fd..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentRoleTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.EnvironmentRole;
-import org.junit.jupiter.api.Test;
-
-public final class EnvironmentRoleTests {
- @Test
- public void testDeserialize() {
- EnvironmentRole model =
- BinaryData
- .fromString("{\"roleName\":\"vwfudwpzntxhd\",\"description\":\"lrqjbhckfr\"}")
- .toObject(EnvironmentRole.class);
- }
-
- @Test
- public void testSerialize() {
- EnvironmentRole model = new EnvironmentRole();
- model = BinaryData.fromObject(model).toObject(EnvironmentRole.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypeInnerTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypeInnerTests.java
deleted file mode 100644
index 3cd2a2cd630f3..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypeInnerTests.java
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.EnvironmentTypeInner;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class EnvironmentTypeInnerTests {
- @Test
- public void testDeserialize() {
- EnvironmentTypeInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"provisioningState\":\"NotSpecified\"},\"tags\":{\"grxwbu\":\"xmzsbbzogg\",\"dptkoenkouk\":\"vjxxjnsp\",\"pocipazyxoegu\":\"vudwtiukbldng\",\"npiucgygevqznty\":\"g\"},\"id\":\"rbpizc\",\"name\":\"r\",\"type\":\"j\"}")
- .toObject(EnvironmentTypeInner.class);
- Assertions.assertEquals("xmzsbbzogg", model.tags().get("grxwbu"));
- }
-
- @Test
- public void testSerialize() {
- EnvironmentTypeInner model =
- new EnvironmentTypeInner()
- .withTags(
- mapOf(
- "grxwbu",
- "xmzsbbzogg",
- "dptkoenkouk",
- "vjxxjnsp",
- "pocipazyxoegu",
- "vudwtiukbldng",
- "npiucgygevqznty",
- "g"));
- model = BinaryData.fromObject(model).toObject(EnvironmentTypeInner.class);
- Assertions.assertEquals("xmzsbbzogg", model.tags().get("grxwbu"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypeListResultTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypeListResultTests.java
deleted file mode 100644
index cb7d9bc7d535b..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypeListResultTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.EnvironmentTypeListResult;
-import org.junit.jupiter.api.Test;
-
-public final class EnvironmentTypeListResultTests {
- @Test
- public void testDeserialize() {
- EnvironmentTypeListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"RolloutInProgress\"},\"tags\":{\"onpc\":\"xc\"},\"id\":\"ocohslkevleg\",\"name\":\"zfbuhf\",\"type\":\"vfaxkffeiith\"}],\"nextLink\":\"m\"}")
- .toObject(EnvironmentTypeListResult.class);
- }
-
- @Test
- public void testSerialize() {
- EnvironmentTypeListResult model = new EnvironmentTypeListResult();
- model = BinaryData.fromObject(model).toObject(EnvironmentTypeListResult.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypePropertiesTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypePropertiesTests.java
deleted file mode 100644
index b5d21fab196b0..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypePropertiesTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.fluent.models.EnvironmentTypeProperties;
-import org.junit.jupiter.api.Test;
-
-public final class EnvironmentTypePropertiesTests {
- @Test
- public void testDeserialize() {
- EnvironmentTypeProperties model =
- BinaryData.fromString("{\"provisioningState\":\"Running\"}").toObject(EnvironmentTypeProperties.class);
- }
-
- @Test
- public void testSerialize() {
- EnvironmentTypeProperties model = new EnvironmentTypeProperties();
- model = BinaryData.fromObject(model).toObject(EnvironmentTypeProperties.class);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypeUpdateTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypeUpdateTests.java
deleted file mode 100644
index 91321de5c4721..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypeUpdateTests.java
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.devcenter.models.EnvironmentTypeUpdate;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class EnvironmentTypeUpdateTests {
- @Test
- public void testDeserialize() {
- EnvironmentTypeUpdate model =
- BinaryData
- .fromString(
- "{\"tags\":{\"eoejzic\":\"nfyhx\",\"hajdeyeamdpha\":\"ifsjttgzfbishcb\",\"wkgshwa\":\"alpbuxwgipwhon\",\"bin\":\"kix\"}}")
- .toObject(EnvironmentTypeUpdate.class);
- Assertions.assertEquals("nfyhx", model.tags().get("eoejzic"));
- }
-
- @Test
- public void testSerialize() {
- EnvironmentTypeUpdate model =
- new EnvironmentTypeUpdate()
- .withTags(
- mapOf(
- "eoejzic",
- "nfyhx",
- "hajdeyeamdpha",
- "ifsjttgzfbishcb",
- "wkgshwa",
- "alpbuxwgipwhon",
- "bin",
- "kix"));
- model = BinaryData.fromObject(model).toObject(EnvironmentTypeUpdate.class);
- Assertions.assertEquals("nfyhx", model.tags().get("eoejzic"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesCreateOrUpdateWithResponseMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index ee4f4308d1796..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,85 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.EnvironmentType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class EnvironmentTypesCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Updating\"},\"tags\":{\"atnwxyiopi\":\"azivjlfrqttbajl\",\"vscx\":\"kqqfk\",\"mloazuru\":\"dmligovibrxk\"},\"id\":\"bgo\",\"name\":\"rb\",\"type\":\"eoybfhjxakvvjgs\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- EnvironmentType response =
- manager
- .environmentTypes()
- .define("cgxxlxs")
- .withExistingDevcenter("msksbp", "mlqoljx")
- .withTags(mapOf("vwlyoup", "zqzdw", "kfm", "gfbkjubdyh", "ktlahbqa", "nsgowzfttst", "gzukxitmm", "tx"))
- .create();
-
- Assertions.assertEquals("azivjlfrqttbajl", response.tags().get("atnwxyiopi"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesDeleteWithResponseMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesDeleteWithResponseMockTests.java
deleted file mode 100644
index 74e7e622a2459..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class EnvironmentTypesDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.environmentTypes().deleteWithResponse("ytibyow", "blgyavutpthj", "xoi", Context.NONE);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesGetWithResponseMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesGetWithResponseMockTests.java
deleted file mode 100644
index b178c3084044d..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.EnvironmentType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class EnvironmentTypesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Created\"},\"tags\":{\"nizshqvcim\":\"cje\",\"gmblrri\":\"ev\"},\"id\":\"ywdxsmic\",\"name\":\"wrwfscjfnyns\",\"type\":\"qujizdvo\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- EnvironmentType response =
- manager
- .environmentTypes()
- .getWithResponse("ufiqndieuzaof", "chvcyyysfgdo", "cubiipuipw", Context.NONE)
- .getValue();
-
- Assertions.assertEquals("cje", response.tags().get("nizshqvcim"));
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesListByDevCenterMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesListByDevCenterMockTests.java
deleted file mode 100644
index 1b20fccf546bd..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/EnvironmentTypesListByDevCenterMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.EnvironmentType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class EnvironmentTypesListByDevCenterMockTests {
- @Test
- public void testListByDevCenter() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"provisioningState\":\"NotSpecified\"},\"tags\":{\"nnrwrbiork\":\"wzsoldweyuqdunv\"},\"id\":\"lywjhh\",\"name\":\"dnhxmsi\",\"type\":\"fomiloxgg\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.environmentTypes().listByDevCenter("daxconfozauorsuk", "kwbqplhlvnuu", 1643083529, Context.NONE);
-
- Assertions.assertEquals("wzsoldweyuqdunv", response.iterator().next().tags().get("nnrwrbiork"));
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/GalleriesDeleteMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/GalleriesDeleteMockTests.java
deleted file mode 100644
index 0dcf4103f4898..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/GalleriesDeleteMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GalleriesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.galleries().delete("x", "lucvpam", "sreuzvxurisjnh", Context.NONE);
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/GalleriesGetWithResponseMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/GalleriesGetWithResponseMockTests.java
deleted file mode 100644
index 1766f7ef0f49c..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/GalleriesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.Gallery;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GalleriesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Running\",\"galleryResourceId\":\"mrfhirctymox\"},\"id\":\"tpipiwyczuhx\",\"name\":\"cpqjlihhyu\",\"type\":\"pskasdvlmfwdg\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- DevCenterManager manager =
- DevCenterManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Gallery response = manager.galleries().getWithResponse("n", "bgye", "rymsgaojfmw", Context.NONE).getValue();
-
- Assertions.assertEquals("mrfhirctymox", response.galleryResourceId());
- }
-}
diff --git a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/GalleriesListByDevCenterMockTests.java b/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/GalleriesListByDevCenterMockTests.java
deleted file mode 100644
index 04ed237564287..0000000000000
--- a/sdk/devcenter/azure-resourcemanager-devcenter/src/test/java/com/azure/resourcemanager/devcenter/generated/GalleriesListByDevCenterMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.devcenter.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.devcenter.DevCenterManager;
-import com.azure.resourcemanager.devcenter.models.Gallery;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GalleriesListByDevCenterMockTests {
- @Test
- public void testListByDevCenter() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor