deleteAsync(String resourceGroupName, String builderName, Context context) {
+ return beginDeleteAsync(resourceGroupName, builderName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 delete(String resourceGroupName, String builderName) {
+ deleteAsync(resourceGroupName, builderName).block();
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 delete(String resourceGroupName, String builderName, Context context) {
+ deleteAsync(resourceGroupName, builderName, context).block();
+ }
+
+ /**
+ * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(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.listBySubscriptionNext(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 DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(
+ 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
+ .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ 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 DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(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.listByResourceGroupNext(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 DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(
+ 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
+ .listByResourceGroupNext(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/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildersImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildersImpl.java
new file mode 100644
index 000000000000..4d4d2f127670
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildersImpl.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.BuildersClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuilderResource;
+import com.azure.resourcemanager.appcontainers.models.Builders;
+
+public final class BuildersImpl implements Builders {
+ private static final ClientLogger LOGGER = new ClientLogger(BuildersImpl.class);
+
+ private final BuildersClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public BuildersImpl(
+ BuildersClient innerClient, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new BuilderResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return Utils.mapPage(inner, inner1 -> new BuilderResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return Utils.mapPage(inner, inner1 -> new BuilderResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByResourceGroup(resourceGroupName, context);
+ return Utils.mapPage(inner, inner1 -> new BuilderResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String builderName, Context context) {
+ Response inner =
+ this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, builderName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new BuilderResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public BuilderResource getByResourceGroup(String resourceGroupName, String builderName) {
+ BuilderResourceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, builderName);
+ if (inner != null) {
+ return new BuilderResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String builderName) {
+ this.serviceClient().delete(resourceGroupName, builderName);
+ }
+
+ public void delete(String resourceGroupName, String builderName, Context context) {
+ this.serviceClient().delete(resourceGroupName, builderName, context);
+ }
+
+ public BuilderResource getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, builderName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, builderName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ this.delete(resourceGroupName, builderName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ this.delete(resourceGroupName, builderName, context);
+ }
+
+ private BuildersClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ public BuilderResourceImpl define(String name) {
+ return new BuilderResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsClientImpl.java
new file mode 100644
index 000000000000..5eec8852b340
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsClientImpl.java
@@ -0,0 +1,1110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+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.Put;
+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.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.BuildsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuildCollection;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in BuildsClient. */
+public final class BuildsClientImpl implements BuildsClient {
+ /** The proxy service used to perform REST calls. */
+ private final BuildsService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of BuildsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ BuildsClientImpl(ContainerAppsApiClientImpl client) {
+ this.service = RestProxy.create(BuildsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientBuilds to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface BuildsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByBuilderResource(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @PathParam("buildName") String buildName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @PathParam("buildName") String buildName,
+ @BodyParam("application/json") BuildResourceInner buildEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @PathParam("buildName") String buildName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByBuilderResourceNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByBuilderResourceSinglePageAsync(
+ String resourceGroupName, String builderName) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByBuilderResource(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ 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()));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByBuilderResourceSinglePageAsync(
+ String resourceGroupName, String builderName, 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByBuilderResource(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByBuilderResourceAsync(String resourceGroupName, String builderName) {
+ return new PagedFlux<>(
+ () -> listByBuilderResourceSinglePageAsync(resourceGroupName, builderName),
+ nextLink -> listByBuilderResourceNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByBuilderResourceAsync(
+ String resourceGroupName, String builderName, Context context) {
+ return new PagedFlux<>(
+ () -> listByBuilderResourceSinglePageAsync(resourceGroupName, builderName, context),
+ nextLink -> listByBuilderResourceNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByBuilderResource(String resourceGroupName, String builderName) {
+ return new PagedIterable<>(listByBuilderResourceAsync(resourceGroupName, builderName));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByBuilderResource(
+ String resourceGroupName, String builderName, Context context) {
+ return new PagedIterable<>(listByBuilderResourceAsync(resourceGroupName, builderName, context));
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuildResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String builderName, String buildName) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuildResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String builderName, String buildName, 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuildResource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String builderName, String buildName) {
+ return getWithResponseAsync(resourceGroupName, builderName, buildName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuildResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ return getWithResponseAsync(resourceGroupName, builderName, buildName, context).block();
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuildResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuildResourceInner get(String resourceGroupName, String builderName, String buildName) {
+ return getWithResponse(resourceGroupName, builderName, buildName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ if (buildEnvelope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildEnvelope is required and cannot be null."));
+ } else {
+ buildEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ buildEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ if (buildEnvelope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildEnvelope is required and cannot be null."));
+ } else {
+ buildEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ buildEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BuildResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, builderName, buildName, buildEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ BuildResourceInner.class,
+ BuildResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BuildResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, builderName, buildName, buildEnvelope, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), BuildResourceInner.class, BuildResourceInner.class, context);
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BuildResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope).getSyncPoller();
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BuildResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ Context context) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuildResourceInner createOrUpdate(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ return createOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope).block();
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuildResourceInner createOrUpdate(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope, context).block();
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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>> deleteWithResponseAsync(
+ String resourceGroupName, String builderName, String buildName) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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>> deleteWithResponseAsync(
+ String resourceGroupName, String builderName, String buildName, 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context);
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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> beginDeleteAsync(
+ String resourceGroupName, String builderName, String buildName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, builderName, buildName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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> beginDeleteAsync(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, builderName, buildName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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> beginDelete(
+ String resourceGroupName, String builderName, String buildName) {
+ return this.beginDeleteAsync(resourceGroupName, builderName, buildName).getSyncPoller();
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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> beginDelete(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, builderName, buildName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 deleteAsync(String resourceGroupName, String builderName, String buildName) {
+ return beginDeleteAsync(resourceGroupName, builderName, buildName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 deleteAsync(String resourceGroupName, String builderName, String buildName, Context context) {
+ return beginDeleteAsync(resourceGroupName, builderName, buildName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 delete(String resourceGroupName, String builderName, String buildName) {
+ deleteAsync(resourceGroupName, builderName, buildName).block();
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException 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 delete(String resourceGroupName, String builderName, String buildName, Context context) {
+ deleteAsync(resourceGroupName, builderName, buildName, context).block();
+ }
+
+ /**
+ * 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 DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByBuilderResourceNextSinglePageAsync(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.listByBuilderResourceNext(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 DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByBuilderResourceNextSinglePageAsync(
+ 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
+ .listByBuilderResourceNext(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/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsImpl.java
new file mode 100644
index 000000000000..bce4bf564a5c
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsImpl.java
@@ -0,0 +1,190 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.BuildsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuildResource;
+import com.azure.resourcemanager.appcontainers.models.Builds;
+
+public final class BuildsImpl implements Builds {
+ private static final ClientLogger LOGGER = new ClientLogger(BuildsImpl.class);
+
+ private final BuildsClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public BuildsImpl(
+ BuildsClient innerClient, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByBuilderResource(String resourceGroupName, String builderName) {
+ PagedIterable inner =
+ this.serviceClient().listByBuilderResource(resourceGroupName, builderName);
+ return Utils.mapPage(inner, inner1 -> new BuildResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByBuilderResource(
+ String resourceGroupName, String builderName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByBuilderResource(resourceGroupName, builderName, context);
+ return Utils.mapPage(inner, inner1 -> new BuildResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, builderName, buildName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new BuildResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public BuildResource get(String resourceGroupName, String builderName, String buildName) {
+ BuildResourceInner inner = this.serviceClient().get(resourceGroupName, builderName, buildName);
+ if (inner != null) {
+ return new BuildResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String builderName, String buildName) {
+ this.serviceClient().delete(resourceGroupName, builderName, buildName);
+ }
+
+ public void delete(String resourceGroupName, String builderName, String buildName, Context context) {
+ this.serviceClient().delete(resourceGroupName, builderName, buildName, context);
+ }
+
+ public BuildResource getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ String buildName = Utils.getValueFromIdByName(id, "builds");
+ if (buildName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builds'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, builderName, buildName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ String buildName = Utils.getValueFromIdByName(id, "builds");
+ if (buildName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builds'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, builderName, buildName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ String buildName = Utils.getValueFromIdByName(id, "builds");
+ if (buildName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builds'.", id)));
+ }
+ this.delete(resourceGroupName, builderName, buildName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ String buildName = Utils.getValueFromIdByName(id, "builds");
+ if (buildName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builds'.", id)));
+ }
+ this.delete(resourceGroupName, builderName, buildName, context);
+ }
+
+ private BuildsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ public BuildResourceImpl define(String name) {
+ return new BuildResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
index d0691b5bd6b9..1451deecea88 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
@@ -24,6 +24,8 @@
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.appcontainers.fluent.AvailableWorkloadProfilesClient;
import com.azure.resourcemanager.appcontainers.fluent.BillingMetersClient;
+import com.azure.resourcemanager.appcontainers.fluent.BuildersClient;
+import com.azure.resourcemanager.appcontainers.fluent.BuildsClient;
import com.azure.resourcemanager.appcontainers.fluent.CertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsCertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsClient;
@@ -166,6 +168,30 @@ public BillingMetersClient getBillingMeters() {
return this.billingMeters;
}
+ /** The BuildersClient object to access its operations. */
+ private final BuildersClient builders;
+
+ /**
+ * Gets the BuildersClient object to access its operations.
+ *
+ * @return the BuildersClient object.
+ */
+ public BuildersClient getBuilders() {
+ return this.builders;
+ }
+
+ /** The BuildsClient object to access its operations. */
+ private final BuildsClient builds;
+
+ /**
+ * Gets the BuildsClient object to access its operations.
+ *
+ * @return the BuildsClient object.
+ */
+ public BuildsClient getBuilds() {
+ return this.builds;
+ }
+
/** The ConnectedEnvironmentsClient object to access its operations. */
private final ConnectedEnvironmentsClient connectedEnvironments;
@@ -226,30 +252,6 @@ public ContainerAppsClient getContainerApps() {
return this.containerApps;
}
- /** The JobsClient object to access its operations. */
- private final JobsClient jobs;
-
- /**
- * Gets the JobsClient object to access its operations.
- *
- * @return the JobsClient object.
- */
- public JobsClient getJobs() {
- return this.jobs;
- }
-
- /** The JobsExecutionsClient object to access its operations. */
- private final JobsExecutionsClient jobsExecutions;
-
- /**
- * Gets the JobsExecutionsClient object to access its operations.
- *
- * @return the JobsExecutionsClient object.
- */
- public JobsExecutionsClient getJobsExecutions() {
- return this.jobsExecutions;
- }
-
/** The ContainerAppsRevisionsClient object to access its operations. */
private final ContainerAppsRevisionsClient containerAppsRevisions;
@@ -322,6 +324,30 @@ public OperationsClient getOperations() {
return this.operations;
}
+ /** The JobsClient object to access its operations. */
+ private final JobsClient jobs;
+
+ /**
+ * Gets the JobsClient object to access its operations.
+ *
+ * @return the JobsClient object.
+ */
+ public JobsClient getJobs() {
+ return this.jobs;
+ }
+
+ /** The JobsExecutionsClient object to access its operations. */
+ private final JobsExecutionsClient jobsExecutions;
+
+ /**
+ * Gets the JobsExecutionsClient object to access its operations.
+ *
+ * @return the JobsExecutionsClient object.
+ */
+ public JobsExecutionsClient getJobsExecutions() {
+ return this.jobsExecutions;
+ }
+
/** The ManagedEnvironmentsClient object to access its operations. */
private final ManagedEnvironmentsClient managedEnvironments;
@@ -428,23 +454,25 @@ public ContainerAppsSourceControlsClient getContainerAppsSourceControls() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-11-01-preview";
+ this.apiVersion = "2023-05-02-preview";
this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsClientImpl(this);
this.availableWorkloadProfiles = new AvailableWorkloadProfilesClientImpl(this);
this.billingMeters = new BillingMetersClientImpl(this);
+ this.builders = new BuildersClientImpl(this);
+ this.builds = new BuildsClientImpl(this);
this.connectedEnvironments = new ConnectedEnvironmentsClientImpl(this);
this.connectedEnvironmentsCertificates = new ConnectedEnvironmentsCertificatesClientImpl(this);
this.connectedEnvironmentsDaprComponents = new ConnectedEnvironmentsDaprComponentsClientImpl(this);
this.connectedEnvironmentsStorages = new ConnectedEnvironmentsStoragesClientImpl(this);
this.containerApps = new ContainerAppsClientImpl(this);
- this.jobs = new JobsClientImpl(this);
- this.jobsExecutions = new JobsExecutionsClientImpl(this);
this.containerAppsRevisions = new ContainerAppsRevisionsClientImpl(this);
this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasClientImpl(this);
this.containerAppsDiagnostics = new ContainerAppsDiagnosticsClientImpl(this);
this.managedEnvironmentDiagnostics = new ManagedEnvironmentDiagnosticsClientImpl(this);
this.managedEnvironmentsDiagnostics = new ManagedEnvironmentsDiagnosticsClientImpl(this);
this.operations = new OperationsClientImpl(this);
+ this.jobs = new JobsClientImpl(this);
+ this.jobsExecutions = new JobsExecutionsClientImpl(this);
this.managedEnvironments = new ManagedEnvironmentsClientImpl(this);
this.certificates = new CertificatesClientImpl(this);
this.managedCertificates = new ManagedCertificatesClientImpl(this);
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ReplicaImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ReplicaImpl.java
index cf34ac0584a5..a9bb94043770 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ReplicaImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ReplicaImpl.java
@@ -6,6 +6,7 @@
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.fluent.models.ReplicaInner;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppReplicaRunningState;
import com.azure.resourcemanager.appcontainers.models.Replica;
import com.azure.resourcemanager.appcontainers.models.ReplicaContainer;
import java.time.OffsetDateTime;
@@ -43,6 +44,14 @@ public OffsetDateTime createdTime() {
return this.innerModel().createdTime();
}
+ public ContainerAppReplicaRunningState runningState() {
+ return this.innerModel().runningState();
+ }
+
+ public String runningStateDetails() {
+ return this.innerModel().runningStateDetails();
+ }
+
public List containers() {
List inner = this.innerModel().containers();
if (inner != null) {
@@ -52,6 +61,15 @@ public List containers() {
}
}
+ public List initContainers() {
+ List inner = this.innerModel().initContainers();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
public ReplicaInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildCollection.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildCollection.java
new file mode 100644
index 000000000000..37fa974c7374
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildCollection.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The response of a BuildResource list operation. */
+@Fluent
+public final class BuildCollection {
+ /*
+ * The BuildResource items on this page
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /*
+ * The link to the next page of items
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /** Creates an instance of BuildCollection class. */
+ public BuildCollection() {
+ }
+
+ /**
+ * Get the value property: The BuildResource items on this page.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The BuildResource items on this page.
+ *
+ * @param value the value value to set.
+ * @return the BuildCollection object itself.
+ */
+ public BuildCollection withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: The link to the next page of items.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: The link to the next page of items.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the BuildCollection object itself.
+ */
+ public BuildCollection 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) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property value in model BuildCollection"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(BuildCollection.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildConfiguration.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildConfiguration.java
new file mode 100644
index 000000000000..c624e165a356
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildConfiguration.java
@@ -0,0 +1,163 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Configuration of the build. */
+@Fluent
+public final class BuildConfiguration {
+ /*
+ * Base OS used to build and run the app.
+ */
+ @JsonProperty(value = "baseOs")
+ private String baseOs;
+
+ /*
+ * Platform to be used to build and run the app.
+ */
+ @JsonProperty(value = "platform")
+ private String platform;
+
+ /*
+ * Platform version to be used to build and run the app.
+ */
+ @JsonProperty(value = "platformVersion")
+ private String platformVersion;
+
+ /*
+ * List of environment variables to be passed to the build and application runtime.
+ */
+ @JsonProperty(value = "environmentVariables")
+ private List environmentVariables;
+
+ /*
+ * List of steps to perform before the build.
+ */
+ @JsonProperty(value = "preBuildSteps")
+ private List preBuildSteps;
+
+ /** Creates an instance of BuildConfiguration class. */
+ public BuildConfiguration() {
+ }
+
+ /**
+ * Get the baseOs property: Base OS used to build and run the app.
+ *
+ * @return the baseOs value.
+ */
+ public String baseOs() {
+ return this.baseOs;
+ }
+
+ /**
+ * Set the baseOs property: Base OS used to build and run the app.
+ *
+ * @param baseOs the baseOs value to set.
+ * @return the BuildConfiguration object itself.
+ */
+ public BuildConfiguration withBaseOs(String baseOs) {
+ this.baseOs = baseOs;
+ return this;
+ }
+
+ /**
+ * Get the platform property: Platform to be used to build and run the app.
+ *
+ * @return the platform value.
+ */
+ public String platform() {
+ return this.platform;
+ }
+
+ /**
+ * Set the platform property: Platform to be used to build and run the app.
+ *
+ * @param platform the platform value to set.
+ * @return the BuildConfiguration object itself.
+ */
+ public BuildConfiguration withPlatform(String platform) {
+ this.platform = platform;
+ return this;
+ }
+
+ /**
+ * Get the platformVersion property: Platform version to be used to build and run the app.
+ *
+ * @return the platformVersion value.
+ */
+ public String platformVersion() {
+ return this.platformVersion;
+ }
+
+ /**
+ * Set the platformVersion property: Platform version to be used to build and run the app.
+ *
+ * @param platformVersion the platformVersion value to set.
+ * @return the BuildConfiguration object itself.
+ */
+ public BuildConfiguration withPlatformVersion(String platformVersion) {
+ this.platformVersion = platformVersion;
+ return this;
+ }
+
+ /**
+ * Get the environmentVariables property: List of environment variables to be passed to the build and application
+ * runtime.
+ *
+ * @return the environmentVariables value.
+ */
+ public List environmentVariables() {
+ return this.environmentVariables;
+ }
+
+ /**
+ * Set the environmentVariables property: List of environment variables to be passed to the build and application
+ * runtime.
+ *
+ * @param environmentVariables the environmentVariables value to set.
+ * @return the BuildConfiguration object itself.
+ */
+ public BuildConfiguration withEnvironmentVariables(List environmentVariables) {
+ this.environmentVariables = environmentVariables;
+ return this;
+ }
+
+ /**
+ * Get the preBuildSteps property: List of steps to perform before the build.
+ *
+ * @return the preBuildSteps value.
+ */
+ public List preBuildSteps() {
+ return this.preBuildSteps;
+ }
+
+ /**
+ * Set the preBuildSteps property: List of steps to perform before the build.
+ *
+ * @param preBuildSteps the preBuildSteps value to set.
+ * @return the BuildConfiguration object itself.
+ */
+ public BuildConfiguration withPreBuildSteps(List preBuildSteps) {
+ this.preBuildSteps = preBuildSteps;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (environmentVariables() != null) {
+ environmentVariables().forEach(e -> e.validate());
+ }
+ if (preBuildSteps() != null) {
+ preBuildSteps().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildResource.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildResource.java
new file mode 100644
index 000000000000..a0d6fb23d991
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildResource.java
@@ -0,0 +1,215 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
+
+/** An immutable client-side representation of BuildResource. */
+public interface BuildResource {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the provisioningState property: Build provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ ProvisioningState provisioningState();
+
+ /**
+ * Gets the buildStatus property: Status of the build once it has been provisioned.
+ *
+ * @return the buildStatus value.
+ */
+ BuildStatus buildStatus();
+
+ /**
+ * Gets the destinationContainerRegistry property: Container registry that the final image will be uploaded to.
+ *
+ * @return the destinationContainerRegistry value.
+ */
+ ContainerRegistryWithCustomImage destinationContainerRegistry();
+
+ /**
+ * Gets the configuration property: Configuration of the build.
+ *
+ * @return the configuration value.
+ */
+ BuildConfiguration configuration();
+
+ /**
+ * Gets the uploadEndpoint property: Endpoint to which the source code should be uploaded.
+ *
+ * @return the uploadEndpoint value.
+ */
+ String uploadEndpoint();
+
+ /**
+ * Gets the name of the resource group.
+ *
+ * @return the name of the resource group.
+ */
+ String resourceGroupName();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner object.
+ *
+ * @return the inner object.
+ */
+ BuildResourceInner innerModel();
+
+ /** The entirety of the BuildResource definition. */
+ interface Definition
+ extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
+ }
+ /** The BuildResource definition stages. */
+ interface DefinitionStages {
+ /** The first stage of the BuildResource definition. */
+ interface Blank extends WithParentResource {
+ }
+ /** The stage of the BuildResource definition allowing to specify parent resource. */
+ interface WithParentResource {
+ /**
+ * Specifies resourceGroupName, builderName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @return the next definition stage.
+ */
+ WithCreate withExistingBuilder(String resourceGroupName, String builderName);
+ }
+ /**
+ * The stage of the BuildResource definition which contains all the minimum required properties for the resource
+ * to be created, but also allows for any other optional properties to be specified.
+ */
+ interface WithCreate
+ extends DefinitionStages.WithDestinationContainerRegistry, DefinitionStages.WithConfiguration {
+ /**
+ * Executes the create request.
+ *
+ * @return the created resource.
+ */
+ BuildResource create();
+
+ /**
+ * Executes the create request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the created resource.
+ */
+ BuildResource create(Context context);
+ }
+ /** The stage of the BuildResource definition allowing to specify destinationContainerRegistry. */
+ interface WithDestinationContainerRegistry {
+ /**
+ * Specifies the destinationContainerRegistry property: Container registry that the final image will be
+ * uploaded to..
+ *
+ * @param destinationContainerRegistry Container registry that the final image will be uploaded to.
+ * @return the next definition stage.
+ */
+ WithCreate withDestinationContainerRegistry(ContainerRegistryWithCustomImage destinationContainerRegistry);
+ }
+ /** The stage of the BuildResource definition allowing to specify configuration. */
+ interface WithConfiguration {
+ /**
+ * Specifies the configuration property: Configuration of the build..
+ *
+ * @param configuration Configuration of the build.
+ * @return the next definition stage.
+ */
+ WithCreate withConfiguration(BuildConfiguration configuration);
+ }
+ }
+ /**
+ * Begins update for the BuildResource resource.
+ *
+ * @return the stage of resource update.
+ */
+ BuildResource.Update update();
+
+ /** The template for BuildResource update. */
+ interface Update extends UpdateStages.WithDestinationContainerRegistry, UpdateStages.WithConfiguration {
+ /**
+ * Executes the update request.
+ *
+ * @return the updated resource.
+ */
+ BuildResource apply();
+
+ /**
+ * Executes the update request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the updated resource.
+ */
+ BuildResource apply(Context context);
+ }
+ /** The BuildResource update stages. */
+ interface UpdateStages {
+ /** The stage of the BuildResource update allowing to specify destinationContainerRegistry. */
+ interface WithDestinationContainerRegistry {
+ /**
+ * Specifies the destinationContainerRegistry property: Container registry that the final image will be
+ * uploaded to..
+ *
+ * @param destinationContainerRegistry Container registry that the final image will be uploaded to.
+ * @return the next definition stage.
+ */
+ Update withDestinationContainerRegistry(ContainerRegistryWithCustomImage destinationContainerRegistry);
+ }
+ /** The stage of the BuildResource update allowing to specify configuration. */
+ interface WithConfiguration {
+ /**
+ * Specifies the configuration property: Configuration of the build..
+ *
+ * @param configuration Configuration of the build.
+ * @return the next definition stage.
+ */
+ Update withConfiguration(BuildConfiguration configuration);
+ }
+ }
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @return the refreshed resource.
+ */
+ BuildResource refresh();
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @param context The context to associate with this operation.
+ * @return the refreshed resource.
+ */
+ BuildResource refresh(Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildStatus.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildStatus.java
new file mode 100644
index 000000000000..63fd93811b54
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuildStatus.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Status of the build once it has been provisioned. */
+public final class BuildStatus extends ExpandableStringEnum {
+ /** Static value NotStarted for BuildStatus. */
+ public static final BuildStatus NOT_STARTED = fromString("NotStarted");
+
+ /** Static value InProgress for BuildStatus. */
+ public static final BuildStatus IN_PROGRESS = fromString("InProgress");
+
+ /** Static value Succeeded for BuildStatus. */
+ public static final BuildStatus SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Canceled for BuildStatus. */
+ public static final BuildStatus CANCELED = fromString("Canceled");
+
+ /** Static value Failed for BuildStatus. */
+ public static final BuildStatus FAILED = fromString("Failed");
+
+ /**
+ * Creates a new instance of BuildStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public BuildStatus() {
+ }
+
+ /**
+ * Creates or finds a BuildStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding BuildStatus.
+ */
+ @JsonCreator
+ public static BuildStatus fromString(String name) {
+ return fromString(name, BuildStatus.class);
+ }
+
+ /**
+ * Gets known BuildStatus values.
+ *
+ * @return known BuildStatus values.
+ */
+ public static Collection values() {
+ return values(BuildStatus.class);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuilderCollection.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuilderCollection.java
new file mode 100644
index 000000000000..269eeda0c18e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuilderCollection.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The response of a BuilderResource list operation. */
+@Fluent
+public final class BuilderCollection {
+ /*
+ * The BuilderResource items on this page
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /*
+ * The link to the next page of items
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /** Creates an instance of BuilderCollection class. */
+ public BuilderCollection() {
+ }
+
+ /**
+ * Get the value property: The BuilderResource items on this page.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The BuilderResource items on this page.
+ *
+ * @param value the value value to set.
+ * @return the BuilderCollection object itself.
+ */
+ public BuilderCollection withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: The link to the next page of items.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: The link to the next page of items.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the BuilderCollection object itself.
+ */
+ public BuilderCollection 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) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property value in model BuilderCollection"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(BuilderCollection.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuilderResource.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuilderResource.java
new file mode 100644
index 000000000000..5ab4af0c6638
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuilderResource.java
@@ -0,0 +1,286 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner;
+import java.util.Map;
+
+/** An immutable client-side representation of BuilderResource. */
+public interface BuilderResource {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * Gets the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * Gets the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ ManagedServiceIdentity identity();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the provisioningState property: Provisioning state of a builder resource.
+ *
+ * @return the provisioningState value.
+ */
+ ProvisioningState provisioningState();
+
+ /**
+ * Gets the environmentId property: Resource ID of the container apps environment that the builder is associated
+ * with.
+ *
+ * @return the environmentId value.
+ */
+ String environmentId();
+
+ /**
+ * Gets the buildComputeId property: Resource ID of the compute that the builds will be performed on.
+ *
+ * @return the buildComputeId value.
+ */
+ String buildComputeId();
+
+ /**
+ * Gets the patchComputeId property: Resource ID of the compute that the patching will be performed on.
+ *
+ * @return the patchComputeId value.
+ */
+ String patchComputeId();
+
+ /**
+ * Gets the region of the resource.
+ *
+ * @return the region of the resource.
+ */
+ Region region();
+
+ /**
+ * Gets the name of the resource region.
+ *
+ * @return the name of the resource region.
+ */
+ String regionName();
+
+ /**
+ * Gets the name of the resource group.
+ *
+ * @return the name of the resource group.
+ */
+ String resourceGroupName();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner object.
+ *
+ * @return the inner object.
+ */
+ BuilderResourceInner innerModel();
+
+ /** The entirety of the BuilderResource definition. */
+ interface Definition
+ extends DefinitionStages.Blank,
+ DefinitionStages.WithLocation,
+ DefinitionStages.WithResourceGroup,
+ DefinitionStages.WithCreate {
+ }
+ /** The BuilderResource definition stages. */
+ interface DefinitionStages {
+ /** The first stage of the BuilderResource definition. */
+ interface Blank extends WithLocation {
+ }
+ /** The stage of the BuilderResource definition allowing to specify location. */
+ interface WithLocation {
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithResourceGroup withRegion(Region location);
+
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithResourceGroup withRegion(String location);
+ }
+ /** The stage of the BuilderResource definition allowing to specify parent resource. */
+ interface WithResourceGroup {
+ /**
+ * Specifies resourceGroupName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @return the next definition stage.
+ */
+ WithCreate withExistingResourceGroup(String resourceGroupName);
+ }
+ /**
+ * The stage of the BuilderResource definition which contains all the minimum required properties for the
+ * resource to be created, but also allows for any other optional properties to be specified.
+ */
+ interface WithCreate
+ extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithEnvironmentId {
+ /**
+ * Executes the create request.
+ *
+ * @return the created resource.
+ */
+ BuilderResource create();
+
+ /**
+ * Executes the create request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the created resource.
+ */
+ BuilderResource create(Context context);
+ }
+ /** The stage of the BuilderResource definition allowing to specify tags. */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ WithCreate withTags(Map tags);
+ }
+ /** The stage of the BuilderResource definition allowing to specify identity. */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: The managed service identities assigned to this resource..
+ *
+ * @param identity The managed service identities assigned to this resource.
+ * @return the next definition stage.
+ */
+ WithCreate withIdentity(ManagedServiceIdentity identity);
+ }
+ /** The stage of the BuilderResource definition allowing to specify environmentId. */
+ interface WithEnvironmentId {
+ /**
+ * Specifies the environmentId property: Resource ID of the container apps environment that the builder is
+ * associated with..
+ *
+ * @param environmentId Resource ID of the container apps environment that the builder is associated with.
+ * @return the next definition stage.
+ */
+ WithCreate withEnvironmentId(String environmentId);
+ }
+ }
+ /**
+ * Begins update for the BuilderResource resource.
+ *
+ * @return the stage of resource update.
+ */
+ BuilderResource.Update update();
+
+ /** The template for BuilderResource update. */
+ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithEnvironmentId {
+ /**
+ * Executes the update request.
+ *
+ * @return the updated resource.
+ */
+ BuilderResource apply();
+
+ /**
+ * Executes the update request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the updated resource.
+ */
+ BuilderResource apply(Context context);
+ }
+ /** The BuilderResource update stages. */
+ interface UpdateStages {
+ /** The stage of the BuilderResource update allowing to specify tags. */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ Update withTags(Map tags);
+ }
+ /** The stage of the BuilderResource update allowing to specify identity. */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: The managed service identities assigned to this resource..
+ *
+ * @param identity The managed service identities assigned to this resource.
+ * @return the next definition stage.
+ */
+ Update withIdentity(ManagedServiceIdentity identity);
+ }
+ /** The stage of the BuilderResource update allowing to specify environmentId. */
+ interface WithEnvironmentId {
+ /**
+ * Specifies the environmentId property: Resource ID of the container apps environment that the builder is
+ * associated with..
+ *
+ * @param environmentId Resource ID of the container apps environment that the builder is associated with.
+ * @return the next definition stage.
+ */
+ Update withEnvironmentId(String environmentId);
+ }
+ }
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @return the refreshed resource.
+ */
+ BuilderResource refresh();
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @param context The context to associate with this operation.
+ * @return the refreshed resource.
+ */
+ BuilderResource refresh(Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuilderResourceUpdate.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuilderResourceUpdate.java
new file mode 100644
index 000000000000..82b6e9cbb23d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BuilderResourceUpdate.java
@@ -0,0 +1,126 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceUpdateProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The type used for update operations of the BuilderResource. */
+@Fluent
+public final class BuilderResourceUpdate {
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ @JsonProperty(value = "identity")
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Resource tags.
+ */
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
+
+ /*
+ * The updatable properties of the BuilderResource.
+ */
+ @JsonProperty(value = "properties")
+ private BuilderResourceUpdateProperties innerProperties;
+
+ /** Creates an instance of BuilderResourceUpdate class. */
+ public BuilderResourceUpdate() {
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the BuilderResourceUpdate object itself.
+ */
+ public BuilderResourceUpdate withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Resource tags.
+ *
+ * @param tags the tags value to set.
+ * @return the BuilderResourceUpdate object itself.
+ */
+ public BuilderResourceUpdate withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: The updatable properties of the BuilderResource.
+ *
+ * @return the innerProperties value.
+ */
+ private BuilderResourceUpdateProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the environmentId property: Resource ID of the container apps environment that the builder is associated
+ * with.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.innerProperties() == null ? null : this.innerProperties().environmentId();
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of the container apps environment that the builder is associated
+ * with.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the BuilderResourceUpdate object itself.
+ */
+ public BuilderResourceUpdate withEnvironmentId(String environmentId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BuilderResourceUpdateProperties();
+ }
+ this.innerProperties().withEnvironmentId(environmentId);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Builders.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Builders.java
new file mode 100644
index 000000000000..ca7fe0f0e3a7
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Builders.java
@@ -0,0 +1,168 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of Builders. */
+public interface Builders {
+ /**
+ * List BuilderResource resources by subscription ID.
+ *
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable list();
+
+ /**
+ * List BuilderResource resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable list(Context context);
+
+ /**
+ * List BuilderResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List BuilderResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuilderResource along with {@link Response}.
+ */
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String builderName, Context context);
+
+ /**
+ * Get a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuilderResource.
+ */
+ BuilderResource getByResourceGroup(String resourceGroupName, String builderName);
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteByResourceGroup(String resourceGroupName, String builderName);
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void delete(String resourceGroupName, String builderName, Context context);
+
+ /**
+ * Get a BuilderResource.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuilderResource along with {@link Response}.
+ */
+ BuilderResource getById(String id);
+
+ /**
+ * Get a BuilderResource.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuilderResource along with {@link Response}.
+ */
+ Response getByIdWithResponse(String id, Context context);
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteById(String id);
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new BuilderResource resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new BuilderResource definition.
+ */
+ BuilderResource.DefinitionStages.Blank define(String name);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Builds.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Builds.java
new file mode 100644
index 000000000000..11654dbc2752
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Builds.java
@@ -0,0 +1,152 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of Builds. */
+public interface Builds {
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByBuilderResource(String resourceGroupName, String builderName);
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByBuilderResource(String resourceGroupName, String builderName, Context context);
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuildResource along with {@link Response}.
+ */
+ Response getWithResponse(
+ String resourceGroupName, String builderName, String buildName, Context context);
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuildResource.
+ */
+ BuildResource get(String resourceGroupName, String builderName, String buildName);
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void delete(String resourceGroupName, String builderName, String buildName);
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void delete(String resourceGroupName, String builderName, String buildName, Context context);
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuildResource along with {@link Response}.
+ */
+ BuildResource getById(String id);
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a BuildResource along with {@link Response}.
+ */
+ Response getByIdWithResponse(String id, Context context);
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteById(String id);
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new BuildResource resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new BuildResource definition.
+ */
+ BuildResource.DefinitionStages.Blank define(String name);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppContainerRunningState.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppContainerRunningState.java
new file mode 100644
index 000000000000..e70047c56873
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppContainerRunningState.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Current running state of the container. */
+public final class ContainerAppContainerRunningState extends ExpandableStringEnum {
+ /** Static value Running for ContainerAppContainerRunningState. */
+ public static final ContainerAppContainerRunningState RUNNING = fromString("Running");
+
+ /** Static value Terminated for ContainerAppContainerRunningState. */
+ public static final ContainerAppContainerRunningState TERMINATED = fromString("Terminated");
+
+ /** Static value Waiting for ContainerAppContainerRunningState. */
+ public static final ContainerAppContainerRunningState WAITING = fromString("Waiting");
+
+ /**
+ * Creates a new instance of ContainerAppContainerRunningState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ContainerAppContainerRunningState() {
+ }
+
+ /**
+ * Creates or finds a ContainerAppContainerRunningState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ContainerAppContainerRunningState.
+ */
+ @JsonCreator
+ public static ContainerAppContainerRunningState fromString(String name) {
+ return fromString(name, ContainerAppContainerRunningState.class);
+ }
+
+ /**
+ * Gets known ContainerAppContainerRunningState values.
+ *
+ * @return known ContainerAppContainerRunningState values.
+ */
+ public static Collection values() {
+ return values(ContainerAppContainerRunningState.class);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppReplicaRunningState.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppReplicaRunningState.java
new file mode 100644
index 000000000000..a480ec43349e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppReplicaRunningState.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Current running state of the replica. */
+public final class ContainerAppReplicaRunningState extends ExpandableStringEnum {
+ /** Static value Running for ContainerAppReplicaRunningState. */
+ public static final ContainerAppReplicaRunningState RUNNING = fromString("Running");
+
+ /** Static value NotRunning for ContainerAppReplicaRunningState. */
+ public static final ContainerAppReplicaRunningState NOT_RUNNING = fromString("NotRunning");
+
+ /** Static value Unknown for ContainerAppReplicaRunningState. */
+ public static final ContainerAppReplicaRunningState UNKNOWN = fromString("Unknown");
+
+ /**
+ * Creates a new instance of ContainerAppReplicaRunningState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ContainerAppReplicaRunningState() {
+ }
+
+ /**
+ * Creates or finds a ContainerAppReplicaRunningState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ContainerAppReplicaRunningState.
+ */
+ @JsonCreator
+ public static ContainerAppReplicaRunningState fromString(String name) {
+ return fromString(name, ContainerAppReplicaRunningState.class);
+ }
+
+ /**
+ * Gets known ContainerAppReplicaRunningState values.
+ *
+ * @return known ContainerAppReplicaRunningState values.
+ */
+ public static Collection values() {
+ return values(ContainerAppReplicaRunningState.class);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerRegistryWithCustomImage.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerRegistryWithCustomImage.java
new file mode 100644
index 000000000000..9fdaba6789c9
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerRegistryWithCustomImage.java
@@ -0,0 +1,120 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Container registry that the final image will be uploaded to. */
+@Fluent
+public final class ContainerRegistryWithCustomImage {
+ /*
+ * Login server of the container registry that the final image should be uploaded to.
+ */
+ @JsonProperty(value = "server", required = true)
+ private String server;
+
+ /*
+ * Full user-assigned identity Resource ID for the managed identity that should be used to connect to the container
+ * registry.
+ */
+ @JsonProperty(value = "identity", required = true)
+ private String identity;
+
+ /*
+ * Full name that the final image should be uploaded as, including both image name and tag.
+ */
+ @JsonProperty(value = "image")
+ private String image;
+
+ /** Creates an instance of ContainerRegistryWithCustomImage class. */
+ public ContainerRegistryWithCustomImage() {
+ }
+
+ /**
+ * Get the server property: Login server of the container registry that the final image should be uploaded to.
+ *
+ * @return the server value.
+ */
+ public String server() {
+ return this.server;
+ }
+
+ /**
+ * Set the server property: Login server of the container registry that the final image should be uploaded to.
+ *
+ * @param server the server value to set.
+ * @return the ContainerRegistryWithCustomImage object itself.
+ */
+ public ContainerRegistryWithCustomImage withServer(String server) {
+ this.server = server;
+ return this;
+ }
+
+ /**
+ * Get the identity property: Full user-assigned identity Resource ID for the managed identity that should be used
+ * to connect to the container registry.
+ *
+ * @return the identity value.
+ */
+ public String identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Full user-assigned identity Resource ID for the managed identity that should be used
+ * to connect to the container registry.
+ *
+ * @param identity the identity value to set.
+ * @return the ContainerRegistryWithCustomImage object itself.
+ */
+ public ContainerRegistryWithCustomImage withIdentity(String identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the image property: Full name that the final image should be uploaded as, including both image name and tag.
+ *
+ * @return the image value.
+ */
+ public String image() {
+ return this.image;
+ }
+
+ /**
+ * Set the image property: Full name that the final image should be uploaded as, including both image name and tag.
+ *
+ * @param image the image value to set.
+ * @return the ContainerRegistryWithCustomImage object itself.
+ */
+ public ContainerRegistryWithCustomImage withImage(String image) {
+ this.image = image;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (server() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property server in model ContainerRegistryWithCustomImage"));
+ }
+ if (identity() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property identity in model ContainerRegistryWithCustomImage"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerRegistryWithCustomImage.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/EnvironmentVariable.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/EnvironmentVariable.java
new file mode 100644
index 000000000000..98ab2e8cec30
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/EnvironmentVariable.java
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Model representing an environment variable. */
+@Fluent
+public final class EnvironmentVariable {
+ /*
+ * Environment variable name.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /*
+ * Environment variable value.
+ */
+ @JsonProperty(value = "value", required = true)
+ private String value;
+
+ /** Creates an instance of EnvironmentVariable class. */
+ public EnvironmentVariable() {
+ }
+
+ /**
+ * Get the name property: Environment variable name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Environment variable name.
+ *
+ * @param name the name value to set.
+ * @return the EnvironmentVariable object itself.
+ */
+ public EnvironmentVariable withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the value property: Environment variable value.
+ *
+ * @return the value value.
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Environment variable value.
+ *
+ * @param value the value value to set.
+ * @return the EnvironmentVariable object itself.
+ */
+ public EnvironmentVariable withValue(String value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property name in model EnvironmentVariable"));
+ }
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property value in model EnvironmentVariable"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(EnvironmentVariable.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/HttpGet.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/HttpGet.java
new file mode 100644
index 000000000000..16b62ea2c4c8
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/HttpGet.java
@@ -0,0 +1,110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Model representing a http get request. */
+@Fluent
+public final class HttpGet {
+ /*
+ * URL to make HTTP GET request against.
+ */
+ @JsonProperty(value = "url", required = true)
+ private String url;
+
+ /*
+ * Name of the file that the request should be saved to.
+ */
+ @JsonProperty(value = "fileName")
+ private String fileName;
+
+ /*
+ * List of headers to send with the request.
+ */
+ @JsonProperty(value = "headers")
+ private List headers;
+
+ /** Creates an instance of HttpGet class. */
+ public HttpGet() {
+ }
+
+ /**
+ * Get the url property: URL to make HTTP GET request against.
+ *
+ * @return the url value.
+ */
+ public String url() {
+ return this.url;
+ }
+
+ /**
+ * Set the url property: URL to make HTTP GET request against.
+ *
+ * @param url the url value to set.
+ * @return the HttpGet object itself.
+ */
+ public HttpGet withUrl(String url) {
+ this.url = url;
+ return this;
+ }
+
+ /**
+ * Get the fileName property: Name of the file that the request should be saved to.
+ *
+ * @return the fileName value.
+ */
+ public String fileName() {
+ return this.fileName;
+ }
+
+ /**
+ * Set the fileName property: Name of the file that the request should be saved to.
+ *
+ * @param fileName the fileName value to set.
+ * @return the HttpGet object itself.
+ */
+ public HttpGet withFileName(String fileName) {
+ this.fileName = fileName;
+ return this;
+ }
+
+ /**
+ * Get the headers property: List of headers to send with the request.
+ *
+ * @return the headers value.
+ */
+ public List headers() {
+ return this.headers;
+ }
+
+ /**
+ * Set the headers property: List of headers to send with the request.
+ *
+ * @param headers the headers value to set.
+ * @return the HttpGet object itself.
+ */
+ public HttpGet withHeaders(List headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (url() == null) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("Missing required property url in model HttpGet"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(HttpGet.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/PreBuildStep.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/PreBuildStep.java
new file mode 100644
index 000000000000..fa53f1ecadaa
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/PreBuildStep.java
@@ -0,0 +1,106 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Model representing a pre-build step. */
+@Fluent
+public final class PreBuildStep {
+ /*
+ * Description of the pre-build step.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * List of custom commands to run.
+ */
+ @JsonProperty(value = "scripts")
+ private List scripts;
+
+ /*
+ * Http get request to send before the build.
+ */
+ @JsonProperty(value = "httpGet")
+ private HttpGet httpGet;
+
+ /** Creates an instance of PreBuildStep class. */
+ public PreBuildStep() {
+ }
+
+ /**
+ * Get the description property: Description of the pre-build step.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of the pre-build step.
+ *
+ * @param description the description value to set.
+ * @return the PreBuildStep object itself.
+ */
+ public PreBuildStep withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the scripts property: List of custom commands to run.
+ *
+ * @return the scripts value.
+ */
+ public List scripts() {
+ return this.scripts;
+ }
+
+ /**
+ * Set the scripts property: List of custom commands to run.
+ *
+ * @param scripts the scripts value to set.
+ * @return the PreBuildStep object itself.
+ */
+ public PreBuildStep withScripts(List scripts) {
+ this.scripts = scripts;
+ return this;
+ }
+
+ /**
+ * Get the httpGet property: Http get request to send before the build.
+ *
+ * @return the httpGet value.
+ */
+ public HttpGet httpGet() {
+ return this.httpGet;
+ }
+
+ /**
+ * Set the httpGet property: Http get request to send before the build.
+ *
+ * @param httpGet the httpGet value to set.
+ * @return the PreBuildStep object itself.
+ */
+ public PreBuildStep withHttpGet(HttpGet httpGet) {
+ this.httpGet = httpGet;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (httpGet() != null) {
+ httpGet().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ProvisioningState.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ProvisioningState.java
new file mode 100644
index 000000000000..72b2a08e4e27
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ProvisioningState.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Resource instance provisioning state. */
+public final class ProvisioningState extends ExpandableStringEnum {
+ /** Static value Succeeded for ProvisioningState. */
+ public static final ProvisioningState SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Failed for ProvisioningState. */
+ public static final ProvisioningState FAILED = fromString("Failed");
+
+ /** Static value Canceled for ProvisioningState. */
+ public static final ProvisioningState CANCELED = fromString("Canceled");
+
+ /** Static value InProgress for ProvisioningState. */
+ public static final ProvisioningState IN_PROGRESS = fromString("InProgress");
+
+ /** Static value Deleting for ProvisioningState. */
+ public static final ProvisioningState DELETING = fromString("Deleting");
+
+ /**
+ * Creates a new instance of ProvisioningState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ProvisioningState() {
+ }
+
+ /**
+ * Creates or finds a ProvisioningState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ProvisioningState.
+ */
+ @JsonCreator
+ public static ProvisioningState fromString(String name) {
+ return fromString(name, ProvisioningState.class);
+ }
+
+ /**
+ * Gets known ProvisioningState values.
+ *
+ * @return known ProvisioningState values.
+ */
+ public static Collection values() {
+ return values(ProvisioningState.class);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Replica.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Replica.java
index 230bb1db0a43..6d183d512656 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Replica.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Replica.java
@@ -46,6 +46,20 @@ public interface Replica {
*/
OffsetDateTime createdTime();
+ /**
+ * Gets the runningState property: Current running state of the replica.
+ *
+ * @return the runningState value.
+ */
+ ContainerAppReplicaRunningState runningState();
+
+ /**
+ * Gets the runningStateDetails property: The details of replica current running state.
+ *
+ * @return the runningStateDetails value.
+ */
+ String runningStateDetails();
+
/**
* Gets the containers property: The containers collection under a replica.
*
@@ -53,6 +67,13 @@ public interface Replica {
*/
List containers();
+ /**
+ * Gets the initContainers property: The init containers collection under a replica.
+ *
+ * @return the initContainers value.
+ */
+ List initContainers();
+
/**
* Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.ReplicaInner object.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ReplicaContainer.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ReplicaContainer.java
index cc5137a779d8..129d1e0ff42b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ReplicaContainer.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ReplicaContainer.java
@@ -40,6 +40,18 @@ public final class ReplicaContainer {
@JsonProperty(value = "restartCount")
private Integer restartCount;
+ /*
+ * Current running state of the container
+ */
+ @JsonProperty(value = "runningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ContainerAppContainerRunningState runningState;
+
+ /*
+ * The details of container current running state
+ */
+ @JsonProperty(value = "runningStateDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private String runningStateDetails;
+
/*
* Log Stream endpoint
*/
@@ -156,6 +168,24 @@ public ReplicaContainer withRestartCount(Integer restartCount) {
return this;
}
+ /**
+ * Get the runningState property: Current running state of the container.
+ *
+ * @return the runningState value.
+ */
+ public ContainerAppContainerRunningState runningState() {
+ return this.runningState;
+ }
+
+ /**
+ * Get the runningStateDetails property: The details of container current running state.
+ *
+ * @return the runningStateDetails value.
+ */
+ public String runningStateDetails() {
+ return this.runningStateDetails;
+ }
+
/**
* Get the logStreamEndpoint property: Log Stream endpoint.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Template.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Template.java
index e4bc9d02cee2..6be98e5fb711 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Template.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Template.java
@@ -20,6 +20,15 @@ public final class Template {
@JsonProperty(value = "revisionSuffix")
private String revisionSuffix;
+ /*
+ * Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be
+ * non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut
+ * down). If this value is nil, the default grace period will be used instead. Set this value longer than the
+ * expected cleanup time for your process. Defaults to 30 seconds.
+ */
+ @JsonProperty(value = "terminationGracePeriodSeconds")
+ private Long terminationGracePeriodSeconds;
+
/*
* List of specialized containers that run before app containers.
*/
@@ -68,6 +77,32 @@ public Template withRevisionSuffix(String revisionSuffix) {
return this;
}
+ /**
+ * Get the terminationGracePeriodSeconds property: Optional duration in seconds the Container App Instance needs to
+ * terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill
+ * signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set
+ * this value longer than the expected cleanup time for your process. Defaults to 30 seconds.
+ *
+ * @return the terminationGracePeriodSeconds value.
+ */
+ public Long terminationGracePeriodSeconds() {
+ return this.terminationGracePeriodSeconds;
+ }
+
+ /**
+ * Set the terminationGracePeriodSeconds property: Optional duration in seconds the Container App Instance needs to
+ * terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill
+ * signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set
+ * this value longer than the expected cleanup time for your process. Defaults to 30 seconds.
+ *
+ * @param terminationGracePeriodSeconds the terminationGracePeriodSeconds value to set.
+ * @return the Template object itself.
+ */
+ public Template withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) {
+ this.terminationGracePeriodSeconds = terminationGracePeriodSeconds;
+ return this;
+ }
+
/**
* Get the initContainers property: List of specialized containers that run before app containers.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Volume.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Volume.java
index 6443c6864584..c14298b76ec7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Volume.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Volume.java
@@ -36,6 +36,12 @@ public final class Volume {
@JsonProperty(value = "secrets")
private List secrets;
+ /*
+ * Mount options used while mounting the AzureFile. Must be a comma-separated string.
+ */
+ @JsonProperty(value = "mountOptions")
+ private String mountOptions;
+
/** Creates an instance of Volume class. */
public Volume() {
}
@@ -122,6 +128,26 @@ public Volume withSecrets(List secrets) {
return this;
}
+ /**
+ * Get the mountOptions property: Mount options used while mounting the AzureFile. Must be a comma-separated string.
+ *
+ * @return the mountOptions value.
+ */
+ public String mountOptions() {
+ return this.mountOptions;
+ }
+
+ /**
+ * Set the mountOptions property: Mount options used while mounting the AzureFile. Must be a comma-separated string.
+ *
+ * @param mountOptions the mountOptions value to set.
+ * @return the Volume object itself.
+ */
+ public Volume withMountOptions(String mountOptions) {
+ this.mountOptions = mountOptions;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/VolumeMount.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/VolumeMount.java
index d0bcf4169241..ad15f4101e73 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/VolumeMount.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/VolumeMount.java
@@ -22,6 +22,12 @@ public final class VolumeMount {
@JsonProperty(value = "mountPath")
private String mountPath;
+ /*
+ * Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
+ */
+ @JsonProperty(value = "subPath")
+ private String subPath;
+
/** Creates an instance of VolumeMount class. */
public VolumeMount() {
}
@@ -66,6 +72,28 @@ public VolumeMount withMountPath(String mountPath) {
return this;
}
+ /**
+ * Get the subPath property: Path within the volume from which the container's volume should be mounted. Defaults to
+ * "" (volume's root).
+ *
+ * @return the subPath value.
+ */
+ public String subPath() {
+ return this.subPath;
+ }
+
+ /**
+ * Set the subPath property: Path within the volume from which the container's volume should be mounted. Defaults to
+ * "" (volume's root).
+ *
+ * @param subPath the subPath value to set.
+ * @return the VolumeMount object itself.
+ */
+ public VolumeMount withSubPath(String subPath) {
+ this.subPath = subPath;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetSamples.java
index 20243e5d948e..3b0ffebb9b9a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for AvailableWorkloadProfiles Get. */
public final class AvailableWorkloadProfilesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AvailableWorkloadProfiles_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AvailableWorkloadProfiles_Get.json
*/
/**
* Sample code: BillingMeters_Get.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetSamples.java
index fd7115d30c75..58c4b1780b9c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for BillingMeters Get. */
public final class BillingMetersGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/BillingMeters_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/BillingMeters_Get.json
*/
/**
* Sample code: BillingMeters_Get.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateSamples.java
new file mode 100644
index 000000000000..209efb6c60ba
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateSamples.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.generated;
+
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Builders CreateOrUpdate. */
+public final class BuildersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Builders_CreateOrUpdate_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildersCreateOrUpdate0(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .builders()
+ .define("testBuilder")
+ .withRegion("eastus")
+ .withExistingResourceGroup("rg")
+ .withTags(mapOf("company", "Microsoft"))
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1",
+ new UserAssignedIdentity())))
+ .withEnvironmentId(
+ "/subscriptions/subid/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv")
+ .create();
+ }
+
+ @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/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersDeleteSamples.java
new file mode 100644
index 000000000000..4fa9ba0bff59
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersDeleteSamples.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.appcontainers.generated;
+
+/** Samples for Builders Delete. */
+public final class BuildersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Delete.json
+ */
+ /**
+ * Sample code: Builders_Delete_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildersDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builders().delete("rg", "testBuilder", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupSamples.java
new file mode 100644
index 000000000000..96b724246106
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupSamples.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.appcontainers.generated;
+
+/** Samples for Builders GetByResourceGroup. */
+public final class BuildersGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Get.json
+ */
+ /**
+ * Sample code: Builders_Get_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildersGet0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builders().getByResourceGroupWithResponse("rg", "testBuilder", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupSamples.java
new file mode 100644
index 000000000000..be7c0b4d191f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupSamples.java
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.generated;
+
+/** Samples for Builders ListByResourceGroup. */
+public final class BuildersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Builders_ListByResourceGroup_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildersListByResourceGroup0(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builders().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListSamples.java
new file mode 100644
index 000000000000..dd17ab270f2e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListSamples.java
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.generated;
+
+/** Samples for Builders List. */
+public final class BuildersListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListBySubscription.json
+ */
+ /**
+ * Sample code: Builders_ListBySubscription_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildersListBySubscription0(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builders().list(com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersUpdateSamples.java
new file mode 100644
index 000000000000..0be3925ceff5
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersUpdateSamples.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.generated;
+
+import com.azure.resourcemanager.appcontainers.models.BuilderResource;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Builders Update. */
+public final class BuildersUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Update.json
+ */
+ /**
+ * Sample code: Builders_Update_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildersUpdate0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ BuilderResource resource =
+ manager
+ .builders()
+ .getByResourceGroupWithResponse("rg", "testBuilder", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("mytag1", "myvalue1")).apply();
+ }
+
+ @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/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsCreateOrUpdateSamples.java
new file mode 100644
index 000000000000..f3a61d3f464d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsCreateOrUpdateSamples.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.appcontainers.generated;
+
+import com.azure.resourcemanager.appcontainers.models.BuildConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+import com.azure.resourcemanager.appcontainers.models.EnvironmentVariable;
+import com.azure.resourcemanager.appcontainers.models.HttpGet;
+import com.azure.resourcemanager.appcontainers.models.PreBuildStep;
+import java.util.Arrays;
+
+/** Samples for Builds CreateOrUpdate. */
+public final class BuildsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Builds_CreateOrUpdate_WithConfig.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildsCreateOrUpdateWithConfig(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .builds()
+ .define("testBuild-123456789az")
+ .withExistingBuilder("rg", "testBuilder")
+ .withDestinationContainerRegistry(
+ new ContainerRegistryWithCustomImage()
+ .withServer("test.azurecr.io")
+ .withIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")
+ .withImage("test.azurecr.io/repo:tag"))
+ .withConfiguration(
+ new BuildConfiguration()
+ .withBaseOs("DebianBullseye")
+ .withPlatform("dotnetcore")
+ .withPlatformVersion("7.0")
+ .withEnvironmentVariables(
+ Arrays
+ .asList(
+ new EnvironmentVariable().withName("foo1").withValue("bar1"),
+ new EnvironmentVariable().withName("foo2").withValue("bar2")))
+ .withPreBuildSteps(
+ Arrays
+ .asList(
+ new PreBuildStep()
+ .withDescription("First pre build step.")
+ .withScripts(Arrays.asList("echo 'hello'", "echo 'world'"))
+ .withHttpGet(
+ new HttpGet()
+ .withUrl("https://microsoft.com")
+ .withFileName("output.txt")
+ .withHeaders(Arrays.asList("foo", "bar"))),
+ new PreBuildStep()
+ .withDescription("Second pre build step.")
+ .withScripts(Arrays.asList("echo 'hello'", "echo 'again'"))
+ .withHttpGet(
+ new HttpGet()
+ .withUrl("https://microsoft.com")
+ .withFileName("output.txt")
+ .withHeaders(Arrays.asList("foo"))))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json
+ */
+ /**
+ * Sample code: Builds_CreateOrUpdate_NoConfig.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildsCreateOrUpdateNoConfig(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builds().define("testBuild").withExistingBuilder("rg", "testBuilder").create();
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsDeleteSamples.java
new file mode 100644
index 000000000000..4dee7c661e2d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsDeleteSamples.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.appcontainers.generated;
+
+/** Samples for Builds Delete. */
+public final class BuildsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Delete.json
+ */
+ /**
+ * Sample code: Builds_Delete_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildsDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builds().delete("rg", "testBuilder", "testBuild", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsGetSamples.java
new file mode 100644
index 000000000000..70f1015d5c11
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsGetSamples.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.appcontainers.generated;
+
+/** Samples for Builds Get. */
+public final class BuildsGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Get.json
+ */
+ /**
+ * Sample code: Builds_Get_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildsGet0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builds().getWithResponse("rg", "testBuilder", "testBuild", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsListByBuilderResourceSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsListByBuilderResourceSamples.java
new file mode 100644
index 000000000000..6406456ba750
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsListByBuilderResourceSamples.java
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.generated;
+
+/** Samples for Builds ListByBuilderResource. */
+public final class BuildsListByBuilderResourceSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_ListByBuilderResource.json
+ */
+ /**
+ * Sample code: Builds_ListByBuilderResource_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void buildsListByBuilderResource0(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builds().listByBuilderResource("rg", "testBuilder", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java
index fda5e3bb4417..713e8bac93a6 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for Certificates CreateOrUpdate. */
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java
index a2d62e150471..a0bedad88431 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for Certificates Delete. */
public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java
index 7afdcc55c279..fabec518658f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for Certificates Get. */
public final class CertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Get.json
*/
/**
* Sample code: Get Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java
index 19e63d09b955..27bd2d15e45b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java
@@ -7,7 +7,7 @@
/** Samples for Certificates List. */
public final class CertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_ListByManagedEnvironment.json
*/
/**
* Sample code: List Certificates by Managed Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java
index 7feb0ec28c1c..01c16d6d0f88 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for Certificates Update. */
public final class CertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesCreateOrUpdateSamples.java
index 0e16b7396eb5..68ae08a3ee17 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesCreateOrUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsCertificates CreateOrUpdate. */
public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteSamples.java
index b7a5e9655834..4db2b74378ef 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsCertificates Delete. */
public final class ConnectedEnvironmentsCertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesGetSamples.java
index b381aaa20863..b439c9a505f1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsCertificates Get. */
public final class ConnectedEnvironmentsCertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json
*/
/**
* Sample code: Get Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesListSamples.java
index 3ec2daac8d1b..37c06a06e02e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsCertificates List. */
public final class ConnectedEnvironmentsCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
*/
/**
* Sample code: List Certificates by Connected Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesUpdateSamples.java
index b39299b1072d..f88fa44f67c7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ConnectedEnvironmentsCertificates Update. */
public final class ConnectedEnvironmentsCertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilitySamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilitySamples.java
index 17a6b371047a..3bd45f2703e4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilitySamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilitySamples.java
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironments CheckNameAvailability. */
public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
*/
/**
* Sample code: Certificates_CheckNameAvailability.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateSamples.java
index 03967b5e4065..3e92b0859777 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironments CreateOrUpdate. */
public final class ConnectedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create kube environments.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples.java
index b9a22cf21da2..d32048686230 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents CreateOrUpdate. */
public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
*/
/**
* Sample code: Create or update dapr component.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteSamples.java
index 0abe3cf6854f..59a94eb1c0c0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents Delete. */
public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsGetSamples.java
index 7ab1c4ef3be0..b4cf22ad1ec1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents Get. */
public final class ConnectedEnvironmentsDaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
*/
/**
* Sample code: Get Dapr Component.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSamples.java
index 736b94063500..dfc265ce267a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents List. */
public final class ConnectedEnvironmentsDaprComponentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsSamples.java
index 9e334d4ba988..731677080e9a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents ListSecrets. */
public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteSamples.java
index c5b90ed3bbe5..f29ba4aac673 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironments Delete. */
public final class ConnectedEnvironmentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Delete.json
*/
/**
* Sample code: Delete connected environment by connectedEnvironmentName.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsGetByResourceGroupSamples.java
index e322fccc9215..f564003114db 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsGetByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsGetByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironments GetByResourceGroup. */
public final class ConnectedEnvironmentsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Get.json
*/
/**
* Sample code: Get connected environment by connectedEnvironmentName.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupSamples.java
index f0726cba257b..af4d82e63355 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironments ListByResourceGroup. */
public final class ConnectedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
*/
/**
* Sample code: List environments by resource group.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListSamples.java
index d26c49c1d3ce..4308d426ed9b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironments List. */
public final class ConnectedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListBySubscription.json
*/
/**
* Sample code: List connected environments by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesCreateOrUpdateSamples.java
index dfe807dcd286..30a37d520907 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ConnectedEnvironmentsStorages CreateOrUpdate. */
public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteSamples.java
index feaaaba169b2..65a3143da9bf 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsStorages Delete. */
public final class ConnectedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json
*/
/**
* Sample code: List environments storages by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesGetSamples.java
index ed92a1ade45d..14fe0432c670 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsStorages Get. */
public final class ConnectedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Get.json
*/
/**
* Sample code: get a environments storage properties by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListSamples.java
index 7375a18f943a..01ff4b305fcb 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironmentsStorages List. */
public final class ConnectedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsUpdateSamples.java
index 3c3d4280aa00..889b1db2b7a7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsUpdateSamples.java
@@ -7,7 +7,7 @@
/** Samples for ConnectedEnvironments Update. */
public final class ConnectedEnvironmentsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java
index 9d49b5755606..ba9747d19462 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java
@@ -14,7 +14,7 @@
/** Samples for ContainerAppsAuthConfigs CreateOrUpdate. */
public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App AuthConfig.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java
index 88fc6c0e7027..b345d6e78e5c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsAuthConfigs Delete. */
public final class ContainerAppsAuthConfigsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Delete.json
*/
/**
* Sample code: Delete Container App AuthConfig.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java
index e486a12bc43c..2e4bce7a2e60 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsAuthConfigs Get. */
public final class ContainerAppsAuthConfigsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
*/
/**
* Sample code: Get Container App's AuthConfig.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java
index 6bb2f3420aca..db82daf9035e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsAuthConfigs ListByContainerApp. */
public final class ContainerAppsAuthConfigsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
*/
/**
* Sample code: List Auth Configs by Container Apps.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java
index 896953945b45..ab735a903626 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java
@@ -39,7 +39,7 @@
/** Samples for ContainerApps CreateOrUpdate. */
public final class ContainerAppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App.
@@ -168,7 +168,7 @@ public static void createOrUpdateContainerApp(
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Tcp App.
@@ -229,7 +229,7 @@ public static void createOrUpdateTcpApp(com.azure.resourcemanager.appcontainers.
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update ManagedBy App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java
index 9d1b11d97649..63c07087bcbd 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerApps Delete. */
public final class ContainerAppsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Delete.json
*/
/**
* Sample code: Delete Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorSamples.java
index e04fe4ea3b33..8c980ae3660d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsDiagnostics GetDetector. */
public final class ContainerAppsDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerAppsDiagnostics_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_Get.json
*/
/**
* Sample code: Get Container App's diagnostics info.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRevisionSamples.java
index 2cb9e976e50f..e424fe4a561a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRevisionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRevisionSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsDiagnostics GetRevision. */
public final class ContainerAppsDiagnosticsGetRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRootSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRootSamples.java
index 5ebdffab7ee8..5733cac658c8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRootSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRootSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsDiagnostics GetRoot. */
public final class ContainerAppsDiagnosticsGetRootSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsSamples.java
index 2847cbd6efef..c992ad3fa774 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsDiagnostics ListDetectors. */
public final class ContainerAppsDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerAppsDiagnostics_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_List.json
*/
/**
* Sample code: Get the list of available diagnostics for a given Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListRevisionsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListRevisionsSamples.java
index 5286f512641d..a870c1984ff0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListRevisionsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListRevisionsSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsDiagnostics ListRevisions. */
public final class ContainerAppsDiagnosticsListRevisionsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetAuthTokenSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetAuthTokenSamples.java
index 46b42e2d7d7e..43e6c602c6b7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetAuthTokenSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetAuthTokenSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerApps GetAuthToken. */
public final class ContainerAppsGetAuthTokenSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_GetAuthToken.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_GetAuthToken.json
*/
/**
* Sample code: Get Container App Auth Token.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java
index 1eb2b548d923..ee9d107d0676 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerApps GetByResourceGroup. */
public final class ContainerAppsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java
index afc60e55e8a1..76a95f046381 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerApps ListByResourceGroup. */
public final class ContainerAppsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListByResourceGroup.json
*/
/**
* Sample code: List Container Apps by resource group.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java
index d70305487a85..6762ab66326e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerApps ListCustomHostnameAnalysis. */
public final class ContainerAppsListCustomHostnameAnalysisSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
*/
/**
* Sample code: Analyze Custom Hostname.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java
index 2e3fbe999593..17e085c733cd 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerApps List. */
public final class ContainerAppsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListBySubscription.json
*/
/**
* Sample code: List Container Apps by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java
index 27aa4cf4bb30..b71a7ad4a03f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerApps ListSecrets. */
public final class ContainerAppsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java
index e334879192ce..3b5534fb7dd7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsRevisionReplicas GetReplica. */
public final class ContainerAppsRevisionReplicasGetReplicaSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Replicas_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_Get.json
*/
/**
* Sample code: Get Container App's revision replica.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java
index bdb3851b5613..a8faad1784a3 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsRevisionReplicas ListReplicas. */
public final class ContainerAppsRevisionReplicasListReplicasSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Replicas_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_List.json
*/
/**
* Sample code: List Container App's replicas.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java
index 68498f009b7a..d9dd9cb6794e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsRevisions ActivateRevision. */
public final class ContainerAppsRevisionsActivateRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Activate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Activate.json
*/
/**
* Sample code: Activate Container App's revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java
index ad5452793178..ca9aa077b238 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsRevisions DeactivateRevision. */
public final class ContainerAppsRevisionsDeactivateRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Deactivate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Deactivate.json
*/
/**
* Sample code: Deactivate Container App's revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java
index b892fc57b1d2..dd07ecbddd0d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsRevisions GetRevision. */
public final class ContainerAppsRevisionsGetRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java
index 58d1a0cdf8bb..eaa02440b628 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsRevisions ListRevisions. */
public final class ContainerAppsRevisionsListRevisionsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java
index 23dada518735..0a506e694eab 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsRevisions RestartRevision. */
public final class ContainerAppsRevisionsRestartRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Restart.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Restart.json
*/
/**
* Sample code: Restart Container App's revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java
index 2461d4ac6b9e..54b09768a3b3 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ContainerAppsSourceControls CreateOrUpdate. */
public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App SourceControl.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java
index 61c7ffd028f3..0af2ef9c2093 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsSourceControls Delete. */
public final class ContainerAppsSourceControlsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Delete.json
*/
/**
* Sample code: Delete Container App SourceControl.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java
index ffe21a2a4964..4f2420ba1867 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsSourceControls Get. */
public final class ContainerAppsSourceControlsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Get.json
*/
/**
* Sample code: Get Container App's SourceControl.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java
index 8c683848f9dd..73ab32213fa0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java
@@ -7,7 +7,7 @@
/** Samples for ContainerAppsSourceControls ListByContainerApp. */
public final class ContainerAppsSourceControlsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_ListByContainer.json
*/
/**
* Sample code: List App's Source Controls.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java
index c83d5caa22bb..266d607a331d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java
@@ -35,7 +35,7 @@
/** Samples for ContainerApps Update. */
public final class ContainerAppsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Patch.json
*/
/**
* Sample code: Patch Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java
index f54bbfd72586..a19b8e81a14c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java
@@ -12,7 +12,7 @@
/** Samples for DaprComponents CreateOrUpdate. */
public final class DaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
*/
/**
* Sample code: Create or update dapr component with secrets.
@@ -45,7 +45,7 @@ public static void createOrUpdateDaprComponentWithSecrets(
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
*/
/**
* Sample code: Create or update dapr component with secret store component.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java
index 28f5c3ce9a1b..9c9f76db7bcb 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for DaprComponents Delete. */
public final class DaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java
index 0bb32eddcde3..bb1ba221885c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for DaprComponents Get. */
public final class DaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json
*/
/**
* Sample code: Get Dapr Component with secret store component.
@@ -22,7 +22,7 @@ public static void getDaprComponentWithSecretStoreComponent(
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Get_Secrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_Secrets.json
*/
/**
* Sample code: Get Dapr Component with secrets.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java
index 54769a039ba4..4fd995022dd1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for DaprComponents List. */
public final class DaprComponentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java
index 446140bc74fa..22685ec779ed 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java
@@ -7,7 +7,7 @@
/** Samples for DaprComponents ListSecrets. */
public final class DaprComponentsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsCreateOrUpdateSamples.java
index 6a978ce20f51..c11c285b56e7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsCreateOrUpdateSamples.java
@@ -20,7 +20,7 @@
/** Samples for Jobs CreateOrUpdate. */
public final class JobsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_CreateorUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate.json
*/
/**
* Sample code: Create or Update Container Apps Job.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteSamples.java
index e542ced67cc3..771b6c543e91 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for Jobs Delete. */
public final class JobsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Delete.json
*/
/**
* Sample code: Delete Container Apps Job.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListSamples.java
index 5ca014a9fc6c..e2e862d29f8e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for JobsExecutions List. */
public final class JobsExecutionsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Executions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Executions_Get.json
*/
/**
* Sample code: Get a Container Apps Job Executions.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetByResourceGroupSamples.java
index 0564077bf0c0..02cb1be6f8dd 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for Jobs GetByResourceGroup. */
public final class JobsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Get.json
*/
/**
* Sample code: Get Container Apps Job.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListByResourceGroupSamples.java
index 3d5ebe1e0558..b8aa41bf9c62 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for Jobs ListByResourceGroup. */
public final class JobsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Jobs_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListByResourceGroup.json
*/
/**
* Sample code: List Container Apps Jobs by resource group.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSamples.java
index 54b085f65507..52b7f3bea3d1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for Jobs List. */
public final class JobsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Jobs_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListBySubscription.json
*/
/**
* Sample code: List Container Apps Jobs by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSecretsSamples.java
index 5b44a58d0d99..a7896a2f3081 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSecretsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSecretsSamples.java
@@ -7,7 +7,7 @@
/** Samples for Jobs ListSecrets. */
public final class JobsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_ListSecrets.json
*/
/**
* Sample code: List Container Apps Job Secrets.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStartSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStartSamples.java
index af656a8947c4..b2fcd278a03c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStartSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStartSamples.java
@@ -12,7 +12,7 @@
/** Samples for Jobs Start. */
public final class JobsStartSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Start.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Start.json
*/
/**
* Sample code: Run a Container Apps Job.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionSamples.java
index 6d47d7aadcd1..510441f97722 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionSamples.java
@@ -7,7 +7,7 @@
/** Samples for Jobs StopExecution. */
public final class JobsStopExecutionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Stop_Execution.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Execution.json
*/
/**
* Sample code: Terminate a Container Apps Job.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsSamples.java
index 0b634d3537fd..8f1c27208a66 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsSamples.java
@@ -11,7 +11,7 @@
/** Samples for Jobs StopMultipleExecutions. */
public final class JobsStopMultipleExecutionsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Stop_Multiple.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Multiple.json
*/
/**
* Sample code: Terminate Multiple Container Apps Job.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsUpdateSamples.java
index 20bcea1a443b..c1c10f1432cc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsUpdateSamples.java
@@ -22,7 +22,7 @@
/** Samples for Jobs Update. */
public final class JobsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Patch.json
*/
/**
* Sample code: Patch Container Apps Job.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesCreateOrUpdateSamples.java
index 9695bbd94458..b71c24196ceb 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesCreateOrUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for ManagedCertificates CreateOrUpdate. */
public final class ManagedCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteSamples.java
index d36229a0ca29..d2c28425eb30 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedCertificates Delete. */
public final class ManagedCertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesGetSamples.java
index 1dc1b1f3123a..f225d0c3e7fa 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedCertificates Get. */
public final class ManagedCertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Get.json
*/
/**
* Sample code: Get Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesListSamples.java
index 688f546880e4..633d20c5b61c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedCertificates List. */
public final class ManagedCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
*/
/**
* Sample code: List Managed Certificates by Managed Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesUpdateSamples.java
index 05683a33f2f9..49e4adfe7402 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ManagedCertificates Update. */
public final class ManagedCertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_Patch.json
*/
/**
* Sample code: Patch Managed Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorSamples.java
index 9b93d65c1840..bbb80329b4c2 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironmentDiagnostics GetDetector. */
public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json
*/
/**
* Sample code: Get diagnostic data for a managed environments.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsSamples.java
index 5c8d96149b4f..12d46887fa7d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironmentDiagnostics ListDetectors. */
public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentDiagnostics_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_List.json
*/
/**
* Sample code: Get the list of available diagnostic data for a managed environments.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java
index bf678b059c05..00be962f18f2 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java
@@ -14,7 +14,7 @@
/** Samples for ManagedEnvironments CreateOrUpdate. */
public final class ManagedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
*/
/**
* Sample code: Create environment with custom infrastructureResourceGroup.
@@ -68,7 +68,7 @@ public static void createEnvironmentWithCustomInfrastructureResourceGroup(
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create environments.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java
index e2d498e9e7b1..b65802766022 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironments Delete. */
public final class ManagedEnvironmentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Delete.json
*/
/**
* Sample code: Delete environment by name.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDiagnosticsGetRootSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDiagnosticsGetRootSamples.java
index 301eda03c239..5465ebed2c71 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDiagnosticsGetRootSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDiagnosticsGetRootSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironmentsDiagnostics GetRoot. */
public final class ManagedEnvironmentsDiagnosticsGetRootSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetAuthTokenSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetAuthTokenSamples.java
index 4fab8c0765f1..7420f448be79 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetAuthTokenSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetAuthTokenSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironments GetAuthToken. */
public final class ManagedEnvironmentsGetAuthTokenSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_GetAuthToken.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_GetAuthToken.json
*/
/**
* Sample code: Get Managed Environment Auth Token.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java
index 4610b1cdede4..9b726fb50b33 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironments GetByResourceGroup. */
public final class ManagedEnvironmentsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java
index 3e769980ac7a..96194bc43509 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironments ListByResourceGroup. */
public final class ManagedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json
*/
/**
* Sample code: List environments by resource group.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java
index f4576ae4674d..2a2a3c230157 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironments List. */
public final class ManagedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListBySubscription.json
*/
/**
* Sample code: List environments by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesSamples.java
index 7dabc8f21bcc..166a71b2c6a4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironments ListWorkloadProfileStates. */
public final class ManagedEnvironmentsListWorkloadProfileStatesSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
*/
/**
* Sample code: List environments by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java
index 82c32d794747..b34a40a8fdc5 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ManagedEnvironmentsStorages CreateOrUpdate. */
public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java
index c7b98e0c5c37..2c9ce8f2106d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironmentsStorages Delete. */
public final class ManagedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Delete.json
*/
/**
* Sample code: List environments storages by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java
index 188abd50ff54..e734e3d94771 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironmentsStorages Get. */
public final class ManagedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Get.json
*/
/**
* Sample code: get a environments storage properties by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java
index 64f07a38bf3e..6f6755c59d42 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java
@@ -7,7 +7,7 @@
/** Samples for ManagedEnvironmentsStorages List. */
public final class ManagedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java
index 85f95e321558..f86d4915dccc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ManagedEnvironments Update. */
public final class ManagedEnvironmentsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java
index fd0c52949c05..810e06251631 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java
@@ -9,7 +9,7 @@
/** Samples for Namespaces CheckNameAvailability. */
public final class NamespacesCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificates_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_CheckNameAvailability.json
*/
/**
* Sample code: Certificates_CheckNameAvailability.
@@ -30,7 +30,7 @@ public static void certificatesCheckNameAvailability(
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CheckNameAvailability.json
*/
/**
* Sample code: ContainerApps_CheckNameAvailability.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java
index 8a9c358610b3..db5c5e8fdd2c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Operations_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Operations_List.json
*/
/**
* Sample code: List all operations.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedAudiencesValidationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedAudiencesValidationTests.java
deleted file mode 100644
index 5ea62dd4ffb4..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedAudiencesValidationTests.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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.AllowedAudiencesValidation;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AllowedAudiencesValidationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AllowedAudiencesValidation model =
- BinaryData
- .fromString("{\"allowedAudiences\":[\"rbnwbxgjvtbvpy\",\"szdnr\",\"jq\",\"uhmuouqfprwzwbn\"]}")
- .toObject(AllowedAudiencesValidation.class);
- Assertions.assertEquals("rbnwbxgjvtbvpy", model.allowedAudiences().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AllowedAudiencesValidation model =
- new AllowedAudiencesValidation()
- .withAllowedAudiences(Arrays.asList("rbnwbxgjvtbvpy", "szdnr", "jq", "uhmuouqfprwzwbn"));
- model = BinaryData.fromObject(model).toObject(AllowedAudiencesValidation.class);
- Assertions.assertEquals("rbnwbxgjvtbvpy", model.allowedAudiences().get(0));
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedPrincipalsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedPrincipalsTests.java
deleted file mode 100644
index d83078595445..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedPrincipalsTests.java
+++ /dev/null
@@ -1,33 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.AllowedPrincipals;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AllowedPrincipalsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AllowedPrincipals model =
- BinaryData
- .fromString("{\"groups\":[\"ddhsgcbacphe\",\"koty\",\"qgoulznd\"],\"identities\":[\"wyqkgfgibm\"]}")
- .toObject(AllowedPrincipals.class);
- Assertions.assertEquals("ddhsgcbacphe", model.groups().get(0));
- Assertions.assertEquals("wyqkgfgibm", model.identities().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AllowedPrincipals model =
- new AllowedPrincipals()
- .withGroups(Arrays.asList("ddhsgcbacphe", "koty", "qgoulznd"))
- .withIdentities(Arrays.asList("wyqkgfgibm"));
- model = BinaryData.fromObject(model).toObject(AllowedPrincipals.class);
- Assertions.assertEquals("ddhsgcbacphe", model.groups().get(0));
- Assertions.assertEquals("wyqkgfgibm", model.identities().get(0));
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigCollectionTests.java
deleted file mode 100644
index eb6bce22d16d..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigCollectionTests.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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.AuthConfigInner;
-import com.azure.resourcemanager.appcontainers.models.AuthConfigCollection;
-import java.util.Arrays;
-
-public final class AuthConfigCollectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AuthConfigCollection model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{},\"id\":\"xpyb\",\"name\":\"zm\",\"type\":\"hmtzopbsphrup\"},{\"properties\":{},\"id\":\"jhphoyc\",\"name\":\"sx\",\"type\":\"obhdxbmtqioqjze\"},{\"properties\":{},\"id\":\"wnoi\",\"name\":\"hwlrx\",\"type\":\"bqsoqijg\"}],\"nextLink\":\"mbpazlobcufpdzn\"}")
- .toObject(AuthConfigCollection.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AuthConfigCollection model =
- new AuthConfigCollection()
- .withValue(Arrays.asList(new AuthConfigInner(), new AuthConfigInner(), new AuthConfigInner()));
- model = BinaryData.fromObject(model).toObject(AuthConfigCollection.class);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigInnerTests.java
deleted file mode 100644
index 2bd2f4ca5288..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigInnerTests.java
+++ /dev/null
@@ -1,79 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.AuthConfigInner;
-import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
-import com.azure.resourcemanager.appcontainers.models.GlobalValidation;
-import com.azure.resourcemanager.appcontainers.models.HttpSettings;
-import com.azure.resourcemanager.appcontainers.models.IdentityProviders;
-import com.azure.resourcemanager.appcontainers.models.Login;
-import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActionV2;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AuthConfigInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AuthConfigInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"platform\":{\"enabled\":false,\"runtimeVersion\":\"jnqglhqgnu\"},\"globalValidation\":{\"unauthenticatedClientAction\":\"Return401\",\"redirectToProvider\":\"ywifsqesaag\",\"excludedPaths\":[\"glzlhjxrifkwmrv\",\"tsizntocipaoua\"]},\"identityProviders\":{\"customOpenIdConnectProviders\":{}},\"login\":{\"preserveUrlFragmentsForLogins\":true,\"allowedExternalRedirectUrls\":[\"nygj\",\"fjddeqs\",\"deupewnwrei\"]},\"httpSettings\":{\"requireHttps\":false}},\"id\":\"rh\",\"name\":\"ofcqhsm\",\"type\":\"urkdtmlx\"}")
- .toObject(AuthConfigInner.class);
- Assertions.assertEquals(false, model.platform().enabled());
- Assertions.assertEquals("jnqglhqgnu", model.platform().runtimeVersion());
- Assertions
- .assertEquals(
- UnauthenticatedClientActionV2.RETURN401, model.globalValidation().unauthenticatedClientAction());
- Assertions.assertEquals("ywifsqesaag", model.globalValidation().redirectToProvider());
- Assertions.assertEquals("glzlhjxrifkwmrv", model.globalValidation().excludedPaths().get(0));
- Assertions.assertEquals(true, model.login().preserveUrlFragmentsForLogins());
- Assertions.assertEquals("nygj", model.login().allowedExternalRedirectUrls().get(0));
- Assertions.assertEquals(false, model.httpSettings().requireHttps());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AuthConfigInner model =
- new AuthConfigInner()
- .withPlatform(new AuthPlatform().withEnabled(false).withRuntimeVersion("jnqglhqgnu"))
- .withGlobalValidation(
- new GlobalValidation()
- .withUnauthenticatedClientAction(UnauthenticatedClientActionV2.RETURN401)
- .withRedirectToProvider("ywifsqesaag")
- .withExcludedPaths(Arrays.asList("glzlhjxrifkwmrv", "tsizntocipaoua")))
- .withIdentityProviders(new IdentityProviders().withCustomOpenIdConnectProviders(mapOf()))
- .withLogin(
- new Login()
- .withPreserveUrlFragmentsForLogins(true)
- .withAllowedExternalRedirectUrls(Arrays.asList("nygj", "fjddeqs", "deupewnwrei")))
- .withHttpSettings(new HttpSettings().withRequireHttps(false));
- model = BinaryData.fromObject(model).toObject(AuthConfigInner.class);
- Assertions.assertEquals(false, model.platform().enabled());
- Assertions.assertEquals("jnqglhqgnu", model.platform().runtimeVersion());
- Assertions
- .assertEquals(
- UnauthenticatedClientActionV2.RETURN401, model.globalValidation().unauthenticatedClientAction());
- Assertions.assertEquals("ywifsqesaag", model.globalValidation().redirectToProvider());
- Assertions.assertEquals("glzlhjxrifkwmrv", model.globalValidation().excludedPaths().get(0));
- Assertions.assertEquals(true, model.login().preserveUrlFragmentsForLogins());
- Assertions.assertEquals("nygj", model.login().allowedExternalRedirectUrls().get(0));
- Assertions.assertEquals(false, model.httpSettings().requireHttps());
- }
-
- @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/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigPropertiesTests.java
deleted file mode 100644
index efa0380c112a..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigPropertiesTests.java
+++ /dev/null
@@ -1,157 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.AuthConfigProperties;
-import com.azure.resourcemanager.appcontainers.models.Apple;
-import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
-import com.azure.resourcemanager.appcontainers.models.AzureActiveDirectory;
-import com.azure.resourcemanager.appcontainers.models.AzureStaticWebApps;
-import com.azure.resourcemanager.appcontainers.models.CookieExpiration;
-import com.azure.resourcemanager.appcontainers.models.CookieExpirationConvention;
-import com.azure.resourcemanager.appcontainers.models.CustomOpenIdConnectProvider;
-import com.azure.resourcemanager.appcontainers.models.Facebook;
-import com.azure.resourcemanager.appcontainers.models.ForwardProxy;
-import com.azure.resourcemanager.appcontainers.models.ForwardProxyConvention;
-import com.azure.resourcemanager.appcontainers.models.GitHub;
-import com.azure.resourcemanager.appcontainers.models.GlobalValidation;
-import com.azure.resourcemanager.appcontainers.models.Google;
-import com.azure.resourcemanager.appcontainers.models.HttpSettings;
-import com.azure.resourcemanager.appcontainers.models.HttpSettingsRoutes;
-import com.azure.resourcemanager.appcontainers.models.IdentityProviders;
-import com.azure.resourcemanager.appcontainers.models.Login;
-import com.azure.resourcemanager.appcontainers.models.LoginRoutes;
-import com.azure.resourcemanager.appcontainers.models.Nonce;
-import com.azure.resourcemanager.appcontainers.models.Twitter;
-import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActionV2;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AuthConfigPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AuthConfigProperties model =
- BinaryData
- .fromString(
- "{\"platform\":{\"enabled\":true,\"runtimeVersion\":\"sjtxukcdmp\"},\"globalValidation\":{\"unauthenticatedClientAction\":\"Return403\",\"redirectToProvider\":\"uanzwuxzdx\",\"excludedPaths\":[\"rlhm\",\"hfpmrqobmtukknr\",\"rtihfxtijbpz\",\"gnwzsymglzufc\"]},\"identityProviders\":{\"azureActiveDirectory\":{\"enabled\":false,\"isAutoProvisioned\":true},\"facebook\":{\"enabled\":false,\"graphApiVersion\":\"cbjy\"},\"gitHub\":{\"enabled\":false},\"google\":{\"enabled\":true},\"twitter\":{\"enabled\":true},\"apple\":{\"enabled\":false},\"azureStaticWebApps\":{\"enabled\":false},\"customOpenIdConnectProviders\":{\"y\":{\"enabled\":false}}},\"login\":{\"routes\":{\"logoutEndpoint\":\"b\"},\"preserveUrlFragmentsForLogins\":false,\"allowedExternalRedirectUrls\":[\"vd\"],\"cookieExpiration\":{\"convention\":\"FixedTime\",\"timeToExpiration\":\"tfwvukxgaudc\"},\"nonce\":{\"validateNonce\":false,\"nonceExpirationInterval\":\"jcny\"}},\"httpSettings\":{\"requireHttps\":true,\"routes\":{\"apiPrefix\":\"htnapczwlokjyem\"},\"forwardProxy\":{\"convention\":\"NoProxy\",\"customHostHeaderName\":\"pjoxzjnch\",\"customProtoHeaderName\":\"jspodmailzyde\"}}}")
- .toObject(AuthConfigProperties.class);
- Assertions.assertEquals(true, model.platform().enabled());
- Assertions.assertEquals("sjtxukcdmp", model.platform().runtimeVersion());
- Assertions
- .assertEquals(
- UnauthenticatedClientActionV2.RETURN403, model.globalValidation().unauthenticatedClientAction());
- Assertions.assertEquals("uanzwuxzdx", model.globalValidation().redirectToProvider());
- Assertions.assertEquals("rlhm", model.globalValidation().excludedPaths().get(0));
- Assertions.assertEquals(false, model.identityProviders().azureActiveDirectory().enabled());
- Assertions.assertEquals(true, model.identityProviders().azureActiveDirectory().isAutoProvisioned());
- Assertions.assertEquals(false, model.identityProviders().facebook().enabled());
- Assertions.assertEquals("cbjy", model.identityProviders().facebook().graphApiVersion());
- Assertions.assertEquals(false, model.identityProviders().gitHub().enabled());
- Assertions.assertEquals(true, model.identityProviders().google().enabled());
- Assertions.assertEquals(true, model.identityProviders().twitter().enabled());
- Assertions.assertEquals(false, model.identityProviders().apple().enabled());
- Assertions.assertEquals(false, model.identityProviders().azureStaticWebApps().enabled());
- Assertions.assertEquals(false, model.identityProviders().customOpenIdConnectProviders().get("y").enabled());
- Assertions.assertEquals("b", model.login().routes().logoutEndpoint());
- Assertions.assertEquals(false, model.login().preserveUrlFragmentsForLogins());
- Assertions.assertEquals("vd", model.login().allowedExternalRedirectUrls().get(0));
- Assertions.assertEquals(CookieExpirationConvention.FIXED_TIME, model.login().cookieExpiration().convention());
- Assertions.assertEquals("tfwvukxgaudc", model.login().cookieExpiration().timeToExpiration());
- Assertions.assertEquals(false, model.login().nonce().validateNonce());
- Assertions.assertEquals("jcny", model.login().nonce().nonceExpirationInterval());
- Assertions.assertEquals(true, model.httpSettings().requireHttps());
- Assertions.assertEquals("htnapczwlokjyem", model.httpSettings().routes().apiPrefix());
- Assertions.assertEquals(ForwardProxyConvention.NO_PROXY, model.httpSettings().forwardProxy().convention());
- Assertions.assertEquals("pjoxzjnch", model.httpSettings().forwardProxy().customHostHeaderName());
- Assertions.assertEquals("jspodmailzyde", model.httpSettings().forwardProxy().customProtoHeaderName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AuthConfigProperties model =
- new AuthConfigProperties()
- .withPlatform(new AuthPlatform().withEnabled(true).withRuntimeVersion("sjtxukcdmp"))
- .withGlobalValidation(
- new GlobalValidation()
- .withUnauthenticatedClientAction(UnauthenticatedClientActionV2.RETURN403)
- .withRedirectToProvider("uanzwuxzdx")
- .withExcludedPaths(Arrays.asList("rlhm", "hfpmrqobmtukknr", "rtihfxtijbpz", "gnwzsymglzufc")))
- .withIdentityProviders(
- new IdentityProviders()
- .withAzureActiveDirectory(
- new AzureActiveDirectory().withEnabled(false).withIsAutoProvisioned(true))
- .withFacebook(new Facebook().withEnabled(false).withGraphApiVersion("cbjy"))
- .withGitHub(new GitHub().withEnabled(false))
- .withGoogle(new Google().withEnabled(true))
- .withTwitter(new Twitter().withEnabled(true))
- .withApple(new Apple().withEnabled(false))
- .withAzureStaticWebApps(new AzureStaticWebApps().withEnabled(false))
- .withCustomOpenIdConnectProviders(
- mapOf("y", new CustomOpenIdConnectProvider().withEnabled(false))))
- .withLogin(
- new Login()
- .withRoutes(new LoginRoutes().withLogoutEndpoint("b"))
- .withPreserveUrlFragmentsForLogins(false)
- .withAllowedExternalRedirectUrls(Arrays.asList("vd"))
- .withCookieExpiration(
- new CookieExpiration()
- .withConvention(CookieExpirationConvention.FIXED_TIME)
- .withTimeToExpiration("tfwvukxgaudc"))
- .withNonce(new Nonce().withValidateNonce(false).withNonceExpirationInterval("jcny")))
- .withHttpSettings(
- new HttpSettings()
- .withRequireHttps(true)
- .withRoutes(new HttpSettingsRoutes().withApiPrefix("htnapczwlokjyem"))
- .withForwardProxy(
- new ForwardProxy()
- .withConvention(ForwardProxyConvention.NO_PROXY)
- .withCustomHostHeaderName("pjoxzjnch")
- .withCustomProtoHeaderName("jspodmailzyde")));
- model = BinaryData.fromObject(model).toObject(AuthConfigProperties.class);
- Assertions.assertEquals(true, model.platform().enabled());
- Assertions.assertEquals("sjtxukcdmp", model.platform().runtimeVersion());
- Assertions
- .assertEquals(
- UnauthenticatedClientActionV2.RETURN403, model.globalValidation().unauthenticatedClientAction());
- Assertions.assertEquals("uanzwuxzdx", model.globalValidation().redirectToProvider());
- Assertions.assertEquals("rlhm", model.globalValidation().excludedPaths().get(0));
- Assertions.assertEquals(false, model.identityProviders().azureActiveDirectory().enabled());
- Assertions.assertEquals(true, model.identityProviders().azureActiveDirectory().isAutoProvisioned());
- Assertions.assertEquals(false, model.identityProviders().facebook().enabled());
- Assertions.assertEquals("cbjy", model.identityProviders().facebook().graphApiVersion());
- Assertions.assertEquals(false, model.identityProviders().gitHub().enabled());
- Assertions.assertEquals(true, model.identityProviders().google().enabled());
- Assertions.assertEquals(true, model.identityProviders().twitter().enabled());
- Assertions.assertEquals(false, model.identityProviders().apple().enabled());
- Assertions.assertEquals(false, model.identityProviders().azureStaticWebApps().enabled());
- Assertions.assertEquals(false, model.identityProviders().customOpenIdConnectProviders().get("y").enabled());
- Assertions.assertEquals("b", model.login().routes().logoutEndpoint());
- Assertions.assertEquals(false, model.login().preserveUrlFragmentsForLogins());
- Assertions.assertEquals("vd", model.login().allowedExternalRedirectUrls().get(0));
- Assertions.assertEquals(CookieExpirationConvention.FIXED_TIME, model.login().cookieExpiration().convention());
- Assertions.assertEquals("tfwvukxgaudc", model.login().cookieExpiration().timeToExpiration());
- Assertions.assertEquals(false, model.login().nonce().validateNonce());
- Assertions.assertEquals("jcny", model.login().nonce().nonceExpirationInterval());
- Assertions.assertEquals(true, model.httpSettings().requireHttps());
- Assertions.assertEquals("htnapczwlokjyem", model.httpSettings().routes().apiPrefix());
- Assertions.assertEquals(ForwardProxyConvention.NO_PROXY, model.httpSettings().forwardProxy().convention());
- Assertions.assertEquals("pjoxzjnch", model.httpSettings().forwardProxy().customHostHeaderName());
- Assertions.assertEquals("jspodmailzyde", model.httpSettings().forwardProxy().customProtoHeaderName());
- }
-
- @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/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthPlatformTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthPlatformTests.java
deleted file mode 100644
index 016df91d979a..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthPlatformTests.java
+++ /dev/null
@@ -1,27 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
-import org.junit.jupiter.api.Assertions;
-
-public final class AuthPlatformTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AuthPlatform model =
- BinaryData.fromString("{\"enabled\":true,\"runtimeVersion\":\"yahux\"}").toObject(AuthPlatform.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("yahux", model.runtimeVersion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AuthPlatform model = new AuthPlatform().withEnabled(true).withRuntimeVersion("yahux");
- model = BinaryData.fromObject(model).toObject(AuthPlatform.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("yahux", model.runtimeVersion());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableOperationsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableOperationsTests.java
deleted file mode 100644
index c29d4f3eb479..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableOperationsTests.java
+++ /dev/null
@@ -1,60 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.OperationDetailInner;
-import com.azure.resourcemanager.appcontainers.models.AvailableOperations;
-import com.azure.resourcemanager.appcontainers.models.OperationDisplay;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AvailableOperationsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AvailableOperations model =
- BinaryData
- .fromString(
- "{\"value\":[{\"name\":\"cknfnwmbtmvpd\",\"isDataAction\":true,\"display\":{\"provider\":\"tzaefedx\",\"resource\":\"ch\",\"operation\":\"hk\",\"description\":\"rjdqnsdfzp\"},\"origin\":\"tg\"}],\"nextLink\":\"lkdghr\"}")
- .toObject(AvailableOperations.class);
- Assertions.assertEquals("cknfnwmbtmvpd", model.value().get(0).name());
- Assertions.assertEquals(true, model.value().get(0).isDataAction());
- Assertions.assertEquals("tzaefedx", model.value().get(0).display().provider());
- Assertions.assertEquals("ch", model.value().get(0).display().resource());
- Assertions.assertEquals("hk", model.value().get(0).display().operation());
- Assertions.assertEquals("rjdqnsdfzp", model.value().get(0).display().description());
- Assertions.assertEquals("tg", model.value().get(0).origin());
- Assertions.assertEquals("lkdghr", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AvailableOperations model =
- new AvailableOperations()
- .withValue(
- Arrays
- .asList(
- new OperationDetailInner()
- .withName("cknfnwmbtmvpd")
- .withIsDataAction(true)
- .withDisplay(
- new OperationDisplay()
- .withProvider("tzaefedx")
- .withResource("ch")
- .withOperation("hk")
- .withDescription("rjdqnsdfzp"))
- .withOrigin("tg")))
- .withNextLink("lkdghr");
- model = BinaryData.fromObject(model).toObject(AvailableOperations.class);
- Assertions.assertEquals("cknfnwmbtmvpd", model.value().get(0).name());
- Assertions.assertEquals(true, model.value().get(0).isDataAction());
- Assertions.assertEquals("tzaefedx", model.value().get(0).display().provider());
- Assertions.assertEquals("ch", model.value().get(0).display().resource());
- Assertions.assertEquals("hk", model.value().get(0).display().operation());
- Assertions.assertEquals("rjdqnsdfzp", model.value().get(0).display().description());
- Assertions.assertEquals("tg", model.value().get(0).origin());
- Assertions.assertEquals("lkdghr", model.nextLink());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfileInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfileInnerTests.java
deleted file mode 100644
index 23aa3f6dcf83..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfileInnerTests.java
+++ /dev/null
@@ -1,49 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.AvailableWorkloadProfileInner;
-import com.azure.resourcemanager.appcontainers.models.Applicability;
-import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class AvailableWorkloadProfileInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AvailableWorkloadProfileInner model =
- BinaryData
- .fromString(
- "{\"location\":\"fbowskanyk\",\"properties\":{\"category\":\"cuiywgqyw\",\"applicability\":\"LocationDefault\",\"cores\":974991639,\"memoryGiB\":1069077696,\"displayName\":\"zgpphrcgyncocpe\"},\"id\":\"vmmcoofs\",\"name\":\"lzevgbmqjqab\",\"type\":\"y\"}")
- .toObject(AvailableWorkloadProfileInner.class);
- Assertions.assertEquals("fbowskanyk", model.location());
- Assertions.assertEquals("cuiywgqyw", model.properties().category());
- Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.properties().applicability());
- Assertions.assertEquals(974991639, model.properties().cores());
- Assertions.assertEquals(1069077696, model.properties().memoryGiB());
- Assertions.assertEquals("zgpphrcgyncocpe", model.properties().displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AvailableWorkloadProfileInner model =
- new AvailableWorkloadProfileInner()
- .withLocation("fbowskanyk")
- .withProperties(
- new AvailableWorkloadProfileProperties()
- .withCategory("cuiywgqyw")
- .withApplicability(Applicability.LOCATION_DEFAULT)
- .withCores(974991639)
- .withMemoryGiB(1069077696)
- .withDisplayName("zgpphrcgyncocpe"));
- model = BinaryData.fromObject(model).toObject(AvailableWorkloadProfileInner.class);
- Assertions.assertEquals("fbowskanyk", model.location());
- Assertions.assertEquals("cuiywgqyw", model.properties().category());
- Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.properties().applicability());
- Assertions.assertEquals(974991639, model.properties().cores());
- Assertions.assertEquals(1069077696, model.properties().memoryGiB());
- Assertions.assertEquals("zgpphrcgyncocpe", model.properties().displayName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilePropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilePropertiesTests.java
deleted file mode 100644
index 693b7c45a1da..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilePropertiesTests.java
+++ /dev/null
@@ -1,43 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.Applicability;
-import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class AvailableWorkloadProfilePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AvailableWorkloadProfileProperties model =
- BinaryData
- .fromString(
- "{\"category\":\"ivkwlzuvccfwnfnb\",\"applicability\":\"LocationDefault\",\"cores\":2055969856,\"memoryGiB\":198217735,\"displayName\":\"bxetqgtzxdpn\"}")
- .toObject(AvailableWorkloadProfileProperties.class);
- Assertions.assertEquals("ivkwlzuvccfwnfnb", model.category());
- Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.applicability());
- Assertions.assertEquals(2055969856, model.cores());
- Assertions.assertEquals(198217735, model.memoryGiB());
- Assertions.assertEquals("bxetqgtzxdpn", model.displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AvailableWorkloadProfileProperties model =
- new AvailableWorkloadProfileProperties()
- .withCategory("ivkwlzuvccfwnfnb")
- .withApplicability(Applicability.LOCATION_DEFAULT)
- .withCores(2055969856)
- .withMemoryGiB(198217735)
- .withDisplayName("bxetqgtzxdpn");
- model = BinaryData.fromObject(model).toObject(AvailableWorkloadProfileProperties.class);
- Assertions.assertEquals("ivkwlzuvccfwnfnb", model.category());
- Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.applicability());
- Assertions.assertEquals(2055969856, model.cores());
- Assertions.assertEquals(198217735, model.memoryGiB());
- Assertions.assertEquals("bxetqgtzxdpn", model.displayName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesCollectionTests.java
deleted file mode 100644
index 086c04bd86e1..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesCollectionTests.java
+++ /dev/null
@@ -1,82 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.AvailableWorkloadProfileInner;
-import com.azure.resourcemanager.appcontainers.models.Applicability;
-import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties;
-import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfilesCollection;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AvailableWorkloadProfilesCollectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AvailableWorkloadProfilesCollection model =
- BinaryData
- .fromString(
- "{\"value\":[{\"location\":\"gmaajrm\",\"properties\":{\"category\":\"wzrlovmclwhij\",\"applicability\":\"Custom\",\"cores\":1491222167,\"memoryGiB\":1583993126,\"displayName\":\"aqsqsycbkbfk\"},\"id\":\"kdkexxp\",\"name\":\"ofmx\",\"type\":\"x\"},{\"location\":\"jpgd\",\"properties\":{\"category\":\"c\",\"applicability\":\"LocationDefault\",\"cores\":1303757459,\"memoryGiB\":193768750,\"displayName\":\"uexhdzx\"},\"id\":\"qeojnxqbzvddntw\",\"name\":\"deicbtwnpzao\",\"type\":\"vuhrhcffcyddgl\"},{\"location\":\"t\",\"properties\":{\"category\":\"kw\",\"applicability\":\"Custom\",\"cores\":1516038621,\"memoryGiB\":775876395,\"displayName\":\"ciwqvhk\"},\"id\":\"xuigdtopbobj\",\"name\":\"ghmewuam\",\"type\":\"uhrzayvvt\"},{\"location\":\"vdfgiotk\",\"properties\":{\"category\":\"tqxln\",\"applicability\":\"Custom\",\"cores\":1542158785,\"memoryGiB\":719588208,\"displayName\":\"nxkrx\"},\"id\":\"mi\",\"name\":\"tthzrvqd\",\"type\":\"abhjybi\"}],\"nextLink\":\"h\"}")
- .toObject(AvailableWorkloadProfilesCollection.class);
- Assertions.assertEquals("gmaajrm", model.value().get(0).location());
- Assertions.assertEquals("wzrlovmclwhij", model.value().get(0).properties().category());
- Assertions.assertEquals(Applicability.CUSTOM, model.value().get(0).properties().applicability());
- Assertions.assertEquals(1491222167, model.value().get(0).properties().cores());
- Assertions.assertEquals(1583993126, model.value().get(0).properties().memoryGiB());
- Assertions.assertEquals("aqsqsycbkbfk", model.value().get(0).properties().displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AvailableWorkloadProfilesCollection model =
- new AvailableWorkloadProfilesCollection()
- .withValue(
- Arrays
- .asList(
- new AvailableWorkloadProfileInner()
- .withLocation("gmaajrm")
- .withProperties(
- new AvailableWorkloadProfileProperties()
- .withCategory("wzrlovmclwhij")
- .withApplicability(Applicability.CUSTOM)
- .withCores(1491222167)
- .withMemoryGiB(1583993126)
- .withDisplayName("aqsqsycbkbfk")),
- new AvailableWorkloadProfileInner()
- .withLocation("jpgd")
- .withProperties(
- new AvailableWorkloadProfileProperties()
- .withCategory("c")
- .withApplicability(Applicability.LOCATION_DEFAULT)
- .withCores(1303757459)
- .withMemoryGiB(193768750)
- .withDisplayName("uexhdzx")),
- new AvailableWorkloadProfileInner()
- .withLocation("t")
- .withProperties(
- new AvailableWorkloadProfileProperties()
- .withCategory("kw")
- .withApplicability(Applicability.CUSTOM)
- .withCores(1516038621)
- .withMemoryGiB(775876395)
- .withDisplayName("ciwqvhk")),
- new AvailableWorkloadProfileInner()
- .withLocation("vdfgiotk")
- .withProperties(
- new AvailableWorkloadProfileProperties()
- .withCategory("tqxln")
- .withApplicability(Applicability.CUSTOM)
- .withCores(1542158785)
- .withMemoryGiB(719588208)
- .withDisplayName("nxkrx"))));
- model = BinaryData.fromObject(model).toObject(AvailableWorkloadProfilesCollection.class);
- Assertions.assertEquals("gmaajrm", model.value().get(0).location());
- Assertions.assertEquals("wzrlovmclwhij", model.value().get(0).properties().category());
- Assertions.assertEquals(Applicability.CUSTOM, model.value().get(0).properties().applicability());
- Assertions.assertEquals(1491222167, model.value().get(0).properties().cores());
- Assertions.assertEquals(1583993126, model.value().get(0).properties().memoryGiB());
- Assertions.assertEquals("aqsqsycbkbfk", model.value().get(0).properties().displayName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetMockTests.java
deleted file mode 100644
index 55567fa8c3c7..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetMockTests.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.appcontainers.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.resourcemanager.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.Applicability;
-import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfile;
-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 AvailableWorkloadProfilesGetMockTests {
- @Test
- public void testGet() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"location\":\"qnmcjngzqdqx\",\"properties\":{\"category\":\"wgnyfusfzsvtui\",\"applicability\":\"Custom\",\"cores\":566108141,\"memoryGiB\":1502257649,\"displayName\":\"cfhmlrqryxyn\"},\"id\":\"zrdpsovwxznptgoe\",\"name\":\"ybbabpfhvfsl\",\"type\":\"vntjlrigjk\"}]}";
-
- 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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.availableWorkloadProfiles().get("waz", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("qnmcjngzqdqx", response.iterator().next().location());
- Assertions.assertEquals("wgnyfusfzsvtui", response.iterator().next().properties().category());
- Assertions.assertEquals(Applicability.CUSTOM, response.iterator().next().properties().applicability());
- Assertions.assertEquals(566108141, response.iterator().next().properties().cores());
- Assertions.assertEquals(1502257649, response.iterator().next().properties().memoryGiB());
- Assertions.assertEquals("cfhmlrqryxyn", response.iterator().next().properties().displayName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryLoginTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryLoginTests.java
deleted file mode 100644
index 1e4f12493905..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryLoginTests.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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.AzureActiveDirectoryLogin;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AzureActiveDirectoryLoginTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureActiveDirectoryLogin model =
- BinaryData
- .fromString(
- "{\"loginParameters\":[\"jkjlxofpdvhpfx\",\"ypininm\",\"yhuybbkpod\"],\"disableWWWAuthenticate\":true}")
- .toObject(AzureActiveDirectoryLogin.class);
- Assertions.assertEquals("jkjlxofpdvhpfx", model.loginParameters().get(0));
- Assertions.assertEquals(true, model.disableWwwAuthenticate());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureActiveDirectoryLogin model =
- new AzureActiveDirectoryLogin()
- .withLoginParameters(Arrays.asList("jkjlxofpdvhpfx", "ypininm", "yhuybbkpod"))
- .withDisableWwwAuthenticate(true);
- model = BinaryData.fromObject(model).toObject(AzureActiveDirectoryLogin.class);
- Assertions.assertEquals("jkjlxofpdvhpfx", model.loginParameters().get(0));
- Assertions.assertEquals(true, model.disableWwwAuthenticate());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryValidationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryValidationTests.java
deleted file mode 100644
index 11d61bdb7a2c..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryValidationTests.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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.AllowedPrincipals;
-import com.azure.resourcemanager.appcontainers.models.AzureActiveDirectoryValidation;
-import com.azure.resourcemanager.appcontainers.models.DefaultAuthorizationPolicy;
-import com.azure.resourcemanager.appcontainers.models.JwtClaimChecks;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AzureActiveDirectoryValidationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureActiveDirectoryValidation model =
- BinaryData
- .fromString(
- "{\"jwtClaimChecks\":{\"allowedGroups\":[\"nuvamiheogna\",\"xzxtheo\",\"usivye\"],\"allowedClientApplications\":[\"iqihn\",\"un\",\"bwjzr\"]},\"allowedAudiences\":[\"gxg\",\"spemvtzfk\",\"fublj\"],\"defaultAuthorizationPolicy\":{\"allowedPrincipals\":{\"groups\":[\"ofjaeqjhqjb\",\"s\",\"msmjqulngsntn\"],\"identities\":[\"kzgcwrwcl\",\"xwrljdouskcqvkoc\",\"cjdkwtnhxbnjbi\"]},\"allowedApplications\":[\"rglssainqpj\",\"nzl\",\"jfm\",\"pee\"]}}")
- .toObject(AzureActiveDirectoryValidation.class);
- Assertions.assertEquals("nuvamiheogna", model.jwtClaimChecks().allowedGroups().get(0));
- Assertions.assertEquals("iqihn", model.jwtClaimChecks().allowedClientApplications().get(0));
- Assertions.assertEquals("gxg", model.allowedAudiences().get(0));
- Assertions.assertEquals("ofjaeqjhqjb", model.defaultAuthorizationPolicy().allowedPrincipals().groups().get(0));
- Assertions
- .assertEquals("kzgcwrwcl", model.defaultAuthorizationPolicy().allowedPrincipals().identities().get(0));
- Assertions.assertEquals("rglssainqpj", model.defaultAuthorizationPolicy().allowedApplications().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureActiveDirectoryValidation model =
- new AzureActiveDirectoryValidation()
- .withJwtClaimChecks(
- new JwtClaimChecks()
- .withAllowedGroups(Arrays.asList("nuvamiheogna", "xzxtheo", "usivye"))
- .withAllowedClientApplications(Arrays.asList("iqihn", "un", "bwjzr")))
- .withAllowedAudiences(Arrays.asList("gxg", "spemvtzfk", "fublj"))
- .withDefaultAuthorizationPolicy(
- new DefaultAuthorizationPolicy()
- .withAllowedPrincipals(
- new AllowedPrincipals()
- .withGroups(Arrays.asList("ofjaeqjhqjb", "s", "msmjqulngsntn"))
- .withIdentities(Arrays.asList("kzgcwrwcl", "xwrljdouskcqvkoc", "cjdkwtnhxbnjbi")))
- .withAllowedApplications(Arrays.asList("rglssainqpj", "nzl", "jfm", "pee")));
- model = BinaryData.fromObject(model).toObject(AzureActiveDirectoryValidation.class);
- Assertions.assertEquals("nuvamiheogna", model.jwtClaimChecks().allowedGroups().get(0));
- Assertions.assertEquals("iqihn", model.jwtClaimChecks().allowedClientApplications().get(0));
- Assertions.assertEquals("gxg", model.allowedAudiences().get(0));
- Assertions.assertEquals("ofjaeqjhqjb", model.defaultAuthorizationPolicy().allowedPrincipals().groups().get(0));
- Assertions
- .assertEquals("kzgcwrwcl", model.defaultAuthorizationPolicy().allowedPrincipals().identities().get(0));
- Assertions.assertEquals("rglssainqpj", model.defaultAuthorizationPolicy().allowedApplications().get(0));
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsRegistrationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsRegistrationTests.java
deleted file mode 100644
index 584ef95d2fbf..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsRegistrationTests.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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.AzureStaticWebAppsRegistration;
-import org.junit.jupiter.api.Assertions;
-
-public final class AzureStaticWebAppsRegistrationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureStaticWebAppsRegistration model =
- BinaryData.fromString("{\"clientId\":\"ymzidn\"}").toObject(AzureStaticWebAppsRegistration.class);
- Assertions.assertEquals("ymzidn", model.clientId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureStaticWebAppsRegistration model = new AzureStaticWebAppsRegistration().withClientId("ymzidn");
- model = BinaryData.fromObject(model).toObject(AzureStaticWebAppsRegistration.class);
- Assertions.assertEquals("ymzidn", model.clientId());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsTests.java
deleted file mode 100644
index 9513a77820a5..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsTests.java
+++ /dev/null
@@ -1,33 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.AzureStaticWebApps;
-import com.azure.resourcemanager.appcontainers.models.AzureStaticWebAppsRegistration;
-import org.junit.jupiter.api.Assertions;
-
-public final class AzureStaticWebAppsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureStaticWebApps model =
- BinaryData
- .fromString("{\"enabled\":true,\"registration\":{\"clientId\":\"mijcmmxdcufufs\"}}")
- .toObject(AzureStaticWebApps.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("mijcmmxdcufufs", model.registration().clientId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureStaticWebApps model =
- new AzureStaticWebApps()
- .withEnabled(true)
- .withRegistration(new AzureStaticWebAppsRegistration().withClientId("mijcmmxdcufufs"));
- model = BinaryData.fromObject(model).toObject(AzureStaticWebApps.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("mijcmmxdcufufs", model.registration().clientId());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterCollectionInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterCollectionInnerTests.java
deleted file mode 100644
index dbe0377c9fc0..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterCollectionInnerTests.java
+++ /dev/null
@@ -1,55 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.BillingMeterCollectionInner;
-import com.azure.resourcemanager.appcontainers.models.BillingMeter;
-import com.azure.resourcemanager.appcontainers.models.BillingMeterProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class BillingMeterCollectionInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BillingMeterCollectionInner model =
- BinaryData
- .fromString(
- "{\"value\":[{\"location\":\"qwxrjfeallnw\",\"properties\":{\"category\":\"isnjampmngnz\",\"meterType\":\"xaqwoochcbonqv\",\"displayName\":\"vlrxnjeaseiph\"},\"id\":\"f\",\"name\":\"okeyyienj\",\"type\":\"dlwtgrhpdj\"},{\"location\":\"umasxazjpq\",\"properties\":{\"category\":\"ualhbxxhejj\",\"meterType\":\"v\",\"displayName\":\"dgwdslfhot\"},\"id\":\"cynpwlbjnp\",\"name\":\"acfta\",\"type\":\"ehxnltyfsop\"}]}")
- .toObject(BillingMeterCollectionInner.class);
- Assertions.assertEquals("qwxrjfeallnw", model.value().get(0).location());
- Assertions.assertEquals("isnjampmngnz", model.value().get(0).properties().category());
- Assertions.assertEquals("xaqwoochcbonqv", model.value().get(0).properties().meterType());
- Assertions.assertEquals("vlrxnjeaseiph", model.value().get(0).properties().displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BillingMeterCollectionInner model =
- new BillingMeterCollectionInner()
- .withValue(
- Arrays
- .asList(
- new BillingMeter()
- .withLocation("qwxrjfeallnw")
- .withProperties(
- new BillingMeterProperties()
- .withCategory("isnjampmngnz")
- .withMeterType("xaqwoochcbonqv")
- .withDisplayName("vlrxnjeaseiph")),
- new BillingMeter()
- .withLocation("umasxazjpq")
- .withProperties(
- new BillingMeterProperties()
- .withCategory("ualhbxxhejj")
- .withMeterType("v")
- .withDisplayName("dgwdslfhot"))));
- model = BinaryData.fromObject(model).toObject(BillingMeterCollectionInner.class);
- Assertions.assertEquals("qwxrjfeallnw", model.value().get(0).location());
- Assertions.assertEquals("isnjampmngnz", model.value().get(0).properties().category());
- Assertions.assertEquals("xaqwoochcbonqv", model.value().get(0).properties().meterType());
- Assertions.assertEquals("vlrxnjeaseiph", model.value().get(0).properties().displayName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterPropertiesTests.java
deleted file mode 100644
index 896238f2a097..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterPropertiesTests.java
+++ /dev/null
@@ -1,36 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.BillingMeterProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class BillingMeterPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BillingMeterProperties model =
- BinaryData
- .fromString(
- "{\"category\":\"fqweykhmene\",\"meterType\":\"yexfwh\",\"displayName\":\"cibvyvdcsitynn\"}")
- .toObject(BillingMeterProperties.class);
- Assertions.assertEquals("fqweykhmene", model.category());
- Assertions.assertEquals("yexfwh", model.meterType());
- Assertions.assertEquals("cibvyvdcsitynn", model.displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BillingMeterProperties model =
- new BillingMeterProperties()
- .withCategory("fqweykhmene")
- .withMeterType("yexfwh")
- .withDisplayName("cibvyvdcsitynn");
- model = BinaryData.fromObject(model).toObject(BillingMeterProperties.class);
- Assertions.assertEquals("fqweykhmene", model.category());
- Assertions.assertEquals("yexfwh", model.meterType());
- Assertions.assertEquals("cibvyvdcsitynn", model.displayName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterTests.java
deleted file mode 100644
index 33b6601de537..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterTests.java
+++ /dev/null
@@ -1,42 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.BillingMeter;
-import com.azure.resourcemanager.appcontainers.models.BillingMeterProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class BillingMeterTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BillingMeter model =
- BinaryData
- .fromString(
- "{\"location\":\"suesnzw\",\"properties\":{\"category\":\"bavo\",\"meterType\":\"zdmohctbqvu\",\"displayName\":\"xdn\"},\"id\":\"vo\",\"name\":\"gujjugwdkcglh\",\"type\":\"lazjdyggdtjixhbk\"}")
- .toObject(BillingMeter.class);
- Assertions.assertEquals("suesnzw", model.location());
- Assertions.assertEquals("bavo", model.properties().category());
- Assertions.assertEquals("zdmohctbqvu", model.properties().meterType());
- Assertions.assertEquals("xdn", model.properties().displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BillingMeter model =
- new BillingMeter()
- .withLocation("suesnzw")
- .withProperties(
- new BillingMeterProperties()
- .withCategory("bavo")
- .withMeterType("zdmohctbqvu")
- .withDisplayName("xdn"));
- model = BinaryData.fromObject(model).toObject(BillingMeter.class);
- Assertions.assertEquals("suesnzw", model.location());
- Assertions.assertEquals("bavo", model.properties().category());
- Assertions.assertEquals("zdmohctbqvu", model.properties().meterType());
- Assertions.assertEquals("xdn", model.properties().displayName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetWithResponseMockTests.java
deleted file mode 100644
index 8b8f3f703b7a..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.BillingMeterCollection;
-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 BillingMetersGetWithResponseMockTests {
- @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 =
- "{\"value\":[{\"location\":\"aabzmif\",\"id\":\"znmmaxrizkzobgo\",\"name\":\"xlhslnel\",\"type\":\"ieixynllxe\"},{\"location\":\"crojp\",\"id\":\"hcawjutifdwfmv\",\"name\":\"gorqjbttzh\",\"type\":\"aglkafhon\"},{\"location\":\"ujeickp\",\"id\":\"p\",\"name\":\"pmxelnwcltyje\",\"type\":\"ex\"},{\"location\":\"lfmk\",\"id\":\"azuawx\",\"name\":\"z\",\"type\":\"puamwabzxr\"}]}";
-
- 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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- BillingMeterCollection response =
- manager.billingMeters().getWithResponse("kyrioovzid", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("aabzmif", response.value().get(0).location());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatePatchTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatePatchTests.java
deleted file mode 100644
index 6fb32c1ab414..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatePatchTests.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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class CertificatePatchTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CertificatePatch model =
- BinaryData
- .fromString(
- "{\"tags\":{\"flz\":\"ukgri\",\"qzahmgkbrp\":\"fbxzpuzycisp\",\"hibnuqqkpika\":\"y\",\"buynhijggm\":\"rgvtqag\"}}")
- .toObject(CertificatePatch.class);
- Assertions.assertEquals("ukgri", model.tags().get("flz"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CertificatePatch model =
- new CertificatePatch()
- .withTags(
- mapOf("flz", "ukgri", "qzahmgkbrp", "fbxzpuzycisp", "hibnuqqkpika", "y", "buynhijggm", "rgvtqag"));
- model = BinaryData.fromObject(model).toObject(CertificatePatch.class);
- Assertions.assertEquals("ukgri", model.tags().get("flz"));
- }
-
- @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/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteWithResponseMockTests.java
deleted file mode 100644
index aa98618186f8..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager;
-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 CertificatesDeleteWithResponseMockTests {
- @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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .certificates()
- .deleteWithResponse("klinhmdptysprq", "gnzxojpslsvj", "pli", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityRequestTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityRequestTests.java
deleted file mode 100644
index 692d3ffcf8f7..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityRequestTests.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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class CheckNameAvailabilityRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CheckNameAvailabilityRequest model =
- BinaryData
- .fromString("{\"name\":\"idokgjlj\",\"type\":\"xgvcl\"}")
- .toObject(CheckNameAvailabilityRequest.class);
- Assertions.assertEquals("idokgjlj", model.name());
- Assertions.assertEquals("xgvcl", model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("idokgjlj").withType("xgvcl");
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class);
- Assertions.assertEquals("idokgjlj", model.name());
- Assertions.assertEquals("xgvcl", model.type());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityResponseInnerTests.java
deleted file mode 100644
index 747841faabc2..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityResponseInnerTests.java
+++ /dev/null
@@ -1,36 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
-import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReason;
-import org.junit.jupiter.api.Assertions;
-
-public final class CheckNameAvailabilityResponseInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CheckNameAvailabilityResponseInner model =
- BinaryData
- .fromString("{\"nameAvailable\":true,\"reason\":\"Invalid\",\"message\":\"ghkjeszzhbi\"}")
- .toObject(CheckNameAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason());
- Assertions.assertEquals("ghkjeszzhbi", model.message());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CheckNameAvailabilityResponseInner model =
- new CheckNameAvailabilityResponseInner()
- .withNameAvailable(true)
- .withReason(CheckNameAvailabilityReason.INVALID)
- .withMessage("ghkjeszzhbi");
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason());
- Assertions.assertEquals("ghkjeszzhbi", model.message());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentCollectionTests.java
deleted file mode 100644
index f63d1c6cf7fe..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentCollectionTests.java
+++ /dev/null
@@ -1,104 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentInner;
-import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentCollection;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ConnectedEnvironmentCollectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectedEnvironmentCollection model =
- BinaryData
- .fromString(
- "{\"value\":[{\"extendedLocation\":{\"name\":\"ctehfiqscjey\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"InfrastructureSetupInProgress\",\"deploymentErrors\":\"gqhcjrefovg\",\"defaultDomain\":\"qsl\",\"staticIp\":\"yvxyqjp\",\"daprAIConnectionString\":\"attpngjcrcczsq\"},\"location\":\"vmdajvnysou\",\"tags\":{\"yhltrpmopjmcm\":\"canoaeupf\"},\"id\":\"tuo\",\"name\":\"thfuiuaodsfcpkvx\",\"type\":\"dpuozmyz\"},{\"extendedLocation\":{\"name\":\"gf\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"Waiting\",\"deploymentErrors\":\"iu\",\"defaultDomain\":\"ktwh\",\"staticIp\":\"xw\",\"daprAIConnectionString\":\"wqsmbsur\"},\"location\":\"moryocfsfksym\",\"tags\":{\"o\":\"stkiiuxhqyud\"},\"id\":\"rq\",\"name\":\"b\",\"type\":\"oczvy\"},{\"extendedLocation\":{\"name\":\"rvkdvjsllrm\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"Canceled\",\"deploymentErrors\":\"kpnpulexxbczwtr\",\"defaultDomain\":\"iqzbq\",\"staticIp\":\"sovmyokacspkwl\",\"daprAIConnectionString\":\"dobpxjmflbvvn\"},\"location\":\"kcciwwzjuqkhr\",\"tags\":{\"ghsauuimjmvxied\":\"iwkuofos\",\"byao\":\"ugidyjrr\",\"xc\":\"v\",\"hocohslkev\":\"onpc\"},\"id\":\"eggzfb\",\"name\":\"hfmvfaxkffe\",\"type\":\"ithlvmezyvshxm\"},{\"extendedLocation\":{\"name\":\"bzoggigrx\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"deploymentErrors\":\"xjnspy\",\"defaultDomain\":\"tko\",\"staticIp\":\"kouknvudwtiu\",\"daprAIConnectionString\":\"ldngkpoci\"},\"location\":\"yxoegukgjnp\",\"tags\":{\"zntypmrb\":\"gygev\",\"ydnfyhxdeoejz\":\"izcdrqjsd\"},\"id\":\"cwif\",\"name\":\"jttgzf\",\"type\":\"ishc\"}],\"nextLink\":\"hajdeyeamdpha\"}")
- .toObject(ConnectedEnvironmentCollection.class);
- Assertions.assertEquals("vmdajvnysou", model.value().get(0).location());
- Assertions.assertEquals("canoaeupf", model.value().get(0).tags().get("yhltrpmopjmcm"));
- Assertions.assertEquals("ctehfiqscjey", model.value().get(0).extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type());
- Assertions.assertEquals("yvxyqjp", model.value().get(0).staticIp());
- Assertions.assertEquals("attpngjcrcczsq", model.value().get(0).daprAIConnectionString());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectedEnvironmentCollection model =
- new ConnectedEnvironmentCollection()
- .withValue(
- Arrays
- .asList(
- new ConnectedEnvironmentInner()
- .withLocation("vmdajvnysou")
- .withTags(mapOf("yhltrpmopjmcm", "canoaeupf"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("ctehfiqscjey")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withStaticIp("yvxyqjp")
- .withDaprAIConnectionString("attpngjcrcczsq"),
- new ConnectedEnvironmentInner()
- .withLocation("moryocfsfksym")
- .withTags(mapOf("o", "stkiiuxhqyud"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("gf")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withStaticIp("xw")
- .withDaprAIConnectionString("wqsmbsur"),
- new ConnectedEnvironmentInner()
- .withLocation("kcciwwzjuqkhr")
- .withTags(
- mapOf(
- "ghsauuimjmvxied",
- "iwkuofos",
- "byao",
- "ugidyjrr",
- "xc",
- "v",
- "hocohslkev",
- "onpc"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("rvkdvjsllrm")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withStaticIp("sovmyokacspkwl")
- .withDaprAIConnectionString("dobpxjmflbvvn"),
- new ConnectedEnvironmentInner()
- .withLocation("yxoegukgjnp")
- .withTags(mapOf("zntypmrb", "gygev", "ydnfyhxdeoejz", "izcdrqjsd"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("bzoggigrx")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withStaticIp("kouknvudwtiu")
- .withDaprAIConnectionString("ldngkpoci")));
- model = BinaryData.fromObject(model).toObject(ConnectedEnvironmentCollection.class);
- Assertions.assertEquals("vmdajvnysou", model.value().get(0).location());
- Assertions.assertEquals("canoaeupf", model.value().get(0).tags().get("yhltrpmopjmcm"));
- Assertions.assertEquals("ctehfiqscjey", model.value().get(0).extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type());
- Assertions.assertEquals("yvxyqjp", model.value().get(0).staticIp());
- Assertions.assertEquals("attpngjcrcczsq", model.value().get(0).daprAIConnectionString());
- }
-
- @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/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentStoragesCollectionInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentStoragesCollectionInnerTests.java
deleted file mode 100644
index 69d4f25b8180..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentStoragesCollectionInnerTests.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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStorageInner;
-import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStoragesCollectionInner;
-import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorageProperties;
-import java.util.Arrays;
-
-public final class ConnectedEnvironmentStoragesCollectionInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectedEnvironmentStoragesCollectionInner model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{},\"id\":\"jn\",\"name\":\"bckhsmtxpsi\",\"type\":\"btfhvpesaps\"},{\"properties\":{},\"id\":\"mhjjdhtldwkyzx\",\"name\":\"utknc\",\"type\":\"scwsv\"},{\"properties\":{},\"id\":\"ogtwrupqsxvnmi\",\"name\":\"ykvceoveil\",\"type\":\"vnotyfjfcnj\"}]}")
- .toObject(ConnectedEnvironmentStoragesCollectionInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectedEnvironmentStoragesCollectionInner model =
- new ConnectedEnvironmentStoragesCollectionInner()
- .withValue(
- Arrays
- .asList(
- new ConnectedEnvironmentStorageInner()
- .withProperties(new ConnectedEnvironmentStorageProperties()),
- new ConnectedEnvironmentStorageInner()
- .withProperties(new ConnectedEnvironmentStorageProperties()),
- new ConnectedEnvironmentStorageInner()
- .withProperties(new ConnectedEnvironmentStorageProperties())));
- model = BinaryData.fromObject(model).toObject(ConnectedEnvironmentStoragesCollectionInner.class);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteWithResponseMockTests.java
deleted file mode 100644
index 9cc21bac44ea..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager;
-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 ConnectedEnvironmentsCertificatesDeleteWithResponseMockTests {
- @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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .connectedEnvironmentsCertificates()
- .deleteWithResponse("vefloccsrmozihmi", "g", "wtxxpkyjcx", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilityWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilityWithResponseMockTests.java
deleted file mode 100644
index f904722176c1..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilityWithResponseMockTests.java
+++ /dev/null
@@ -1,77 +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.appcontainers.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.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReason;
-import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
-import com.azure.resourcemanager.appcontainers.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 ConnectedEnvironmentsCheckNameAvailabilityWithResponseMockTests {
- @Test
- public void testCheckNameAvailabilityWithResponse() 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\":\"AlreadyExists\",\"message\":\"yxgvelfcld\"}";
-
- 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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckNameAvailabilityResponse response =
- manager
- .connectedEnvironments()
- .checkNameAvailabilityWithResponse(
- "vru",
- "nz",
- new CheckNameAvailabilityRequest().withName("gehkfkimrtixokff").withType("inljqepqwhixmo"),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(false, response.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason());
- Assertions.assertEquals("yxgvelfcld", response.message());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteWithResponseMockTests.java
deleted file mode 100644
index 00147374ccd3..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager;
-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 ConnectedEnvironmentsDaprComponentsDeleteWithResponseMockTests {
- @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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .connectedEnvironmentsDaprComponents()
- .deleteWithResponse("qhd", "nxaulk", "akdkifmjnnawtqab", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsWithResponseMockTests.java
deleted file mode 100644
index c9150412d072..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection;
-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 ConnectedEnvironmentsDaprComponentsListSecretsWithResponseMockTests {
- @Test
- public void testListSecretsWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"name\":\"n\",\"value\":\"xpxiwfcngjs\"},{\"name\":\"sii\",\"value\":\"mkzjvkviir\"},{\"name\":\"fgrwsdpgratzvz\",\"value\":\"lbyvictctbrxkjzw\"},{\"name\":\"xff\",\"value\":\"hkwfbkgozxwop\"}]}";
-
- 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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- DaprSecretsCollection response =
- manager
- .connectedEnvironmentsDaprComponents()
- .listSecretsWithResponse("xuckpggqoweyir", "hlisngw", "lqqmpiz", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteMockTests.java
deleted file mode 100644
index 4b1332e0a927..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteMockTests.java
+++ /dev/null
@@ -1,61 +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.appcontainers.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.appcontainers.ContainerAppsApiManager;
-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 ConnectedEnvironmentsDeleteMockTests {
- @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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.connectedEnvironments().delete("zcezelfwyfwl", "xjwet", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteWithResponseMockTests.java
deleted file mode 100644
index 77fb12bfaa97..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager;
-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 ConnectedEnvironmentsStoragesDeleteWithResponseMockTests {
- @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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .connectedEnvironmentsStorages()
- .deleteWithResponse("ao", "jrmzvupor", "zdfuydzvkfvxcnqm", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListWithResponseMockTests.java
deleted file mode 100644
index fb72723e2815..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStoragesCollection;
-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 ConnectedEnvironmentsStoragesListWithResponseMockTests {
- @Test
- public void testListWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"id\":\"nfprnjletlxs\",\"name\":\"rpddouifamo\",\"type\":\"aziynknlqwzdv\"},{\"id\":\"hxqszdtmaajquh\",\"name\":\"xylrjvmtygjbmz\",\"type\":\"ospspshckf\"},{\"id\":\"pms\",\"name\":\"bpssdfp\",\"type\":\"yogtieyujtvczkcn\"},{\"id\":\"x\",\"name\":\"unjdx\",\"type\":\"glnkvxlxpagl\"}]}";
-
- 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);
- }));
-
- ContainerAppsApiManager manager =
- ContainerAppsApiManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ConnectedEnvironmentStoragesCollection response =
- manager
- .connectedEnvironmentsStorages()
- .listWithResponse("jztczytqj", "w", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppCollectionTests.java
deleted file mode 100644
index 1f879658a420..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppCollectionTests.java
+++ /dev/null
@@ -1,146 +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.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppCollection;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
-import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ContainerAppCollectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ContainerAppCollection model =
- BinaryData
- .fromString(
- "{\"value\":[{\"extendedLocation\":{\"name\":\"pabgyeps\",\"type\":\"CustomLocation\"},\"identity\":{\"principalId\":\"deac39aa-9334-4790-9a00-fe048007174c\",\"tenantId\":\"b656fa7f-7420-413a-96d5-b297ef5d799b\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"managedBy\":\"ywpmueefjzwfqkq\",\"properties\":{\"provisioningState\":\"Succeeded\",\"managedEnvironmentId\":\"uyonobglaoc\",\"environmentId\":\"tcc\",\"workloadProfileName\":\"yudxytlmoy\",\"latestRevisionName\":\"vwfudwpzntxhd\",\"latestReadyRevisionName\":\"lrqjbhckfr\",\"latestRevisionFqdn\":\"rxsbkyvp\",\"customDomainVerificationId\":\"anuzbpzkafkuw\",\"outboundIpAddresses\":[],\"eventStreamEndpoint\":\"bmehh\"},\"location\":\"yvjusrtslhsp\",\"tags\":{\"elmqk\":\"emaofmxagkvt\",\"hcdhmdual\":\"hahvljuahaq\",\"vfadmws\":\"exq\",\"lf\":\"crgvxpvgom\"},\"id\":\"isgwbnbbeldawkz\",\"name\":\"ali\",\"type\":\"urqhaka\"},{\"extendedLocation\":{\"name\":\"shsfwxosowzxcu\",\"type\":\"CustomLocation\"},\"identity\":{\"principalId\":\"9ca3190e-abc0-4e85-8548-56f3a19fed28\",\"tenantId\":\"63bcc451-5ebd-45a1-8787-75bc7ba93963\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"managedBy\":\"ebwpucwwfvo\",\"properties\":{\"provisioningState\":\"Canceled\",\"managedEnvironmentId\":\"uecivyhz\",\"environmentId\":\"uojgj\",\"workloadProfileName\":\"jueiotwmcdytd\",\"latestRevisionName\":\"it\",\"latestReadyRevisionName\":\"rjaw\",\"latestRevisionFqdn\":\"wgxhn\",\"customDomainVerificationId\":\"kxfbkpycgklwndn\",\"outboundIpAddresses\":[],\"eventStreamEndpoint\":\"whvylw\"},\"location\":\"tdhxujznbmpowuwp\",\"tags\":{\"alupjm\":\"lve\",\"iplrbpbewtghfgb\":\"hfxobbcswsrtj\",\"wxzvlvqhjkb\":\"c\",\"iebwwaloayqcgwrt\":\"gibtnm\"},\"id\":\"j\",\"name\":\"zg\",\"type\":\"yzm\"},{\"extendedLocation\":{\"name\":\"ongmtsa\",\"type\":\"CustomLocation\"},\"identity\":{\"principalId\":\"6656014a-be86-4d71-ad48-13196d61eb24\",\"tenantId\":\"ffaaeb45-4006-4757-beee-682e025e56f7\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"managedBy\":\"srknftguv\",\"properties\":{\"provisioningState\":\"Deleting\",\"managedEnvironmentId\":\"rwmdyvxqtay\",\"environmentId\":\"ww\",\"workloadProfileName\":\"yqbexrmcqibycno\",\"latestRevisionName\":\"knme\",\"latestReadyRevisionName\":\"sgzvahapjyzhpv\",\"latestRevisionFqdn\":\"zcjrvxdjzlmwlx\",\"customDomainVerificationId\":\"ug\",\"outboundIpAddresses\":[],\"eventStreamEndpoint\":\"awjvzunluthnnp\"},\"location\":\"xipeilpjzuaejx\",\"tags\":{\"pwo\":\"tskzbbtdzumveek\",\"fpbsjyofdxl\":\"uh\",\"ttouwaboekqvkel\":\"us\"},\"id\":\"smv\",\"name\":\"xwyjsflhhc\",\"type\":\"aln\"},{\"extendedLocation\":{\"name\":\"isxyawjoyaqcslyj\",\"type\":\"CustomLocation\"},\"identity\":{\"principalId\":\"97813a8e-f400-4824-87f3-35b8b42025f2\",\"tenantId\":\"b6dca7a5-f52d-4d76-8a33-ab158f1d62ad\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"managedBy\":\"znelixhnrztfolh\",\"properties\":{\"provisioningState\":\"Succeeded\",\"managedEnvironmentId\":\"alaulppggdtpnapn\",\"environmentId\":\"ropuhpigv\",\"workloadProfileName\":\"ylgqgitxmedjvcsl\",\"latestRevisionName\":\"qwwncw\",\"latestReadyRevisionName\":\"hxg\",\"latestRevisionFqdn\":\"rmgucnap\",\"customDomainVerificationId\":\"eoellwptfdygp\",\"outboundIpAddresses\":[],\"eventStreamEndpoint\":\"ceopzfqrhhuaopp\"},\"location\":\"qeqxo\",\"tags\":{\"moizpos\":\"ahzxctobgbk\",\"rmfqjhhkxbpvj\":\"mgrcfbu\",\"xjyngudivk\":\"mjh\"},\"id\":\"tswb\",\"name\":\"qzvszjf\",\"type\":\"uvjfdxxive\"}],\"nextLink\":\"t\"}")
- .toObject(ContainerAppCollection.class);
- Assertions.assertEquals("yvjusrtslhsp", model.value().get(0).location());
- Assertions.assertEquals("emaofmxagkvt", model.value().get(0).tags().get("elmqk"));
- Assertions.assertEquals("pabgyeps", model.value().get(0).extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type());
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.value().get(0).identity().type());
- Assertions.assertEquals("ywpmueefjzwfqkq", model.value().get(0).managedBy());
- Assertions.assertEquals("uyonobglaoc", model.value().get(0).managedEnvironmentId());
- Assertions.assertEquals("tcc", model.value().get(0).environmentId());
- Assertions.assertEquals("yudxytlmoy", model.value().get(0).workloadProfileName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ContainerAppCollection model =
- new ContainerAppCollection()
- .withValue(
- Arrays
- .asList(
- new ContainerAppInner()
- .withLocation("yvjusrtslhsp")
- .withTags(
- mapOf(
- "elmqk",
- "emaofmxagkvt",
- "hcdhmdual",
- "hahvljuahaq",
- "vfadmws",
- "exq",
- "lf",
- "crgvxpvgom"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("pabgyeps")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withManagedBy("ywpmueefjzwfqkq")
- .withManagedEnvironmentId("uyonobglaoc")
- .withEnvironmentId("tcc")
- .withWorkloadProfileName("yudxytlmoy"),
- new ContainerAppInner()
- .withLocation("tdhxujznbmpowuwp")
- .withTags(
- mapOf(
- "alupjm",
- "lve",
- "iplrbpbewtghfgb",
- "hfxobbcswsrtj",
- "wxzvlvqhjkb",
- "c",
- "iebwwaloayqcgwrt",
- "gibtnm"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("shsfwxosowzxcu")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(mapOf()))
- .withManagedBy("ebwpucwwfvo")
- .withManagedEnvironmentId("uecivyhz")
- .withEnvironmentId("uojgj")
- .withWorkloadProfileName("jueiotwmcdytd"),
- new ContainerAppInner()
- .withLocation("xipeilpjzuaejx")
- .withTags(mapOf("pwo", "tskzbbtdzumveek", "fpbsjyofdxl", "uh", "ttouwaboekqvkel", "us"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("ongmtsa")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withManagedBy("srknftguv")
- .withManagedEnvironmentId("rwmdyvxqtay")
- .withEnvironmentId("ww")
- .withWorkloadProfileName("yqbexrmcqibycno"),
- new ContainerAppInner()
- .withLocation("qeqxo")
- .withTags(
- mapOf("moizpos", "ahzxctobgbk", "rmfqjhhkxbpvj", "mgrcfbu", "xjyngudivk", "mjh"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("isxyawjoyaqcslyj")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(mapOf()))
- .withManagedBy("znelixhnrztfolh")
- .withManagedEnvironmentId("alaulppggdtpnapn")
- .withEnvironmentId("ropuhpigv")
- .withWorkloadProfileName("ylgqgitxmedjvcsl")));
- model = BinaryData.fromObject(model).toObject(ContainerAppCollection.class);
- Assertions.assertEquals("yvjusrtslhsp", model.value().get(0).location());
- Assertions.assertEquals("emaofmxagkvt", model.value().get(0).tags().get("elmqk"));
- Assertions.assertEquals("pabgyeps", model.value().get(0).extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type());
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.value().get(0).identity().type());
- Assertions.assertEquals("ywpmueefjzwfqkq", model.value().get(0).managedBy());
- Assertions.assertEquals("uyonobglaoc", model.value().get(0).managedEnvironmentId());
- Assertions.assertEquals("tcc", model.value().get(0).environmentId());
- Assertions.assertEquals("yudxytlmoy", model.value().get(0).workloadProfileName());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map