getByIdWithResponse(String id, Context context);
+ void delete(String resourceGroupName, String environmentName, String certificateName);
/**
- * Deletes the specified Certificate.
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
*
- * @param id the resource ID.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response}.
*/
- void deleteById(String id);
+ Response updateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context);
/**
- * Deletes the specified Certificate.
+ * Update properties of a certificate
*
- * @param id the resource ID.
- * @param context The context to associate with this operation.
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
* @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 {@link Response}.
- */
- Response deleteByIdWithResponse(String id, Context context);
-
- /**
- * Begins definition for a new Certificate resource.
- *
- * @param name resource name.
- * @return the first stage of the new Certificate definition.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
*/
- Certificate.DefinitionStages.Blank define(String name);
+ Certificate update(
+ String resourceGroupName, String environmentName, String certificateName, CertificatePatch certificateEnvelope);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ConnectedEnvironmentsCertificates.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ConnectedEnvironmentsCertificates.java
index e0277e08760b..86b766493166 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ConnectedEnvironmentsCertificates.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ConnectedEnvironmentsCertificates.java
@@ -7,7 +7,6 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
/** Resource collection API of ConnectedEnvironmentsCertificates. */
public interface ConnectedEnvironmentsCertificates {
@@ -69,29 +68,23 @@ Response getWithResponse(
Certificate get(String resourceGroupName, String connectedEnvironmentName, String certificateName);
/**
- * Create or Update a Certificate.
+ * Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param connectedEnvironmentName Name of the Connected Environment.
* @param certificateName Name of the Certificate.
- * @param certificateEnvelope Certificate to be created or updated.
* @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
- * Response}.
+ * @return the {@link Response}.
*/
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String connectedEnvironmentName,
- String certificateName,
- CertificateInner certificateEnvelope,
- Context context);
+ Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context);
/**
- * Create or Update a Certificate.
+ * Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param connectedEnvironmentName Name of the Connected Environment.
@@ -100,81 +93,63 @@ Response createOrUpdateWithResponse(
* @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
*/
- Certificate createOrUpdate(String resourceGroupName, String connectedEnvironmentName, String certificateName);
+ void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName);
/**
- * Deletes the specified Certificate.
+ * Get the specified Certificate.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param connectedEnvironmentName Name of the Connected Environment.
- * @param certificateName Name of the Certificate.
- * @param context The context to associate with this operation.
+ * @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 the {@link Response}.
+ * @return the specified Certificate along with {@link Response}.
*/
- Response deleteWithResponse(
- String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context);
+ Certificate getById(String id);
/**
- * Deletes the specified Certificate.
+ * Get the specified Certificate.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param connectedEnvironmentName Name of the Connected Environment.
- * @param certificateName Name of the Certificate.
+ * @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 the specified Certificate along with {@link Response}.
*/
- void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName);
+ Response getByIdWithResponse(String id, Context context);
/**
- * Update properties of a certificate
- *
- * Patches a certificate. Currently only patching of tags is supported.
+ * Deletes the specified Certificate.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param connectedEnvironmentName Name of the Connected Environment.
- * @param certificateName Name of the Certificate.
- * @param certificateEnvelope Properties of a certificate that need to be updated.
- * @param context The context to associate with this operation.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
- * Response}.
*/
- Response updateWithResponse(
- String resourceGroupName,
- String connectedEnvironmentName,
- String certificateName,
- CertificatePatch certificateEnvelope,
- Context context);
+ void deleteById(String id);
/**
- * Update properties of a certificate
- *
- * Patches a certificate. Currently only patching of tags is supported.
+ * Deletes the specified Certificate.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param connectedEnvironmentName Name of the Connected Environment.
- * @param certificateName Name of the Certificate.
- * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ * @return the {@link Response}.
+ */
+ Response deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new Certificate resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new Certificate definition.
*/
- Certificate update(
- String resourceGroupName,
- String connectedEnvironmentName,
- String certificateName,
- CertificatePatch certificateEnvelope);
+ Certificate.DefinitionStages.Blank define(String name);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ConnectedEnvironmentsDaprComponents.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ConnectedEnvironmentsDaprComponents.java
index aa40ae8d3ec6..4e4afa80120f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ConnectedEnvironmentsDaprComponents.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ConnectedEnvironmentsDaprComponents.java
@@ -7,7 +7,6 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
/** Resource collection API of ConnectedEnvironmentsDaprComponents. */
public interface ConnectedEnvironmentsDaprComponents {
@@ -69,53 +68,40 @@ Response getWithResponse(
DaprComponent get(String resourceGroupName, String connectedEnvironmentName, String componentName);
/**
- * Creates or updates a Dapr Component.
+ * Delete a Dapr Component.
*
- * Creates or updates a Dapr Component in a connected environment.
+ *
Delete a Dapr Component from a connected environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param connectedEnvironmentName Name of the connected environment.
* @param componentName Name of the Dapr Component.
- * @param daprComponentEnvelope Configuration details of the Dapr Component.
* @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 dapr Component along with {@link Response}.
+ * @return the {@link Response}.
*/
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String connectedEnvironmentName,
- String componentName,
- DaprComponentInner daprComponentEnvelope,
- Context context);
+ Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, Context context);
/**
- * Creates or updates a Dapr Component.
+ * Delete a Dapr Component.
*
- * Creates or updates a Dapr Component in a connected environment.
+ *
Delete a Dapr Component from a connected environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param connectedEnvironmentName Name of the connected environment.
* @param componentName Name of the Dapr Component.
- * @param daprComponentEnvelope Configuration details of the Dapr Component.
* @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 dapr Component.
*/
- DaprComponent createOrUpdate(
- String resourceGroupName,
- String connectedEnvironmentName,
- String componentName,
- DaprComponentInner daprComponentEnvelope);
+ void delete(String resourceGroupName, String connectedEnvironmentName, String componentName);
/**
- * Delete a Dapr Component.
- *
- *
Delete a Dapr Component from a connected environment.
+ * List secrets for a dapr component.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param connectedEnvironmentName Name of the connected environment.
@@ -125,15 +111,13 @@ DaprComponent createOrUpdate(
* @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 {@link Response}.
+ * @return dapr component Secrets Collection for ListSecrets Action along with {@link Response}.
*/
- Response deleteWithResponse(
+ Response listSecretsWithResponse(
String resourceGroupName, String connectedEnvironmentName, String componentName, Context context);
/**
- * Delete a Dapr Component.
- *
- * Delete a Dapr Component from a connected environment.
+ * List secrets for a dapr component.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param connectedEnvironmentName Name of the connected environment.
@@ -142,36 +126,68 @@ Response deleteWithResponse(
* @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 dapr component Secrets Collection for ListSecrets Action.
*/
- void delete(String resourceGroupName, String connectedEnvironmentName, String componentName);
+ DaprSecretsCollection listSecrets(String resourceGroupName, String connectedEnvironmentName, String componentName);
/**
- * List secrets for a dapr component.
+ * Get a dapr component.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param connectedEnvironmentName Name of the connected environment.
- * @param componentName Name of the Dapr Component.
+ * @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 dapr component along with {@link Response}.
+ */
+ DaprComponent getById(String id);
+
+ /**
+ * Get a dapr component.
+ *
+ * @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 dapr component Secrets Collection for ListSecrets Action along with {@link Response}.
+ * @return a dapr component along with {@link Response}.
*/
- Response listSecretsWithResponse(
- String resourceGroupName, String connectedEnvironmentName, String componentName, Context context);
+ Response getByIdWithResponse(String id, Context context);
/**
- * List secrets for a dapr component.
+ * Delete a Dapr Component.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param connectedEnvironmentName Name of the connected environment.
- * @param componentName Name of the Dapr Component.
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @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 dapr component Secrets Collection for ListSecrets Action.
*/
- DaprSecretsCollection listSecrets(String resourceGroupName, String connectedEnvironmentName, String componentName);
+ void deleteById(String id);
+
+ /**
+ * Delete a Dapr Component.
+ *
+ *
Delete a Dapr Component from a connected environment.
+ *
+ * @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 the {@link Response}.
+ */
+ Response deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new DaprComponent resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new DaprComponent definition.
+ */
+ DaprComponent.DefinitionStages.Blank define(String name);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java
index 58433c067706..eb625194c76c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java
@@ -106,6 +106,13 @@ public interface ContainerApp {
*/
String latestRevisionName();
+ /**
+ * Gets the latestReadyRevisionName property: Name of the latest ready revision of the Container App.
+ *
+ * @return the latestReadyRevisionName value.
+ */
+ String latestReadyRevisionName();
+
/**
* Gets the latestRevisionFqdn property: Fully Qualified Domain Name of the latest revision of the Container App.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java
index f7db26106a58..cf37503326c7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java
@@ -7,7 +7,6 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
/** Resource collection API of ContainerApps. */
public interface ContainerApps {
@@ -109,38 +108,6 @@ Response getByResourceGroupWithResponse(
*/
void delete(String resourceGroupName, String containerAppName, Context context);
- /**
- * Update properties of a Container App
- *
- * Patches a Container App using JSON Merge Patch.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param containerAppEnvelope Properties of a Container App that need to be updated.
- * @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 update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope);
-
- /**
- * Update properties of a Container App
- *
- *
Patches a Container App using JSON Merge Patch.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param containerAppEnvelope Properties of a Container App that need to be updated.
- * @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 update(
- String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context);
-
/**
* Analyzes a custom hostname for a Container App.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CorsPolicy.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CorsPolicy.java
new file mode 100644
index 000000000000..1766d46a2fd2
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CorsPolicy.java
@@ -0,0 +1,189 @@
+// 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;
+
+/** Cross-Origin-Resource-Sharing policy. */
+@Fluent
+public final class CorsPolicy {
+ /*
+ * allowed origins
+ */
+ @JsonProperty(value = "allowedOrigins", required = true)
+ private List allowedOrigins;
+
+ /*
+ * allowed HTTP methods
+ */
+ @JsonProperty(value = "allowedMethods")
+ private List allowedMethods;
+
+ /*
+ * allowed HTTP headers
+ */
+ @JsonProperty(value = "allowedHeaders")
+ private List allowedHeaders;
+
+ /*
+ * expose HTTP headers
+ */
+ @JsonProperty(value = "exposeHeaders")
+ private List exposeHeaders;
+
+ /*
+ * max time client can cache the result
+ */
+ @JsonProperty(value = "maxAge")
+ private Integer maxAge;
+
+ /*
+ * allow credential or not
+ */
+ @JsonProperty(value = "allowCredentials")
+ private Boolean allowCredentials;
+
+ /** Creates an instance of CorsPolicy class. */
+ public CorsPolicy() {
+ }
+
+ /**
+ * Get the allowedOrigins property: allowed origins.
+ *
+ * @return the allowedOrigins value.
+ */
+ public List allowedOrigins() {
+ return this.allowedOrigins;
+ }
+
+ /**
+ * Set the allowedOrigins property: allowed origins.
+ *
+ * @param allowedOrigins the allowedOrigins value to set.
+ * @return the CorsPolicy object itself.
+ */
+ public CorsPolicy withAllowedOrigins(List allowedOrigins) {
+ this.allowedOrigins = allowedOrigins;
+ return this;
+ }
+
+ /**
+ * Get the allowedMethods property: allowed HTTP methods.
+ *
+ * @return the allowedMethods value.
+ */
+ public List allowedMethods() {
+ return this.allowedMethods;
+ }
+
+ /**
+ * Set the allowedMethods property: allowed HTTP methods.
+ *
+ * @param allowedMethods the allowedMethods value to set.
+ * @return the CorsPolicy object itself.
+ */
+ public CorsPolicy withAllowedMethods(List allowedMethods) {
+ this.allowedMethods = allowedMethods;
+ return this;
+ }
+
+ /**
+ * Get the allowedHeaders property: allowed HTTP headers.
+ *
+ * @return the allowedHeaders value.
+ */
+ public List allowedHeaders() {
+ return this.allowedHeaders;
+ }
+
+ /**
+ * Set the allowedHeaders property: allowed HTTP headers.
+ *
+ * @param allowedHeaders the allowedHeaders value to set.
+ * @return the CorsPolicy object itself.
+ */
+ public CorsPolicy withAllowedHeaders(List allowedHeaders) {
+ this.allowedHeaders = allowedHeaders;
+ return this;
+ }
+
+ /**
+ * Get the exposeHeaders property: expose HTTP headers.
+ *
+ * @return the exposeHeaders value.
+ */
+ public List exposeHeaders() {
+ return this.exposeHeaders;
+ }
+
+ /**
+ * Set the exposeHeaders property: expose HTTP headers.
+ *
+ * @param exposeHeaders the exposeHeaders value to set.
+ * @return the CorsPolicy object itself.
+ */
+ public CorsPolicy withExposeHeaders(List exposeHeaders) {
+ this.exposeHeaders = exposeHeaders;
+ return this;
+ }
+
+ /**
+ * Get the maxAge property: max time client can cache the result.
+ *
+ * @return the maxAge value.
+ */
+ public Integer maxAge() {
+ return this.maxAge;
+ }
+
+ /**
+ * Set the maxAge property: max time client can cache the result.
+ *
+ * @param maxAge the maxAge value to set.
+ * @return the CorsPolicy object itself.
+ */
+ public CorsPolicy withMaxAge(Integer maxAge) {
+ this.maxAge = maxAge;
+ return this;
+ }
+
+ /**
+ * Get the allowCredentials property: allow credential or not.
+ *
+ * @return the allowCredentials value.
+ */
+ public Boolean allowCredentials() {
+ return this.allowCredentials;
+ }
+
+ /**
+ * Set the allowCredentials property: allow credential or not.
+ *
+ * @param allowCredentials the allowCredentials value to set.
+ * @return the CorsPolicy object itself.
+ */
+ public CorsPolicy withAllowCredentials(Boolean allowCredentials) {
+ this.allowCredentials = allowCredentials;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (allowedOrigins() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property allowedOrigins in model CorsPolicy"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CorsPolicy.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CustomDomainConfiguration.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CustomDomainConfiguration.java
index 2c403bd755ed..f6d0f7c4eae5 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CustomDomainConfiguration.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CustomDomainConfiguration.java
@@ -34,7 +34,7 @@ public final class CustomDomainConfiguration {
* Certificate password
*/
@JsonProperty(value = "certificatePassword")
- private byte[] certificatePassword;
+ private String certificatePassword;
/*
* Certificate expiration date.
@@ -112,8 +112,8 @@ public CustomDomainConfiguration withCertificateValue(byte[] certificateValue) {
*
* @return the certificatePassword value.
*/
- public byte[] certificatePassword() {
- return CoreUtils.clone(this.certificatePassword);
+ public String certificatePassword() {
+ return this.certificatePassword;
}
/**
@@ -122,8 +122,8 @@ public byte[] certificatePassword() {
* @param certificatePassword the certificatePassword value to set.
* @return the CustomDomainConfiguration object itself.
*/
- public CustomDomainConfiguration withCertificatePassword(byte[] certificatePassword) {
- this.certificatePassword = CoreUtils.clone(certificatePassword);
+ public CustomDomainConfiguration withCertificatePassword(String certificatePassword) {
+ this.certificatePassword = certificatePassword;
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java
index b8d6168c573d..68a8bcd7018d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java
@@ -122,13 +122,13 @@ interface Blank extends WithParentResource {
/** The stage of the DaprComponent definition allowing to specify parent resource. */
interface WithParentResource {
/**
- * Specifies resourceGroupName, environmentName.
+ * Specifies resourceGroupName, connectedEnvironmentName.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param environmentName Name of the Managed Environment.
+ * @param connectedEnvironmentName Name of the connected environment.
* @return the next definition stage.
*/
- WithCreate withExistingManagedEnvironment(String resourceGroupName, String environmentName);
+ WithCreate withExistingConnectedEnvironment(String resourceGroupName, String connectedEnvironmentName);
}
/**
* The stage of the DaprComponent definition which contains all the minimum required properties for the resource
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java
index 43295443f0f0..decfd9343fba 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java
@@ -7,6 +7,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
/** Resource collection API of DaprComponents. */
public interface DaprComponents {
@@ -68,40 +69,53 @@ Response getWithResponse(
DaprComponent get(String resourceGroupName, String environmentName, String componentName);
/**
- * Delete a Dapr Component.
+ * Creates or updates a Dapr Component.
*
- * Delete a Dapr Component from a Managed Environment.
+ *
Creates or updates a Dapr Component in a Managed Environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
* @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
* @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 {@link Response}.
+ * @return dapr Component along with {@link Response}.
*/
- Response deleteWithResponse(
- String resourceGroupName, String environmentName, String componentName, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope,
+ Context context);
/**
- * Delete a Dapr Component.
+ * Creates or updates a Dapr Component.
*
- * Delete a Dapr Component from a Managed Environment.
+ *
Creates or updates a Dapr Component in a Managed Environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
* @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
* @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 dapr Component.
*/
- void delete(String resourceGroupName, String environmentName, String componentName);
+ DaprComponent createOrUpdate(
+ String resourceGroupName,
+ String environmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope);
/**
- * List secrets for a dapr component.
+ * Delete a Dapr Component.
+ *
+ *
Delete a Dapr Component from a Managed Environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -111,13 +125,15 @@ Response deleteWithResponse(
* @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 dapr component Secrets Collection for ListSecrets Action along with {@link Response}.
+ * @return the {@link Response}.
*/
- Response listSecretsWithResponse(
+ Response deleteWithResponse(
String resourceGroupName, String environmentName, String componentName, Context context);
/**
- * List secrets for a dapr component.
+ * Delete a Dapr Component.
+ *
+ * Delete a Dapr Component from a Managed Environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -126,68 +142,36 @@ Response listSecretsWithResponse(
* @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 dapr component Secrets Collection for ListSecrets Action.
*/
- DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String componentName);
-
- /**
- * Get a dapr component.
- *
- * @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 dapr component along with {@link Response}.
- */
- DaprComponent getById(String id);
+ void delete(String resourceGroupName, String environmentName, String componentName);
/**
- * Get a dapr component.
+ * List secrets for a dapr component.
*
- * @param id the resource ID.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
* @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 dapr component along with {@link Response}.
- */
- Response getByIdWithResponse(String id, Context context);
-
- /**
- * Delete a Dapr Component.
- *
- * Delete a Dapr Component from a Managed Environment.
- *
- * @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 dapr component Secrets Collection for ListSecrets Action along with {@link Response}.
*/
- void deleteById(String id);
+ Response listSecretsWithResponse(
+ String resourceGroupName, String environmentName, String componentName, Context context);
/**
- * Delete a Dapr Component.
- *
- * Delete a Dapr Component from a Managed Environment.
+ * List secrets for a dapr component.
*
- * @param id the resource ID.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
* @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 {@link Response}.
- */
- Response deleteByIdWithResponse(String id, Context context);
-
- /**
- * Begins definition for a new DaprComponent resource.
- *
- * @param name resource name.
- * @return the first stage of the new DaprComponent definition.
+ * @return dapr component Secrets Collection for ListSecrets Action.
*/
- DaprComponent.DefinitionStages.Blank define(String name);
+ DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String componentName);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecret.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecret.java
new file mode 100644
index 000000000000..54d093bca047
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecret.java
@@ -0,0 +1,54 @@
+// 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.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Dapr component Secret for ListSecrets Action. */
+@Immutable
+public final class DaprSecret {
+ /*
+ * Secret Name.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * Secret Value.
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private String value;
+
+ /** Creates an instance of DaprSecret class. */
+ public DaprSecret() {
+ }
+
+ /**
+ * Get the name property: Secret Name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the value property: Secret Value.
+ *
+ * @return the value value.
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecretsCollection.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecretsCollection.java
index 3855936a9a9d..de12dbb02434 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecretsCollection.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecretsCollection.java
@@ -14,7 +14,7 @@ public interface DaprSecretsCollection {
*
* @return the value value.
*/
- List value();
+ List value();
/**
* Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner object.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Ingress.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Ingress.java
index 7d3bce205292..6ebeeb6d11a7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Ingress.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Ingress.java
@@ -66,6 +66,20 @@ public final class Ingress {
@JsonProperty(value = "ipSecurityRestrictions")
private List ipSecurityRestrictions;
+ /*
+ * Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate on forwarding.
+ * Accept indicates server forwards client certificate but does not require a client certificate. Require indicates
+ * server requires a client certificate.
+ */
+ @JsonProperty(value = "clientCertificateMode")
+ private IngressClientCertificateMode clientCertificateMode;
+
+ /*
+ * CORS policy for container app
+ */
+ @JsonProperty(value = "corsPolicy")
+ private CorsPolicy corsPolicy;
+
/** Creates an instance of Ingress class. */
public Ingress() {
}
@@ -241,6 +255,50 @@ public Ingress withIpSecurityRestrictions(List ipSecu
return this;
}
+ /**
+ * Get the clientCertificateMode property: Client certificate mode for mTLS authentication. Ignore indicates server
+ * drops client certificate on forwarding. Accept indicates server forwards client certificate but does not require
+ * a client certificate. Require indicates server requires a client certificate.
+ *
+ * @return the clientCertificateMode value.
+ */
+ public IngressClientCertificateMode clientCertificateMode() {
+ return this.clientCertificateMode;
+ }
+
+ /**
+ * Set the clientCertificateMode property: Client certificate mode for mTLS authentication. Ignore indicates server
+ * drops client certificate on forwarding. Accept indicates server forwards client certificate but does not require
+ * a client certificate. Require indicates server requires a client certificate.
+ *
+ * @param clientCertificateMode the clientCertificateMode value to set.
+ * @return the Ingress object itself.
+ */
+ public Ingress withClientCertificateMode(IngressClientCertificateMode clientCertificateMode) {
+ this.clientCertificateMode = clientCertificateMode;
+ return this;
+ }
+
+ /**
+ * Get the corsPolicy property: CORS policy for container app.
+ *
+ * @return the corsPolicy value.
+ */
+ public CorsPolicy corsPolicy() {
+ return this.corsPolicy;
+ }
+
+ /**
+ * Set the corsPolicy property: CORS policy for container app.
+ *
+ * @param corsPolicy the corsPolicy value to set.
+ * @return the Ingress object itself.
+ */
+ public Ingress withCorsPolicy(CorsPolicy corsPolicy) {
+ this.corsPolicy = corsPolicy;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -256,5 +314,8 @@ public void validate() {
if (ipSecurityRestrictions() != null) {
ipSecurityRestrictions().forEach(e -> e.validate());
}
+ if (corsPolicy() != null) {
+ corsPolicy().validate();
+ }
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/IngressClientCertificateMode.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/IngressClientCertificateMode.java
new file mode 100644
index 000000000000..2b38f19290d6
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/IngressClientCertificateMode.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/**
+ * Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate on forwarding.
+ * Accept indicates server forwards client certificate but does not require a client certificate. Require indicates
+ * server requires a client certificate.
+ */
+public final class IngressClientCertificateMode extends ExpandableStringEnum {
+ /** Static value ignore for IngressClientCertificateMode. */
+ public static final IngressClientCertificateMode IGNORE = fromString("ignore");
+
+ /** Static value accept for IngressClientCertificateMode. */
+ public static final IngressClientCertificateMode ACCEPT = fromString("accept");
+
+ /** Static value require for IngressClientCertificateMode. */
+ public static final IngressClientCertificateMode REQUIRE = fromString("require");
+
+ /**
+ * Creates or finds a IngressClientCertificateMode from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding IngressClientCertificateMode.
+ */
+ @JsonCreator
+ public static IngressClientCertificateMode fromString(String name) {
+ return fromString(name, IngressClientCertificateMode.class);
+ }
+
+ /**
+ * Gets known IngressClientCertificateMode values.
+ *
+ * @return known IngressClientCertificateMode values.
+ */
+ public static Collection values() {
+ return values(IngressClientCertificateMode.class);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java
index 3fb9b640518a..5ce3d9b1fe2f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java
@@ -49,6 +49,13 @@ public interface ManagedEnvironment {
*/
Map tags();
+ /**
+ * Gets the kind property: Kind of the Environment.
+ *
+ * @return the kind value.
+ */
+ String kind();
+
/**
* Gets the sku property: SKU properties of the Environment.
*
@@ -224,6 +231,7 @@ interface WithResourceGroup {
*/
interface WithCreate
extends DefinitionStages.WithTags,
+ DefinitionStages.WithKind,
DefinitionStages.WithSku,
DefinitionStages.WithDaprAIInstrumentationKey,
DefinitionStages.WithDaprAIConnectionString,
@@ -257,6 +265,16 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+ /** The stage of the ManagedEnvironment definition allowing to specify kind. */
+ interface WithKind {
+ /**
+ * Specifies the kind property: Kind of the Environment..
+ *
+ * @param kind Kind of the Environment.
+ * @return the next definition stage.
+ */
+ WithCreate withKind(String kind);
+ }
/** The stage of the ManagedEnvironment definition allowing to specify sku. */
interface WithSku {
/**
@@ -354,6 +372,7 @@ interface WithWorkloadProfiles {
/** The template for ManagedEnvironment update. */
interface Update
extends UpdateStages.WithTags,
+ UpdateStages.WithKind,
UpdateStages.WithSku,
UpdateStages.WithDaprAIInstrumentationKey,
UpdateStages.WithDaprAIConnectionString,
@@ -388,6 +407,16 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+ /** The stage of the ManagedEnvironment update allowing to specify kind. */
+ interface WithKind {
+ /**
+ * Specifies the kind property: Kind of the Environment..
+ *
+ * @param kind Kind of the Environment.
+ * @return the next definition stage.
+ */
+ Update withKind(String kind);
+ }
/** The stage of the ManagedEnvironment update allowing to specify sku. */
interface WithSku {
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java
index 313f77bd226b..e12a345ab887 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java
@@ -7,7 +7,6 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
/** Resource collection API of ManagedEnvironments. */
public interface ManagedEnvironments {
@@ -127,38 +126,6 @@ Response getByResourceGroupWithResponse(
*/
void delete(String resourceGroupName, String environmentName, Context context);
- /**
- * Update Managed Environment's properties.
- *
- * Patches a Managed Environment using JSON Merge Patch.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param environmentName Name of the Environment.
- * @param environmentEnvelope Configuration details of the Environment.
- * @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 update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
-
- /**
- * Update Managed Environment's properties.
- *
- *
Patches a Managed Environment using JSON Merge Patch.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param environmentName Name of the Environment.
- * @param environmentEnvelope Configuration details of the Environment.
- * @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 update(
- String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
-
/**
* Get auth token for a managed environment
*
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 cb3b124a6d1d..3b95b696790a 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
@@ -9,7 +9,7 @@
/** Samples for AvailableWorkloadProfiles Get. */
public final class AvailableWorkloadProfilesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AvailableWorkloadProfiles_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 5a61c09fc519..3f5aedc25cc6 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
@@ -9,7 +9,7 @@
/** Samples for BillingMeters Get. */
public final class BillingMetersGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/BillingMeters_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/BillingMeters_Get.json
*/
/**
* Sample code: BillingMeters_Get.
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 01c68c8b82cd..ee79acb21db0 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
@@ -4,12 +4,14 @@
package com.azure.resourcemanager.appcontainers.generated;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
/** Samples for Certificates CreateOrUpdate. */
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/Certificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
@@ -20,13 +22,16 @@ public static void createOrUpdateCertificate(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager
.certificates()
- .define("certificate-firendly-name")
- .withRegion("East US")
- .withExistingManagedEnvironment("examplerg", "testcontainerenv")
- .withProperties(
- new CertificateProperties()
- .withPassword("private key password")
- .withValue("PFX-or-PEM-blob".getBytes()))
- .create();
+ .createOrUpdateWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ "certificate-firendly-name",
+ new CertificateInner()
+ .withLocation("East US")
+ .withProperties(
+ new CertificateProperties()
+ .withPassword("fakeTokenPlaceholder")
+ .withValue("Y2VydA==".getBytes())),
+ Context.NONE);
}
}
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 ba5d9fdaca29..d9eb34cf3087 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
@@ -9,7 +9,7 @@
/** Samples for Certificates Delete. */
public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 8c03998b60ca..716d91a6f650 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
@@ -9,7 +9,7 @@
/** Samples for Certificates Get. */
public final class CertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 78d2e8e1bdbb..59a2f24f5028 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
@@ -9,7 +9,7 @@
/** Samples for Certificates List. */
public final class CertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 db66bc2a7f9d..7d0c26b619a1 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
@@ -5,14 +5,14 @@
package com.azure.resourcemanager.appcontainers.generated;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.models.Certificate;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
import java.util.HashMap;
import java.util.Map;
/** Samples for Certificates Update. */
public final class CertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/Certificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -20,12 +20,14 @@ public final class CertificatesUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- Certificate resource =
- manager
- .certificates()
- .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
+ manager
+ .certificates()
+ .updateWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ "certificate-firendly-name",
+ new CertificatePatch().withTags(mapOf("tag1", "value1", "tag2", "value2")),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
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 0b2dd0645194..e56f8a9f61c6 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
@@ -4,14 +4,12 @@
package com.azure.resourcemanager.appcontainers.generated;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
/** Samples for ConnectedEnvironmentsCertificates CreateOrUpdate. */
public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
@@ -22,16 +20,11 @@ public static void createOrUpdateCertificate(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager
.connectedEnvironmentsCertificates()
- .createOrUpdateWithResponse(
- "examplerg",
- "testcontainerenv",
- "certificate-firendly-name",
- new CertificateInner()
- .withLocation("East US")
- .withProperties(
- new CertificateProperties()
- .withPassword("private key password")
- .withValue("PFX-or-PEM-blob".getBytes())),
- Context.NONE);
+ .define("certificate-firendly-name")
+ .withRegion("East US")
+ .withExistingConnectedEnvironment("examplerg", "testcontainerenv")
+ .withProperties(
+ new CertificateProperties().withPassword("fakeTokenPlaceholder").withValue("Y2VydA==".getBytes()))
+ .create();
}
}
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 21e25b3fd21c..465a07c75847 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsCertificates Delete. */
public final class ConnectedEnvironmentsCertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 7516a6391ae8..b314fc92899d 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsCertificates Get. */
public final class ConnectedEnvironmentsCertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 5b8c0e11d2f6..947ef56757d4 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsCertificates List. */
public final class ConnectedEnvironmentsCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 c2ea3462e495..6181546eaadc 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
@@ -5,14 +5,14 @@
package com.azure.resourcemanager.appcontainers.generated;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+import com.azure.resourcemanager.appcontainers.models.Certificate;
import java.util.HashMap;
import java.util.Map;
/** Samples for ConnectedEnvironmentsCertificates Update. */
public final class ConnectedEnvironmentsCertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ConnectedEnvironmentsCertificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -20,14 +20,12 @@ public final class ConnectedEnvironmentsCertificatesUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager
- .connectedEnvironmentsCertificates()
- .updateWithResponse(
- "examplerg",
- "testcontainerenv",
- "certificate-firendly-name",
- new CertificatePatch().withTags(mapOf("tag1", "value1", "tag2", "value2")),
- Context.NONE);
+ Certificate resource =
+ manager
+ .connectedEnvironmentsCertificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
}
@SuppressWarnings("unchecked")
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 eb7a2b950c5b..dbf53a6763ae 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
@@ -10,7 +10,7 @@
/** Samples for ConnectedEnvironments CheckNameAvailability. */
public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 522f5ec60a7e..3bd65840dcd6 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
@@ -5,11 +5,13 @@
package com.azure.resourcemanager.appcontainers.generated;
import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
/** Samples for ConnectedEnvironments CreateOrUpdate. */
public final class ConnectedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ConnectedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create kube environments.
@@ -22,14 +24,19 @@ public static void createKubeEnvironments(com.azure.resourcemanager.appcontainer
.define("testenv")
.withRegion("East US")
.withExistingResourceGroup("examplerg")
+ .withExtendedLocation(
+ new ExtendedLocation()
+ .withName(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
.withStaticIp("1.2.3.4")
.withDaprAIConnectionString(
"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
.withCustomDomainConfiguration(
new CustomDomainConfiguration()
.withDnsSuffix("www.my-name.com")
- .withCertificateValue("PFX-or-PEM-blob".getBytes())
- .withCertificatePassword("private key password".getBytes()))
+ .withCertificateValue("Y2VydA==".getBytes())
+ .withCertificatePassword("fakeTokenPlaceholder"))
.create();
}
}
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 cd3fa3e3ef56..f1d20e014911 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
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appcontainers.generated;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
import com.azure.resourcemanager.appcontainers.models.Secret;
import java.util.Arrays;
@@ -13,7 +11,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents CreateOrUpdate. */
public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
*/
/**
* Sample code: Create or update dapr component.
@@ -24,24 +22,21 @@ public static void createOrUpdateDaprComponent(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager
.connectedEnvironmentsDaprComponents()
- .createOrUpdateWithResponse(
- "examplerg",
- "myenvironment",
- "reddog",
- new DaprComponentInner()
- .withComponentType("state.azure.cosmosdb")
- .withVersion("v1")
- .withIgnoreErrors(false)
- .withInitTimeout("50s")
- .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
- .withMetadata(
- Arrays
- .asList(
- new DaprMetadata().withName("url").withValue(""),
- new DaprMetadata().withName("database").withValue("itemsDB"),
- new DaprMetadata().withName("collection").withValue("items"),
- new DaprMetadata().withName("masterkey").withSecretRef("masterkey")))
- .withScopes(Arrays.asList("container-app-1", "container-app-2")),
- Context.NONE);
+ .define("reddog")
+ .withExistingConnectedEnvironment("examplerg", "myenvironment")
+ .withComponentType("state.azure.cosmosdb")
+ .withVersion("v1")
+ .withIgnoreErrors(false)
+ .withInitTimeout("50s")
+ .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
+ .withMetadata(
+ Arrays
+ .asList(
+ new DaprMetadata().withName("url").withValue(""),
+ new DaprMetadata().withName("database").withValue("itemsDB"),
+ new DaprMetadata().withName("collection").withValue("items"),
+ new DaprMetadata().withName("masterkey").withSecretRef("fakeTokenPlaceholder")))
+ .withScopes(Arrays.asList("container-app-1", "container-app-2"))
+ .create();
}
}
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 a69345b86f61..14342d894c88 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents Delete. */
public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 d390a2855c97..da7901064c55 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents Get. */
public final class ConnectedEnvironmentsDaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 128602c62d89..745e55f4c25c 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents List. */
public final class ConnectedEnvironmentsDaprComponentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 a61beb852670..1239279ed2cb 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsDaprComponents ListSecrets. */
public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 e9217065c241..a45195ee8807 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironments Delete. */
public final class ConnectedEnvironmentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 a7d39482efc5..402d74fb1fa7 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironments GetByResourceGroup. */
public final class ConnectedEnvironmentsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 82cc091edcaa..701621da5c4f 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironments ListByResourceGroup. */
public final class ConnectedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 30f3f82abc13..84cbd18c7a80 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironments List. */
public final class ConnectedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 48dd759809e9..b9df8d23cf1c 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-06-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
@@ -29,7 +29,7 @@ public static void createOrUpdateEnvironmentsStorage(
.withAzureFile(
new AzureFileProperties()
.withAccountName("account1")
- .withAccountKey("key")
+ .withAccountKey("fakeTokenPlaceholder")
.withAccessMode(AccessMode.READ_ONLY)
.withShareName("share1")))
.create();
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 3d32e15e66d4..5cc6a3b322c9 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsStorages Delete. */
public final class ConnectedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 985b69a863c2..403c6590010d 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsStorages Get. */
public final class ConnectedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 7bc9c5c70084..ea31ad1dcc28 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironmentsStorages List. */
public final class ConnectedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 0ab238827263..763579106cd1 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
@@ -9,7 +9,7 @@
/** Samples for ConnectedEnvironments Update. */
public final class ConnectedEnvironmentsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 2af3fe3a1f3d..a11a232be7eb 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-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/AuthConfigs_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App AuthConfig.
@@ -35,7 +35,9 @@ public static void createOrUpdateContainerAppAuthConfig(
.withFacebook(
new Facebook()
.withRegistration(
- new AppRegistration().withAppId("123").withAppSecretSettingName("facebook-secret"))))
+ new AppRegistration()
+ .withAppId("123")
+ .withAppSecretSettingName("fakeTokenPlaceholder"))))
.create();
}
}
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 02b1f78b7217..186a961e9492 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsAuthConfigs Delete. */
public final class ContainerAppsAuthConfigsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 eba01b17982f..09c00a107fb3 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsAuthConfigs Get. */
public final class ContainerAppsAuthConfigsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 5151311e9b5e..e4abbb4e5596 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsAuthConfigs ListByContainerApp. */
public final class ContainerAppsAuthConfigsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 e60fa035af7a..0706996f5477 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
@@ -14,10 +14,12 @@
import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket;
import com.azure.resourcemanager.appcontainers.models.ContainerResources;
+import com.azure.resourcemanager.appcontainers.models.CorsPolicy;
import com.azure.resourcemanager.appcontainers.models.CustomDomain;
import com.azure.resourcemanager.appcontainers.models.CustomScaleRule;
import com.azure.resourcemanager.appcontainers.models.Dapr;
import com.azure.resourcemanager.appcontainers.models.Ingress;
+import com.azure.resourcemanager.appcontainers.models.IngressClientCertificateMode;
import com.azure.resourcemanager.appcontainers.models.IngressTransportMethod;
import com.azure.resourcemanager.appcontainers.models.InitContainer;
import com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule;
@@ -35,7 +37,7 @@
/** Samples for ContainerApps CreateOrUpdate. */
public final class ContainerAppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ContainerApps_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App.
@@ -92,7 +94,16 @@ public static void createOrUpdateContainerApp(
.withDescription(
"Allowing all IP's within the subnet below to access containerapp")
.withIpAddressRange("192.168.1.1/8")
- .withAction(Action.ALLOW))))
+ .withAction(Action.ALLOW)))
+ .withClientCertificateMode(IngressClientCertificateMode.ACCEPT)
+ .withCorsPolicy(
+ new CorsPolicy()
+ .withAllowedOrigins(Arrays.asList("https://a.test.com", "https://b.test.com"))
+ .withAllowedMethods(Arrays.asList("GET", "POST"))
+ .withAllowedHeaders(Arrays.asList("HEADER1", "HEADER2"))
+ .withExposeHeaders(Arrays.asList("HEADER3", "HEADER4"))
+ .withMaxAge(1234)
+ .withAllowCredentials(true)))
.withDapr(
new Dapr()
.withEnabled(true)
@@ -154,7 +165,7 @@ public static void createOrUpdateContainerApp(
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ContainerApps_TcpApp_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Tcp 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 8add349fae66..6c254f409391 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
@@ -9,7 +9,7 @@
/** Samples for ContainerApps Delete. */
public final class ContainerAppsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 33994d2b505a..fc62b640c6c5 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsDiagnostics GetDetector. */
public final class ContainerAppsDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 e5c4a8156457..c40daa4f740f 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsDiagnostics GetRevision. */
public final class ContainerAppsDiagnosticsGetRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 e0c052a830ae..a1e6b3686d39 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsDiagnostics GetRoot. */
public final class ContainerAppsDiagnosticsGetRootSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 94801afae727..f2a28bc94e4b 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsDiagnostics ListDetectors. */
public final class ContainerAppsDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 fecef91f927a..eeebf6517d77 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsDiagnostics ListRevisions. */
public final class ContainerAppsDiagnosticsListRevisionsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 d12d281193dc..8e26dc94e264 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
@@ -9,7 +9,7 @@
/** Samples for ContainerApps GetAuthToken. */
public final class ContainerAppsGetAuthTokenSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_GetAuthToken.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 cd34f1b253fa..a584e70911ee 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
@@ -9,7 +9,7 @@
/** Samples for ContainerApps GetByResourceGroup. */
public final class ContainerAppsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 5d328c5b2fb4..7745fee29df3 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
@@ -9,7 +9,7 @@
/** Samples for ContainerApps ListByResourceGroup. */
public final class ContainerAppsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 9a017f67da97..8debf1e4fc60 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
@@ -9,7 +9,7 @@
/** Samples for ContainerApps ListCustomHostnameAnalysis. */
public final class ContainerAppsListCustomHostnameAnalysisSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 d88568039981..70a2f15fabb6 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
@@ -9,7 +9,7 @@
/** Samples for ContainerApps List. */
public final class ContainerAppsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 9a17fe1e8d4a..defd88f5e421 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
@@ -9,7 +9,7 @@
/** Samples for ContainerApps ListSecrets. */
public final class ContainerAppsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 f61fd0c8c7ae..5a2cc2db5ce0 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisionReplicas GetReplica. */
public final class ContainerAppsRevisionReplicasGetReplicaSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 d8dd9e3f9dd6..382502db3667 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisionReplicas ListReplicas. */
public final class ContainerAppsRevisionReplicasListReplicasSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 c874ecf8f9db..21acb86a6a9c 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions ActivateRevision. */
public final class ContainerAppsRevisionsActivateRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 a50104cc5545..74fa5ff658fa 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions DeactivateRevision. */
public final class ContainerAppsRevisionsDeactivateRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 40770dc22e01..832b42f67d36 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions GetRevision. */
public final class ContainerAppsRevisionsGetRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 8b6e6137e0a5..34c04abbb548 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions ListRevisions. */
public final class ContainerAppsRevisionsListRevisionsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 75ec2cca6581..6ca48402b6fc 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions RestartRevision. */
public final class ContainerAppsRevisionsRestartRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Restart.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 b22cf60e9378..740d055bed3b 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-06-01-preview/examples/SourceControls_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/SourceControls_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App SourceControl.
@@ -32,11 +32,11 @@ public static void createOrUpdateContainerAppSourceControl(
new RegistryInfo()
.withRegistryUrl("xwang971reg.azurecr.io")
.withRegistryUsername("xwang971reg")
- .withRegistryPassword(""))
+ .withRegistryPassword("fakeTokenPlaceholder"))
.withAzureCredentials(
new AzureCredentials()
.withClientId("")
- .withClientSecret("")
+ .withClientSecret("fakeTokenPlaceholder")
.withTenantId(""))
.withContextPath("./")
.withImage("image/tag"))
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 243a89a2b538..5d96aafdd44f 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsSourceControls Delete. */
public final class ContainerAppsSourceControlsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 c8e88ef5d8b3..4b4a226febda 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsSourceControls Get. */
public final class ContainerAppsSourceControlsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 ed84c27a47b4..1867b4c75a29 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
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsSourceControls ListByContainerApp. */
public final class ContainerAppsSourceControlsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 7c693a2a1f80..7ae659a8752c 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
@@ -5,12 +5,12 @@
package com.azure.resourcemanager.appcontainers.generated;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
import com.azure.resourcemanager.appcontainers.models.Action;
import com.azure.resourcemanager.appcontainers.models.AppProtocol;
import com.azure.resourcemanager.appcontainers.models.BindingType;
import com.azure.resourcemanager.appcontainers.models.Configuration;
import com.azure.resourcemanager.appcontainers.models.Container;
+import com.azure.resourcemanager.appcontainers.models.ContainerApp;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
@@ -34,7 +34,7 @@
/** Samples for ContainerApps Update. */
public final class ContainerAppsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ContainerApps_Patch.json
*/
/**
* Sample code: Patch Container App.
@@ -42,113 +42,108 @@ public final class ContainerAppsUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void patchContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager
- .containerApps()
- .update(
- "rg",
- "testcontainerApp0",
- new ContainerAppInner()
- .withLocation("East US")
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withConfiguration(
- new Configuration()
- .withIngress(
- new Ingress()
- .withExternal(true)
- .withTargetPort(3000)
- .withTraffic(
- Arrays
- .asList(
- new TrafficWeight()
- .withRevisionName("testcontainerApp0-ab1234")
- .withWeight(100)
- .withLabel("production")))
- .withCustomDomains(
- Arrays
- .asList(
- new CustomDomain()
- .withName("www.my-name.com")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
- new CustomDomain()
- .withName("www.my-other-name.com")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
- .withIpSecurityRestrictions(
- Arrays
- .asList(
- new IpSecurityRestrictionRule()
- .withName("Allow work IP A subnet")
- .withDescription(
- "Allowing all IP's within the subnet below to access"
- + " containerapp")
- .withIpAddressRange("192.168.1.1/32")
- .withAction(Action.ALLOW),
- new IpSecurityRestrictionRule()
- .withName("Allow work IP B subnet")
- .withDescription(
- "Allowing all IP's within the subnet below to access"
- + " containerapp")
- .withIpAddressRange("192.168.1.1/8")
- .withAction(Action.ALLOW))))
- .withDapr(
- new Dapr()
- .withEnabled(true)
- .withAppProtocol(AppProtocol.HTTP)
- .withAppPort(3000)
- .withHttpReadBufferSize(30)
- .withHttpMaxRequestSize(10)
- .withLogLevel(LogLevel.DEBUG)
- .withEnableApiLogging(true))
- .withMaxInactiveRevisions(10))
- .withTemplate(
- new Template()
- .withInitContainers(
+ ContainerApp resource =
+ manager.containerApps().getByResourceGroupWithResponse("rg", "testcontainerApp0", Context.NONE).getValue();
+ resource
+ .update()
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withConfiguration(
+ new Configuration()
+ .withIngress(
+ new Ingress()
+ .withExternal(true)
+ .withTargetPort(3000)
+ .withTraffic(
+ Arrays
+ .asList(
+ new TrafficWeight()
+ .withRevisionName("testcontainerApp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
+ .withCustomDomains(
Arrays
.asList(
- new InitContainer()
- .withImage("repo/testcontainerApp0:v4")
- .withName("testinitcontainerApp0")
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(
+ new CustomDomain()
+ .withName("www.my-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
+ new CustomDomain()
+ .withName("www.my-other-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
+ .withIpSecurityRestrictions(
Arrays
.asList(
- new Container()
- .withImage("repo/testcontainerApp0:v1")
- .withName("testcontainerApp0")
- .withProbes(
- Arrays
- .asList(
- new ContainerAppProbe()
- .withHttpGet(
- new ContainerAppProbeHttpGet()
- .withHttpHeaders(
- Arrays
- .asList(
- new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("Custom-Header")
- .withValue("Awesome")))
- .withPath("/health")
- .withPort(8080))
- .withInitialDelaySeconds(3)
- .withPeriodSeconds(3)
- .withType(Type.LIVENESS)))))
- .withScale(
- new Scale()
- .withMinReplicas(1)
- .withMaxReplicas(5)
- .withRules(
+ new IpSecurityRestrictionRule()
+ .withName("Allow work IP A subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/32")
+ .withAction(Action.ALLOW),
+ new IpSecurityRestrictionRule()
+ .withName("Allow work IP B subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/8")
+ .withAction(Action.ALLOW))))
+ .withDapr(
+ new Dapr()
+ .withEnabled(true)
+ .withAppProtocol(AppProtocol.HTTP)
+ .withAppPort(3000)
+ .withHttpReadBufferSize(30)
+ .withHttpMaxRequestSize(10)
+ .withLogLevel(LogLevel.DEBUG)
+ .withEnableApiLogging(true))
+ .withMaxInactiveRevisions(10))
+ .withTemplate(
+ new Template()
+ .withInitContainers(
+ Arrays
+ .asList(
+ new InitContainer()
+ .withImage("repo/testcontainerApp0:v4")
+ .withName("testinitcontainerApp0")
+ .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
+ .withContainers(
+ Arrays
+ .asList(
+ new Container()
+ .withImage("repo/testcontainerApp0:v1")
+ .withName("testcontainerApp0")
+ .withProbes(
Arrays
.asList(
- new ScaleRule()
- .withName("httpscalingrule")
- .withCustom(
- new CustomScaleRule()
- .withType("http")
- .withMetadata(mapOf("concurrentRequests", "50"))))))),
- Context.NONE);
+ new ContainerAppProbe()
+ .withHttpGet(
+ new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays
+ .asList(
+ new ContainerAppProbeHttpGetHttpHeadersItem()
+ .withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080))
+ .withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withType(Type.LIVENESS)))))
+ .withScale(
+ new Scale()
+ .withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(
+ Arrays
+ .asList(
+ new ScaleRule()
+ .withName("httpscalingrule")
+ .withCustom(
+ new CustomScaleRule()
+ .withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50")))))))
+ .apply();
}
@SuppressWarnings("unchecked")
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 ca9c24c4c77b..575bc313359c 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
@@ -4,6 +4,8 @@
package com.azure.resourcemanager.appcontainers.generated;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
import com.azure.resourcemanager.appcontainers.models.Secret;
import java.util.Arrays;
@@ -11,7 +13,7 @@
/** Samples for DaprComponents CreateOrUpdate. */
public final class DaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/DaprComponents_CreateOrUpdate_Secrets.json
*/
/**
* Sample code: Create or update dapr component with secrets.
@@ -22,26 +24,29 @@ public static void createOrUpdateDaprComponentWithSecrets(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager
.daprComponents()
- .define("reddog")
- .withExistingManagedEnvironment("examplerg", "myenvironment")
- .withComponentType("state.azure.cosmosdb")
- .withVersion("v1")
- .withIgnoreErrors(false)
- .withInitTimeout("50s")
- .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
- .withMetadata(
- Arrays
- .asList(
- new DaprMetadata().withName("url").withValue(""),
- new DaprMetadata().withName("database").withValue("itemsDB"),
- new DaprMetadata().withName("collection").withValue("items"),
- new DaprMetadata().withName("masterkey").withSecretRef("masterkey")))
- .withScopes(Arrays.asList("container-app-1", "container-app-2"))
- .create();
+ .createOrUpdateWithResponse(
+ "examplerg",
+ "myenvironment",
+ "reddog",
+ new DaprComponentInner()
+ .withComponentType("state.azure.cosmosdb")
+ .withVersion("v1")
+ .withIgnoreErrors(false)
+ .withInitTimeout("50s")
+ .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
+ .withMetadata(
+ Arrays
+ .asList(
+ new DaprMetadata().withName("url").withValue(""),
+ new DaprMetadata().withName("database").withValue("itemsDB"),
+ new DaprMetadata().withName("collection").withValue("items"),
+ new DaprMetadata().withName("masterkey").withSecretRef("fakeTokenPlaceholder")))
+ .withScopes(Arrays.asList("container-app-1", "container-app-2")),
+ Context.NONE);
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
*/
/**
* Sample code: Create or update dapr component with secret store component.
@@ -52,21 +57,24 @@ public static void createOrUpdateDaprComponentWithSecretStoreComponent(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager
.daprComponents()
- .define("reddog")
- .withExistingManagedEnvironment("examplerg", "myenvironment")
- .withComponentType("state.azure.cosmosdb")
- .withVersion("v1")
- .withIgnoreErrors(false)
- .withInitTimeout("50s")
- .withSecretStoreComponent("my-secret-store")
- .withMetadata(
- Arrays
- .asList(
- new DaprMetadata().withName("url").withValue(""),
- new DaprMetadata().withName("database").withValue("itemsDB"),
- new DaprMetadata().withName("collection").withValue("items"),
- new DaprMetadata().withName("masterkey").withSecretRef("masterkey")))
- .withScopes(Arrays.asList("container-app-1", "container-app-2"))
- .create();
+ .createOrUpdateWithResponse(
+ "examplerg",
+ "myenvironment",
+ "reddog",
+ new DaprComponentInner()
+ .withComponentType("state.azure.cosmosdb")
+ .withVersion("v1")
+ .withIgnoreErrors(false)
+ .withInitTimeout("50s")
+ .withSecretStoreComponent("fakeTokenPlaceholder")
+ .withMetadata(
+ Arrays
+ .asList(
+ new DaprMetadata().withName("url").withValue(""),
+ new DaprMetadata().withName("database").withValue("itemsDB"),
+ new DaprMetadata().withName("collection").withValue("items"),
+ new DaprMetadata().withName("masterkey").withSecretRef("fakeTokenPlaceholder")))
+ .withScopes(Arrays.asList("container-app-1", "container-app-2")),
+ Context.NONE);
}
}
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 b7da35a6649a..78fbbb6cedfe 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
@@ -9,7 +9,7 @@
/** Samples for DaprComponents Delete. */
public final class DaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 43f1c579ea9d..2f168c068d54 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
@@ -9,7 +9,7 @@
/** Samples for DaprComponents Get. */
public final class DaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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-06-01-preview/examples/DaprComponents_Get_Secrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 722a171a9c77..f913c7819264 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
@@ -9,7 +9,7 @@
/** Samples for DaprComponents List. */
public final class DaprComponentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 f301616014ca..6f7361d54c7b 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
@@ -9,7 +9,7 @@
/** Samples for DaprComponents ListSecrets. */
public final class DaprComponentsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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/ManagedEnvironmentDiagnosticsGetDetectorSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorSamples.java
index 8f468b00f2e5..0b2c1c8b7bb9 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironmentDiagnostics GetDetector. */
public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 a85c61336f73..ad62168ca59e 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironmentDiagnostics ListDetectors. */
public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 750e5d106db9..ea87f391140d 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
@@ -18,7 +18,7 @@
/** Samples for ManagedEnvironments CreateOrUpdate. */
public final class ManagedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ManagedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create environments.
@@ -31,6 +31,7 @@ public static void createEnvironments(com.azure.resourcemanager.appcontainers.Co
.define("testcontainerenv")
.withRegion("East US")
.withExistingResourceGroup("examplerg")
+ .withKind("serverless")
.withSku(new EnvironmentSkuProperties().withName(SkuName.PREMIUM))
.withDaprAIConnectionString(
"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
@@ -43,13 +44,13 @@ public static void createEnvironments(com.azure.resourcemanager.appcontainers.Co
.withAppLogsConfiguration(
new AppLogsConfiguration()
.withLogAnalyticsConfiguration(
- new LogAnalyticsConfiguration().withCustomerId("string").withSharedKey("string")))
+ new LogAnalyticsConfiguration().withCustomerId("string").withSharedKey("fakeTokenPlaceholder")))
.withZoneRedundant(true)
.withCustomDomainConfiguration(
new CustomDomainConfiguration()
.withDnsSuffix("www.my-name.com")
- .withCertificateValue("PFX-or-PEM-blob".getBytes())
- .withCertificatePassword("private key password".getBytes()))
+ .withCertificateValue("Y2VydA==".getBytes())
+ .withCertificatePassword("fakeTokenPlaceholder"))
.withWorkloadProfiles(
Arrays
.asList(
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 4166699a9962..4159b233bfe9 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments Delete. */
public final class ManagedEnvironmentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 efb4da6fedf3..ad3485305df4 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironmentsDiagnostics GetRoot. */
public final class ManagedEnvironmentsDiagnosticsGetRootSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 bdf62a7cc8a2..11eed798fdd5 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments GetAuthToken. */
public final class ManagedEnvironmentsGetAuthTokenSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_GetAuthToken.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 de387050cbce..54be71d74d1e 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments GetByResourceGroup. */
public final class ManagedEnvironmentsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 56733c8475f4..0d33384e01b2 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments ListByResourceGroup. */
public final class ManagedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 fb5a7e7e2aaf..b283b4a55a8a 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments List. */
public final class ManagedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 5ae4808ba630..6af91dbf0106 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments ListWorkloadProfileStates. */
public final class ManagedEnvironmentsListWorkloadProfileStatesSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 3bef9aeafacd..7de601bd2a1f 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-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
@@ -29,7 +29,7 @@ public static void createOrUpdateEnvironmentsStorage(
.withAzureFile(
new AzureFileProperties()
.withAccountName("account1")
- .withAccountKey("key")
+ .withAccountKey("fakeTokenPlaceholder")
.withAccessMode(AccessMode.READ_ONLY)
.withShareName("share1")))
.create();
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 042571857672..37e2a946776e 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironmentsStorages Delete. */
public final class ManagedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 923f94843e83..b345e8b4f615 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironmentsStorages Get. */
public final class ManagedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 10f08f791fee..f3f99654a304 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
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironmentsStorages List. */
public final class ManagedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 99932fc462a6..97fa9e6f09a4 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
@@ -5,14 +5,14 @@
package com.azure.resourcemanager.appcontainers.generated;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironment;
import java.util.HashMap;
import java.util.Map;
/** Samples for ManagedEnvironments Update. */
public final class ManagedEnvironmentsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ManagedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
@@ -21,15 +21,12 @@ public final class ManagedEnvironmentsUpdateSamples {
*/
public static void patchManagedEnvironment(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager
- .managedEnvironments()
- .update(
- "examplerg",
- "testcontainerenv",
- new ManagedEnvironmentInner()
- .withLocation("East US")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")),
- Context.NONE);
+ ManagedEnvironment resource =
+ manager
+ .managedEnvironments()
+ .getByResourceGroupWithResponse("examplerg", "testcontainerenv", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
}
@SuppressWarnings("unchecked")
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 9fe9d81cd386..36ec2d689c29 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
@@ -10,7 +10,7 @@
/** Samples for Namespaces CheckNameAvailability. */
public final class NamespacesCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/Certificates_CheckNameAvailability.json
*/
/**
* Sample code: Certificates_CheckNameAvailability.
@@ -31,7 +31,7 @@ public static void certificatesCheckNameAvailability(
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 41eb1cd667b7..0bcb0b885002 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
@@ -9,7 +9,7 @@
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Operations_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-10-01/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 00234c42c406..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedAudiencesValidationTests.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.AllowedAudiencesValidation;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AllowedAudiencesValidationTests {
- @Test
- public void testDeserialize() {
- AllowedAudiencesValidation model =
- BinaryData.fromString("{\"allowedAudiences\":[\"m\"]}").toObject(AllowedAudiencesValidation.class);
- Assertions.assertEquals("m", model.allowedAudiences().get(0));
- }
-
- @Test
- public void testSerialize() {
- AllowedAudiencesValidation model = new AllowedAudiencesValidation().withAllowedAudiences(Arrays.asList("m"));
- model = BinaryData.fromObject(model).toObject(AllowedAudiencesValidation.class);
- Assertions.assertEquals("m", 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 b9de692babcf..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedPrincipalsTests.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.AllowedPrincipals;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AllowedPrincipalsTests {
- @Test
- public void testDeserialize() {
- AllowedPrincipals model =
- BinaryData
- .fromString("{\"groups\":[\"urzafb\",\"jjgpb\",\"oq\"],\"identities\":[\"klj\",\"vbqid\"]}")
- .toObject(AllowedPrincipals.class);
- Assertions.assertEquals("urzafb", model.groups().get(0));
- Assertions.assertEquals("klj", model.identities().get(0));
- }
-
- @Test
- public void testSerialize() {
- AllowedPrincipals model =
- new AllowedPrincipals()
- .withGroups(Arrays.asList("urzafb", "jjgpb", "oq"))
- .withIdentities(Arrays.asList("klj", "vbqid"));
- model = BinaryData.fromObject(model).toObject(AllowedPrincipals.class);
- Assertions.assertEquals("urzafb", model.groups().get(0));
- Assertions.assertEquals("klj", model.identities().get(0));
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppRegistrationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppRegistrationTests.java
deleted file mode 100644
index c1f989a0beee..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppRegistrationTests.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.AppRegistration;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AppRegistrationTests {
- @Test
- public void testDeserialize() {
- AppRegistration model =
- BinaryData
- .fromString("{\"appId\":\"l\",\"appSecretSettingName\":\"majtjaod\"}")
- .toObject(AppRegistration.class);
- Assertions.assertEquals("l", model.appId());
- Assertions.assertEquals("majtjaod", model.appSecretSettingName());
- }
-
- @Test
- public void testSerialize() {
- AppRegistration model = new AppRegistration().withAppId("l").withAppSecretSettingName("majtjaod");
- model = BinaryData.fromObject(model).toObject(AppRegistration.class);
- Assertions.assertEquals("l", model.appId());
- Assertions.assertEquals("majtjaod", model.appSecretSettingName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppleRegistrationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppleRegistrationTests.java
deleted file mode 100644
index 02090f7ea3d5..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppleRegistrationTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.AppleRegistration;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AppleRegistrationTests {
- @Test
- public void testDeserialize() {
- AppleRegistration model =
- BinaryData
- .fromString("{\"clientId\":\"oqfbowskanyk\",\"clientSecretSettingName\":\"lcuiywgqywgndr\"}")
- .toObject(AppleRegistration.class);
- Assertions.assertEquals("oqfbowskanyk", model.clientId());
- Assertions.assertEquals("lcuiywgqywgndr", model.clientSecretSettingName());
- }
-
- @Test
- public void testSerialize() {
- AppleRegistration model =
- new AppleRegistration().withClientId("oqfbowskanyk").withClientSecretSettingName("lcuiywgqywgndr");
- model = BinaryData.fromObject(model).toObject(AppleRegistration.class);
- Assertions.assertEquals("oqfbowskanyk", model.clientId());
- Assertions.assertEquals("lcuiywgqywgndr", model.clientSecretSettingName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppleTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppleTests.java
deleted file mode 100644
index dcba9e0131e5..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppleTests.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.Apple;
-import com.azure.resourcemanager.appcontainers.models.AppleRegistration;
-import com.azure.resourcemanager.appcontainers.models.LoginScopes;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AppleTests {
- @Test
- public void testDeserialize() {
- Apple model =
- BinaryData
- .fromString(
- "{\"enabled\":true,\"registration\":{\"clientId\":\"gnxkrxdqmidtth\",\"clientSecretSettingName\":\"vqdra\"},\"login\":{\"scopes\":[\"big\"]}}")
- .toObject(Apple.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("gnxkrxdqmidtth", model.registration().clientId());
- Assertions.assertEquals("vqdra", model.registration().clientSecretSettingName());
- Assertions.assertEquals("big", model.login().scopes().get(0));
- }
-
- @Test
- public void testSerialize() {
- Apple model =
- new Apple()
- .withEnabled(true)
- .withRegistration(
- new AppleRegistration().withClientId("gnxkrxdqmidtth").withClientSecretSettingName("vqdra"))
- .withLogin(new LoginScopes().withScopes(Arrays.asList("big")));
- model = BinaryData.fromObject(model).toObject(Apple.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("gnxkrxdqmidtth", model.registration().clientId());
- Assertions.assertEquals("vqdra", model.registration().clientSecretSettingName());
- Assertions.assertEquals("big", model.login().scopes().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 82fd1a024a19..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigCollectionTests.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.fluent.models.AuthConfigInner;
-import com.azure.resourcemanager.appcontainers.models.AuthConfigCollection;
-import java.util.Arrays;
-import org.junit.jupiter.api.Test;
-
-public final class AuthConfigCollectionTests {
- @Test
- public void testDeserialize() {
- 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);
- }
-
- @Test
- public void testSerialize() {
- 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 3f179d491cd6..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigInnerTests.java
+++ /dev/null
@@ -1,80 +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;
-import org.junit.jupiter.api.Test;
-
-public final class AuthConfigInnerTests {
- @Test
- public void testDeserialize() {
- 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());
- }
-
- @Test
- public void testSerialize() {
- 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 9417352161d2..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthConfigPropertiesTests.java
+++ /dev/null
@@ -1,158 +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;
-import org.junit.jupiter.api.Test;
-
-public final class AuthConfigPropertiesTests {
- @Test
- public void testDeserialize() {
- 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());
- }
-
- @Test
- public void testSerialize() {
- 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 9ce13d083e26..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthPlatformTests.java
+++ /dev/null
@@ -1,28 +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;
-import org.junit.jupiter.api.Test;
-
-public final class AuthPlatformTests {
- @Test
- public void testDeserialize() {
- AuthPlatform model =
- BinaryData.fromString("{\"enabled\":true,\"runtimeVersion\":\"yahux\"}").toObject(AuthPlatform.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("yahux", model.runtimeVersion());
- }
-
- @Test
- public void testSerialize() {
- 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 41758c752853..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableOperationsTests.java
+++ /dev/null
@@ -1,91 +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;
-import org.junit.jupiter.api.Test;
-
-public final class AvailableOperationsTests {
- @Test
- public void testDeserialize() {
- AvailableOperations model =
- BinaryData
- .fromString(
- "{\"value\":[{\"name\":\"kambtrnegvmnvuqe\",\"isDataAction\":false,\"display\":{\"provider\":\"pa\",\"resource\":\"jbkkdmflvestmjl\",\"operation\":\"ril\",\"description\":\"apeewchpxlkt\"},\"origin\":\"uziycsl\"},{\"name\":\"ufuztcktyhjtq\",\"isDataAction\":true,\"display\":{\"provider\":\"ulwm\",\"resource\":\"qzz\",\"operation\":\"jvpglydzgk\",\"description\":\"qeevt\"},\"origin\":\"pryu\"},{\"name\":\"wytpzdmovz\",\"isDataAction\":false,\"display\":{\"provider\":\"wzqa\",\"resource\":\"lgzurig\",\"operation\":\"ecxn\",\"description\":\"icokpv\"},\"origin\":\"lqtmldgxob\"},{\"name\":\"rclnpkc\",\"isDataAction\":false,\"display\":{\"provider\":\"iykhy\",\"resource\":\"fvjlboxqvkjlmx\",\"operation\":\"mdy\",\"description\":\"dwdigumb\"},\"origin\":\"aauzzptjazysd\"}],\"nextLink\":\"ezwwv\"}")
- .toObject(AvailableOperations.class);
- Assertions.assertEquals("kambtrnegvmnvuqe", model.value().get(0).name());
- Assertions.assertEquals(false, model.value().get(0).isDataAction());
- Assertions.assertEquals("pa", model.value().get(0).display().provider());
- Assertions.assertEquals("jbkkdmflvestmjl", model.value().get(0).display().resource());
- Assertions.assertEquals("ril", model.value().get(0).display().operation());
- Assertions.assertEquals("apeewchpxlkt", model.value().get(0).display().description());
- Assertions.assertEquals("uziycsl", model.value().get(0).origin());
- Assertions.assertEquals("ezwwv", model.nextLink());
- }
-
- @Test
- public void testSerialize() {
- AvailableOperations model =
- new AvailableOperations()
- .withValue(
- Arrays
- .asList(
- new OperationDetailInner()
- .withName("kambtrnegvmnvuqe")
- .withIsDataAction(false)
- .withDisplay(
- new OperationDisplay()
- .withProvider("pa")
- .withResource("jbkkdmflvestmjl")
- .withOperation("ril")
- .withDescription("apeewchpxlkt"))
- .withOrigin("uziycsl"),
- new OperationDetailInner()
- .withName("ufuztcktyhjtq")
- .withIsDataAction(true)
- .withDisplay(
- new OperationDisplay()
- .withProvider("ulwm")
- .withResource("qzz")
- .withOperation("jvpglydzgk")
- .withDescription("qeevt"))
- .withOrigin("pryu"),
- new OperationDetailInner()
- .withName("wytpzdmovz")
- .withIsDataAction(false)
- .withDisplay(
- new OperationDisplay()
- .withProvider("wzqa")
- .withResource("lgzurig")
- .withOperation("ecxn")
- .withDescription("icokpv"))
- .withOrigin("lqtmldgxob"),
- new OperationDetailInner()
- .withName("rclnpkc")
- .withIsDataAction(false)
- .withDisplay(
- new OperationDisplay()
- .withProvider("iykhy")
- .withResource("fvjlboxqvkjlmx")
- .withOperation("mdy")
- .withDescription("dwdigumb"))
- .withOrigin("aauzzptjazysd")))
- .withNextLink("ezwwv");
- model = BinaryData.fromObject(model).toObject(AvailableOperations.class);
- Assertions.assertEquals("kambtrnegvmnvuqe", model.value().get(0).name());
- Assertions.assertEquals(false, model.value().get(0).isDataAction());
- Assertions.assertEquals("pa", model.value().get(0).display().provider());
- Assertions.assertEquals("jbkkdmflvestmjl", model.value().get(0).display().resource());
- Assertions.assertEquals("ril", model.value().get(0).display().operation());
- Assertions.assertEquals("apeewchpxlkt", model.value().get(0).display().description());
- Assertions.assertEquals("uziycsl", model.value().get(0).origin());
- Assertions.assertEquals("ezwwv", 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 6da5265f9513..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfileInnerTests.java
+++ /dev/null
@@ -1,51 +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.Category;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AvailableWorkloadProfileInnerTests {
- @Test
- public void testDeserialize() {
- AvailableWorkloadProfileInner model =
- BinaryData
- .fromString(
- "{\"location\":\"ruzslzoj\",\"properties\":{\"billingMeterCategory\":\"PremiumSkuMemoryOptimized\",\"applicability\":\"Custom\",\"cores\":1500212037,\"memoryGiB\":1889500647,\"displayName\":\"ngfdgugeyzihgrky\"},\"id\":\"zabs\",\"name\":\"mfp\",\"type\":\"hojeevy\"}")
- .toObject(AvailableWorkloadProfileInner.class);
- Assertions.assertEquals("ruzslzoj", model.location());
- Assertions.assertEquals(Category.PREMIUM_SKU_MEMORY_OPTIMIZED, model.properties().billingMeterCategory());
- Assertions.assertEquals(Applicability.CUSTOM, model.properties().applicability());
- Assertions.assertEquals(1500212037, model.properties().cores());
- Assertions.assertEquals(1889500647, model.properties().memoryGiB());
- Assertions.assertEquals("ngfdgugeyzihgrky", model.properties().displayName());
- }
-
- @Test
- public void testSerialize() {
- AvailableWorkloadProfileInner model =
- new AvailableWorkloadProfileInner()
- .withLocation("ruzslzoj")
- .withProperties(
- new AvailableWorkloadProfileProperties()
- .withBillingMeterCategory(Category.PREMIUM_SKU_MEMORY_OPTIMIZED)
- .withApplicability(Applicability.CUSTOM)
- .withCores(1500212037)
- .withMemoryGiB(1889500647)
- .withDisplayName("ngfdgugeyzihgrky"));
- model = BinaryData.fromObject(model).toObject(AvailableWorkloadProfileInner.class);
- Assertions.assertEquals("ruzslzoj", model.location());
- Assertions.assertEquals(Category.PREMIUM_SKU_MEMORY_OPTIMIZED, model.properties().billingMeterCategory());
- Assertions.assertEquals(Applicability.CUSTOM, model.properties().applicability());
- Assertions.assertEquals(1500212037, model.properties().cores());
- Assertions.assertEquals(1889500647, model.properties().memoryGiB());
- Assertions.assertEquals("ngfdgugeyzihgrky", 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 1d1c287b08cc..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilePropertiesTests.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.Applicability;
-import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties;
-import com.azure.resourcemanager.appcontainers.models.Category;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AvailableWorkloadProfilePropertiesTests {
- @Test
- public void testDeserialize() {
- AvailableWorkloadProfileProperties model =
- BinaryData
- .fromString(
- "{\"billingMeterCategory\":\"PremiumSkuGeneralPurpose\",\"applicability\":\"LocationDefault\",\"cores\":1792442027,\"memoryGiB\":296401749,\"displayName\":\"gomfgbeglq\"}")
- .toObject(AvailableWorkloadProfileProperties.class);
- Assertions.assertEquals(Category.PREMIUM_SKU_GENERAL_PURPOSE, model.billingMeterCategory());
- Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.applicability());
- Assertions.assertEquals(1792442027, model.cores());
- Assertions.assertEquals(296401749, model.memoryGiB());
- Assertions.assertEquals("gomfgbeglq", model.displayName());
- }
-
- @Test
- public void testSerialize() {
- AvailableWorkloadProfileProperties model =
- new AvailableWorkloadProfileProperties()
- .withBillingMeterCategory(Category.PREMIUM_SKU_GENERAL_PURPOSE)
- .withApplicability(Applicability.LOCATION_DEFAULT)
- .withCores(1792442027)
- .withMemoryGiB(296401749)
- .withDisplayName("gomfgbeglq");
- model = BinaryData.fromObject(model).toObject(AvailableWorkloadProfileProperties.class);
- Assertions.assertEquals(Category.PREMIUM_SKU_GENERAL_PURPOSE, model.billingMeterCategory());
- Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.applicability());
- Assertions.assertEquals(1792442027, model.cores());
- Assertions.assertEquals(296401749, model.memoryGiB());
- Assertions.assertEquals("gomfgbeglq", 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 da7e816f2cf1..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesCollectionTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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 com.azure.resourcemanager.appcontainers.models.Category;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AvailableWorkloadProfilesCollectionTests {
- @Test
- public void testDeserialize() {
- AvailableWorkloadProfilesCollection model =
- BinaryData
- .fromString(
- "{\"value\":[{\"location\":\"psttexoq\",\"properties\":{\"billingMeterCategory\":\"PremiumSkuGeneralPurpose\",\"applicability\":\"Custom\",\"cores\":402556977,\"memoryGiB\":130119392,\"displayName\":\"uncuw\"},\"id\":\"spkcdqzh\",\"name\":\"ctddun\",\"type\":\"ndy\"},{\"location\":\"chrqb\",\"properties\":{\"billingMeterCategory\":\"PremiumSkuGeneralPurpose\",\"applicability\":\"Custom\",\"cores\":1318617256,\"memoryGiB\":4442645,\"displayName\":\"wboxjumvqqo\"},\"id\":\"hrraiouaubrj\",\"name\":\"loqxfuojrngif\",\"type\":\"rzpasccbiuimzdly\"}],\"nextLink\":\"fqwmkyoquf\"}")
- .toObject(AvailableWorkloadProfilesCollection.class);
- Assertions.assertEquals("psttexoq", model.value().get(0).location());
- Assertions
- .assertEquals(
- Category.PREMIUM_SKU_GENERAL_PURPOSE, model.value().get(0).properties().billingMeterCategory());
- Assertions.assertEquals(Applicability.CUSTOM, model.value().get(0).properties().applicability());
- Assertions.assertEquals(402556977, model.value().get(0).properties().cores());
- Assertions.assertEquals(130119392, model.value().get(0).properties().memoryGiB());
- Assertions.assertEquals("uncuw", model.value().get(0).properties().displayName());
- }
-
- @Test
- public void testSerialize() {
- AvailableWorkloadProfilesCollection model =
- new AvailableWorkloadProfilesCollection()
- .withValue(
- Arrays
- .asList(
- new AvailableWorkloadProfileInner()
- .withLocation("psttexoq")
- .withProperties(
- new AvailableWorkloadProfileProperties()
- .withBillingMeterCategory(Category.PREMIUM_SKU_GENERAL_PURPOSE)
- .withApplicability(Applicability.CUSTOM)
- .withCores(402556977)
- .withMemoryGiB(130119392)
- .withDisplayName("uncuw")),
- new AvailableWorkloadProfileInner()
- .withLocation("chrqb")
- .withProperties(
- new AvailableWorkloadProfileProperties()
- .withBillingMeterCategory(Category.PREMIUM_SKU_GENERAL_PURPOSE)
- .withApplicability(Applicability.CUSTOM)
- .withCores(1318617256)
- .withMemoryGiB(4442645)
- .withDisplayName("wboxjumvqqo"))));
- model = BinaryData.fromObject(model).toObject(AvailableWorkloadProfilesCollection.class);
- Assertions.assertEquals("psttexoq", model.value().get(0).location());
- Assertions
- .assertEquals(
- Category.PREMIUM_SKU_GENERAL_PURPOSE, model.value().get(0).properties().billingMeterCategory());
- Assertions.assertEquals(Applicability.CUSTOM, model.value().get(0).properties().applicability());
- Assertions.assertEquals(402556977, model.value().get(0).properties().cores());
- Assertions.assertEquals(130119392, model.value().get(0).properties().memoryGiB());
- Assertions.assertEquals("uncuw", 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 052ac47bc556..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.Applicability;
-import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfile;
-import com.azure.resourcemanager.appcontainers.models.Category;
-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\":\"idmhmwf\",\"properties\":{\"billingMeterCategory\":\"PremiumSkuComputeOptimized\",\"applicability\":\"LocationDefault\",\"cores\":411481219,\"memoryGiB\":323271862,\"displayName\":\"ccrrvweyoxoyyu\"},\"id\":\"haim\",\"name\":\"oir\",\"type\":\"qboshbra\"}]}";
-
- 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("wwgbdv", Context.NONE);
-
- Assertions.assertEquals("idmhmwf", response.iterator().next().location());
- Assertions
- .assertEquals(
- Category.PREMIUM_SKU_COMPUTE_OPTIMIZED, response.iterator().next().properties().billingMeterCategory());
- Assertions
- .assertEquals(Applicability.LOCATION_DEFAULT, response.iterator().next().properties().applicability());
- Assertions.assertEquals(411481219, response.iterator().next().properties().cores());
- Assertions.assertEquals(323271862, response.iterator().next().properties().memoryGiB());
- Assertions.assertEquals("ccrrvweyoxoyyu", 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 e0b3f0df7873..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryLoginTests.java
+++ /dev/null
@@ -1,32 +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;
-import org.junit.jupiter.api.Test;
-
-public final class AzureActiveDirectoryLoginTests {
- @Test
- public void testDeserialize() {
- AzureActiveDirectoryLogin model =
- BinaryData
- .fromString("{\"loginParameters\":[\"eju\"],\"disableWWWAuthenticate\":true}")
- .toObject(AzureActiveDirectoryLogin.class);
- Assertions.assertEquals("eju", model.loginParameters().get(0));
- Assertions.assertEquals(true, model.disableWwwAuthenticate());
- }
-
- @Test
- public void testSerialize() {
- AzureActiveDirectoryLogin model =
- new AzureActiveDirectoryLogin().withLoginParameters(Arrays.asList("eju")).withDisableWwwAuthenticate(true);
- model = BinaryData.fromObject(model).toObject(AzureActiveDirectoryLogin.class);
- Assertions.assertEquals("eju", 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/AzureActiveDirectoryRegistrationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryRegistrationTests.java
deleted file mode 100644
index 59a59d6c4bc4..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryRegistrationTests.java
+++ /dev/null
@@ -1,46 +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.AzureActiveDirectoryRegistration;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AzureActiveDirectoryRegistrationTests {
- @Test
- public void testDeserialize() {
- AzureActiveDirectoryRegistration model =
- BinaryData
- .fromString(
- "{\"openIdIssuer\":\"ddgmb\",\"clientId\":\"ex\",\"clientSecretSettingName\":\"bhtqqrolfpfpsa\",\"clientSecretCertificateThumbprint\":\"bquxigjy\",\"clientSecretCertificateSubjectAlternativeName\":\"zjaoyfhrtxil\",\"clientSecretCertificateIssuer\":\"rkujy\"}")
- .toObject(AzureActiveDirectoryRegistration.class);
- Assertions.assertEquals("ddgmb", model.openIdIssuer());
- Assertions.assertEquals("ex", model.clientId());
- Assertions.assertEquals("bhtqqrolfpfpsa", model.clientSecretSettingName());
- Assertions.assertEquals("bquxigjy", model.clientSecretCertificateThumbprint());
- Assertions.assertEquals("zjaoyfhrtxil", model.clientSecretCertificateSubjectAlternativeName());
- Assertions.assertEquals("rkujy", model.clientSecretCertificateIssuer());
- }
-
- @Test
- public void testSerialize() {
- AzureActiveDirectoryRegistration model =
- new AzureActiveDirectoryRegistration()
- .withOpenIdIssuer("ddgmb")
- .withClientId("ex")
- .withClientSecretSettingName("bhtqqrolfpfpsa")
- .withClientSecretCertificateThumbprint("bquxigjy")
- .withClientSecretCertificateSubjectAlternativeName("zjaoyfhrtxil")
- .withClientSecretCertificateIssuer("rkujy");
- model = BinaryData.fromObject(model).toObject(AzureActiveDirectoryRegistration.class);
- Assertions.assertEquals("ddgmb", model.openIdIssuer());
- Assertions.assertEquals("ex", model.clientId());
- Assertions.assertEquals("bhtqqrolfpfpsa", model.clientSecretSettingName());
- Assertions.assertEquals("bquxigjy", model.clientSecretCertificateThumbprint());
- Assertions.assertEquals("zjaoyfhrtxil", model.clientSecretCertificateSubjectAlternativeName());
- Assertions.assertEquals("rkujy", model.clientSecretCertificateIssuer());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryTests.java
deleted file mode 100644
index 0b1d3c18501e..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryTests.java
+++ /dev/null
@@ -1,87 +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.AzureActiveDirectory;
-import com.azure.resourcemanager.appcontainers.models.AzureActiveDirectoryLogin;
-import com.azure.resourcemanager.appcontainers.models.AzureActiveDirectoryRegistration;
-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;
-import org.junit.jupiter.api.Test;
-
-public final class AzureActiveDirectoryTests {
- @Test
- public void testDeserialize() {
- AzureActiveDirectory model =
- BinaryData
- .fromString(
- "{\"enabled\":false,\"registration\":{\"openIdIssuer\":\"pdappds\",\"clientId\":\"kvwrwjfeu\",\"clientSecretSettingName\":\"hutje\",\"clientSecretCertificateThumbprint\":\"mrldhu\",\"clientSecretCertificateSubjectAlternativeName\":\"zzd\",\"clientSecretCertificateIssuer\":\"qxhocdgeablgphut\"},\"login\":{\"loginParameters\":[\"vkaozwyiftyhxhur\",\"k\"],\"disableWWWAuthenticate\":false},\"validation\":{\"jwtClaimChecks\":{\"allowedGroups\":[\"iwpwcuk\",\"fkgiawxk\",\"ryplwckbasyypn\"],\"allowedClientApplications\":[\"sgcbac\",\"hejkotynqgou\",\"zndlikwy\",\"kgfg\"]},\"allowedAudiences\":[\"adgakeqsrxybz\",\"qedqytbciqfoufl\",\"mnkzsmod\",\"glougpbk\"],\"defaultAuthorizationPolicy\":{\"allowedApplications\":[\"duqkt\",\"pspwgcuertu\",\"kdosvqw\",\"bmdg\"]}},\"isAutoProvisioned\":true}")
- .toObject(AzureActiveDirectory.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("pdappds", model.registration().openIdIssuer());
- Assertions.assertEquals("kvwrwjfeu", model.registration().clientId());
- Assertions.assertEquals("hutje", model.registration().clientSecretSettingName());
- Assertions.assertEquals("mrldhu", model.registration().clientSecretCertificateThumbprint());
- Assertions.assertEquals("zzd", model.registration().clientSecretCertificateSubjectAlternativeName());
- Assertions.assertEquals("qxhocdgeablgphut", model.registration().clientSecretCertificateIssuer());
- Assertions.assertEquals("vkaozwyiftyhxhur", model.login().loginParameters().get(0));
- Assertions.assertEquals(false, model.login().disableWwwAuthenticate());
- Assertions.assertEquals("iwpwcuk", model.validation().jwtClaimChecks().allowedGroups().get(0));
- Assertions.assertEquals("sgcbac", model.validation().jwtClaimChecks().allowedClientApplications().get(0));
- Assertions.assertEquals("adgakeqsrxybz", model.validation().allowedAudiences().get(0));
- Assertions.assertEquals("duqkt", model.validation().defaultAuthorizationPolicy().allowedApplications().get(0));
- Assertions.assertEquals(true, model.isAutoProvisioned());
- }
-
- @Test
- public void testSerialize() {
- AzureActiveDirectory model =
- new AzureActiveDirectory()
- .withEnabled(false)
- .withRegistration(
- new AzureActiveDirectoryRegistration()
- .withOpenIdIssuer("pdappds")
- .withClientId("kvwrwjfeu")
- .withClientSecretSettingName("hutje")
- .withClientSecretCertificateThumbprint("mrldhu")
- .withClientSecretCertificateSubjectAlternativeName("zzd")
- .withClientSecretCertificateIssuer("qxhocdgeablgphut"))
- .withLogin(
- new AzureActiveDirectoryLogin()
- .withLoginParameters(Arrays.asList("vkaozwyiftyhxhur", "k"))
- .withDisableWwwAuthenticate(false))
- .withValidation(
- new AzureActiveDirectoryValidation()
- .withJwtClaimChecks(
- new JwtClaimChecks()
- .withAllowedGroups(Arrays.asList("iwpwcuk", "fkgiawxk", "ryplwckbasyypn"))
- .withAllowedClientApplications(
- Arrays.asList("sgcbac", "hejkotynqgou", "zndlikwy", "kgfg")))
- .withAllowedAudiences(Arrays.asList("adgakeqsrxybz", "qedqytbciqfoufl", "mnkzsmod", "glougpbk"))
- .withDefaultAuthorizationPolicy(
- new DefaultAuthorizationPolicy()
- .withAllowedApplications(Arrays.asList("duqkt", "pspwgcuertu", "kdosvqw", "bmdg"))))
- .withIsAutoProvisioned(true);
- model = BinaryData.fromObject(model).toObject(AzureActiveDirectory.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("pdappds", model.registration().openIdIssuer());
- Assertions.assertEquals("kvwrwjfeu", model.registration().clientId());
- Assertions.assertEquals("hutje", model.registration().clientSecretSettingName());
- Assertions.assertEquals("mrldhu", model.registration().clientSecretCertificateThumbprint());
- Assertions.assertEquals("zzd", model.registration().clientSecretCertificateSubjectAlternativeName());
- Assertions.assertEquals("qxhocdgeablgphut", model.registration().clientSecretCertificateIssuer());
- Assertions.assertEquals("vkaozwyiftyhxhur", model.login().loginParameters().get(0));
- Assertions.assertEquals(false, model.login().disableWwwAuthenticate());
- Assertions.assertEquals("iwpwcuk", model.validation().jwtClaimChecks().allowedGroups().get(0));
- Assertions.assertEquals("sgcbac", model.validation().jwtClaimChecks().allowedClientApplications().get(0));
- Assertions.assertEquals("adgakeqsrxybz", model.validation().allowedAudiences().get(0));
- Assertions.assertEquals("duqkt", model.validation().defaultAuthorizationPolicy().allowedApplications().get(0));
- Assertions.assertEquals(true, model.isAutoProvisioned());
- }
-}
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 92d5eb1aa61a..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryValidationTests.java
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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;
-import org.junit.jupiter.api.Test;
-
-public final class AzureActiveDirectoryValidationTests {
- @Test
- public void testDeserialize() {
- AzureActiveDirectoryValidation model =
- BinaryData
- .fromString(
- "{\"jwtClaimChecks\":{\"allowedGroups\":[\"lyxwjkcprbnwbx\",\"jvtbvpyss\",\"dnrujqguhmuouqfp\",\"wzwbnguitn\"],\"allowedClientApplications\":[\"zga\",\"x\"]},\"allowedAudiences\":[\"zuckyfi\",\"rfidfvzwdz\",\"htymw\",\"sdkf\"],\"defaultAuthorizationPolicy\":{\"allowedPrincipals\":{\"groups\":[\"nteiwaopv\",\"mijcmmxdcufufs\"],\"identities\":[\"mzidnsezcxtb\",\"sgfyccsnew\"]},\"allowedApplications\":[\"z\",\"eiachboosflnr\"]}}")
- .toObject(AzureActiveDirectoryValidation.class);
- Assertions.assertEquals("lyxwjkcprbnwbx", model.jwtClaimChecks().allowedGroups().get(0));
- Assertions.assertEquals("zga", model.jwtClaimChecks().allowedClientApplications().get(0));
- Assertions.assertEquals("zuckyfi", model.allowedAudiences().get(0));
- Assertions.assertEquals("nteiwaopv", model.defaultAuthorizationPolicy().allowedPrincipals().groups().get(0));
- Assertions
- .assertEquals("mzidnsezcxtb", model.defaultAuthorizationPolicy().allowedPrincipals().identities().get(0));
- Assertions.assertEquals("z", model.defaultAuthorizationPolicy().allowedApplications().get(0));
- }
-
- @Test
- public void testSerialize() {
- AzureActiveDirectoryValidation model =
- new AzureActiveDirectoryValidation()
- .withJwtClaimChecks(
- new JwtClaimChecks()
- .withAllowedGroups(
- Arrays.asList("lyxwjkcprbnwbx", "jvtbvpyss", "dnrujqguhmuouqfp", "wzwbnguitn"))
- .withAllowedClientApplications(Arrays.asList("zga", "x")))
- .withAllowedAudiences(Arrays.asList("zuckyfi", "rfidfvzwdz", "htymw", "sdkf"))
- .withDefaultAuthorizationPolicy(
- new DefaultAuthorizationPolicy()
- .withAllowedPrincipals(
- new AllowedPrincipals()
- .withGroups(Arrays.asList("nteiwaopv", "mijcmmxdcufufs"))
- .withIdentities(Arrays.asList("mzidnsezcxtb", "sgfyccsnew")))
- .withAllowedApplications(Arrays.asList("z", "eiachboosflnr")));
- model = BinaryData.fromObject(model).toObject(AzureActiveDirectoryValidation.class);
- Assertions.assertEquals("lyxwjkcprbnwbx", model.jwtClaimChecks().allowedGroups().get(0));
- Assertions.assertEquals("zga", model.jwtClaimChecks().allowedClientApplications().get(0));
- Assertions.assertEquals("zuckyfi", model.allowedAudiences().get(0));
- Assertions.assertEquals("nteiwaopv", model.defaultAuthorizationPolicy().allowedPrincipals().groups().get(0));
- Assertions
- .assertEquals("mzidnsezcxtb", model.defaultAuthorizationPolicy().allowedPrincipals().identities().get(0));
- Assertions.assertEquals("z", 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 900228f67613..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsRegistrationTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.AzureStaticWebAppsRegistration;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AzureStaticWebAppsRegistrationTests {
- @Test
- public void testDeserialize() {
- AzureStaticWebAppsRegistration model =
- BinaryData.fromString("{\"clientId\":\"cpecfvmmcoofs\"}").toObject(AzureStaticWebAppsRegistration.class);
- Assertions.assertEquals("cpecfvmmcoofs", model.clientId());
- }
-
- @Test
- public void testSerialize() {
- AzureStaticWebAppsRegistration model = new AzureStaticWebAppsRegistration().withClientId("cpecfvmmcoofs");
- model = BinaryData.fromObject(model).toObject(AzureStaticWebAppsRegistration.class);
- Assertions.assertEquals("cpecfvmmcoofs", 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 3924480b2732..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsTests.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.AzureStaticWebApps;
-import com.azure.resourcemanager.appcontainers.models.AzureStaticWebAppsRegistration;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class AzureStaticWebAppsTests {
- @Test
- public void testDeserialize() {
- AzureStaticWebApps model =
- BinaryData
- .fromString("{\"enabled\":true,\"registration\":{\"clientId\":\"gpphrcgyn\"}}")
- .toObject(AzureStaticWebApps.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("gpphrcgyn", model.registration().clientId());
- }
-
- @Test
- public void testSerialize() {
- AzureStaticWebApps model =
- new AzureStaticWebApps()
- .withEnabled(true)
- .withRegistration(new AzureStaticWebAppsRegistration().withClientId("gpphrcgyn"));
- model = BinaryData.fromObject(model).toObject(AzureStaticWebApps.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("gpphrcgyn", model.registration().clientId());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BaseContainerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BaseContainerTests.java
deleted file mode 100644
index ca32730bb673..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BaseContainerTests.java
+++ /dev/null
@@ -1,73 +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.BaseContainer;
-import com.azure.resourcemanager.appcontainers.models.ContainerResources;
-import com.azure.resourcemanager.appcontainers.models.EnvironmentVar;
-import com.azure.resourcemanager.appcontainers.models.VolumeMount;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class BaseContainerTests {
- @Test
- public void testDeserialize() {
- BaseContainer model =
- BinaryData
- .fromString(
- "{\"image\":\"wmgxcxrsl\",\"name\":\"utwu\",\"command\":[\"rpkhjwn\",\"yqsluic\",\"dggkzzlvmbmpa\"],\"args\":[\"dfvue\",\"yw\",\"bpfvm\"],\"env\":[{\"name\":\"fouyf\",\"value\":\"akcp\",\"secretRef\":\"yzvqt\"},{\"name\":\"ubex\",\"value\":\"zksmondj\",\"secretRef\":\"uxvypomgkopkwh\"}],\"resources\":{\"cpu\":52.49920535887086,\"memory\":\"qgxy\",\"ephemeralStorage\":\"ocmbqfqvmkcxoza\"},\"volumeMounts\":[{\"volumeName\":\"lxprglyatddckcbc\",\"mountPath\":\"jrjxgciqibrhosx\"},{\"volumeName\":\"qrhzoymibmrqyib\",\"mountPath\":\"wfluszdt\"},{\"volumeName\":\"rkwofyyvoqa\",\"mountPath\":\"iexpbtgiwbwo\"}]}")
- .toObject(BaseContainer.class);
- Assertions.assertEquals("wmgxcxrsl", model.image());
- Assertions.assertEquals("utwu", model.name());
- Assertions.assertEquals("rpkhjwn", model.command().get(0));
- Assertions.assertEquals("dfvue", model.args().get(0));
- Assertions.assertEquals("fouyf", model.env().get(0).name());
- Assertions.assertEquals("akcp", model.env().get(0).value());
- Assertions.assertEquals("yzvqt", model.env().get(0).secretRef());
- Assertions.assertEquals(52.49920535887086D, model.resources().cpu());
- Assertions.assertEquals("qgxy", model.resources().memory());
- Assertions.assertEquals("lxprglyatddckcbc", model.volumeMounts().get(0).volumeName());
- Assertions.assertEquals("jrjxgciqibrhosx", model.volumeMounts().get(0).mountPath());
- }
-
- @Test
- public void testSerialize() {
- BaseContainer model =
- new BaseContainer()
- .withImage("wmgxcxrsl")
- .withName("utwu")
- .withCommand(Arrays.asList("rpkhjwn", "yqsluic", "dggkzzlvmbmpa"))
- .withArgs(Arrays.asList("dfvue", "yw", "bpfvm"))
- .withEnv(
- Arrays
- .asList(
- new EnvironmentVar().withName("fouyf").withValue("akcp").withSecretRef("yzvqt"),
- new EnvironmentVar()
- .withName("ubex")
- .withValue("zksmondj")
- .withSecretRef("uxvypomgkopkwh")))
- .withResources(new ContainerResources().withCpu(52.49920535887086D).withMemory("qgxy"))
- .withVolumeMounts(
- Arrays
- .asList(
- new VolumeMount().withVolumeName("lxprglyatddckcbc").withMountPath("jrjxgciqibrhosx"),
- new VolumeMount().withVolumeName("qrhzoymibmrqyib").withMountPath("wfluszdt"),
- new VolumeMount().withVolumeName("rkwofyyvoqa").withMountPath("iexpbtgiwbwo")));
- model = BinaryData.fromObject(model).toObject(BaseContainer.class);
- Assertions.assertEquals("wmgxcxrsl", model.image());
- Assertions.assertEquals("utwu", model.name());
- Assertions.assertEquals("rpkhjwn", model.command().get(0));
- Assertions.assertEquals("dfvue", model.args().get(0));
- Assertions.assertEquals("fouyf", model.env().get(0).name());
- Assertions.assertEquals("akcp", model.env().get(0).value());
- Assertions.assertEquals("yzvqt", model.env().get(0).secretRef());
- Assertions.assertEquals(52.49920535887086D, model.resources().cpu());
- Assertions.assertEquals("qgxy", model.resources().memory());
- Assertions.assertEquals("lxprglyatddckcbc", model.volumeMounts().get(0).volumeName());
- Assertions.assertEquals("jrjxgciqibrhosx", model.volumeMounts().get(0).mountPath());
- }
-}
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 e7bd249fa4fc..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterCollectionInnerTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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 com.azure.resourcemanager.appcontainers.models.Category;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class BillingMeterCollectionInnerTests {
- @Test
- public void testDeserialize() {
- BillingMeterCollectionInner model =
- BinaryData
- .fromString(
- "{\"value\":[{\"location\":\"o\",\"properties\":{\"category\":\"PremiumSkuComputeOptimized\",\"meterType\":\"nlu\",\"displayName\":\"krrfx\"},\"id\":\"ebtijvacvbmqzbqq\",\"name\":\"lajrnwxacevehj\",\"type\":\"uyxoaf\"},{\"location\":\"oqltfae\",\"properties\":{\"category\":\"PremiumSkuMemoryOptimized\",\"meterType\":\"fgvxirpghriypoqe\",\"displayName\":\"lqhykprlpyz\"},\"id\":\"ciqdsme\",\"name\":\"iitdfuxt\",\"type\":\"asiibmiybnnust\"},{\"location\":\"ljhnmgixhcmav\",\"properties\":{\"category\":\"PremiumSkuMemoryOptimized\",\"meterType\":\"dorhcgyyp\",\"displayName\":\"twypundmbxh\"},\"id\":\"cmjkavlgorbmftpm\",\"name\":\"tzfjltf\",\"type\":\"nzcyjtotp\"},{\"location\":\"pvpbdbzqgqqiheds\",\"properties\":{\"category\":\"PremiumSkuMemoryOptimized\",\"meterType\":\"mkyi\",\"displayName\":\"ysi\"},\"id\":\"gqcwdhohsdtmc\",\"name\":\"zsu\",\"type\":\"cohdx\"}]}")
- .toObject(BillingMeterCollectionInner.class);
- Assertions.assertEquals("o", model.value().get(0).location());
- Assertions.assertEquals(Category.PREMIUM_SKU_COMPUTE_OPTIMIZED, model.value().get(0).properties().category());
- Assertions.assertEquals("nlu", model.value().get(0).properties().meterType());
- Assertions.assertEquals("krrfx", model.value().get(0).properties().displayName());
- }
-
- @Test
- public void testSerialize() {
- BillingMeterCollectionInner model =
- new BillingMeterCollectionInner()
- .withValue(
- Arrays
- .asList(
- new BillingMeter()
- .withLocation("o")
- .withProperties(
- new BillingMeterProperties()
- .withCategory(Category.PREMIUM_SKU_COMPUTE_OPTIMIZED)
- .withMeterType("nlu")
- .withDisplayName("krrfx")),
- new BillingMeter()
- .withLocation("oqltfae")
- .withProperties(
- new BillingMeterProperties()
- .withCategory(Category.PREMIUM_SKU_MEMORY_OPTIMIZED)
- .withMeterType("fgvxirpghriypoqe")
- .withDisplayName("lqhykprlpyz")),
- new BillingMeter()
- .withLocation("ljhnmgixhcmav")
- .withProperties(
- new BillingMeterProperties()
- .withCategory(Category.PREMIUM_SKU_MEMORY_OPTIMIZED)
- .withMeterType("dorhcgyyp")
- .withDisplayName("twypundmbxh")),
- new BillingMeter()
- .withLocation("pvpbdbzqgqqiheds")
- .withProperties(
- new BillingMeterProperties()
- .withCategory(Category.PREMIUM_SKU_MEMORY_OPTIMIZED)
- .withMeterType("mkyi")
- .withDisplayName("ysi"))));
- model = BinaryData.fromObject(model).toObject(BillingMeterCollectionInner.class);
- Assertions.assertEquals("o", model.value().get(0).location());
- Assertions.assertEquals(Category.PREMIUM_SKU_COMPUTE_OPTIMIZED, model.value().get(0).properties().category());
- Assertions.assertEquals("nlu", model.value().get(0).properties().meterType());
- Assertions.assertEquals("krrfx", 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 1e151c8e438a..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterPropertiesTests.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.models.BillingMeterProperties;
-import com.azure.resourcemanager.appcontainers.models.Category;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class BillingMeterPropertiesTests {
- @Test
- public void testDeserialize() {
- BillingMeterProperties model =
- BinaryData
- .fromString(
- "{\"category\":\"PremiumSkuGeneralPurpose\",\"meterType\":\"eqocljmygvk\",\"displayName\":\"kjjeokbz\"}")
- .toObject(BillingMeterProperties.class);
- Assertions.assertEquals(Category.PREMIUM_SKU_GENERAL_PURPOSE, model.category());
- Assertions.assertEquals("eqocljmygvk", model.meterType());
- Assertions.assertEquals("kjjeokbz", model.displayName());
- }
-
- @Test
- public void testSerialize() {
- BillingMeterProperties model =
- new BillingMeterProperties()
- .withCategory(Category.PREMIUM_SKU_GENERAL_PURPOSE)
- .withMeterType("eqocljmygvk")
- .withDisplayName("kjjeokbz");
- model = BinaryData.fromObject(model).toObject(BillingMeterProperties.class);
- Assertions.assertEquals(Category.PREMIUM_SKU_GENERAL_PURPOSE, model.category());
- Assertions.assertEquals("eqocljmygvk", model.meterType());
- Assertions.assertEquals("kjjeokbz", 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 c35f18e825ce..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterTests.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.BillingMeter;
-import com.azure.resourcemanager.appcontainers.models.BillingMeterProperties;
-import com.azure.resourcemanager.appcontainers.models.Category;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class BillingMeterTests {
- @Test
- public void testDeserialize() {
- BillingMeter model =
- BinaryData
- .fromString(
- "{\"location\":\"lm\",\"properties\":{\"category\":\"PremiumSkuComputeOptimized\",\"meterType\":\"cvhd\",\"displayName\":\"v\"},\"id\":\"qxeysko\",\"name\":\"qzinkfkbg\",\"type\":\"z\"}")
- .toObject(BillingMeter.class);
- Assertions.assertEquals("lm", model.location());
- Assertions.assertEquals(Category.PREMIUM_SKU_COMPUTE_OPTIMIZED, model.properties().category());
- Assertions.assertEquals("cvhd", model.properties().meterType());
- Assertions.assertEquals("v", model.properties().displayName());
- }
-
- @Test
- public void testSerialize() {
- BillingMeter model =
- new BillingMeter()
- .withLocation("lm")
- .withProperties(
- new BillingMeterProperties()
- .withCategory(Category.PREMIUM_SKU_COMPUTE_OPTIMIZED)
- .withMeterType("cvhd")
- .withDisplayName("v"));
- model = BinaryData.fromObject(model).toObject(BillingMeter.class);
- Assertions.assertEquals("lm", model.location());
- Assertions.assertEquals(Category.PREMIUM_SKU_COMPUTE_OPTIMIZED, model.properties().category());
- Assertions.assertEquals("cvhd", model.properties().meterType());
- Assertions.assertEquals("v", model.properties().displayName());
- }
-}
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 11d95a597703..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatePatchTests.java
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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;
-import org.junit.jupiter.api.Test;
-
-public final class CertificatePatchTests {
- @Test
- public void testDeserialize() {
- CertificatePatch model =
- BinaryData
- .fromString(
- "{\"tags\":{\"jc\":\"gkbugrjqct\",\"cuplcplcwkhih\":\"isofieypefojyqd\",\"cjhfgmvecactxmw\":\"hlhzdsqtzbsrgno\",\"ovekqvgqouwi\":\"teyowclu\"}}")
- .toObject(CertificatePatch.class);
- Assertions.assertEquals("gkbugrjqct", model.tags().get("jc"));
- }
-
- @Test
- public void testSerialize() {
- CertificatePatch model =
- new CertificatePatch()
- .withTags(
- mapOf(
- "jc",
- "gkbugrjqct",
- "cuplcplcwkhih",
- "isofieypefojyqd",
- "cjhfgmvecactxmw",
- "hlhzdsqtzbsrgno",
- "ovekqvgqouwi",
- "teyowclu"));
- model = BinaryData.fromObject(model).toObject(CertificatePatch.class);
- Assertions.assertEquals("gkbugrjqct", model.tags().get("jc"));
- }
-
- @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/CheckNameAvailabilityRequestTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityRequestTests.java
deleted file mode 100644
index 2f76d29ef3ea..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityRequestTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class CheckNameAvailabilityRequestTests {
- @Test
- public void testDeserialize() {
- CheckNameAvailabilityRequest model =
- BinaryData
- .fromString("{\"name\":\"mpjw\",\"type\":\"vqikfxcvhrfsphu\"}")
- .toObject(CheckNameAvailabilityRequest.class);
- Assertions.assertEquals("mpjw", model.name());
- Assertions.assertEquals("vqikfxcvhrfsphu", model.type());
- }
-
- @Test
- public void testSerialize() {
- CheckNameAvailabilityRequest model =
- new CheckNameAvailabilityRequest().withName("mpjw").withType("vqikfxcvhrfsphu");
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class);
- Assertions.assertEquals("mpjw", model.name());
- Assertions.assertEquals("vqikfxcvhrfsphu", 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 5da5bcd5937f..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityResponseInnerTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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;
-import org.junit.jupiter.api.Test;
-
-public final class CheckNameAvailabilityResponseInnerTests {
- @Test
- public void testDeserialize() {
- CheckNameAvailabilityResponseInner model =
- BinaryData
- .fromString("{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"kteusqczk\"}")
- .toObject(CheckNameAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, model.reason());
- Assertions.assertEquals("kteusqczk", model.message());
- }
-
- @Test
- public void testSerialize() {
- CheckNameAvailabilityResponseInner model =
- new CheckNameAvailabilityResponseInner()
- .withNameAvailable(true)
- .withReason(CheckNameAvailabilityReason.ALREADY_EXISTS)
- .withMessage("kteusqczk");
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, model.reason());
- Assertions.assertEquals("kteusqczk", model.message());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ClientRegistrationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ClientRegistrationTests.java
deleted file mode 100644
index fed359577d5c..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ClientRegistrationTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.ClientRegistration;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ClientRegistrationTests {
- @Test
- public void testDeserialize() {
- ClientRegistration model =
- BinaryData
- .fromString("{\"clientId\":\"ocjjxhvpmouexh\",\"clientSecretSettingName\":\"xibqeojnx\"}")
- .toObject(ClientRegistration.class);
- Assertions.assertEquals("ocjjxhvpmouexh", model.clientId());
- Assertions.assertEquals("xibqeojnx", model.clientSecretSettingName());
- }
-
- @Test
- public void testSerialize() {
- ClientRegistration model =
- new ClientRegistration().withClientId("ocjjxhvpmouexh").withClientSecretSettingName("xibqeojnx");
- model = BinaryData.fromObject(model).toObject(ClientRegistration.class);
- Assertions.assertEquals("ocjjxhvpmouexh", model.clientId());
- Assertions.assertEquals("xibqeojnx", model.clientSecretSettingName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConfigurationTests.java
deleted file mode 100644
index f8f5a94b6854..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConfigurationTests.java
+++ /dev/null
@@ -1,183 +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.Action;
-import com.azure.resourcemanager.appcontainers.models.ActiveRevisionsMode;
-import com.azure.resourcemanager.appcontainers.models.AppProtocol;
-import com.azure.resourcemanager.appcontainers.models.BindingType;
-import com.azure.resourcemanager.appcontainers.models.Configuration;
-import com.azure.resourcemanager.appcontainers.models.CustomDomain;
-import com.azure.resourcemanager.appcontainers.models.Dapr;
-import com.azure.resourcemanager.appcontainers.models.Ingress;
-import com.azure.resourcemanager.appcontainers.models.IngressTransportMethod;
-import com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule;
-import com.azure.resourcemanager.appcontainers.models.LogLevel;
-import com.azure.resourcemanager.appcontainers.models.RegistryCredentials;
-import com.azure.resourcemanager.appcontainers.models.Secret;
-import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ConfigurationTests {
- @Test
- public void testDeserialize() {
- Configuration model =
- BinaryData
- .fromString(
- "{\"secrets\":[{\"name\":\"kn\",\"value\":\"scwsv\"},{\"name\":\"otogtwrupqs\",\"value\":\"nmic\"}],\"activeRevisionsMode\":\"Multiple\",\"ingress\":{\"fqdn\":\"o\",\"external\":false,\"targetPort\":2060505199,\"exposedPort\":1344905503,\"transport\":\"tcp\",\"traffic\":[{\"revisionName\":\"fcnj\",\"weight\":534363981,\"latestRevision\":false,\"label\":\"hbttkphyw\"}],\"customDomains\":[{\"name\":\"jtoqne\",\"bindingType\":\"Disabled\",\"certificateId\":\"lfplp\"},{\"name\":\"oxuscrpabgyepsbj\",\"bindingType\":\"Disabled\",\"certificateId\":\"qugxywpmueefjzwf\"},{\"name\":\"kqujidsuyono\",\"bindingType\":\"SniEnabled\",\"certificateId\":\"aocqxtccmgy\"},{\"name\":\"dxyt\",\"bindingType\":\"SniEnabled\",\"certificateId\":\"yrxvwfudwpznt\"}],\"allowInsecure\":false,\"ipSecurityRestrictions\":[{\"name\":\"lrqjbhckfr\",\"description\":\"rxsbkyvp\",\"ipAddressRange\":\"ca\",\"action\":\"Deny\"}]},\"registries\":[{\"server\":\"zka\",\"username\":\"uwbc\",\"passwordSecretRef\":\"wbme\",\"identity\":\"seyvj\"},{\"server\":\"rts\",\"username\":\"spkdee\",\"passwordSecretRef\":\"ofmxagkvtmelmqkr\",\"identity\":\"hvljuahaquh\"},{\"server\":\"hmdua\",\"username\":\"exq\",\"passwordSecretRef\":\"fadmws\",\"identity\":\"r\"}],\"dapr\":{\"enabled\":false,\"appId\":\"gomz\",\"appProtocol\":\"http\",\"appPort\":491284864,\"httpReadBufferSize\":838222488,\"httpMaxRequestSize\":1787960878,\"logLevel\":\"error\",\"enableApiLogging\":true},\"maxInactiveRevisions\":941784903}")
- .toObject(Configuration.class);
- Assertions.assertEquals("kn", model.secrets().get(0).name());
- Assertions.assertEquals("scwsv", model.secrets().get(0).value());
- Assertions.assertEquals(ActiveRevisionsMode.MULTIPLE, model.activeRevisionsMode());
- Assertions.assertEquals(false, model.ingress().external());
- Assertions.assertEquals(2060505199, model.ingress().targetPort());
- Assertions.assertEquals(1344905503, model.ingress().exposedPort());
- Assertions.assertEquals(IngressTransportMethod.TCP, model.ingress().transport());
- Assertions.assertEquals("fcnj", model.ingress().traffic().get(0).revisionName());
- Assertions.assertEquals(534363981, model.ingress().traffic().get(0).weight());
- Assertions.assertEquals(false, model.ingress().traffic().get(0).latestRevision());
- Assertions.assertEquals("hbttkphyw", model.ingress().traffic().get(0).label());
- Assertions.assertEquals("jtoqne", model.ingress().customDomains().get(0).name());
- Assertions.assertEquals(BindingType.DISABLED, model.ingress().customDomains().get(0).bindingType());
- Assertions.assertEquals("lfplp", model.ingress().customDomains().get(0).certificateId());
- Assertions.assertEquals(false, model.ingress().allowInsecure());
- Assertions.assertEquals("lrqjbhckfr", model.ingress().ipSecurityRestrictions().get(0).name());
- Assertions.assertEquals("rxsbkyvp", model.ingress().ipSecurityRestrictions().get(0).description());
- Assertions.assertEquals("ca", model.ingress().ipSecurityRestrictions().get(0).ipAddressRange());
- Assertions.assertEquals(Action.DENY, model.ingress().ipSecurityRestrictions().get(0).action());
- Assertions.assertEquals("zka", model.registries().get(0).server());
- Assertions.assertEquals("uwbc", model.registries().get(0).username());
- Assertions.assertEquals("wbme", model.registries().get(0).passwordSecretRef());
- Assertions.assertEquals("seyvj", model.registries().get(0).identity());
- Assertions.assertEquals(false, model.dapr().enabled());
- Assertions.assertEquals("gomz", model.dapr().appId());
- Assertions.assertEquals(AppProtocol.HTTP, model.dapr().appProtocol());
- Assertions.assertEquals(491284864, model.dapr().appPort());
- Assertions.assertEquals(838222488, model.dapr().httpReadBufferSize());
- Assertions.assertEquals(1787960878, model.dapr().httpMaxRequestSize());
- Assertions.assertEquals(LogLevel.ERROR, model.dapr().logLevel());
- Assertions.assertEquals(true, model.dapr().enableApiLogging());
- Assertions.assertEquals(941784903, model.maxInactiveRevisions());
- }
-
- @Test
- public void testSerialize() {
- Configuration model =
- new Configuration()
- .withSecrets(
- Arrays
- .asList(
- new Secret().withName("kn").withValue("scwsv"),
- new Secret().withName("otogtwrupqs").withValue("nmic")))
- .withActiveRevisionsMode(ActiveRevisionsMode.MULTIPLE)
- .withIngress(
- new Ingress()
- .withExternal(false)
- .withTargetPort(2060505199)
- .withExposedPort(1344905503)
- .withTransport(IngressTransportMethod.TCP)
- .withTraffic(
- Arrays
- .asList(
- new TrafficWeight()
- .withRevisionName("fcnj")
- .withWeight(534363981)
- .withLatestRevision(false)
- .withLabel("hbttkphyw")))
- .withCustomDomains(
- Arrays
- .asList(
- new CustomDomain()
- .withName("jtoqne")
- .withBindingType(BindingType.DISABLED)
- .withCertificateId("lfplp"),
- new CustomDomain()
- .withName("oxuscrpabgyepsbj")
- .withBindingType(BindingType.DISABLED)
- .withCertificateId("qugxywpmueefjzwf"),
- new CustomDomain()
- .withName("kqujidsuyono")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId("aocqxtccmgy"),
- new CustomDomain()
- .withName("dxyt")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId("yrxvwfudwpznt")))
- .withAllowInsecure(false)
- .withIpSecurityRestrictions(
- Arrays
- .asList(
- new IpSecurityRestrictionRule()
- .withName("lrqjbhckfr")
- .withDescription("rxsbkyvp")
- .withIpAddressRange("ca")
- .withAction(Action.DENY))))
- .withRegistries(
- Arrays
- .asList(
- new RegistryCredentials()
- .withServer("zka")
- .withUsername("uwbc")
- .withPasswordSecretRef("wbme")
- .withIdentity("seyvj"),
- new RegistryCredentials()
- .withServer("rts")
- .withUsername("spkdee")
- .withPasswordSecretRef("ofmxagkvtmelmqkr")
- .withIdentity("hvljuahaquh"),
- new RegistryCredentials()
- .withServer("hmdua")
- .withUsername("exq")
- .withPasswordSecretRef("fadmws")
- .withIdentity("r")))
- .withDapr(
- new Dapr()
- .withEnabled(false)
- .withAppId("gomz")
- .withAppProtocol(AppProtocol.HTTP)
- .withAppPort(491284864)
- .withHttpReadBufferSize(838222488)
- .withHttpMaxRequestSize(1787960878)
- .withLogLevel(LogLevel.ERROR)
- .withEnableApiLogging(true))
- .withMaxInactiveRevisions(941784903);
- model = BinaryData.fromObject(model).toObject(Configuration.class);
- Assertions.assertEquals("kn", model.secrets().get(0).name());
- Assertions.assertEquals("scwsv", model.secrets().get(0).value());
- Assertions.assertEquals(ActiveRevisionsMode.MULTIPLE, model.activeRevisionsMode());
- Assertions.assertEquals(false, model.ingress().external());
- Assertions.assertEquals(2060505199, model.ingress().targetPort());
- Assertions.assertEquals(1344905503, model.ingress().exposedPort());
- Assertions.assertEquals(IngressTransportMethod.TCP, model.ingress().transport());
- Assertions.assertEquals("fcnj", model.ingress().traffic().get(0).revisionName());
- Assertions.assertEquals(534363981, model.ingress().traffic().get(0).weight());
- Assertions.assertEquals(false, model.ingress().traffic().get(0).latestRevision());
- Assertions.assertEquals("hbttkphyw", model.ingress().traffic().get(0).label());
- Assertions.assertEquals("jtoqne", model.ingress().customDomains().get(0).name());
- Assertions.assertEquals(BindingType.DISABLED, model.ingress().customDomains().get(0).bindingType());
- Assertions.assertEquals("lfplp", model.ingress().customDomains().get(0).certificateId());
- Assertions.assertEquals(false, model.ingress().allowInsecure());
- Assertions.assertEquals("lrqjbhckfr", model.ingress().ipSecurityRestrictions().get(0).name());
- Assertions.assertEquals("rxsbkyvp", model.ingress().ipSecurityRestrictions().get(0).description());
- Assertions.assertEquals("ca", model.ingress().ipSecurityRestrictions().get(0).ipAddressRange());
- Assertions.assertEquals(Action.DENY, model.ingress().ipSecurityRestrictions().get(0).action());
- Assertions.assertEquals("zka", model.registries().get(0).server());
- Assertions.assertEquals("uwbc", model.registries().get(0).username());
- Assertions.assertEquals("wbme", model.registries().get(0).passwordSecretRef());
- Assertions.assertEquals("seyvj", model.registries().get(0).identity());
- Assertions.assertEquals(false, model.dapr().enabled());
- Assertions.assertEquals("gomz", model.dapr().appId());
- Assertions.assertEquals(AppProtocol.HTTP, model.dapr().appProtocol());
- Assertions.assertEquals(491284864, model.dapr().appPort());
- Assertions.assertEquals(838222488, model.dapr().httpReadBufferSize());
- Assertions.assertEquals(1787960878, model.dapr().httpMaxRequestSize());
- Assertions.assertEquals(LogLevel.ERROR, model.dapr().logLevel());
- Assertions.assertEquals(true, model.dapr().enableApiLogging());
- Assertions.assertEquals(941784903, model.maxInactiveRevisions());
- }
-}
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 511f3f22c608..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentCollectionTests.java
+++ /dev/null
@@ -1,105 +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;
-import org.junit.jupiter.api.Test;
-
-public final class ConnectedEnvironmentCollectionTests {
- @Test
- public void testDeserialize() {
- ConnectedEnvironmentCollection model =
- BinaryData
- .fromString(
- "{\"value\":[{\"extendedLocation\":{\"name\":\"rtujwsawddjibab\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"InfrastructureSetupComplete\",\"deploymentErrors\":\"tzeexav\",\"defaultDomain\":\"tfgle\",\"staticIp\":\"m\",\"daprAIConnectionString\":\"bwpypqtgsfjacb\"},\"location\":\"hxudbxvodht\",\"tags\":{\"agzrcxfa\":\"rudhzmmesckdl\",\"xwmdboxd\":\"lc\"},\"id\":\"gsftufqobrjlnacg\",\"name\":\"ckknhxkizvy\",\"type\":\"nrzvuljraaer\"},{\"extendedLocation\":{\"name\":\"kqg\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"InitializationInProgress\",\"deploymentErrors\":\"broyla\",\"defaultDomain\":\"ulcdisdosf\",\"staticIp\":\"jsvg\",\"daprAIConnectionString\":\"whryvycytdcl\"},\"location\":\"cknfnwmbtmvpd\",\"tags\":{\"efedxihchrphkm\":\"httz\",\"gtgkylkdghr\":\"rjdqnsdfzp\",\"kvbwnhhtqlgeh\":\"euutlwxezwzh\",\"vgcxtx\":\"ppipifhpfeoa\"},\"id\":\"csheafidltugsr\",\"name\":\"smkss\",\"type\":\"h\"},{\"extendedLocation\":{\"name\":\"txfkfweg\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"Failed\",\"deploymentErrors\":\"lucbiqtgdqohm\",\"defaultDomain\":\"sldrizetpwbral\",\"staticIp\":\"ibph\",\"daprAIConnectionString\":\"zmizakakan\"},\"location\":\"dnjzh\",\"tags\":{\"oyxprimr\":\"ylhjlm\",\"eislstvasylwx\":\"opteecj\",\"eoohguufuzboyj\":\"zaum\",\"a\":\"thwtzol\"},\"id\":\"mwmdxmebwjscjpa\",\"name\":\"lxveabfqx\",\"type\":\"mwmqtibx\"}],\"nextLink\":\"jddtvqct\"}")
- .toObject(ConnectedEnvironmentCollection.class);
- Assertions.assertEquals("hxudbxvodht", model.value().get(0).location());
- Assertions.assertEquals("rudhzmmesckdl", model.value().get(0).tags().get("agzrcxfa"));
- Assertions.assertEquals("rtujwsawddjibab", model.value().get(0).extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type());
- Assertions.assertEquals("m", model.value().get(0).staticIp());
- Assertions.assertEquals("bwpypqtgsfjacb", model.value().get(0).daprAIConnectionString());
- }
-
- @Test
- public void testSerialize() {
- ConnectedEnvironmentCollection model =
- new ConnectedEnvironmentCollection()
- .withValue(
- Arrays
- .asList(
- new ConnectedEnvironmentInner()
- .withLocation("hxudbxvodht")
- .withTags(mapOf("agzrcxfa", "rudhzmmesckdl", "xwmdboxd", "lc"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("rtujwsawddjibab")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withStaticIp("m")
- .withDaprAIConnectionString("bwpypqtgsfjacb"),
- new ConnectedEnvironmentInner()
- .withLocation("cknfnwmbtmvpd")
- .withTags(
- mapOf(
- "efedxihchrphkm",
- "httz",
- "gtgkylkdghr",
- "rjdqnsdfzp",
- "kvbwnhhtqlgeh",
- "euutlwxezwzh",
- "vgcxtx",
- "ppipifhpfeoa"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("kqg")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withStaticIp("jsvg")
- .withDaprAIConnectionString("whryvycytdcl"),
- new ConnectedEnvironmentInner()
- .withLocation("dnjzh")
- .withTags(
- mapOf(
- "oyxprimr",
- "ylhjlm",
- "eislstvasylwx",
- "opteecj",
- "eoohguufuzboyj",
- "zaum",
- "a",
- "thwtzol"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("txfkfweg")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withStaticIp("ibph")
- .withDaprAIConnectionString("zmizakakan")));
- model = BinaryData.fromObject(model).toObject(ConnectedEnvironmentCollection.class);
- Assertions.assertEquals("hxudbxvodht", model.value().get(0).location());
- Assertions.assertEquals("rudhzmmesckdl", model.value().get(0).tags().get("agzrcxfa"));
- Assertions.assertEquals("rtujwsawddjibab", model.value().get(0).extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.value().get(0).extendedLocation().type());
- Assertions.assertEquals("m", model.value().get(0).staticIp());
- Assertions.assertEquals("bwpypqtgsfjacb", 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/ConnectedEnvironmentInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentInnerTests.java
deleted file mode 100644
index 7c98ab325595..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentInnerTests.java
+++ /dev/null
@@ -1,65 +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.CustomDomainConfiguration;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ConnectedEnvironmentInnerTests {
- @Test
- public void testDeserialize() {
- ConnectedEnvironmentInner model =
- BinaryData
- .fromString(
- "{\"extendedLocation\":{\"name\":\"ijaeukm\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"Failed\",\"deploymentErrors\":\"ndzaapmudq\",\"defaultDomain\":\"qwigpibudqwyxe\",\"staticIp\":\"ybpmzznrtffyaq\",\"daprAIConnectionString\":\"mhh\",\"customDomainConfiguration\":{\"customDomainVerificationId\":\"qaqhvseufu\",\"dnsSuffix\":\"rxpdlcgqlsi\",\"expirationDate\":\"2021-05-24T18:35:38Z\",\"thumbprint\":\"ddgamquhiosr\",\"subjectName\":\"uivfcdis\"}},\"location\":\"rnxzh\",\"tags\":{\"qvwre\":\"xrxzbujrtr\",\"nzonzl\":\"khgn\",\"jtszcof\":\"piqywnc\",\"k\":\"zehtdhgb\"},\"id\":\"reljeamur\",\"name\":\"zmlovuanash\",\"type\":\"xlpm\"}")
- .toObject(ConnectedEnvironmentInner.class);
- Assertions.assertEquals("rnxzh", model.location());
- Assertions.assertEquals("xrxzbujrtr", model.tags().get("qvwre"));
- Assertions.assertEquals("ijaeukm", model.extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.extendedLocation().type());
- Assertions.assertEquals("ybpmzznrtffyaq", model.staticIp());
- Assertions.assertEquals("mhh", model.daprAIConnectionString());
- Assertions.assertEquals("rxpdlcgqlsi", model.customDomainConfiguration().dnsSuffix());
- }
-
- @Test
- public void testSerialize() {
- ConnectedEnvironmentInner model =
- new ConnectedEnvironmentInner()
- .withLocation("rnxzh")
- .withTags(mapOf("qvwre", "xrxzbujrtr", "nzonzl", "khgn", "jtszcof", "piqywnc", "k", "zehtdhgb"))
- .withExtendedLocation(
- new ExtendedLocation().withName("ijaeukm").withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withStaticIp("ybpmzznrtffyaq")
- .withDaprAIConnectionString("mhh")
- .withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("rxpdlcgqlsi"));
- model = BinaryData.fromObject(model).toObject(ConnectedEnvironmentInner.class);
- Assertions.assertEquals("rnxzh", model.location());
- Assertions.assertEquals("xrxzbujrtr", model.tags().get("qvwre"));
- Assertions.assertEquals("ijaeukm", model.extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.extendedLocation().type());
- Assertions.assertEquals("ybpmzznrtffyaq", model.staticIp());
- Assertions.assertEquals("mhh", model.daprAIConnectionString());
- Assertions.assertEquals("rxpdlcgqlsi", model.customDomainConfiguration().dnsSuffix());
- }
-
- @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/ConnectedEnvironmentPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentPropertiesTests.java
deleted file mode 100644
index 1dcf7976eed2..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentPropertiesTests.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.ConnectedEnvironmentProperties;
-import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ConnectedEnvironmentPropertiesTests {
- @Test
- public void testDeserialize() {
- ConnectedEnvironmentProperties model =
- BinaryData
- .fromString(
- "{\"provisioningState\":\"InfrastructureSetupInProgress\",\"deploymentErrors\":\"dk\",\"defaultDomain\":\"vidizozsdb\",\"staticIp\":\"xjmonf\",\"daprAIConnectionString\":\"nwncypuuw\",\"customDomainConfiguration\":{\"customDomainVerificationId\":\"v\",\"dnsSuffix\":\"jctzenkei\",\"expirationDate\":\"2021-11-19T10:45:07Z\",\"thumbprint\":\"dasvfl\",\"subjectName\":\"bxcudchx\"}}")
- .toObject(ConnectedEnvironmentProperties.class);
- Assertions.assertEquals("xjmonf", model.staticIp());
- Assertions.assertEquals("nwncypuuw", model.daprAIConnectionString());
- Assertions.assertEquals("jctzenkei", model.customDomainConfiguration().dnsSuffix());
- }
-
- @Test
- public void testSerialize() {
- ConnectedEnvironmentProperties model =
- new ConnectedEnvironmentProperties()
- .withStaticIp("xjmonf")
- .withDaprAIConnectionString("nwncypuuw")
- .withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("jctzenkei"));
- model = BinaryData.fromObject(model).toObject(ConnectedEnvironmentProperties.class);
- Assertions.assertEquals("xjmonf", model.staticIp());
- Assertions.assertEquals("nwncypuuw", model.daprAIConnectionString());
- Assertions.assertEquals("jctzenkei", model.customDomainConfiguration().dnsSuffix());
- }
-}
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 77b5f9f5f58d..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentStoragesCollectionInnerTests.java
+++ /dev/null
@@ -1,39 +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;
-import org.junit.jupiter.api.Test;
-
-public final class ConnectedEnvironmentStoragesCollectionInnerTests {
- @Test
- public void testDeserialize() {
- ConnectedEnvironmentStoragesCollectionInner model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{},\"id\":\"ldforobwj\",\"name\":\"vizbfhfo\",\"type\":\"vacqpbtuodxesz\"},{\"properties\":{},\"id\":\"l\",\"name\":\"wumuaslzk\",\"type\":\"rrwoycqucwyhahn\"},{\"properties\":{},\"id\":\"kywuhpsvfuu\",\"name\":\"utlwexxwla\",\"type\":\"niexzsrzpgepq\"}]}")
- .toObject(ConnectedEnvironmentStoragesCollectionInner.class);
- }
-
- @Test
- public void testSerialize() {
- 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/ConnectedEnvironmentsCreateOrUpdateMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateMockTests.java
deleted file mode 100644
index 1ae6489b0f96..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,100 +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.ConnectedEnvironment;
-import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ConnectedEnvironmentsCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"extendedLocation\":{\"name\":\"suckzm\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"deploymentErrors\":\"xaxmq\",\"defaultDomain\":\"alhhjnhgwydyynfs\",\"staticIp\":\"hgbvqtan\",\"daprAIConnectionString\":\"fdlpukhpyr\",\"customDomainConfiguration\":{\"customDomainVerificationId\":\"zjcpeogk\",\"dnsSuffix\":\"mgbro\",\"expirationDate\":\"2021-08-20T12:22:55Z\",\"thumbprint\":\"fhp\",\"subjectName\":\"azjzo\"}},\"location\":\"jxhpdulontacn\",\"tags\":{\"xh\":\"tehtuevrhrljyoog\"},\"id\":\"sd\",\"name\":\"ugwbsreurfqkf\",\"type\":\"arenlvhhtklnvnaf\"}";
-
- 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));
-
- ConnectedEnvironment response =
- manager
- .connectedEnvironments()
- .define("usqogsfikayia")
- .withRegion("chrszi")
- .withExistingResourceGroup("ijtk")
- .withTags(mapOf("fqyggagflnlgmtr", "uelyetndn"))
- .withExtendedLocation(
- new ExtendedLocation().withName("arujt").withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withStaticIp("bqeqqekewvnqvcd")
- .withDaprAIConnectionString("uaucmf")
- .withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("itacgxmfcsserx"))
- .create();
-
- Assertions.assertEquals("jxhpdulontacn", response.location());
- Assertions.assertEquals("tehtuevrhrljyoog", response.tags().get("xh"));
- Assertions.assertEquals("suckzm", response.extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, response.extendedLocation().type());
- Assertions.assertEquals("hgbvqtan", response.staticIp());
- Assertions.assertEquals("fdlpukhpyr", response.daprAIConnectionString());
- Assertions.assertEquals("mgbro", response.customDomainConfiguration().dnsSuffix());
- }
-
- @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/ConnectedEnvironmentsDaprComponentsListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListMockTests.java
deleted file mode 100644
index 352da9aeea5d..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListMockTests.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.core.util.Context;
-import com.azure.resourcemanager.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.DaprComponent;
-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 ConnectedEnvironmentsDaprComponentsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"componentType\":\"rymo\",\"version\":\"zrxklobd\",\"ignoreErrors\":true,\"initTimeout\":\"pmkmlmvevfx\",\"secrets\":[],\"secretStoreComponent\":\"hbzxli\",\"metadata\":[],\"scopes\":[\"dtfgxqbawpcbb\"]},\"id\":\"qcy\",\"name\":\"napqo\",\"type\":\"yuicdhzbdy\"}]}";
-
- 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.connectedEnvironmentsDaprComponents().list("vroevytlyo", "rrrouuxvnsa", Context.NONE);
-
- Assertions.assertEquals("rymo", response.iterator().next().componentType());
- Assertions.assertEquals("zrxklobd", response.iterator().next().version());
- Assertions.assertEquals(true, response.iterator().next().ignoreErrors());
- Assertions.assertEquals("pmkmlmvevfx", response.iterator().next().initTimeout());
- Assertions.assertEquals("hbzxli", response.iterator().next().secretStoreComponent());
- Assertions.assertEquals("dtfgxqbawpcbb", response.iterator().next().scopes().get(0));
- }
-}
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 9d10d4deec7c..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.core.util.Context;
-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("djk", "sysidfvclglxnf", Context.NONE);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupMockTests.java
deleted file mode 100644
index b4ae858aa596..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupMockTests.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.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironment;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
-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 ConnectedEnvironmentsListByResourceGroupMockTests {
- @Test
- public void testListByResourceGroup() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"extendedLocation\":{\"name\":\"pusxjb\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"Failed\",\"deploymentErrors\":\"ohzjqatucoigeb\",\"defaultDomain\":\"cnwfepbnwgfmxjg\",\"staticIp\":\"bjb\",\"daprAIConnectionString\":\"lfgtdysnaquflqbc\",\"customDomainConfiguration\":{\"customDomainVerificationId\":\"amz\",\"dnsSuffix\":\"wdkqzeqy\",\"expirationDate\":\"2021-03-27T03:11:25Z\",\"thumbprint\":\"njxdfzantk\",\"subjectName\":\"eg\"}},\"location\":\"mlbnseq\",\"tags\":{\"m\":\"jvpilguooqja\",\"hrtdtpdelq\":\"itgueiookjbs\",\"vcjkgd\":\"cslmotoebnfxo\",\"vcopex\":\"razftxejwabmdujt\"},\"id\":\"m\",\"name\":\"urbuhhlkyqltq\",\"type\":\"rogtuwkf\"}]}";
-
- 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.connectedEnvironments().listByResourceGroup("cbuewmrswnjlxuz", Context.NONE);
-
- Assertions.assertEquals("mlbnseq", response.iterator().next().location());
- Assertions.assertEquals("jvpilguooqja", response.iterator().next().tags().get("m"));
- Assertions.assertEquals("pusxjb", response.iterator().next().extendedLocation().name());
- Assertions
- .assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, response.iterator().next().extendedLocation().type());
- Assertions.assertEquals("bjb", response.iterator().next().staticIp());
- Assertions.assertEquals("lfgtdysnaquflqbc", response.iterator().next().daprAIConnectionString());
- Assertions.assertEquals("wdkqzeqy", response.iterator().next().customDomainConfiguration().dnsSuffix());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListMockTests.java
deleted file mode 100644
index 9b849fecf348..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListMockTests.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.core.util.Context;
-import com.azure.resourcemanager.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironment;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
-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 ConnectedEnvironmentsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"extendedLocation\":{\"name\":\"wpnulaiywzejyw\",\"type\":\"CustomLocation\"},\"properties\":{\"provisioningState\":\"ScheduledForDelete\",\"deploymentErrors\":\"pllndnp\",\"defaultDomain\":\"rpqaf\",\"staticIp\":\"ug\",\"daprAIConnectionString\":\"n\",\"customDomainConfiguration\":{\"customDomainVerificationId\":\"et\",\"dnsSuffix\":\"ypococtfjgtixr\",\"expirationDate\":\"2021-06-13T22:05:20Z\",\"thumbprint\":\"urmlmuo\",\"subjectName\":\"lbau\"}},\"location\":\"opionszon\",\"tags\":{\"jmyccxlzhcoxov\":\"gajinnixjawrtmj\",\"sfnrdtjxt\":\"ekhenl\",\"cq\":\"r\",\"uslvyjtcvuwkasi\":\"jvidttge\"},\"id\":\"iesfuug\",\"name\":\"tuqfecjxeygtu\",\"type\":\"xu\"}]}";
-
- 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.connectedEnvironments().list(Context.NONE);
-
- Assertions.assertEquals("opionszon", response.iterator().next().location());
- Assertions.assertEquals("gajinnixjawrtmj", response.iterator().next().tags().get("jmyccxlzhcoxov"));
- Assertions.assertEquals("wpnulaiywzejyw", response.iterator().next().extendedLocation().name());
- Assertions
- .assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, response.iterator().next().extendedLocation().type());
- Assertions.assertEquals("ug", response.iterator().next().staticIp());
- Assertions.assertEquals("n", response.iterator().next().daprAIConnectionString());
- Assertions.assertEquals("ypococtfjgtixr", response.iterator().next().customDomainConfiguration().dnsSuffix());
- }
-}
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 57d5fded6438..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppCollectionTests.java
+++ /dev/null
@@ -1,108 +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;
-import org.junit.jupiter.api.Test;
-
-public final class ContainerAppCollectionTests {
- @Test
- public void testDeserialize() {
- ContainerAppCollection model =
- BinaryData
- .fromString(
- "{\"value\":[{\"extendedLocation\":{\"name\":\"ybcibvyvdcsit\",\"type\":\"CustomLocation\"},\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Canceled\",\"managedEnvironmentId\":\"f\",\"environmentId\":\"scjeypv\",\"workloadProfileType\":\"zrkgqhcjrefovg\",\"latestRevisionName\":\"qsl\",\"latestRevisionFqdn\":\"yvxyqjp\",\"customDomainVerificationId\":\"attpngjcrcczsq\",\"outboundIpAddresses\":[],\"eventStreamEndpoint\":\"daj\"},\"location\":\"ysou\",\"tags\":{\"yhltrpmopjmcm\":\"canoaeupf\"},\"id\":\"tuo\",\"name\":\"thfuiuaodsfcpkvx\",\"type\":\"dpuozmyz\"},{\"extendedLocation\":{\"name\":\"gf\",\"type\":\"CustomLocation\"},\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Deleting\",\"managedEnvironmentId\":\"twhrdxwzywqsm\",\"environmentId\":\"ureximoryocfs\",\"workloadProfileType\":\"s\",\"latestRevisionName\":\"ddystkiiuxhqy\",\"latestRevisionFqdn\":\"xorrqnb\",\"customDomainVerificationId\":\"czvyifq\",\"outboundIpAddresses\":[],\"eventStreamEndpoint\":\"jsllrmv\"},\"location\":\"f\",\"tags\":{\"wiqzbqjvsovmyo\":\"kpnpulexxbczwtr\"},\"id\":\"acspkwl\",\"name\":\"zdobpxjmflbvvnch\",\"type\":\"kcciwwzjuqkhr\"},{\"extendedLocation\":{\"name\":\"iwkuofos\",\"type\":\"CustomLocation\"},\"identity\":{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"InProgress\",\"managedEnvironmentId\":\"xieduugidyjrr\",\"environmentId\":\"y\",\"workloadProfileType\":\"svexcsonpclhoco\",\"latestRevisionName\":\"lkevle\",\"latestRevisionFqdn\":\"zfbuhf\",\"customDomainVerificationId\":\"faxkffeii\",\"outboundIpAddresses\":[],\"eventStreamEndpoint\":\"ez\"},\"location\":\"shxmzsbbzoggigrx\",\"tags\":{\"jnspydp\":\"rvjx\"},\"id\":\"koen\",\"name\":\"ou\",\"type\":\"nvudwtiukb\"}],\"nextLink\":\"ngkpocipazy\"}")
- .toObject(ContainerAppCollection.class);
- Assertions.assertEquals("ysou", model.value().get(0).location());
- Assertions.assertEquals("canoaeupf", model.value().get(0).tags().get("yhltrpmopjmcm"));
- Assertions.assertEquals("ybcibvyvdcsit", 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("f", model.value().get(0).managedEnvironmentId());
- Assertions.assertEquals("scjeypv", model.value().get(0).environmentId());
- Assertions.assertEquals("zrkgqhcjrefovg", model.value().get(0).workloadProfileType());
- }
-
- @Test
- public void testSerialize() {
- ContainerAppCollection model =
- new ContainerAppCollection()
- .withValue(
- Arrays
- .asList(
- new ContainerAppInner()
- .withLocation("ysou")
- .withTags(mapOf("yhltrpmopjmcm", "canoaeupf"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("ybcibvyvdcsit")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withManagedEnvironmentId("f")
- .withEnvironmentId("scjeypv")
- .withWorkloadProfileType("zrkgqhcjrefovg"),
- new ContainerAppInner()
- .withLocation("f")
- .withTags(mapOf("wiqzbqjvsovmyo", "kpnpulexxbczwtr"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("gf")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withManagedEnvironmentId("twhrdxwzywqsm")
- .withEnvironmentId("ureximoryocfs")
- .withWorkloadProfileType("s"),
- new ContainerAppInner()
- .withLocation("shxmzsbbzoggigrx")
- .withTags(mapOf("jnspydp", "rvjx"))
- .withExtendedLocation(
- new ExtendedLocation()
- .withName("iwkuofos")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withManagedEnvironmentId("xieduugidyjrr")
- .withEnvironmentId("y")
- .withWorkloadProfileType("svexcsonpclhoco")));
- model = BinaryData.fromObject(model).toObject(ContainerAppCollection.class);
- Assertions.assertEquals("ysou", model.value().get(0).location());
- Assertions.assertEquals("canoaeupf", model.value().get(0).tags().get("yhltrpmopjmcm"));
- Assertions.assertEquals("ybcibvyvdcsit", 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("f", model.value().get(0).managedEnvironmentId());
- Assertions.assertEquals("scjeypv", model.value().get(0).environmentId());
- Assertions.assertEquals("zrkgqhcjrefovg", model.value().get(0).workloadProfileType());
- }
-
- @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/ContainerAppInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppInnerTests.java
deleted file mode 100644
index 09fb61485df1..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppInnerTests.java
+++ /dev/null
@@ -1,95 +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.ActiveRevisionsMode;
-import com.azure.resourcemanager.appcontainers.models.Configuration;
-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 com.azure.resourcemanager.appcontainers.models.Template;
-import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ContainerAppInnerTests {
- @Test
- public void testDeserialize() {
- ContainerAppInner model =
- BinaryData
- .fromString(
- "{\"extendedLocation\":{\"name\":\"gukgjnpiucgygevq\",\"type\":\"CustomLocation\"},\"identity\":{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"c\":{}}},\"properties\":{\"provisioningState\":\"Failed\",\"managedEnvironmentId\":\"dpydn\",\"environmentId\":\"hxdeoejz\",\"workloadProfileType\":\"w\",\"latestRevisionName\":\"sjttgzfbish\",\"latestRevisionFqdn\":\"khaj\",\"customDomainVerificationId\":\"yeamdphagalpb\",\"configuration\":{\"secrets\":[],\"activeRevisionsMode\":\"Single\",\"registries\":[],\"maxInactiveRevisions\":1833977837},\"template\":{\"revisionSuffix\":\"shwankixzbinje\",\"initContainers\":[],\"containers\":[],\"volumes\":[]},\"outboundIpAddresses\":[\"zoqftiyqzrnkcqvy\",\"lwh\"],\"eventStreamEndpoint\":\"sicohoqqnwvlry\"},\"location\":\"w\",\"tags\":{\"gyxzk\":\"unmmq\"},\"id\":\"noc\",\"name\":\"koklya\",\"type\":\"uconuqszfkbey\"}")
- .toObject(ContainerAppInner.class);
- Assertions.assertEquals("w", model.location());
- Assertions.assertEquals("unmmq", model.tags().get("gyxzk"));
- Assertions.assertEquals("gukgjnpiucgygevq", model.extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.extendedLocation().type());
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type());
- Assertions.assertEquals("dpydn", model.managedEnvironmentId());
- Assertions.assertEquals("hxdeoejz", model.environmentId());
- Assertions.assertEquals("w", model.workloadProfileType());
- Assertions.assertEquals(ActiveRevisionsMode.SINGLE, model.configuration().activeRevisionsMode());
- Assertions.assertEquals(1833977837, model.configuration().maxInactiveRevisions());
- Assertions.assertEquals("shwankixzbinje", model.template().revisionSuffix());
- }
-
- @Test
- public void testSerialize() {
- ContainerAppInner model =
- new ContainerAppInner()
- .withLocation("w")
- .withTags(mapOf("gyxzk", "unmmq"))
- .withExtendedLocation(
- new ExtendedLocation().withName("gukgjnpiucgygevq").withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf("c", new UserAssignedIdentity())))
- .withManagedEnvironmentId("dpydn")
- .withEnvironmentId("hxdeoejz")
- .withWorkloadProfileType("w")
- .withConfiguration(
- new Configuration()
- .withSecrets(Arrays.asList())
- .withActiveRevisionsMode(ActiveRevisionsMode.SINGLE)
- .withRegistries(Arrays.asList())
- .withMaxInactiveRevisions(1833977837))
- .withTemplate(
- new Template()
- .withRevisionSuffix("shwankixzbinje")
- .withInitContainers(Arrays.asList())
- .withContainers(Arrays.asList())
- .withVolumes(Arrays.asList()));
- model = BinaryData.fromObject(model).toObject(ContainerAppInner.class);
- Assertions.assertEquals("w", model.location());
- Assertions.assertEquals("unmmq", model.tags().get("gyxzk"));
- Assertions.assertEquals("gukgjnpiucgygevq", model.extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.extendedLocation().type());
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type());
- Assertions.assertEquals("dpydn", model.managedEnvironmentId());
- Assertions.assertEquals("hxdeoejz", model.environmentId());
- Assertions.assertEquals("w", model.workloadProfileType());
- Assertions.assertEquals(ActiveRevisionsMode.SINGLE, model.configuration().activeRevisionsMode());
- Assertions.assertEquals(1833977837, model.configuration().maxInactiveRevisions());
- Assertions.assertEquals("shwankixzbinje", model.template().revisionSuffix());
- }
-
- @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/ContainerAppProbeHttpGetHttpHeadersItemTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetHttpHeadersItemTests.java
deleted file mode 100644
index 7a49f669c8f2..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetHttpHeadersItemTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ContainerAppProbeHttpGetHttpHeadersItemTests {
- @Test
- public void testDeserialize() {
- ContainerAppProbeHttpGetHttpHeadersItem model =
- BinaryData
- .fromString("{\"name\":\"fcktqumiekke\",\"value\":\"zikhl\"}")
- .toObject(ContainerAppProbeHttpGetHttpHeadersItem.class);
- Assertions.assertEquals("fcktqumiekke", model.name());
- Assertions.assertEquals("zikhl", model.value());
- }
-
- @Test
- public void testSerialize() {
- ContainerAppProbeHttpGetHttpHeadersItem model =
- new ContainerAppProbeHttpGetHttpHeadersItem().withName("fcktqumiekke").withValue("zikhl");
- model = BinaryData.fromObject(model).toObject(ContainerAppProbeHttpGetHttpHeadersItem.class);
- Assertions.assertEquals("fcktqumiekke", model.name());
- Assertions.assertEquals("zikhl", model.value());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetTests.java
deleted file mode 100644
index e24fca86a780..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetTests.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.models.ContainerAppProbeHttpGet;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
-import com.azure.resourcemanager.appcontainers.models.Scheme;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ContainerAppProbeHttpGetTests {
- @Test
- public void testDeserialize() {
- ContainerAppProbeHttpGet model =
- BinaryData
- .fromString(
- "{\"host\":\"jawneaiv\",\"httpHeaders\":[{\"name\":\"zel\",\"value\":\"c\"},{\"name\":\"r\",\"value\":\"lsfeaenwabfatkld\"},{\"name\":\"xbjhwuaanozjosph\",\"value\":\"oulpjrv\"}],\"path\":\"glrvimjwosytxi\",\"port\":1413257471,\"scheme\":\"HTTP\"}")
- .toObject(ContainerAppProbeHttpGet.class);
- Assertions.assertEquals("jawneaiv", model.host());
- Assertions.assertEquals("zel", model.httpHeaders().get(0).name());
- Assertions.assertEquals("c", model.httpHeaders().get(0).value());
- Assertions.assertEquals("glrvimjwosytxi", model.path());
- Assertions.assertEquals(1413257471, model.port());
- Assertions.assertEquals(Scheme.HTTP, model.scheme());
- }
-
- @Test
- public void testSerialize() {
- ContainerAppProbeHttpGet model =
- new ContainerAppProbeHttpGet()
- .withHost("jawneaiv")
- .withHttpHeaders(
- Arrays
- .asList(
- new ContainerAppProbeHttpGetHttpHeadersItem().withName("zel").withValue("c"),
- new ContainerAppProbeHttpGetHttpHeadersItem().withName("r").withValue("lsfeaenwabfatkld"),
- new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("xbjhwuaanozjosph")
- .withValue("oulpjrv")))
- .withPath("glrvimjwosytxi")
- .withPort(1413257471)
- .withScheme(Scheme.HTTP);
- model = BinaryData.fromObject(model).toObject(ContainerAppProbeHttpGet.class);
- Assertions.assertEquals("jawneaiv", model.host());
- Assertions.assertEquals("zel", model.httpHeaders().get(0).name());
- Assertions.assertEquals("c", model.httpHeaders().get(0).value());
- Assertions.assertEquals("glrvimjwosytxi", model.path());
- Assertions.assertEquals(1413257471, model.port());
- Assertions.assertEquals(Scheme.HTTP, model.scheme());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTcpSocketTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTcpSocketTests.java
deleted file mode 100644
index e4903494ed13..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTcpSocketTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ContainerAppProbeTcpSocketTests {
- @Test
- public void testDeserialize() {
- ContainerAppProbeTcpSocket model =
- BinaryData
- .fromString("{\"host\":\"jhdgqggebdunyga\",\"port\":2021053825}")
- .toObject(ContainerAppProbeTcpSocket.class);
- Assertions.assertEquals("jhdgqggebdunyga", model.host());
- Assertions.assertEquals(2021053825, model.port());
- }
-
- @Test
- public void testSerialize() {
- ContainerAppProbeTcpSocket model =
- new ContainerAppProbeTcpSocket().withHost("jhdgqggebdunyga").withPort(2021053825);
- model = BinaryData.fromObject(model).toObject(ContainerAppProbeTcpSocket.class);
- Assertions.assertEquals("jhdgqggebdunyga", model.host());
- Assertions.assertEquals(2021053825, model.port());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTests.java
deleted file mode 100644
index 9ff7131fd14d..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTests.java
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket;
-import com.azure.resourcemanager.appcontainers.models.Scheme;
-import com.azure.resourcemanager.appcontainers.models.Type;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ContainerAppProbeTests {
- @Test
- public void testDeserialize() {
- ContainerAppProbe model =
- BinaryData
- .fromString(
- "{\"failureThreshold\":1892001157,\"httpGet\":{\"host\":\"rhyrnxxmueed\",\"httpHeaders\":[{\"name\":\"dvstkw\",\"value\":\"qtc\"},{\"name\":\"ealmfmtdaaygdvwv\",\"value\":\"piohgwxrtfu\"},{\"name\":\"xepxgyqagvrvmn\",\"value\":\"k\"}],\"path\":\"ghimdblx\",\"port\":505358997,\"scheme\":\"HTTP\"},\"initialDelaySeconds\":1046627826,\"periodSeconds\":984160598,\"successThreshold\":44093722,\"tcpSocket\":{\"host\":\"mszkkfo\",\"port\":739435613},\"terminationGracePeriodSeconds\":6713909564686368420,\"timeoutSeconds\":520152641,\"type\":\"Readiness\"}")
- .toObject(ContainerAppProbe.class);
- Assertions.assertEquals(1892001157, model.failureThreshold());
- Assertions.assertEquals("rhyrnxxmueed", model.httpGet().host());
- Assertions.assertEquals("dvstkw", model.httpGet().httpHeaders().get(0).name());
- Assertions.assertEquals("qtc", model.httpGet().httpHeaders().get(0).value());
- Assertions.assertEquals("ghimdblx", model.httpGet().path());
- Assertions.assertEquals(505358997, model.httpGet().port());
- Assertions.assertEquals(Scheme.HTTP, model.httpGet().scheme());
- Assertions.assertEquals(1046627826, model.initialDelaySeconds());
- Assertions.assertEquals(984160598, model.periodSeconds());
- Assertions.assertEquals(44093722, model.successThreshold());
- Assertions.assertEquals("mszkkfo", model.tcpSocket().host());
- Assertions.assertEquals(739435613, model.tcpSocket().port());
- Assertions.assertEquals(6713909564686368420L, model.terminationGracePeriodSeconds());
- Assertions.assertEquals(520152641, model.timeoutSeconds());
- Assertions.assertEquals(Type.READINESS, model.type());
- }
-
- @Test
- public void testSerialize() {
- ContainerAppProbe model =
- new ContainerAppProbe()
- .withFailureThreshold(1892001157)
- .withHttpGet(
- new ContainerAppProbeHttpGet()
- .withHost("rhyrnxxmueed")
- .withHttpHeaders(
- Arrays
- .asList(
- new ContainerAppProbeHttpGetHttpHeadersItem().withName("dvstkw").withValue("qtc"),
- new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("ealmfmtdaaygdvwv")
- .withValue("piohgwxrtfu"),
- new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("xepxgyqagvrvmn")
- .withValue("k")))
- .withPath("ghimdblx")
- .withPort(505358997)
- .withScheme(Scheme.HTTP))
- .withInitialDelaySeconds(1046627826)
- .withPeriodSeconds(984160598)
- .withSuccessThreshold(44093722)
- .withTcpSocket(new ContainerAppProbeTcpSocket().withHost("mszkkfo").withPort(739435613))
- .withTerminationGracePeriodSeconds(6713909564686368420L)
- .withTimeoutSeconds(520152641)
- .withType(Type.READINESS);
- model = BinaryData.fromObject(model).toObject(ContainerAppProbe.class);
- Assertions.assertEquals(1892001157, model.failureThreshold());
- Assertions.assertEquals("rhyrnxxmueed", model.httpGet().host());
- Assertions.assertEquals("dvstkw", model.httpGet().httpHeaders().get(0).name());
- Assertions.assertEquals("qtc", model.httpGet().httpHeaders().get(0).value());
- Assertions.assertEquals("ghimdblx", model.httpGet().path());
- Assertions.assertEquals(505358997, model.httpGet().port());
- Assertions.assertEquals(Scheme.HTTP, model.httpGet().scheme());
- Assertions.assertEquals(1046627826, model.initialDelaySeconds());
- Assertions.assertEquals(984160598, model.periodSeconds());
- Assertions.assertEquals(44093722, model.successThreshold());
- Assertions.assertEquals("mszkkfo", model.tcpSocket().host());
- Assertions.assertEquals(739435613, model.tcpSocket().port());
- Assertions.assertEquals(6713909564686368420L, model.terminationGracePeriodSeconds());
- Assertions.assertEquals(520152641, model.timeoutSeconds());
- Assertions.assertEquals(Type.READINESS, model.type());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppPropertiesTests.java
deleted file mode 100644
index 5547a7f4e8e6..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppPropertiesTests.java
+++ /dev/null
@@ -1,225 +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.ContainerAppProperties;
-import com.azure.resourcemanager.appcontainers.models.ActiveRevisionsMode;
-import com.azure.resourcemanager.appcontainers.models.AppProtocol;
-import com.azure.resourcemanager.appcontainers.models.Configuration;
-import com.azure.resourcemanager.appcontainers.models.Container;
-import com.azure.resourcemanager.appcontainers.models.Dapr;
-import com.azure.resourcemanager.appcontainers.models.Ingress;
-import com.azure.resourcemanager.appcontainers.models.IngressTransportMethod;
-import com.azure.resourcemanager.appcontainers.models.InitContainer;
-import com.azure.resourcemanager.appcontainers.models.LogLevel;
-import com.azure.resourcemanager.appcontainers.models.RegistryCredentials;
-import com.azure.resourcemanager.appcontainers.models.Scale;
-import com.azure.resourcemanager.appcontainers.models.Secret;
-import com.azure.resourcemanager.appcontainers.models.StorageType;
-import com.azure.resourcemanager.appcontainers.models.Template;
-import com.azure.resourcemanager.appcontainers.models.Volume;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-public final class ContainerAppPropertiesTests {
- @Test
- public void testDeserialize() {
- ContainerAppProperties model =
- BinaryData
- .fromString(
- "{\"provisioningState\":\"Failed\",\"managedEnvironmentId\":\"i\",\"environmentId\":\"hxepcyvahfnlj\",\"workloadProfileType\":\"qxj\",\"latestRevisionName\":\"ujqgidok\",\"latestRevisionFqdn\":\"ljyoxgvcltb\",\"customDomainVerificationId\":\"ncghkje\",\"configuration\":{\"secrets\":[{\"name\":\"ijhtxf\",\"value\":\"xbf\"},{\"name\":\"xnehmpvec\",\"value\":\"odebfqkkrbmpu\"},{\"name\":\"riwflzlfb\",\"value\":\"puz\"}],\"activeRevisionsMode\":\"Single\",\"ingress\":{\"fqdn\":\"nqzahmgkbrpyyd\",\"external\":true,\"targetPort\":1877210635,\"exposedPort\":2043148337,\"transport\":\"http\",\"traffic\":[],\"customDomains\":[],\"allowInsecure\":true,\"ipSecurityRestrictions\":[]},\"registries\":[{\"server\":\"n\",\"username\":\"ynhijggme\",\"passwordSecretRef\":\"siarbutrcvpn\",\"identity\":\"zmhjrunmp\"}],\"dapr\":{\"enabled\":true,\"appId\":\"hrbnlankxmyskpbh\",\"appProtocol\":\"grpc\",\"appPort\":2131694851,\"httpReadBufferSize\":2016648328,\"httpMaxRequestSize\":83692384,\"logLevel\":\"info\",\"enableApiLogging\":false},\"maxInactiveRevisions\":1863766018},\"template\":{\"revisionSuffix\":\"lqidyby\",\"initContainers\":[{\"image\":\"clha\",\"name\":\"dbabp\",\"command\":[],\"args\":[],\"env\":[],\"volumeMounts\":[]}],\"containers\":[{\"probes\":[],\"image\":\"thsu\",\"name\":\"cmnyyazttb\",\"command\":[],\"args\":[],\"env\":[],\"volumeMounts\":[]},{\"probes\":[],\"image\":\"dckzywbiexz\",\"name\":\"yueaxibxujwb\",\"command\":[],\"args\":[],\"env\":[],\"volumeMounts\":[]},{\"probes\":[],\"image\":\"yoxa\",\"name\":\"dkzjancuxrh\",\"command\":[],\"args\":[],\"env\":[],\"volumeMounts\":[]},{\"probes\":[],\"image\":\"iwdjswztsdbpgn\",\"name\":\"txhp\",\"command\":[],\"args\":[],\"env\":[],\"volumeMounts\":[]}],\"scale\":{\"minReplicas\":262767805,\"maxReplicas\":1638223797,\"rules\":[]},\"volumes\":[{\"name\":\"tcty\",\"storageType\":\"AzureFile\",\"storageName\":\"bbovplwzbhvgyugu\"},{\"name\":\"vmkfssxqu\",\"storageType\":\"AzureFile\",\"storageName\":\"l\"},{\"name\":\"gsxnkjzkdeslpv\",\"storageType\":\"AzureFile\",\"storageName\":\"i\"},{\"name\":\"ghxpkdw\",\"storageType\":\"EmptyDir\",\"storageName\":\"uebbaumnyqup\"}]},\"outboundIpAddresses\":[\"ojnabckhsmtxpsie\",\"tfhvpesapskrdqmh\"],\"eventStreamEndpoint\":\"dhtldwkyz\"}")
- .toObject(ContainerAppProperties.class);
- Assertions.assertEquals("i", model.managedEnvironmentId());
- Assertions.assertEquals("hxepcyvahfnlj", model.environmentId());
- Assertions.assertEquals("qxj", model.workloadProfileType());
- Assertions.assertEquals("ijhtxf", model.configuration().secrets().get(0).name());
- Assertions.assertEquals("xbf", model.configuration().secrets().get(0).value());
- Assertions.assertEquals(ActiveRevisionsMode.SINGLE, model.configuration().activeRevisionsMode());
- Assertions.assertEquals(true, model.configuration().ingress().external());
- Assertions.assertEquals(1877210635, model.configuration().ingress().targetPort());
- Assertions.assertEquals(2043148337, model.configuration().ingress().exposedPort());
- Assertions.assertEquals(IngressTransportMethod.HTTP, model.configuration().ingress().transport());
- Assertions.assertEquals(true, model.configuration().ingress().allowInsecure());
- Assertions.assertEquals("n", model.configuration().registries().get(0).server());
- Assertions.assertEquals("ynhijggme", model.configuration().registries().get(0).username());
- Assertions.assertEquals("siarbutrcvpn", model.configuration().registries().get(0).passwordSecretRef());
- Assertions.assertEquals("zmhjrunmp", model.configuration().registries().get(0).identity());
- Assertions.assertEquals(true, model.configuration().dapr().enabled());
- Assertions.assertEquals("hrbnlankxmyskpbh", model.configuration().dapr().appId());
- Assertions.assertEquals(AppProtocol.GRPC, model.configuration().dapr().appProtocol());
- Assertions.assertEquals(2131694851, model.configuration().dapr().appPort());
- Assertions.assertEquals(2016648328, model.configuration().dapr().httpReadBufferSize());
- Assertions.assertEquals(83692384, model.configuration().dapr().httpMaxRequestSize());
- Assertions.assertEquals(LogLevel.INFO, model.configuration().dapr().logLevel());
- Assertions.assertEquals(false, model.configuration().dapr().enableApiLogging());
- Assertions.assertEquals(1863766018, model.configuration().maxInactiveRevisions());
- Assertions.assertEquals("lqidyby", model.template().revisionSuffix());
- Assertions.assertEquals("clha", model.template().initContainers().get(0).image());
- Assertions.assertEquals("dbabp", model.template().initContainers().get(0).name());
- Assertions.assertEquals("thsu", model.template().containers().get(0).image());
- Assertions.assertEquals("cmnyyazttb", model.template().containers().get(0).name());
- Assertions.assertEquals(262767805, model.template().scale().minReplicas());
- Assertions.assertEquals(1638223797, model.template().scale().maxReplicas());
- Assertions.assertEquals("tcty", model.template().volumes().get(0).name());
- Assertions.assertEquals(StorageType.AZURE_FILE, model.template().volumes().get(0).storageType());
- Assertions.assertEquals("bbovplwzbhvgyugu", model.template().volumes().get(0).storageName());
- }
-
- @Test
- public void testSerialize() {
- ContainerAppProperties model =
- new ContainerAppProperties()
- .withManagedEnvironmentId("i")
- .withEnvironmentId("hxepcyvahfnlj")
- .withWorkloadProfileType("qxj")
- .withConfiguration(
- new Configuration()
- .withSecrets(
- Arrays
- .asList(
- new Secret().withName("ijhtxf").withValue("xbf"),
- new Secret().withName("xnehmpvec").withValue("odebfqkkrbmpu"),
- new Secret().withName("riwflzlfb").withValue("puz")))
- .withActiveRevisionsMode(ActiveRevisionsMode.SINGLE)
- .withIngress(
- new Ingress()
- .withExternal(true)
- .withTargetPort(1877210635)
- .withExposedPort(2043148337)
- .withTransport(IngressTransportMethod.HTTP)
- .withTraffic(Arrays.asList())
- .withCustomDomains(Arrays.asList())
- .withAllowInsecure(true)
- .withIpSecurityRestrictions(Arrays.asList()))
- .withRegistries(
- Arrays
- .asList(
- new RegistryCredentials()
- .withServer("n")
- .withUsername("ynhijggme")
- .withPasswordSecretRef("siarbutrcvpn")
- .withIdentity("zmhjrunmp")))
- .withDapr(
- new Dapr()
- .withEnabled(true)
- .withAppId("hrbnlankxmyskpbh")
- .withAppProtocol(AppProtocol.GRPC)
- .withAppPort(2131694851)
- .withHttpReadBufferSize(2016648328)
- .withHttpMaxRequestSize(83692384)
- .withLogLevel(LogLevel.INFO)
- .withEnableApiLogging(false))
- .withMaxInactiveRevisions(1863766018))
- .withTemplate(
- new Template()
- .withRevisionSuffix("lqidyby")
- .withInitContainers(
- Arrays
- .asList(
- new InitContainer()
- .withImage("clha")
- .withName("dbabp")
- .withCommand(Arrays.asList())
- .withArgs(Arrays.asList())
- .withEnv(Arrays.asList())
- .withVolumeMounts(Arrays.asList())))
- .withContainers(
- Arrays
- .asList(
- new Container()
- .withImage("thsu")
- .withName("cmnyyazttb")
- .withCommand(Arrays.asList())
- .withArgs(Arrays.asList())
- .withEnv(Arrays.asList())
- .withVolumeMounts(Arrays.asList())
- .withProbes(Arrays.asList()),
- new Container()
- .withImage("dckzywbiexz")
- .withName("yueaxibxujwb")
- .withCommand(Arrays.asList())
- .withArgs(Arrays.asList())
- .withEnv(Arrays.asList())
- .withVolumeMounts(Arrays.asList())
- .withProbes(Arrays.asList()),
- new Container()
- .withImage("yoxa")
- .withName("dkzjancuxrh")
- .withCommand(Arrays.asList())
- .withArgs(Arrays.asList())
- .withEnv(Arrays.asList())
- .withVolumeMounts(Arrays.asList())
- .withProbes(Arrays.asList()),
- new Container()
- .withImage("iwdjswztsdbpgn")
- .withName("txhp")
- .withCommand(Arrays.asList())
- .withArgs(Arrays.asList())
- .withEnv(Arrays.asList())
- .withVolumeMounts(Arrays.asList())
- .withProbes(Arrays.asList())))
- .withScale(
- new Scale()
- .withMinReplicas(262767805)
- .withMaxReplicas(1638223797)
- .withRules(Arrays.asList()))
- .withVolumes(
- Arrays
- .asList(
- new Volume()
- .withName("tcty")
- .withStorageType(StorageType.AZURE_FILE)
- .withStorageName("bbovplwzbhvgyugu"),
- new Volume()
- .withName("vmkfssxqu")
- .withStorageType(StorageType.AZURE_FILE)
- .withStorageName("l"),
- new Volume()
- .withName("gsxnkjzkdeslpv")
- .withStorageType(StorageType.AZURE_FILE)
- .withStorageName("i"),
- new Volume()
- .withName("ghxpkdw")
- .withStorageType(StorageType.EMPTY_DIR)
- .withStorageName("uebbaumnyqup"))));
- model = BinaryData.fromObject(model).toObject(ContainerAppProperties.class);
- Assertions.assertEquals("i", model.managedEnvironmentId());
- Assertions.assertEquals("hxepcyvahfnlj", model.environmentId());
- Assertions.assertEquals("qxj", model.workloadProfileType());
- Assertions.assertEquals("ijhtxf", model.configuration().secrets().get(0).name());
- Assertions.assertEquals("xbf", model.configuration().secrets().get(0).value());
- Assertions.assertEquals(ActiveRevisionsMode.SINGLE, model.configuration().activeRevisionsMode());
- Assertions.assertEquals(true, model.configuration().ingress().external());
- Assertions.assertEquals(1877210635, model.configuration().ingress().targetPort());
- Assertions.assertEquals(2043148337, model.configuration().ingress().exposedPort());
- Assertions.assertEquals(IngressTransportMethod.HTTP, model.configuration().ingress().transport());
- Assertions.assertEquals(true, model.configuration().ingress().allowInsecure());
- Assertions.assertEquals("n", model.configuration().registries().get(0).server());
- Assertions.assertEquals("ynhijggme", model.configuration().registries().get(0).username());
- Assertions.assertEquals("siarbutrcvpn", model.configuration().registries().get(0).passwordSecretRef());
- Assertions.assertEquals("zmhjrunmp", model.configuration().registries().get(0).identity());
- Assertions.assertEquals(true, model.configuration().dapr().enabled());
- Assertions.assertEquals("hrbnlankxmyskpbh", model.configuration().dapr().appId());
- Assertions.assertEquals(AppProtocol.GRPC, model.configuration().dapr().appProtocol());
- Assertions.assertEquals(2131694851, model.configuration().dapr().appPort());
- Assertions.assertEquals(2016648328, model.configuration().dapr().httpReadBufferSize());
- Assertions.assertEquals(83692384, model.configuration().dapr().httpMaxRequestSize());
- Assertions.assertEquals(LogLevel.INFO, model.configuration().dapr().logLevel());
- Assertions.assertEquals(false, model.configuration().dapr().enableApiLogging());
- Assertions.assertEquals(1863766018, model.configuration().maxInactiveRevisions());
- Assertions.assertEquals("lqidyby", model.template().revisionSuffix());
- Assertions.assertEquals("clha", model.template().initContainers().get(0).image());
- Assertions.assertEquals("dbabp", model.template().initContainers().get(0).name());
- Assertions.assertEquals("thsu", model.template().containers().get(0).image());
- Assertions.assertEquals("cmnyyazttb", model.template().containers().get(0).name());
- Assertions.assertEquals(262767805, model.template().scale().minReplicas());
- Assertions.assertEquals(1638223797, model.template().scale().maxReplicas());
- Assertions.assertEquals("tcty", model.template().volumes().get(0).name());
- Assertions.assertEquals(StorageType.AZURE_FILE, model.template().volumes().get(0).storageType());
- Assertions.assertEquals("bbovplwzbhvgyugu", model.template().volumes().get(0).storageName());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppSecretTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppSecretTests.java
deleted file mode 100644
index 084242df7a48..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppSecretTests.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.ContainerAppSecret;
-import org.junit.jupiter.api.Test;
-
-public final class ContainerAppSecretTests {
- @Test
- public void testDeserialize() {
- ContainerAppSecret model =
- BinaryData
- .fromString("{\"name\":\"deibqip\",\"value\":\"ghvxndzwmkrefa\"}")
- .toObject(ContainerAppSecret.class);
- }
-
- @Test
- public void testSerialize() {
- ContainerAppSecret model = new ContainerAppSecret();
- model = BinaryData.fromObject(model).toObject(ContainerAppSecret.class);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppMockTests.java
deleted file mode 100644
index 11a175e7be13..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppMockTests.java
+++ /dev/null
@@ -1,78 +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.core.util.Context;
-import com.azure.resourcemanager.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.AuthConfig;
-import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActionV2;
-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 ContainerAppsAuthConfigsListByContainerAppMockTests {
- @Test
- public void testListByContainerApp() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"platform\":{\"enabled\":false,\"runtimeVersion\":\"vz\"},\"globalValidation\":{\"unauthenticatedClientAction\":\"RedirectToLoginPage\",\"redirectToProvider\":\"fbzdixzmqpnoda\",\"excludedPaths\":[]},\"identityProviders\":{\"customOpenIdConnectProviders\":{}},\"login\":{\"preserveUrlFragmentsForLogins\":false,\"allowedExternalRedirectUrls\":[]},\"httpSettings\":{\"requireHttps\":false}},\"id\":\"atutmzlbiojlvfhr\",\"name\":\"bpneqvcwwyyurm\",\"type\":\"chpp\"}]}";
-
- 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.containerAppsAuthConfigs().listByContainerApp("fezrx", "czurtlei", Context.NONE);
-
- Assertions.assertEquals(false, response.iterator().next().platform().enabled());
- Assertions.assertEquals("vz", response.iterator().next().platform().runtimeVersion());
- Assertions
- .assertEquals(
- UnauthenticatedClientActionV2.REDIRECT_TO_LOGIN_PAGE,
- response.iterator().next().globalValidation().unauthenticatedClientAction());
- Assertions.assertEquals("fbzdixzmqpnoda", response.iterator().next().globalValidation().redirectToProvider());
- Assertions.assertEquals(false, response.iterator().next().login().preserveUrlFragmentsForLogins());
- Assertions.assertEquals(false, response.iterator().next().httpSettings().requireHttps());
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateMockTests.java
deleted file mode 100644
index 2a395092867a..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,125 +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.ActiveRevisionsMode;
-import com.azure.resourcemanager.appcontainers.models.Configuration;
-import com.azure.resourcemanager.appcontainers.models.ContainerApp;
-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 com.azure.resourcemanager.appcontainers.models.Template;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ContainerAppsCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"extendedLocation\":{\"name\":\"kiwbuqnyoph\",\"type\":\"CustomLocation\"},\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"provisioningState\":\"Succeeded\",\"managedEnvironmentId\":\"nezzcezelfwyfwlw\",\"environmentId\":\"wetnpsihc\",\"workloadProfileType\":\"fzvaylptr\",\"latestRevisionName\":\"qwztcmwqkc\",\"latestRevisionFqdn\":\"xwaxfewzjkj\",\"customDomainVerificationId\":\"fdeqvhpsyl\",\"configuration\":{\"secrets\":[],\"activeRevisionsMode\":\"Multiple\",\"registries\":[],\"maxInactiveRevisions\":919245965},\"template\":{\"revisionSuffix\":\"zjrgyww\",\"initContainers\":[],\"containers\":[],\"volumes\":[]},\"outboundIpAddresses\":[\"tf\",\"jgicgaao\",\"pttaqutd\",\"wemxswvruunzz\"],\"eventStreamEndpoint\":\"ehkfkimrtixok\"},\"location\":\"qyinl\",\"tags\":{\"hiyxgvelfclduc\":\"pqwhixmonst\"},\"id\":\"birdsvuwcobiegs\",\"name\":\"mninwjizcilng\",\"type\":\"gshejjtbxqmulux\"}";
-
- 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));
-
- ContainerApp response =
- manager
- .containerApps()
- .define("fgtayxonsup")
- .withRegion("rylniofrzg")
- .withExistingResourceGroup("mv")
- .withTags(mapOf("tkvnlvxbcuiiznkt", "edm"))
- .withExtendedLocation(
- new ExtendedLocation().withName("lzqnhcvs").withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(mapOf()))
- .withManagedEnvironmentId("xfyqonmpqoxwdo")
- .withEnvironmentId("bxiqxeiiqbimht")
- .withWorkloadProfileType("winhehfqpo")
- .withConfiguration(
- new Configuration()
- .withSecrets(Arrays.asList())
- .withActiveRevisionsMode(ActiveRevisionsMode.MULTIPLE)
- .withRegistries(Arrays.asList())
- .withMaxInactiveRevisions(1610520770))
- .withTemplate(
- new Template()
- .withRevisionSuffix("zuwfmdur")
- .withInitContainers(Arrays.asList())
- .withContainers(Arrays.asList())
- .withVolumes(Arrays.asList()))
- .create();
-
- Assertions.assertEquals("qyinl", response.location());
- Assertions.assertEquals("pqwhixmonst", response.tags().get("hiyxgvelfclduc"));
- Assertions.assertEquals("kiwbuqnyoph", response.extendedLocation().name());
- Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, response.extendedLocation().type());
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type());
- Assertions.assertEquals("nezzcezelfwyfwlw", response.managedEnvironmentId());
- Assertions.assertEquals("wetnpsihc", response.environmentId());
- Assertions.assertEquals("fzvaylptr", response.workloadProfileType());
- Assertions.assertEquals(ActiveRevisionsMode.MULTIPLE, response.configuration().activeRevisionsMode());
- Assertions.assertEquals(919245965, response.configuration().maxInactiveRevisions());
- Assertions.assertEquals("zjrgyww", response.template().revisionSuffix());
- }
-
- @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/ContainerAppsDeleteMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteMockTests.java
deleted file mode 100644
index bd21d8edc4a5..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteMockTests.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.core.util.Context;
-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 ContainerAppsDeleteMockTests {
- @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.containerApps().delete("ljhlnymzotq", "ryuzcbmqqv", Context.NONE);
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsMockTests.java
deleted file mode 100644
index ad2bcd84fa70..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsMockTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.core.util.Context;
-import com.azure.resourcemanager.appcontainers.ContainerAppsApiManager;
-import com.azure.resourcemanager.appcontainers.models.Diagnostics;
-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 ContainerAppsDiagnosticsListDetectorsMockTests {
- @Test
- public void testListDetectors() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"metadata\":{\"id\":\"eq\",\"name\":\"arvlagunbt\",\"description\":\"ebwlnbmhyreeudzq\",\"author\":\"bpdqmjxlyy\",\"category\":\"lgouwtlmjj\",\"supportTopicList\":[],\"analysisTypes\":[],\"type\":\"qtobaxkjeyt\",\"score\":38.508713},\"dataset\":[],\"status\":{\"message\":\"wrus\",\"statusId\":1630715289},\"dataProviderMetadata\":{\"providerName\":\"syrq\",\"propertyBag\":[]}},\"id\":\"qhd\",\"name\":\"nxaulk\",\"type\":\"akdkifmjnnawtqab\"}]}";
-
- 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