deleteWithResponse(
+ String resourceGroupName, String environmentName, String managedCertificateName, Context context);
+
+ /**
+ * Deletes the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String environmentName, String managedCertificateName);
+
+ /**
+ * Update tags of a managed certificate
+ *
+ * Patches a managed certificate. Oly 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 managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Properties of a managed 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 managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificatePatch managedCertificateEnvelope,
+ Context context);
+
+ /**
+ * Update tags of a managed certificate
+ *
+ * Patches a managed certificate. Oly 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 managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Properties of a managed 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 managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedCertificateInner update(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificatePatch managedCertificateEnvelope);
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed 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.
+ * @return the Managed Certificates in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed 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.
+ * @return the Managed Certificates in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java
index 12bb72b96036c..b2aa7dd534306 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java
@@ -260,10 +260,10 @@ ManagedEnvironmentInner 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 SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginUpdate(
+ SyncPoller, ManagedEnvironmentInner> beginUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
@@ -279,10 +279,10 @@ SyncPoller, Void> beginUpdate(
* @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 SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginUpdate(
+ SyncPoller, ManagedEnvironmentInner> beginUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
@@ -297,9 +297,11 @@ SyncPoller, Void> beginUpdate(
* @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 an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
+ ManagedEnvironmentInner update(
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
* Update Managed Environment's properties.
@@ -314,9 +316,10 @@ SyncPoller, Void> beginUpdate(
* @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 an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(
+ ManagedEnvironmentInner update(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
index 0f37c337d0552..3683a5040a315 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
@@ -32,6 +32,14 @@ public final class ContainerAppInner extends Resource {
@JsonProperty(value = "identity")
private ManagedServiceIdentity identity;
+ /*
+ * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is
+ * managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if
+ * it is removed from the template since it is managed by another resource.
+ */
+ @JsonProperty(value = "managedBy")
+ private String managedBy;
+
/*
* ContainerApp resource specific properties
*/
@@ -90,6 +98,30 @@ public ContainerAppInner withIdentity(ManagedServiceIdentity identity) {
return this;
}
+ /**
+ * Get the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates
+ * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not
+ * delete the resource if it is removed from the template since it is managed by another resource.
+ *
+ * @return the managedBy value.
+ */
+ public String managedBy() {
+ return this.managedBy;
+ }
+
+ /**
+ * Set the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates
+ * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not
+ * delete the resource if it is removed from the template since it is managed by another resource.
+ *
+ * @param managedBy the managedBy value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withManagedBy(String managedBy) {
+ this.managedBy = managedBy;
+ return this;
+ }
+
/**
* Get the innerProperties property: ContainerApp resource specific properties.
*
@@ -209,6 +241,15 @@ public String latestRevisionName() {
return this.innerProperties() == null ? null : this.innerProperties().latestRevisionName();
}
+ /**
+ * Get the latestReadyRevisionName property: Name of the latest ready revision of the Container App.
+ *
+ * @return the latestReadyRevisionName value.
+ */
+ public String latestReadyRevisionName() {
+ return this.innerProperties() == null ? null : this.innerProperties().latestReadyRevisionName();
+ }
+
/**
* Get 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/fluent/models/ContainerAppProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
index b4f8ae444a422..68eda7b7394cd 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
@@ -44,6 +44,12 @@ public final class ContainerAppProperties {
@JsonProperty(value = "latestRevisionName", access = JsonProperty.Access.WRITE_ONLY)
private String latestRevisionName;
+ /*
+ * Name of the latest ready revision of the Container App.
+ */
+ @JsonProperty(value = "latestReadyRevisionName", access = JsonProperty.Access.WRITE_ONLY)
+ private String latestReadyRevisionName;
+
/*
* Fully Qualified Domain Name of the latest revision of the Container App.
*/
@@ -162,6 +168,15 @@ public String latestRevisionName() {
return this.latestRevisionName;
}
+ /**
+ * Get the latestReadyRevisionName property: Name of the latest ready revision of the Container App.
+ *
+ * @return the latestReadyRevisionName value.
+ */
+ public String latestReadyRevisionName() {
+ return this.latestReadyRevisionName;
+ }
+
/**
* Get 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/fluent/models/DaprSecretsCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
index 340ba9e1b5acc..72cdffb688012 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
@@ -6,7 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.appcontainers.models.Secret;
+import com.azure.resourcemanager.appcontainers.models.DaprSecret;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -17,7 +17,7 @@ public final class DaprSecretsCollectionInner {
* Collection of secrets used by a Dapr component
*/
@JsonProperty(value = "value", required = true)
- private List value;
+ private List value;
/** Creates an instance of DaprSecretsCollectionInner class. */
public DaprSecretsCollectionInner() {
@@ -28,7 +28,7 @@ public DaprSecretsCollectionInner() {
*
* @return the value value.
*/
- public List value() {
+ public List value() {
return this.value;
}
@@ -38,7 +38,7 @@ public List value() {
* @param value the value value to set.
* @return the DaprSecretsCollectionInner object itself.
*/
- public DaprSecretsCollectionInner withValue(List value) {
+ public DaprSecretsCollectionInner withValue(List value) {
this.value = value;
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedCertificateInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedCertificateInner.java
new file mode 100644
index 0000000000000..4854ffb18f62f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedCertificateInner.java
@@ -0,0 +1,86 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificateProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment. */
+@Fluent
+public final class ManagedCertificateInner extends Resource {
+ /*
+ * Certificate resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private ManagedCertificateProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of ManagedCertificateInner class. */
+ public ManagedCertificateInner() {
+ }
+
+ /**
+ * Get the properties property: Certificate resource specific properties.
+ *
+ * @return the properties value.
+ */
+ public ManagedCertificateProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Certificate resource specific properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ManagedCertificateInner object itself.
+ */
+ public ManagedCertificateInner withProperties(ManagedCertificateProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ManagedCertificateInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ManagedCertificateInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
index a75d12a08e155..7f71c2c0fd39b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
@@ -9,8 +9,10 @@
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.models.AppLogsConfiguration;
import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
+import com.azure.resourcemanager.appcontainers.models.DaprConfiguration;
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
-import com.azure.resourcemanager.appcontainers.models.EnvironmentSkuProperties;
+import com.azure.resourcemanager.appcontainers.models.KedaConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentQuota;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -21,10 +23,10 @@
@Fluent
public final class ManagedEnvironmentInner extends Resource {
/*
- * SKU properties of the Environment.
+ * Kind of the Environment.
*/
- @JsonProperty(value = "sku")
- private EnvironmentSkuProperties sku;
+ @JsonProperty(value = "kind")
+ private String kind;
/*
* Managed environment resource specific properties
@@ -43,22 +45,22 @@ public ManagedEnvironmentInner() {
}
/**
- * Get the sku property: SKU properties of the Environment.
+ * Get the kind property: Kind of the Environment.
*
- * @return the sku value.
+ * @return the kind value.
*/
- public EnvironmentSkuProperties sku() {
- return this.sku;
+ public String kind() {
+ return this.kind;
}
/**
- * Set the sku property: SKU properties of the Environment.
+ * Set the kind property: Kind of the Environment.
*
- * @param sku the sku value to set.
+ * @param kind the kind value to set.
* @return the ManagedEnvironmentInner object itself.
*/
- public ManagedEnvironmentInner withSku(EnvironmentSkuProperties sku) {
- this.sku = sku;
+ public ManagedEnvironmentInner withKind(String kind) {
+ this.kind = kind;
return this;
}
@@ -306,15 +308,81 @@ public ManagedEnvironmentInner withWorkloadProfiles(List worklo
return this;
}
+ /**
+ * Get the kedaConfiguration property: The configuration of Keda component.
+ *
+ * @return the kedaConfiguration value.
+ */
+ public KedaConfiguration kedaConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().kedaConfiguration();
+ }
+
+ /**
+ * Set the kedaConfiguration property: The configuration of Keda component.
+ *
+ * @param kedaConfiguration the kedaConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withKedaConfiguration(KedaConfiguration kedaConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withKedaConfiguration(kedaConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the daprConfiguration property: The configuration of Dapr component.
+ *
+ * @return the daprConfiguration value.
+ */
+ public DaprConfiguration daprConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().daprConfiguration();
+ }
+
+ /**
+ * Set the daprConfiguration property: The configuration of Dapr component.
+ *
+ * @param daprConfiguration the daprConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withDaprConfiguration(DaprConfiguration daprConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withDaprConfiguration(daprConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the quotas property: Quota status for the environment.
+ *
+ * @return the quotas value.
+ */
+ public ManagedEnvironmentQuota quotas() {
+ return this.innerProperties() == null ? null : this.innerProperties().quotas();
+ }
+
+ /**
+ * Set the quotas property: Quota status for the environment.
+ *
+ * @param quotas the quotas value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withQuotas(ManagedEnvironmentQuota quotas) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withQuotas(quotas);
+ return this;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (sku() != null) {
- sku().validate();
- }
if (innerProperties() != null) {
innerProperties().validate();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
index 78ef578717a04..bfa9bd0db8f67 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
@@ -7,7 +7,10 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.appcontainers.models.AppLogsConfiguration;
import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
+import com.azure.resourcemanager.appcontainers.models.DaprConfiguration;
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.KedaConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentQuota;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -90,6 +93,24 @@ public final class ManagedEnvironmentProperties {
@JsonProperty(value = "workloadProfiles")
private List workloadProfiles;
+ /*
+ * The configuration of Keda component.
+ */
+ @JsonProperty(value = "kedaConfiguration")
+ private KedaConfiguration kedaConfiguration;
+
+ /*
+ * The configuration of Dapr component.
+ */
+ @JsonProperty(value = "daprConfiguration")
+ private DaprConfiguration daprConfiguration;
+
+ /*
+ * Quota status for the environment.
+ */
+ @JsonProperty(value = "quotas")
+ private ManagedEnvironmentQuota quotas;
+
/** Creates an instance of ManagedEnvironmentProperties class. */
public ManagedEnvironmentProperties() {
}
@@ -286,6 +307,66 @@ public ManagedEnvironmentProperties withWorkloadProfiles(List w
return this;
}
+ /**
+ * Get the kedaConfiguration property: The configuration of Keda component.
+ *
+ * @return the kedaConfiguration value.
+ */
+ public KedaConfiguration kedaConfiguration() {
+ return this.kedaConfiguration;
+ }
+
+ /**
+ * Set the kedaConfiguration property: The configuration of Keda component.
+ *
+ * @param kedaConfiguration the kedaConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withKedaConfiguration(KedaConfiguration kedaConfiguration) {
+ this.kedaConfiguration = kedaConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the daprConfiguration property: The configuration of Dapr component.
+ *
+ * @return the daprConfiguration value.
+ */
+ public DaprConfiguration daprConfiguration() {
+ return this.daprConfiguration;
+ }
+
+ /**
+ * Set the daprConfiguration property: The configuration of Dapr component.
+ *
+ * @param daprConfiguration the daprConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withDaprConfiguration(DaprConfiguration daprConfiguration) {
+ this.daprConfiguration = daprConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the quotas property: Quota status for the environment.
+ *
+ * @return the quotas value.
+ */
+ public ManagedEnvironmentQuota quotas() {
+ return this.quotas;
+ }
+
+ /**
+ * Set the quotas property: Quota status for the environment.
+ *
+ * @param quotas the quotas value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withQuotas(ManagedEnvironmentQuota quotas) {
+ this.quotas = quotas;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -304,5 +385,14 @@ public void validate() {
if (workloadProfiles() != null) {
workloadProfiles().forEach(e -> e.validate());
}
+ if (kedaConfiguration() != null) {
+ kedaConfiguration().validate();
+ }
+ if (daprConfiguration() != null) {
+ daprConfiguration().validate();
+ }
+ if (quotas() != null) {
+ quotas().validate();
+ }
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfilesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfilesClientImpl.java
index 8a3a3e3b2b10a..1210677421782 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfilesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfilesClientImpl.java
@@ -57,7 +57,7 @@ public final class AvailableWorkloadProfilesClientImpl implements AvailableWorkl
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface AvailableWorkloadProfilesService {
+ public interface AvailableWorkloadProfilesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java
index 98f328927105f..ca38979de6dc2 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java
@@ -50,7 +50,7 @@ public final class BillingMetersClientImpl implements BillingMetersClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface BillingMetersService {
+ public interface BillingMetersService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters")
@ExpectedResponses({200})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
index 0e95dfc5f0119..2c083dfc0e7c1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
@@ -74,15 +74,15 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager(
private String resourceGroupName;
- private String environmentName;
+ private String connectedEnvironmentName;
private String certificateName;
private CertificatePatch updateCertificateEnvelope;
- public CertificateImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) {
+ public CertificateImpl withExistingConnectedEnvironment(String resourceGroupName, String connectedEnvironmentName) {
this.resourceGroupName = resourceGroupName;
- this.environmentName = environmentName;
+ this.connectedEnvironmentName = connectedEnvironmentName;
return this;
}
@@ -90,9 +90,9 @@ public Certificate create() {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
+ .getConnectedEnvironmentsCertificates()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, certificateName, this.innerModel(), Context.NONE)
+ resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(), Context.NONE)
.getValue();
return this;
}
@@ -101,9 +101,9 @@ public Certificate create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
+ .getConnectedEnvironmentsCertificates()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, certificateName, this.innerModel(), context)
+ resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(), context)
.getValue();
return this;
}
@@ -123,9 +123,13 @@ public Certificate apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
+ .getConnectedEnvironmentsCertificates()
.updateWithResponse(
- resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, Context.NONE)
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ updateCertificateEnvelope,
+ Context.NONE)
.getValue();
return this;
}
@@ -134,9 +138,9 @@ public Certificate apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
+ .getConnectedEnvironmentsCertificates()
.updateWithResponse(
- resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, context)
+ resourceGroupName, connectedEnvironmentName, certificateName, updateCertificateEnvelope, context)
.getValue();
return this;
}
@@ -146,7 +150,7 @@ public Certificate apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments");
+ this.connectedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "connectedEnvironments");
this.certificateName = Utils.getValueFromIdByName(innerObject.id(), "certificates");
}
@@ -154,8 +158,8 @@ public Certificate refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
- .getWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE)
+ .getConnectedEnvironmentsCertificates()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE)
.getValue();
return this;
}
@@ -164,8 +168,8 @@ public Certificate refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
- .getWithResponse(resourceGroupName, environmentName, certificateName, context)
+ .getConnectedEnvironmentsCertificates()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context)
.getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
index b3ab88433a8df..a94614bf4a5bb 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
@@ -60,7 +60,7 @@ public final class CertificatesClientImpl implements CertificatesClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface CertificatesService {
+ public interface CertificatesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java
index 86498b92b8eef..9a24cb875758a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.appcontainers.fluent.CertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
import com.azure.resourcemanager.appcontainers.models.Certificate;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
import com.azure.resourcemanager.appcontainers.models.Certificates;
public final class CertificatesImpl implements Certificates {
@@ -62,6 +63,38 @@ public Certificate get(String resourceGroupName, String environmentName, String
}
}
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(
+ resourceGroupName, environmentName, certificateName, certificateEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public Certificate createOrUpdate(String resourceGroupName, String environmentName, String certificateName) {
+ CertificateInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, environmentName, certificateName);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Response deleteWithResponse(
String resourceGroupName, String environmentName, String certificateName, Context context) {
return this.serviceClient().deleteWithResponse(resourceGroupName, environmentName, certificateName, context);
@@ -71,116 +104,39 @@ public void delete(String resourceGroupName, String environmentName, String cert
this.serviceClient().delete(resourceGroupName, environmentName, certificateName);
}
- public Certificate getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String certificateName = Utils.getValueFromIdByName(id, "certificates");
- if (certificateName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
- }
- return this.getWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String certificateName = Utils.getValueFromIdByName(id, "certificates");
- if (certificateName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
- }
- return this.getWithResponse(resourceGroupName, environmentName, certificateName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String certificateName = Utils.getValueFromIdByName(id, "certificates");
- if (certificateName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .updateWithResponse(resourceGroupName, environmentName, certificateName, certificateEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String certificateName = Utils.getValueFromIdByName(id, "certificates");
- if (certificateName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ public Certificate update(
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ CertificateInner inner =
+ this.serviceClient().update(resourceGroupName, environmentName, certificateName, certificateEnvelope);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, environmentName, certificateName, context);
}
private CertificatesClient serviceClient() {
@@ -190,8 +146,4 @@ private CertificatesClient serviceClient() {
private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
return this.serviceManager;
}
-
- public CertificateImpl define(String name) {
- return new CertificateImpl(name, this.manager());
- }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
index 4b0c4f9f133ee..d9e39127da08a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
@@ -66,7 +66,7 @@ public final class ConnectedEnvironmentsCertificatesClientImpl implements Connec
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ConnectedEnvironmentsCertificatesService {
+ public interface ConnectedEnvironmentsCertificatesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
index 851e484803652..6c5a00ced3de9 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
@@ -12,7 +12,6 @@
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsCertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
import com.azure.resourcemanager.appcontainers.models.Certificate;
-import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsCertificates;
public final class ConnectedEnvironmentsCertificatesImpl implements ConnectedEnvironmentsCertificates {
@@ -64,39 +63,6 @@ public Certificate get(String resourceGroupName, String connectedEnvironmentName
}
}
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String connectedEnvironmentName,
- String certificateName,
- CertificateInner certificateEnvelope,
- Context context) {
- Response inner =
- this
- .serviceClient()
- .createOrUpdateWithResponse(
- resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new CertificateImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public Certificate createOrUpdate(
- String resourceGroupName, String connectedEnvironmentName, String certificateName) {
- CertificateInner inner =
- this.serviceClient().createOrUpdate(resourceGroupName, connectedEnvironmentName, certificateName);
- if (inner != null) {
- return new CertificateImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response deleteWithResponse(
String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
return this
@@ -108,42 +74,122 @@ public void delete(String resourceGroupName, String connectedEnvironmentName, St
this.serviceClient().delete(resourceGroupName, connectedEnvironmentName, certificateName);
}
- public Response updateWithResponse(
- String resourceGroupName,
- String connectedEnvironmentName,
- String certificateName,
- CertificatePatch certificateEnvelope,
- Context context) {
- Response inner =
- this
- .serviceClient()
- .updateWithResponse(
- resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new CertificateImpl(inner.getValue(), this.manager()));
- } else {
- return null;
+ public Certificate getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "certificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE)
+ .getValue();
}
- public Certificate update(
- String resourceGroupName,
- String connectedEnvironmentName,
- String certificateName,
- CertificatePatch certificateEnvelope) {
- CertificateInner inner =
- this
- .serviceClient()
- .update(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope);
- if (inner != null) {
- return new CertificateImpl(inner, this.manager());
- } else {
- return null;
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "certificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
}
+ return this.getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "certificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "certificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
}
private ConnectedEnvironmentsCertificatesClient serviceClient() {
@@ -153,4 +199,8 @@ private ConnectedEnvironmentsCertificatesClient serviceClient() {
private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
return this.serviceManager;
}
+
+ public CertificateImpl define(String name) {
+ return new CertificateImpl(name, this.manager());
+ }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
index c19ba549ecf2a..fbee79dd531b3 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
@@ -68,7 +68,7 @@ public final class ConnectedEnvironmentsClientImpl implements ConnectedEnvironme
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ConnectedEnvironmentsService {
+ public interface ConnectedEnvironmentsService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/connectedEnvironments")
@ExpectedResponses({200})
@@ -843,7 +843,8 @@ private PollerFlux, ConnectedEnvironmentIn
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
- return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope)
.getSyncPoller();
}
@@ -866,7 +867,8 @@ public SyncPoller, ConnectedEnvironmentInn
String connectedEnvironmentName,
ConnectedEnvironmentInner environmentEnvelope,
Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context)
.getSyncPoller();
}
@@ -1104,7 +1106,7 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String connectedEnvironmentName) {
- return beginDeleteAsync(resourceGroupName, connectedEnvironmentName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, connectedEnvironmentName).getSyncPoller();
}
/**
@@ -1121,7 +1123,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String connectedEnvironmentName, Context context) {
- return beginDeleteAsync(resourceGroupName, connectedEnvironmentName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, connectedEnvironmentName, context).getSyncPoller();
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
index bb0656b535b89..265101bc18ac1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
@@ -66,7 +66,7 @@ public final class ConnectedEnvironmentsDaprComponentsClientImpl implements Conn
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ConnectedEnvironmentsDaprComponentsService {
+ public interface ConnectedEnvironmentsDaprComponentsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java
index 14b9d452dbc31..a42732ed38b8c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java
@@ -67,44 +67,6 @@ public DaprComponent get(String resourceGroupName, String connectedEnvironmentNa
}
}
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String connectedEnvironmentName,
- String componentName,
- DaprComponentInner daprComponentEnvelope,
- Context context) {
- Response inner =
- this
- .serviceClient()
- .createOrUpdateWithResponse(
- resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new DaprComponentImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public DaprComponent createOrUpdate(
- String resourceGroupName,
- String connectedEnvironmentName,
- String componentName,
- DaprComponentInner daprComponentEnvelope) {
- DaprComponentInner inner =
- this
- .serviceClient()
- .createOrUpdate(resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope);
- if (inner != null) {
- return new DaprComponentImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response deleteWithResponse(
String resourceGroupName, String connectedEnvironmentName, String componentName, Context context) {
return this
@@ -144,6 +106,128 @@ public DaprSecretsCollection listSecrets(
}
}
+ public DaprComponent getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String componentName = Utils.getValueFromIdByName(id, "daprComponents");
+ if (componentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String componentName = Utils.getValueFromIdByName(id, "daprComponents");
+ if (componentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String componentName = Utils.getValueFromIdByName(id, "daprComponents");
+ if (componentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, componentName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String componentName = Utils.getValueFromIdByName(id, "daprComponents");
+ if (componentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context);
+ }
+
private ConnectedEnvironmentsDaprComponentsClient serviceClient() {
return this.innerClient;
}
@@ -151,4 +235,8 @@ private ConnectedEnvironmentsDaprComponentsClient serviceClient() {
private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
return this.serviceManager;
}
+
+ public DaprComponentImpl define(String name) {
+ return new DaprComponentImpl(name, this.manager());
+ }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java
index b74dc46476d27..4d52f5e2c09c0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java
@@ -58,7 +58,7 @@ public final class ConnectedEnvironmentsStoragesClientImpl implements ConnectedE
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ConnectedEnvironmentsStoragesService {
+ public interface ConnectedEnvironmentsStoragesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java
index 26f5c8d21376b..26380caabfb38 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java
@@ -60,6 +60,10 @@ public ManagedServiceIdentity identity() {
return this.innerModel().identity();
}
+ public String managedBy() {
+ return this.innerModel().managedBy();
+ }
+
public SystemData systemData() {
return this.innerModel().systemData();
}
@@ -84,6 +88,10 @@ public String latestRevisionName() {
return this.innerModel().latestRevisionName();
}
+ public String latestReadyRevisionName() {
+ return this.innerModel().latestReadyRevisionName();
+ }
+
public String latestRevisionFqdn() {
return this.innerModel().latestRevisionFqdn();
}
@@ -175,7 +183,7 @@ public ContainerApp apply() {
serviceManager
.serviceClient()
.getContainerApps()
- .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), Context.NONE);
+ .update(resourceGroupName, containerAppName, this.innerModel(), Context.NONE);
return this;
}
@@ -184,7 +192,7 @@ public ContainerApp apply(Context context) {
serviceManager
.serviceClient()
.getContainerApps()
- .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), context);
+ .update(resourceGroupName, containerAppName, this.innerModel(), context);
return this;
}
@@ -268,6 +276,11 @@ public ContainerAppImpl withIdentity(ManagedServiceIdentity identity) {
return this;
}
+ public ContainerAppImpl withManagedBy(String managedBy) {
+ this.innerModel().withManagedBy(managedBy);
+ return this;
+ }
+
public ContainerAppImpl withManagedEnvironmentId(String managedEnvironmentId) {
this.innerModel().withManagedEnvironmentId(managedEnvironmentId);
return this;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
index ae4e2dfa8dc68..22b1bb80455dc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
@@ -37,6 +37,7 @@
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsRevisionsClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsSourceControlsClient;
import com.azure.resourcemanager.appcontainers.fluent.DaprComponentsClient;
+import com.azure.resourcemanager.appcontainers.fluent.ManagedCertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentDiagnosticsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsDiagnosticsClient;
@@ -139,6 +140,78 @@ public ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs() {
return this.containerAppsAuthConfigs;
}
+ /** The AvailableWorkloadProfilesClient object to access its operations. */
+ private final AvailableWorkloadProfilesClient availableWorkloadProfiles;
+
+ /**
+ * Gets the AvailableWorkloadProfilesClient object to access its operations.
+ *
+ * @return the AvailableWorkloadProfilesClient object.
+ */
+ public AvailableWorkloadProfilesClient getAvailableWorkloadProfiles() {
+ return this.availableWorkloadProfiles;
+ }
+
+ /** The BillingMetersClient object to access its operations. */
+ private final BillingMetersClient billingMeters;
+
+ /**
+ * Gets the BillingMetersClient object to access its operations.
+ *
+ * @return the BillingMetersClient object.
+ */
+ public BillingMetersClient getBillingMeters() {
+ return this.billingMeters;
+ }
+
+ /** The ConnectedEnvironmentsClient object to access its operations. */
+ private final ConnectedEnvironmentsClient connectedEnvironments;
+
+ /**
+ * Gets the ConnectedEnvironmentsClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsClient object.
+ */
+ public ConnectedEnvironmentsClient getConnectedEnvironments() {
+ return this.connectedEnvironments;
+ }
+
+ /** The ConnectedEnvironmentsCertificatesClient object to access its operations. */
+ private final ConnectedEnvironmentsCertificatesClient connectedEnvironmentsCertificates;
+
+ /**
+ * Gets the ConnectedEnvironmentsCertificatesClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsCertificatesClient object.
+ */
+ public ConnectedEnvironmentsCertificatesClient getConnectedEnvironmentsCertificates() {
+ return this.connectedEnvironmentsCertificates;
+ }
+
+ /** The ConnectedEnvironmentsDaprComponentsClient object to access its operations. */
+ private final ConnectedEnvironmentsDaprComponentsClient connectedEnvironmentsDaprComponents;
+
+ /**
+ * Gets the ConnectedEnvironmentsDaprComponentsClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsDaprComponentsClient object.
+ */
+ public ConnectedEnvironmentsDaprComponentsClient getConnectedEnvironmentsDaprComponents() {
+ return this.connectedEnvironmentsDaprComponents;
+ }
+
+ /** The ConnectedEnvironmentsStoragesClient object to access its operations. */
+ private final ConnectedEnvironmentsStoragesClient connectedEnvironmentsStorages;
+
+ /**
+ * Gets the ConnectedEnvironmentsStoragesClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsStoragesClient object.
+ */
+ public ConnectedEnvironmentsStoragesClient getConnectedEnvironmentsStorages() {
+ return this.connectedEnvironmentsStorages;
+ }
+
/** The ContainerAppsClient object to access its operations. */
private final ContainerAppsClient containerApps;
@@ -175,18 +248,6 @@ public ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas() {
return this.containerAppsRevisionReplicas;
}
- /** The DaprComponentsClient object to access its operations. */
- private final DaprComponentsClient daprComponents;
-
- /**
- * Gets the DaprComponentsClient object to access its operations.
- *
- * @return the DaprComponentsClient object.
- */
- public DaprComponentsClient getDaprComponents() {
- return this.daprComponents;
- }
-
/** The ContainerAppsDiagnosticsClient object to access its operations. */
private final ContainerAppsDiagnosticsClient containerAppsDiagnostics;
@@ -259,6 +320,18 @@ public CertificatesClient getCertificates() {
return this.certificates;
}
+ /** The ManagedCertificatesClient object to access its operations. */
+ private final ManagedCertificatesClient managedCertificates;
+
+ /**
+ * Gets the ManagedCertificatesClient object to access its operations.
+ *
+ * @return the ManagedCertificatesClient object.
+ */
+ public ManagedCertificatesClient getManagedCertificates() {
+ return this.managedCertificates;
+ }
+
/** The NamespacesClient object to access its operations. */
private final NamespacesClient namespaces;
@@ -271,6 +344,18 @@ public NamespacesClient getNamespaces() {
return this.namespaces;
}
+ /** The DaprComponentsClient object to access its operations. */
+ private final DaprComponentsClient daprComponents;
+
+ /**
+ * Gets the DaprComponentsClient object to access its operations.
+ *
+ * @return the DaprComponentsClient object.
+ */
+ public DaprComponentsClient getDaprComponents() {
+ return this.daprComponents;
+ }
+
/** The ManagedEnvironmentsStoragesClient object to access its operations. */
private final ManagedEnvironmentsStoragesClient managedEnvironmentsStorages;
@@ -295,78 +380,6 @@ public ContainerAppsSourceControlsClient getContainerAppsSourceControls() {
return this.containerAppsSourceControls;
}
- /** The ConnectedEnvironmentsClient object to access its operations. */
- private final ConnectedEnvironmentsClient connectedEnvironments;
-
- /**
- * Gets the ConnectedEnvironmentsClient object to access its operations.
- *
- * @return the ConnectedEnvironmentsClient object.
- */
- public ConnectedEnvironmentsClient getConnectedEnvironments() {
- return this.connectedEnvironments;
- }
-
- /** The ConnectedEnvironmentsCertificatesClient object to access its operations. */
- private final ConnectedEnvironmentsCertificatesClient connectedEnvironmentsCertificates;
-
- /**
- * Gets the ConnectedEnvironmentsCertificatesClient object to access its operations.
- *
- * @return the ConnectedEnvironmentsCertificatesClient object.
- */
- public ConnectedEnvironmentsCertificatesClient getConnectedEnvironmentsCertificates() {
- return this.connectedEnvironmentsCertificates;
- }
-
- /** The ConnectedEnvironmentsDaprComponentsClient object to access its operations. */
- private final ConnectedEnvironmentsDaprComponentsClient connectedEnvironmentsDaprComponents;
-
- /**
- * Gets the ConnectedEnvironmentsDaprComponentsClient object to access its operations.
- *
- * @return the ConnectedEnvironmentsDaprComponentsClient object.
- */
- public ConnectedEnvironmentsDaprComponentsClient getConnectedEnvironmentsDaprComponents() {
- return this.connectedEnvironmentsDaprComponents;
- }
-
- /** The ConnectedEnvironmentsStoragesClient object to access its operations. */
- private final ConnectedEnvironmentsStoragesClient connectedEnvironmentsStorages;
-
- /**
- * Gets the ConnectedEnvironmentsStoragesClient object to access its operations.
- *
- * @return the ConnectedEnvironmentsStoragesClient object.
- */
- public ConnectedEnvironmentsStoragesClient getConnectedEnvironmentsStorages() {
- return this.connectedEnvironmentsStorages;
- }
-
- /** The AvailableWorkloadProfilesClient object to access its operations. */
- private final AvailableWorkloadProfilesClient availableWorkloadProfiles;
-
- /**
- * Gets the AvailableWorkloadProfilesClient object to access its operations.
- *
- * @return the AvailableWorkloadProfilesClient object.
- */
- public AvailableWorkloadProfilesClient getAvailableWorkloadProfiles() {
- return this.availableWorkloadProfiles;
- }
-
- /** The BillingMetersClient object to access its operations. */
- private final BillingMetersClient billingMeters;
-
- /**
- * Gets the BillingMetersClient object to access its operations.
- *
- * @return the BillingMetersClient object.
- */
- public BillingMetersClient getBillingMeters() {
- return this.billingMeters;
- }
-
/**
* Initializes an instance of ContainerAppsApiClient client.
*
@@ -389,27 +402,28 @@ public BillingMetersClient getBillingMeters() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-06-01-preview";
+ this.apiVersion = "2022-11-01-preview";
this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsClientImpl(this);
+ this.availableWorkloadProfiles = new AvailableWorkloadProfilesClientImpl(this);
+ this.billingMeters = new BillingMetersClientImpl(this);
+ this.connectedEnvironments = new ConnectedEnvironmentsClientImpl(this);
+ this.connectedEnvironmentsCertificates = new ConnectedEnvironmentsCertificatesClientImpl(this);
+ this.connectedEnvironmentsDaprComponents = new ConnectedEnvironmentsDaprComponentsClientImpl(this);
+ this.connectedEnvironmentsStorages = new ConnectedEnvironmentsStoragesClientImpl(this);
this.containerApps = new ContainerAppsClientImpl(this);
this.containerAppsRevisions = new ContainerAppsRevisionsClientImpl(this);
this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasClientImpl(this);
- this.daprComponents = new DaprComponentsClientImpl(this);
this.containerAppsDiagnostics = new ContainerAppsDiagnosticsClientImpl(this);
this.managedEnvironmentDiagnostics = new ManagedEnvironmentDiagnosticsClientImpl(this);
this.managedEnvironmentsDiagnostics = new ManagedEnvironmentsDiagnosticsClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.managedEnvironments = new ManagedEnvironmentsClientImpl(this);
this.certificates = new CertificatesClientImpl(this);
+ this.managedCertificates = new ManagedCertificatesClientImpl(this);
this.namespaces = new NamespacesClientImpl(this);
+ this.daprComponents = new DaprComponentsClientImpl(this);
this.managedEnvironmentsStorages = new ManagedEnvironmentsStoragesClientImpl(this);
this.containerAppsSourceControls = new ContainerAppsSourceControlsClientImpl(this);
- this.connectedEnvironments = new ConnectedEnvironmentsClientImpl(this);
- this.connectedEnvironmentsCertificates = new ConnectedEnvironmentsCertificatesClientImpl(this);
- this.connectedEnvironmentsDaprComponents = new ConnectedEnvironmentsDaprComponentsClientImpl(this);
- this.connectedEnvironmentsStorages = new ConnectedEnvironmentsStoragesClientImpl(this);
- this.availableWorkloadProfiles = new AvailableWorkloadProfilesClientImpl(this);
- this.billingMeters = new BillingMetersClientImpl(this);
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java
index 7af8a2bde9c42..de270ec3acb3e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java
@@ -59,7 +59,7 @@ public final class ContainerAppsAuthConfigsClientImpl implements ContainerAppsAu
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsAuthConfigsService {
+ public interface ContainerAppsAuthConfigsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java
index 0aafa672aee81..e9c173e657123 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java
@@ -69,7 +69,7 @@ public final class ContainerAppsClientImpl implements ContainerAppsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsService {
+ public interface ContainerAppsService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps")
@ExpectedResponses({200})
@@ -143,7 +143,7 @@ Mono>> delete(
@Patch(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
+ "/{containerAppName}")
- @ExpectedResponses({202})
+ @ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
Mono>> update(
@HostParam("$host") String endpoint,
@@ -850,7 +850,7 @@ private PollerFlux, ContainerAppInner> beginCreate
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ContainerAppInner> beginCreateOrUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
- return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller();
}
/**
@@ -868,7 +868,8 @@ public SyncPoller, ContainerAppInner> beginCreateO
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ContainerAppInner> beginCreateOrUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context)
.getSyncPoller();
}
@@ -1094,7 +1095,7 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName) {
- return beginDeleteAsync(resourceGroupName, containerAppName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, containerAppName).getSyncPoller();
}
/**
@@ -1111,7 +1112,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String containerAppName, Context context) {
- return beginDeleteAsync(resourceGroupName, containerAppName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, context).getSyncPoller();
}
/**
@@ -1189,7 +1190,7 @@ public void delete(String resourceGroupName, String containerAppName, Context co
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return container App along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1249,7 +1250,7 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return container App along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1305,17 +1306,21 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginUpdateAsync(
+ private PollerFlux, ContainerAppInner> beginUpdateAsync(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
Mono>> mono =
updateWithResponseAsync(resourceGroupName, containerAppName, containerAppEnvelope);
return this
.client
- .getLroResult(
- mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ContainerAppInner.class,
+ ContainerAppInner.class,
+ this.client.getContext());
}
/**
@@ -1330,17 +1335,18 @@ private PollerFlux, Void> beginUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginUpdateAsync(
+ private PollerFlux, ContainerAppInner> beginUpdateAsync(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
updateWithResponseAsync(resourceGroupName, containerAppName, containerAppEnvelope, context);
return this
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ContainerAppInner.class, ContainerAppInner.class, context);
}
/**
@@ -1354,12 +1360,12 @@ private PollerFlux, Void> beginUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginUpdate(
+ public SyncPoller, ContainerAppInner> beginUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
- return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller();
}
/**
@@ -1374,12 +1380,14 @@ public SyncPoller, Void> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginUpdate(
+ public SyncPoller, ContainerAppInner> beginUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
- return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context).getSyncPoller();
+ return this
+ .beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context)
+ .getSyncPoller();
}
/**
@@ -1393,10 +1401,10 @@ public SyncPoller, Void> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return container App on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
+ private Mono updateAsync(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope)
.last()
@@ -1415,10 +1423,10 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return container App on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
+ private Mono updateAsync(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context)
.last()
@@ -1436,10 +1444,12 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
- updateAsync(resourceGroupName, containerAppName, containerAppEnvelope).block();
+ public ContainerAppInner update(
+ String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
+ return updateAsync(resourceGroupName, containerAppName, containerAppEnvelope).block();
}
/**
@@ -1454,11 +1464,12 @@ public void update(String resourceGroupName, String containerAppName, ContainerA
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void update(
+ public ContainerAppInner update(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
- updateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context).block();
+ return updateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context).block();
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsDiagnosticsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsDiagnosticsClientImpl.java
index fa0c2d32eb4a7..7eda9e8c67370 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsDiagnosticsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsDiagnosticsClientImpl.java
@@ -60,7 +60,7 @@ public final class ContainerAppsDiagnosticsClientImpl implements ContainerAppsDi
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsDiagnosticsService {
+ public interface ContainerAppsDiagnosticsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java
index 10d93f3c80fc7..2487493c7ff6a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java
@@ -86,15 +86,6 @@ public void delete(String resourceGroupName, String containerAppName, Context co
this.serviceClient().delete(resourceGroupName, containerAppName, context);
}
- public void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
- this.serviceClient().update(resourceGroupName, containerAppName, containerAppEnvelope);
- }
-
- public void update(
- String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
- this.serviceClient().update(resourceGroupName, containerAppName, containerAppEnvelope, context);
- }
-
public Response listCustomHostnameAnalysisWithResponse(
String resourceGroupName, String containerAppName, String customHostname, Context context) {
Response inner =
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java
index 6b7ce6545dd60..838278de24ee3 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java
@@ -55,7 +55,7 @@ public final class ContainerAppsRevisionReplicasClientImpl implements ContainerA
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsRevisionReplicasService {
+ public interface ContainerAppsRevisionReplicasService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java
index eb37e3d57d3ab..d0bc07ba4ae1e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java
@@ -57,7 +57,7 @@ public final class ContainerAppsRevisionsClientImpl implements ContainerAppsRevi
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsRevisionsService {
+ public interface ContainerAppsRevisionsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java
index 2d24f2d839e3d..72318a4ce3688 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java
@@ -65,7 +65,7 @@ public final class ContainerAppsSourceControlsClientImpl implements ContainerApp
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsSourceControlsService {
+ public interface ContainerAppsSourceControlsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
@@ -697,7 +697,8 @@ public SyncPoller, SourceControlInner> beginCreat
String containerAppName,
String sourceControlName,
SourceControlInner sourceControlEnvelope) {
- return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope)
.getSyncPoller();
}
@@ -721,7 +722,8 @@ public SyncPoller, SourceControlInner> beginCreat
String sourceControlName,
SourceControlInner sourceControlEnvelope,
Context context) {
- return beginCreateOrUpdateAsync(
+ return this
+ .beginCreateOrUpdateAsync(
resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, context)
.getSyncPoller();
}
@@ -989,7 +991,7 @@ private PollerFlux, Void> beginDeleteAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String containerAppName, String sourceControlName) {
- return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName).getSyncPoller();
}
/**
@@ -1007,7 +1009,7 @@ public SyncPoller, Void> beginDelete(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String containerAppName, String sourceControlName, Context context) {
- return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, context).getSyncPoller();
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java
index 0585f315609e4..f4699fac8b923 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java
@@ -97,13 +97,14 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager(
private String resourceGroupName;
- private String environmentName;
+ private String connectedEnvironmentName;
private String componentName;
- public DaprComponentImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) {
+ public DaprComponentImpl withExistingConnectedEnvironment(
+ String resourceGroupName, String connectedEnvironmentName) {
this.resourceGroupName = resourceGroupName;
- this.environmentName = environmentName;
+ this.connectedEnvironmentName = connectedEnvironmentName;
return this;
}
@@ -111,9 +112,9 @@ public DaprComponent create() {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
+ .getConnectedEnvironmentsDaprComponents()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, componentName, this.innerModel(), Context.NONE)
+ resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), Context.NONE)
.getValue();
return this;
}
@@ -122,9 +123,9 @@ public DaprComponent create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
+ .getConnectedEnvironmentsDaprComponents()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, componentName, this.innerModel(), context)
+ resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), context)
.getValue();
return this;
}
@@ -143,9 +144,9 @@ public DaprComponent apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
+ .getConnectedEnvironmentsDaprComponents()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, componentName, this.innerModel(), Context.NONE)
+ resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), Context.NONE)
.getValue();
return this;
}
@@ -154,9 +155,9 @@ public DaprComponent apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
+ .getConnectedEnvironmentsDaprComponents()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, componentName, this.innerModel(), context)
+ resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), context)
.getValue();
return this;
}
@@ -167,7 +168,7 @@ public DaprComponent apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments");
+ this.connectedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "connectedEnvironments");
this.componentName = Utils.getValueFromIdByName(innerObject.id(), "daprComponents");
}
@@ -175,8 +176,8 @@ public DaprComponent refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
- .getWithResponse(resourceGroupName, environmentName, componentName, Context.NONE)
+ .getConnectedEnvironmentsDaprComponents()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, Context.NONE)
.getValue();
return this;
}
@@ -185,20 +186,22 @@ public DaprComponent refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
- .getWithResponse(resourceGroupName, environmentName, componentName, context)
+ .getConnectedEnvironmentsDaprComponents()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context)
.getValue();
return this;
}
public Response listSecretsWithResponse(Context context) {
return serviceManager
- .daprComponents()
- .listSecretsWithResponse(resourceGroupName, environmentName, componentName, context);
+ .connectedEnvironmentsDaprComponents()
+ .listSecretsWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context);
}
public DaprSecretsCollection listSecrets() {
- return serviceManager.daprComponents().listSecrets(resourceGroupName, environmentName, componentName);
+ return serviceManager
+ .connectedEnvironmentsDaprComponents()
+ .listSecrets(resourceGroupName, connectedEnvironmentName, componentName);
}
public DaprComponentImpl withComponentType(String componentType) {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java
index 17ea587bad671..77a1262ca238d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java
@@ -60,7 +60,7 @@ public final class DaprComponentsClientImpl implements DaprComponentsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface DaprComponentsService {
+ public interface DaprComponentsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java
index 0be16fce31377..516bc044c8fe6 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java
@@ -65,6 +65,44 @@ public DaprComponent get(String resourceGroupName, String environmentName, Strin
}
}
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(
+ resourceGroupName, environmentName, componentName, daprComponentEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DaprComponentImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DaprComponent createOrUpdate(
+ String resourceGroupName,
+ String environmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope) {
+ DaprComponentInner inner =
+ this
+ .serviceClient()
+ .createOrUpdate(resourceGroupName, environmentName, componentName, daprComponentEnvelope);
+ if (inner != null) {
+ return new DaprComponentImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Response deleteWithResponse(
String resourceGroupName, String environmentName, String componentName, Context context) {
return this.serviceClient().deleteWithResponse(resourceGroupName, environmentName, componentName, context);
@@ -99,122 +137,6 @@ public DaprSecretsCollection listSecrets(String resourceGroupName, String enviro
}
}
- public DaprComponent getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String componentName = Utils.getValueFromIdByName(id, "daprComponents");
- if (componentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
- }
- return this.getWithResponse(resourceGroupName, environmentName, componentName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String componentName = Utils.getValueFromIdByName(id, "daprComponents");
- if (componentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
- }
- return this.getWithResponse(resourceGroupName, environmentName, componentName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String componentName = Utils.getValueFromIdByName(id, "daprComponents");
- if (componentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
- }
- this.deleteWithResponse(resourceGroupName, environmentName, componentName, Context.NONE);
- }
-
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String componentName = Utils.getValueFromIdByName(id, "daprComponents");
- if (componentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
- }
- return this.deleteWithResponse(resourceGroupName, environmentName, componentName, context);
- }
-
private DaprComponentsClient serviceClient() {
return this.innerClient;
}
@@ -222,8 +144,4 @@ private DaprComponentsClient serviceClient() {
private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
return this.serviceManager;
}
-
- public DaprComponentImpl define(String name) {
- return new DaprComponentImpl(name, this.manager());
- }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprSecretsCollectionImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprSecretsCollectionImpl.java
index e515816a4cfb0..444784c197fe4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprSecretsCollectionImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprSecretsCollectionImpl.java
@@ -5,8 +5,8 @@
package com.azure.resourcemanager.appcontainers.implementation;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
+import com.azure.resourcemanager.appcontainers.models.DaprSecret;
import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection;
-import com.azure.resourcemanager.appcontainers.models.Secret;
import java.util.Collections;
import java.util.List;
@@ -22,8 +22,8 @@ public final class DaprSecretsCollectionImpl implements DaprSecretsCollection {
this.serviceManager = serviceManager;
}
- public List value() {
- List inner = this.innerModel().value();
+ public List value() {
+ List inner = this.innerModel().value();
if (inner != null) {
return Collections.unmodifiableList(inner);
} else {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedCertificateImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedCertificateImpl.java
new file mode 100644
index 0000000000000..678fd7d6c7851
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedCertificateImpl.java
@@ -0,0 +1,209 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ManagedCertificateInner;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificate;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificatePatch;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificateProperties;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ManagedCertificateImpl
+ implements ManagedCertificate, ManagedCertificate.Definition, ManagedCertificate.Update {
+ private ManagedCertificateInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ManagedCertificateProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ManagedCertificateInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String environmentName;
+
+ private String managedCertificateName;
+
+ private ManagedCertificatePatch updateManagedCertificateEnvelope;
+
+ public ManagedCertificateImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) {
+ this.resourceGroupName = resourceGroupName;
+ this.environmentName = environmentName;
+ return this;
+ }
+
+ public ManagedCertificate create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getManagedCertificates()
+ .createOrUpdate(
+ resourceGroupName, environmentName, managedCertificateName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ManagedCertificate create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getManagedCertificates()
+ .createOrUpdate(resourceGroupName, environmentName, managedCertificateName, this.innerModel(), context);
+ return this;
+ }
+
+ ManagedCertificateImpl(
+ String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new ManagedCertificateInner();
+ this.serviceManager = serviceManager;
+ this.managedCertificateName = name;
+ }
+
+ public ManagedCertificateImpl update() {
+ this.updateManagedCertificateEnvelope = new ManagedCertificatePatch();
+ return this;
+ }
+
+ public ManagedCertificate apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getManagedCertificates()
+ .updateWithResponse(
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ updateManagedCertificateEnvelope,
+ Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ManagedCertificate apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getManagedCertificates()
+ .updateWithResponse(
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ updateManagedCertificateEnvelope,
+ context)
+ .getValue();
+ return this;
+ }
+
+ ManagedCertificateImpl(
+ ManagedCertificateInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments");
+ this.managedCertificateName = Utils.getValueFromIdByName(innerObject.id(), "managedCertificates");
+ }
+
+ public ManagedCertificate refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getManagedCertificates()
+ .getWithResponse(resourceGroupName, environmentName, managedCertificateName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ManagedCertificate refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getManagedCertificates()
+ .getWithResponse(resourceGroupName, environmentName, managedCertificateName, context)
+ .getValue();
+ return this;
+ }
+
+ public ManagedCertificateImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ManagedCertificateImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ManagedCertificateImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateManagedCertificateEnvelope.withTags(tags);
+ return this;
+ }
+ }
+
+ public ManagedCertificateImpl withProperties(ManagedCertificateProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedCertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedCertificatesClientImpl.java
new file mode 100644
index 0000000000000..39625c9160dd6
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedCertificatesClientImpl.java
@@ -0,0 +1,1358 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.ManagedCertificatesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.ManagedCertificateInner;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificateCollection;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificatePatch;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ManagedCertificatesClient. */
+public final class ManagedCertificatesClientImpl implements ManagedCertificatesClient {
+ /** The proxy service used to perform REST calls. */
+ private final ManagedCertificatesService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ManagedCertificatesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ManagedCertificatesClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy.create(ManagedCertificatesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientManagedCertificates to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface ManagedCertificatesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("managedCertificateName") String managedCertificateName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("managedCertificateName") String managedCertificateName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ManagedCertificateInner managedCertificateEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("managedCertificateName") String managedCertificateName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("managedCertificateName") String managedCertificateName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ManagedCertificatePatch managedCertificateEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{environmentName}/managedCertificates")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Managed Certificate along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String environmentName, String managedCertificateName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (managedCertificateName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedCertificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Managed Certificate along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String environmentName, String managedCertificateName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (managedCertificateName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedCertificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Managed Certificate on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String environmentName, String managedCertificateName) {
+ return getWithResponseAsync(resourceGroupName, environmentName, managedCertificateName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Managed Certificate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String environmentName, String managedCertificateName, Context context) {
+ return getWithResponseAsync(resourceGroupName, environmentName, managedCertificateName, context).block();
+ }
+
+ /**
+ * Get the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Managed Certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ManagedCertificateInner get(
+ String resourceGroupName, String environmentName, String managedCertificateName) {
+ return getWithResponse(resourceGroupName, environmentName, managedCertificateName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (managedCertificateName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedCertificateName is required and cannot be null."));
+ }
+ if (managedCertificateEnvelope != null) {
+ managedCertificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ this.client.getApiVersion(),
+ managedCertificateEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (managedCertificateName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedCertificateName is required and cannot be null."));
+ }
+ if (managedCertificateEnvelope != null) {
+ managedCertificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ this.client.getApiVersion(),
+ managedCertificateEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of managed certificates used for Custom Domain bindings of Container
+ * Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ManagedCertificateInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ManagedCertificateInner.class,
+ ManagedCertificateInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of managed certificates used for Custom Domain bindings of Container
+ * Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ManagedCertificateInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String environmentName, String managedCertificateName) {
+ final ManagedCertificateInner managedCertificateEnvelope = null;
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ManagedCertificateInner.class,
+ ManagedCertificateInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of managed certificates used for Custom Domain bindings of Container
+ * Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ManagedCertificateInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ManagedCertificateInner.class,
+ ManagedCertificateInner.class,
+ context);
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of managed certificates used for Custom Domain bindings of Container
+ * Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ManagedCertificateInner> beginCreateOrUpdate(
+ String resourceGroupName, String environmentName, String managedCertificateName) {
+ final ManagedCertificateInner managedCertificateEnvelope = null;
+ return this
+ .beginCreateOrUpdateAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of managed certificates used for Custom Domain bindings of Container
+ * Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ManagedCertificateInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope,
+ Context context) {
+ return this
+ .beginCreateOrUpdateAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String environmentName, String managedCertificateName) {
+ final ManagedCertificateInner managedCertificateEnvelope = null;
+ return beginCreateOrUpdateAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope,
+ Context context) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ManagedCertificateInner createOrUpdate(
+ String resourceGroupName, String environmentName, String managedCertificateName) {
+ final ManagedCertificateInner managedCertificateEnvelope = null;
+ return createOrUpdateAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope)
+ .block();
+ }
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ManagedCertificateInner createOrUpdate(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope,
+ Context context) {
+ return createOrUpdateAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope, context)
+ .block();
+ }
+
+ /**
+ * Deletes the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String environmentName, String managedCertificateName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (managedCertificateName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedCertificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String environmentName, String managedCertificateName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (managedCertificateName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedCertificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String environmentName, String managedCertificateName) {
+ return deleteWithResponseAsync(resourceGroupName, environmentName, managedCertificateName)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Deletes the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String environmentName, String managedCertificateName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, environmentName, managedCertificateName, context).block();
+ }
+
+ /**
+ * Deletes the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String environmentName, String managedCertificateName) {
+ deleteWithResponse(resourceGroupName, environmentName, managedCertificateName, Context.NONE);
+ }
+
+ /**
+ * Update tags of a managed certificate
+ *
+ * Patches a managed certificate. Oly 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 managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Properties of a managed certificate that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificatePatch managedCertificateEnvelope) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (managedCertificateName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedCertificateName is required and cannot be null."));
+ }
+ if (managedCertificateEnvelope == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter managedCertificateEnvelope is required and cannot be null."));
+ } else {
+ managedCertificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ this.client.getApiVersion(),
+ managedCertificateEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update tags of a managed certificate
+ *
+ * Patches a managed certificate. Oly 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 managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Properties of a managed certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificatePatch managedCertificateEnvelope,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (managedCertificateName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedCertificateName is required and cannot be null."));
+ }
+ if (managedCertificateEnvelope == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter managedCertificateEnvelope is required and cannot be null."));
+ } else {
+ managedCertificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ managedCertificateName,
+ this.client.getApiVersion(),
+ managedCertificateEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Update tags of a managed certificate
+ *
+ * Patches a managed certificate. Oly 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 managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Properties of a managed certificate that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificatePatch managedCertificateEnvelope) {
+ return updateWithResponseAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Update tags of a managed certificate
+ *
+ * Patches a managed certificate. Oly 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 managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Properties of a managed certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificatePatch managedCertificateEnvelope,
+ Context context) {
+ return updateWithResponseAsync(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope, context)
+ .block();
+ }
+
+ /**
+ * Update tags of a managed certificate
+ *
+ * Patches a managed certificate. Oly 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 managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Properties of a managed certificate that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ManagedCertificateInner update(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificatePatch managedCertificateEnvelope) {
+ return updateWithResponse(
+ resourceGroupName, environmentName, managedCertificateName, managedCertificateEnvelope, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Managed Certificates in a given managed environment along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String environmentName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Managed Certificates in a given managed environment along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String environmentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Managed Certificates in a given managed environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String environmentName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, environmentName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Managed Certificates in a given managed environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String environmentName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, environmentName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Managed Certificates in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String environmentName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, environmentName));
+ }
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Managed Certificates in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String environmentName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, environmentName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of Managed Certificates along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of Managed Certificates along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedCertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedCertificatesImpl.java
new file mode 100644
index 0000000000000..d20f95e682ae3
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedCertificatesImpl.java
@@ -0,0 +1,211 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.ManagedCertificatesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.ManagedCertificateInner;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificate;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificates;
+
+public final class ManagedCertificatesImpl implements ManagedCertificates {
+ private static final ClientLogger LOGGER = new ClientLogger(ManagedCertificatesImpl.class);
+
+ private final ManagedCertificatesClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public ManagedCertificatesImpl(
+ ManagedCertificatesClient innerClient,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String environmentName, String managedCertificateName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, environmentName, managedCertificateName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ManagedCertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ManagedCertificate get(String resourceGroupName, String environmentName, String managedCertificateName) {
+ ManagedCertificateInner inner =
+ this.serviceClient().get(resourceGroupName, environmentName, managedCertificateName);
+ if (inner != null) {
+ return new ManagedCertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String environmentName, String managedCertificateName, Context context) {
+ return this
+ .serviceClient()
+ .deleteWithResponse(resourceGroupName, environmentName, managedCertificateName, context);
+ }
+
+ public void delete(String resourceGroupName, String environmentName, String managedCertificateName) {
+ this.serviceClient().delete(resourceGroupName, environmentName, managedCertificateName);
+ }
+
+ public PagedIterable list(String resourceGroupName, String environmentName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, environmentName);
+ return Utils.mapPage(inner, inner1 -> new ManagedCertificateImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String environmentName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, environmentName, context);
+ return Utils.mapPage(inner, inner1 -> new ManagedCertificateImpl(inner1, this.manager()));
+ }
+
+ public ManagedCertificate getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
+ if (environmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
+ }
+ String managedCertificateName = Utils.getValueFromIdByName(id, "managedCertificates");
+ if (managedCertificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedCertificates'.", id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, environmentName, managedCertificateName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
+ if (environmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
+ }
+ String managedCertificateName = Utils.getValueFromIdByName(id, "managedCertificates");
+ if (managedCertificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedCertificates'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, environmentName, managedCertificateName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
+ if (environmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
+ }
+ String managedCertificateName = Utils.getValueFromIdByName(id, "managedCertificates");
+ if (managedCertificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedCertificates'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, environmentName, managedCertificateName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
+ if (environmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
+ }
+ String managedCertificateName = Utils.getValueFromIdByName(id, "managedCertificates");
+ if (managedCertificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'managedCertificates'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, environmentName, managedCertificateName, context);
+ }
+
+ private ManagedCertificatesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ public ManagedCertificateImpl define(String name) {
+ return new ManagedCertificateImpl(name, this.manager());
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentDiagnosticsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentDiagnosticsClientImpl.java
index 0ece0ae0eada7..d80ef3ea1a5dc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentDiagnosticsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentDiagnosticsClientImpl.java
@@ -55,7 +55,7 @@ public final class ManagedEnvironmentDiagnosticsClientImpl implements ManagedEnv
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ManagedEnvironmentDiagnosticsService {
+ public interface ManagedEnvironmentDiagnosticsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java
index 9304a629fcf5d..0154a5b0e6528 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentImpl.java
@@ -11,10 +11,12 @@
import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
import com.azure.resourcemanager.appcontainers.models.AppLogsConfiguration;
import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
+import com.azure.resourcemanager.appcontainers.models.DaprConfiguration;
import com.azure.resourcemanager.appcontainers.models.EnvironmentAuthToken;
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
-import com.azure.resourcemanager.appcontainers.models.EnvironmentSkuProperties;
+import com.azure.resourcemanager.appcontainers.models.KedaConfiguration;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironment;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentQuota;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
import java.util.Collections;
@@ -52,8 +54,8 @@ public Map tags() {
}
}
- public EnvironmentSkuProperties sku() {
- return this.innerModel().sku();
+ public String kind() {
+ return this.innerModel().kind();
}
public SystemData systemData() {
@@ -113,6 +115,18 @@ public List workloadProfiles() {
}
}
+ public KedaConfiguration kedaConfiguration() {
+ return this.innerModel().kedaConfiguration();
+ }
+
+ public DaprConfiguration daprConfiguration() {
+ return this.innerModel().daprConfiguration();
+ }
+
+ public ManagedEnvironmentQuota quotas() {
+ return this.innerModel().quotas();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -176,7 +190,7 @@ public ManagedEnvironment apply() {
serviceManager
.serviceClient()
.getManagedEnvironments()
- .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), Context.NONE);
+ .update(resourceGroupName, environmentName, this.innerModel(), Context.NONE);
return this;
}
@@ -185,7 +199,7 @@ public ManagedEnvironment apply(Context context) {
serviceManager
.serviceClient()
.getManagedEnvironments()
- .createOrUpdate(resourceGroupName, environmentName, this.innerModel(), context);
+ .update(resourceGroupName, environmentName, this.innerModel(), context);
return this;
}
@@ -243,8 +257,8 @@ public ManagedEnvironmentImpl withTags(Map tags) {
return this;
}
- public ManagedEnvironmentImpl withSku(EnvironmentSkuProperties sku) {
- this.innerModel().withSku(sku);
+ public ManagedEnvironmentImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
@@ -282,4 +296,19 @@ public ManagedEnvironmentImpl withWorkloadProfiles(List workloa
this.innerModel().withWorkloadProfiles(workloadProfiles);
return this;
}
+
+ public ManagedEnvironmentImpl withKedaConfiguration(KedaConfiguration kedaConfiguration) {
+ this.innerModel().withKedaConfiguration(kedaConfiguration);
+ return this;
+ }
+
+ public ManagedEnvironmentImpl withDaprConfiguration(DaprConfiguration daprConfiguration) {
+ this.innerModel().withDaprConfiguration(daprConfiguration);
+ return this;
+ }
+
+ public ManagedEnvironmentImpl withQuotas(ManagedEnvironmentQuota quotas) {
+ this.innerModel().withQuotas(quotas);
+ return this;
+ }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java
index 2eeb567c9132b..f84344aa8d888 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsClientImpl.java
@@ -68,7 +68,7 @@ public final class ManagedEnvironmentsClientImpl implements ManagedEnvironmentsC
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ManagedEnvironmentsService {
+ public interface ManagedEnvironmentsService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments")
@ExpectedResponses({200})
@@ -144,7 +144,7 @@ Mono>> delete(
@Patch(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ "/managedEnvironments/{environmentName}")
- @ExpectedResponses({202})
+ @ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
Mono>> update(
@HostParam("$host") String endpoint,
@@ -904,7 +904,7 @@ private PollerFlux, ManagedEnvironmentInner>
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) {
- return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).getSyncPoller();
}
/**
@@ -927,7 +927,8 @@ public SyncPoller, ManagedEnvironmentInner>
String environmentName,
ManagedEnvironmentInner environmentEnvelope,
Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context)
.getSyncPoller();
}
@@ -1176,7 +1177,7 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName) {
- return beginDeleteAsync(resourceGroupName, environmentName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, environmentName).getSyncPoller();
}
/**
@@ -1195,7 +1196,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String environmentName, Context context) {
- return beginDeleteAsync(resourceGroupName, environmentName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, environmentName, context).getSyncPoller();
}
/**
@@ -1281,7 +1282,8 @@ public void delete(String resourceGroupName, String environmentName, Context con
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return an environment for hosting container apps along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1341,7 +1343,8 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return an environment for hosting container apps along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1400,17 +1403,21 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginUpdateAsync(
+ private PollerFlux, ManagedEnvironmentInner> beginUpdateAsync(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) {
Mono>> mono =
updateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope);
return this
.client
- .getLroResult(
- mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ManagedEnvironmentInner.class,
+ ManagedEnvironmentInner.class,
+ this.client.getContext());
}
/**
@@ -1425,10 +1432,10 @@ private PollerFlux, Void> beginUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginUpdateAsync(
+ private PollerFlux, ManagedEnvironmentInner> beginUpdateAsync(
String resourceGroupName,
String environmentName,
ManagedEnvironmentInner environmentEnvelope,
@@ -1438,7 +1445,12 @@ private PollerFlux, Void> beginUpdateAsync(
updateWithResponseAsync(resourceGroupName, environmentName, environmentEnvelope, context);
return this
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ManagedEnvironmentInner.class,
+ ManagedEnvironmentInner.class,
+ context);
}
/**
@@ -1452,12 +1464,12 @@ private PollerFlux, Void> beginUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginUpdate(
+ public SyncPoller, ManagedEnvironmentInner> beginUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) {
- return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope).getSyncPoller();
}
/**
@@ -1472,15 +1484,15 @@ public SyncPoller, Void> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginUpdate(
+ public SyncPoller, ManagedEnvironmentInner> beginUpdate(
String resourceGroupName,
String environmentName,
ManagedEnvironmentInner environmentEnvelope,
Context context) {
- return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope, context).getSyncPoller();
}
/**
@@ -1494,10 +1506,10 @@ public SyncPoller, Void> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return an environment for hosting container apps on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
+ private Mono updateAsync(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) {
return beginUpdateAsync(resourceGroupName, environmentName, environmentEnvelope)
.last()
@@ -1516,10 +1528,10 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return an environment for hosting container apps on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
+ private Mono updateAsync(
String resourceGroupName,
String environmentName,
ManagedEnvironmentInner environmentEnvelope,
@@ -1540,10 +1552,12 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) {
- updateAsync(resourceGroupName, environmentName, environmentEnvelope).block();
+ public ManagedEnvironmentInner update(
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) {
+ return updateAsync(resourceGroupName, environmentName, environmentEnvelope).block();
}
/**
@@ -1558,14 +1572,15 @@ public void update(String resourceGroupName, String environmentName, ManagedEnvi
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void update(
+ public ManagedEnvironmentInner update(
String resourceGroupName,
String environmentName,
ManagedEnvironmentInner environmentEnvelope,
Context context) {
- updateAsync(resourceGroupName, environmentName, environmentEnvelope, context).block();
+ return updateAsync(resourceGroupName, environmentName, environmentEnvelope, context).block();
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsDiagnosticsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsDiagnosticsClientImpl.java
index 208603d332200..f8bfc998da936 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsDiagnosticsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsDiagnosticsClientImpl.java
@@ -54,7 +54,7 @@ public final class ManagedEnvironmentsDiagnosticsClientImpl implements ManagedEn
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ManagedEnvironmentsDiagnosticsService {
+ public interface ManagedEnvironmentsDiagnosticsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java
index 19aa83d705b56..80f706e9a89c4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsImpl.java
@@ -85,18 +85,6 @@ public void delete(String resourceGroupName, String environmentName, Context con
this.serviceClient().delete(resourceGroupName, environmentName, context);
}
- public void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope) {
- this.serviceClient().update(resourceGroupName, environmentName, environmentEnvelope);
- }
-
- public void update(
- String resourceGroupName,
- String environmentName,
- ManagedEnvironmentInner environmentEnvelope,
- Context context) {
- this.serviceClient().update(resourceGroupName, environmentName, environmentEnvelope, context);
- }
-
public Response getAuthTokenWithResponse(
String resourceGroupName, String environmentName, Context context) {
Response inner =
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java
index ee07f227ead3b..d5892a64eab3e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ManagedEnvironmentsStoragesClientImpl.java
@@ -56,7 +56,7 @@ public final class ManagedEnvironmentsStoragesClientImpl implements ManagedEnvir
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ManagedEnvironmentsStoragesService {
+ public interface ManagedEnvironmentsStoragesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java
index 88bc0b2704a94..c682983cdc57a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java
@@ -52,7 +52,7 @@ public final class NamespacesClientImpl implements NamespacesClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface NamespacesService {
+ public interface NamespacesService {
@Headers({"Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/OperationsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/OperationsClientImpl.java
index 951798c3d460d..6f299e42cfedc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/OperationsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/OperationsClientImpl.java
@@ -55,7 +55,7 @@ public final class OperationsClientImpl implements OperationsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface OperationsService {
+ public interface OperationsService {
@Headers({"Content-Type: application/json"})
@Get("/providers/Microsoft.App/operations")
@ExpectedResponses({200})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AccessMode.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AccessMode.java
index 8f2d01d44becd..32fca9da968cb 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AccessMode.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AccessMode.java
@@ -16,6 +16,15 @@ public final class AccessMode extends ExpandableStringEnum {
/** Static value ReadWrite for AccessMode. */
public static final AccessMode READ_WRITE = fromString("ReadWrite");
+ /**
+ * Creates a new instance of AccessMode value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AccessMode() {
+ }
+
/**
* Creates or finds a AccessMode from its string representation.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Action.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Action.java
index 08b42558079c6..03ba2ba32d115 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Action.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Action.java
@@ -16,6 +16,15 @@ public final class Action extends ExpandableStringEnum {
/** Static value Deny for Action. */
public static final Action DENY = fromString("Deny");
+ /**
+ * Creates a new instance of Action value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public Action() {
+ }
+
/**
* Creates or finds a Action from its string representation.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ActiveRevisionsMode.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ActiveRevisionsMode.java
index 1ade7f9c0e39e..7084cbc19dc93 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ActiveRevisionsMode.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ActiveRevisionsMode.java
@@ -21,6 +21,15 @@ public final class ActiveRevisionsMode extends ExpandableStringEnum {
+ /** Static value sticky for Affinity. */
+ public static final Affinity STICKY = fromString("sticky");
+
+ /** Static value none for Affinity. */
+ public static final Affinity NONE = fromString("none");
+
+ /**
+ * Creates a new instance of Affinity value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public Affinity() {
+ }
+
+ /**
+ * Creates or finds a Affinity from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding Affinity.
+ */
+ @JsonCreator
+ public static Affinity fromString(String name) {
+ return fromString(name, Affinity.class);
+ }
+
+ /**
+ * Gets known Affinity values.
+ *
+ * @return known Affinity values.
+ */
+ public static Collection values() {
+ return values(Affinity.class);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AppProtocol.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AppProtocol.java
index 32c619fd30599..f4c1d5c4844bf 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AppProtocol.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AppProtocol.java
@@ -16,6 +16,15 @@ public final class AppProtocol extends ExpandableStringEnum {
/** Static value grpc for AppProtocol. */
public static final AppProtocol GRPC = fromString("grpc");
+ /**
+ * Creates a new instance of AppProtocol value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AppProtocol() {
+ }
+
/**
* Creates or finds a AppProtocol from its string representation.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Applicability.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Applicability.java
index 5da623ac844af..1eb2343792343 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Applicability.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Applicability.java
@@ -16,6 +16,15 @@ public final class Applicability extends ExpandableStringEnum {
/** Static value Custom for Applicability. */
public static final Applicability CUSTOM = fromString("Custom");
+ /**
+ * Creates a new instance of Applicability value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public Applicability() {
+ }
+
/**
* Creates or finds a Applicability from its string representation.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BindingType.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BindingType.java
index 675cbf07a216a..8e207dccbd689 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BindingType.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/BindingType.java
@@ -16,6 +16,15 @@ public final class BindingType extends ExpandableStringEnum {
/** Static value SniEnabled for BindingType. */
public static final BindingType SNI_ENABLED = fromString("SniEnabled");
+ /**
+ * Creates a new instance of BindingType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public BindingType() {
+ }
+
/**
* Creates or finds a BindingType from its string representation.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Category.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Category.java
index 0d54e4ba911ae..f13916d21d8bb 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Category.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Category.java
@@ -19,6 +19,15 @@ public final class Category extends ExpandableStringEnum