diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
index a7251ce62a606..4e80534bc182c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-04-28)
+
+- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
index 041023d3abda4..b0ca9f7388c70 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ContainerAppsApi client library for Java.
-This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-01-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-appcontainers
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
index d98eeacbb293c..a863135771ff8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
@@ -53,6 +53,7 @@
- [Delete](#daprcomponents_delete)
- [Get](#daprcomponents_get)
- [List](#daprcomponents_list)
+- [ListSecrets](#daprcomponents_listsecrets)
## ManagedEnvironments
@@ -70,6 +71,10 @@
- [Get](#managedenvironmentsstorages_get)
- [List](#managedenvironmentsstorages_list)
+## Namespaces
+
+- [CheckNameAvailability](#namespaces_checknameavailability)
+
## Operations
- [List](#operations_list)
@@ -81,7 +86,7 @@ import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
/** Samples for Certificates CreateOrUpdate. */
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
@@ -112,7 +117,7 @@ import com.azure.core.util.Context;
/** Samples for Certificates Delete. */
public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -135,7 +140,7 @@ import com.azure.core.util.Context;
/** Samples for Certificates Get. */
public final class CertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -158,7 +163,7 @@ import com.azure.core.util.Context;
/** Samples for Certificates List. */
public final class CertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json
*/
/**
* Sample code: List Certificates by Managed Environment.
@@ -183,7 +188,7 @@ import java.util.Map;
/** Samples for Certificates Update. */
public final class CertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -229,6 +234,7 @@ import com.azure.resourcemanager.appcontainers.models.Ingress;
import com.azure.resourcemanager.appcontainers.models.Scale;
import com.azure.resourcemanager.appcontainers.models.ScaleRule;
import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
import com.azure.resourcemanager.appcontainers.models.Type;
import java.util.Arrays;
import java.util.HashMap;
@@ -237,7 +243,7 @@ import java.util.Map;
/** Samples for ContainerApps CreateOrUpdate. */
public final class ContainerAppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App.
@@ -259,6 +265,13 @@ public final class ContainerAppsCreateOrUpdateSamples {
new Ingress()
.withExternal(true)
.withTargetPort(3000)
+ .withTraffic(
+ Arrays
+ .asList(
+ new TrafficWeight()
+ .withRevisionName("testcontainerApp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
.withCustomDomains(
Arrays
.asList(
@@ -335,7 +348,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerApps Delete. */
public final class ContainerAppsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Delete.json
*/
/**
* Sample code: Delete Container App.
@@ -356,7 +369,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerApps GetByResourceGroup. */
public final class ContainerAppsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
@@ -377,7 +390,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerApps List. */
public final class ContainerAppsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListBySubscription.json
*/
/**
* Sample code: List Container Apps by subscription.
@@ -399,7 +412,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerApps ListByResourceGroup. */
public final class ContainerAppsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListByResourceGroup.json
*/
/**
* Sample code: List Container Apps by resource group.
@@ -421,7 +434,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerApps ListCustomHostnameAnalysis. */
public final class ContainerAppsListCustomHostnameAnalysisSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysis.json
*/
/**
* Sample code: Analyze Custom Hostname.
@@ -444,7 +457,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerApps ListSecrets. */
public final class ContainerAppsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
@@ -462,14 +475,31 @@ public final class ContainerAppsListSecretsSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.models.ContainerApp;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
+import com.azure.resourcemanager.appcontainers.models.AppProtocol;
+import com.azure.resourcemanager.appcontainers.models.BindingType;
+import com.azure.resourcemanager.appcontainers.models.Configuration;
+import com.azure.resourcemanager.appcontainers.models.Container;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
+import com.azure.resourcemanager.appcontainers.models.CustomDomain;
+import com.azure.resourcemanager.appcontainers.models.CustomScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Dapr;
+import com.azure.resourcemanager.appcontainers.models.Ingress;
+import com.azure.resourcemanager.appcontainers.models.Scale;
+import com.azure.resourcemanager.appcontainers.models.ScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
+import com.azure.resourcemanager.appcontainers.models.Type;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/** Samples for ContainerApps Update. */
public final class ContainerAppsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Patch.json
*/
/**
* Sample code: Patch Container App.
@@ -477,9 +507,80 @@ public final class ContainerAppsUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void patchContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- ContainerApp resource =
- manager.containerApps().getByResourceGroupWithResponse("rg", "testcontainerApp0", Context.NONE).getValue();
- resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
+ manager
+ .containerApps()
+ .update(
+ "rg",
+ "testcontainerApp0",
+ new ContainerAppInner()
+ .withLocation("East US")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withConfiguration(
+ new Configuration()
+ .withIngress(
+ new Ingress()
+ .withExternal(true)
+ .withTargetPort(3000)
+ .withTraffic(
+ Arrays
+ .asList(
+ new TrafficWeight()
+ .withRevisionName("testcontainerApp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
+ .withCustomDomains(
+ Arrays
+ .asList(
+ new CustomDomain()
+ .withName("www.my-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
+ new CustomDomain()
+ .withName("www.my-other-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"))))
+ .withDapr(new Dapr().withEnabled(true).withAppProtocol(AppProtocol.HTTP).withAppPort(3000)))
+ .withTemplate(
+ new Template()
+ .withContainers(
+ Arrays
+ .asList(
+ new Container()
+ .withImage("repo/testcontainerApp0:v1")
+ .withName("testcontainerApp0")
+ .withProbes(
+ Arrays
+ .asList(
+ new ContainerAppProbe()
+ .withHttpGet(
+ new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays
+ .asList(
+ new ContainerAppProbeHttpGetHttpHeadersItem()
+ .withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080))
+ .withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withType(Type.LIVENESS)))))
+ .withScale(
+ new Scale()
+ .withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(
+ Arrays
+ .asList(
+ new ScaleRule()
+ .withName("httpscalingrule")
+ .withCustom(
+ new CustomScaleRule()
+ .withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50"))))))),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -508,7 +609,7 @@ import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActio
/** Samples for ContainerAppsAuthConfigs CreateOrUpdate. */
public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App AuthConfig.
@@ -543,7 +644,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsAuthConfigs Delete. */
public final class ContainerAppsAuthConfigsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Delete.json
*/
/**
* Sample code: Delete Container App AuthConfig.
@@ -567,7 +668,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsAuthConfigs Get. */
public final class ContainerAppsAuthConfigsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Get.json
*/
/**
* Sample code: Get Container App's AuthConfig.
@@ -591,7 +692,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsAuthConfigs ListByContainerApp. */
public final class ContainerAppsAuthConfigsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_ListByContainer.json
*/
/**
* Sample code: List Auth Configs by Container Apps.
@@ -613,7 +714,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsRevisionReplicas GetReplica. */
public final class ContainerAppsRevisionReplicasGetReplicaSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Replicas_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_Get.json
*/
/**
* Sample code: Get Container App's revision replica.
@@ -638,7 +739,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsRevisionReplicas ListReplicas. */
public final class ContainerAppsRevisionReplicasListReplicasSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Replicas_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_List.json
*/
/**
* Sample code: List Container App's replicas.
@@ -662,7 +763,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsRevisions ActivateRevision. */
public final class ContainerAppsRevisionsActivateRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Activate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Activate.json
*/
/**
* Sample code: Activate Container App's revision.
@@ -686,7 +787,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsRevisions DeactivateRevision. */
public final class ContainerAppsRevisionsDeactivateRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Deactivate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Deactivate.json
*/
/**
* Sample code: Deactivate Container App's revision.
@@ -710,7 +811,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsRevisions GetRevision. */
public final class ContainerAppsRevisionsGetRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
@@ -734,7 +835,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsRevisions ListRevisions. */
public final class ContainerAppsRevisionsListRevisionsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
@@ -743,7 +844,7 @@ public final class ContainerAppsRevisionsListRevisionsSamples {
*/
public static void listContainerAppSRevisions(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().listRevisions("rg", "testcontainerApp0", Context.NONE);
+ manager.containerAppsRevisions().listRevisions("rg", "testcontainerApp0", null, Context.NONE);
}
}
```
@@ -756,7 +857,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsRevisions RestartRevision. */
public final class ContainerAppsRevisionsRestartRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Restart.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Restart.json
*/
/**
* Sample code: Restart Container App's revision.
@@ -782,7 +883,7 @@ import com.azure.resourcemanager.appcontainers.models.RegistryInfo;
/** Samples for ContainerAppsSourceControls CreateOrUpdate. */
public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App SourceControl.
@@ -808,7 +909,9 @@ public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
new AzureCredentials()
.withClientId("")
.withClientSecret("")
- .withTenantId("")))
+ .withTenantId(""))
+ .withContextPath("./")
+ .withImage("image/tag"))
.create();
}
}
@@ -822,7 +925,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsSourceControls Delete. */
public final class ContainerAppsSourceControlsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Delete.json
*/
/**
* Sample code: Delete Container App SourceControl.
@@ -844,7 +947,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsSourceControls Get. */
public final class ContainerAppsSourceControlsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Get.json
*/
/**
* Sample code: Get Container App's SourceControl.
@@ -868,7 +971,7 @@ import com.azure.core.util.Context;
/** Samples for ContainerAppsSourceControls ListByContainerApp. */
public final class ContainerAppsSourceControlsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_ListByContainer.json
*/
/**
* Sample code: List App's Source Controls.
@@ -891,7 +994,7 @@ import java.util.Arrays;
/** Samples for DaprComponents CreateOrUpdate. */
public final class DaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_CreateOrUpdate.json
*/
/**
* Sample code: Create or update dapr component.
@@ -930,7 +1033,7 @@ import com.azure.core.util.Context;
/** Samples for DaprComponents Delete. */
public final class DaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
@@ -951,7 +1054,7 @@ import com.azure.core.util.Context;
/** Samples for DaprComponents Get. */
public final class DaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Get.json
*/
/**
* Sample code: Get Dapr Component.
@@ -972,7 +1075,7 @@ import com.azure.core.util.Context;
/** Samples for DaprComponents List. */
public final class DaprComponentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
@@ -985,6 +1088,28 @@ public final class DaprComponentsListSamples {
}
```
+### DaprComponents_ListSecrets
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DaprComponents ListSecrets. */
+public final class DaprComponentsListSecretsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_ListSecrets.json
+ */
+ /**
+ * Sample code: List Container Apps Secrets.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listContainerAppsSecrets(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents().listSecretsWithResponse("examplerg", "myenvironment", "reddog", Context.NONE);
+ }
+}
+```
+
### ManagedEnvironments_CreateOrUpdate
```java
@@ -994,7 +1119,7 @@ import com.azure.resourcemanager.appcontainers.models.LogAnalyticsConfiguration;
/** Samples for ManagedEnvironments CreateOrUpdate. */
public final class ManagedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create environments.
@@ -1007,10 +1132,13 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
.define("testcontainerenv")
.withRegion("East US")
.withExistingResourceGroup("examplerg")
+ .withDaprAIConnectionString(
+ "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
.withAppLogsConfiguration(
new AppLogsConfiguration()
.withLogAnalyticsConfiguration(
new LogAnalyticsConfiguration().withCustomerId("string").withSharedKey("string")))
+ .withZoneRedundant(true)
.create();
}
}
@@ -1024,7 +1152,7 @@ import com.azure.core.util.Context;
/** Samples for ManagedEnvironments Delete. */
public final class ManagedEnvironmentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Delete.json
*/
/**
* Sample code: Delete environment by name.
@@ -1046,7 +1174,7 @@ import com.azure.core.util.Context;
/** Samples for ManagedEnvironments GetByResourceGroup. */
public final class ManagedEnvironmentsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -1067,7 +1195,7 @@ import com.azure.core.util.Context;
/** Samples for ManagedEnvironments List. */
public final class ManagedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_ListBySubscription.json
*/
/**
* Sample code: List environments by subscription.
@@ -1089,7 +1217,7 @@ import com.azure.core.util.Context;
/** Samples for ManagedEnvironments ListByResourceGroup. */
public final class ManagedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_ListByResourceGroup.json
*/
/**
* Sample code: List environments by resource group.
@@ -1107,14 +1235,14 @@ public final class ManagedEnvironmentsListByResourceGroupSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.models.ManagedEnvironment;
+import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
import java.util.HashMap;
import java.util.Map;
/** Samples for ManagedEnvironments Update. */
public final class ManagedEnvironmentsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
@@ -1123,12 +1251,15 @@ public final class ManagedEnvironmentsUpdateSamples {
*/
public static void patchManagedEnvironment(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- ManagedEnvironment resource =
- manager
- .managedEnvironments()
- .getByResourceGroupWithResponse("examplerg", "testcontainerenv", Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
+ manager
+ .managedEnvironments()
+ .update(
+ "examplerg",
+ "testcontainerenv",
+ new ManagedEnvironmentInner()
+ .withLocation("East US")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -1154,7 +1285,7 @@ import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentStorageP
/** Samples for ManagedEnvironmentsStorages CreateOrUpdate. */
public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
@@ -1188,7 +1319,7 @@ import com.azure.core.util.Context;
/** Samples for ManagedEnvironmentsStorages Delete. */
public final class ManagedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Delete.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -1210,7 +1341,7 @@ import com.azure.core.util.Context;
/** Samples for ManagedEnvironmentsStorages Get. */
public final class ManagedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Get.json
*/
/**
* Sample code: get a environments storage properties by subscription.
@@ -1232,7 +1363,7 @@ import com.azure.core.util.Context;
/** Samples for ManagedEnvironmentsStorages List. */
public final class ManagedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -1246,6 +1377,56 @@ public final class ManagedEnvironmentsStoragesListSamples {
}
```
+### Namespaces_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+
+/** Samples for Namespaces CheckNameAvailability. */
+public final class NamespacesCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: Certificates_CheckNameAvailability.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void certificatesCheckNameAvailability(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .namespaces()
+ .checkNameAvailabilityWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ new CheckNameAvailabilityRequest()
+ .withName("testcertificatename")
+ .withType("Microsoft.App/managedEnvironments/certificates"),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: ContainerApps_CheckNameAvailability.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void containerAppsCheckNameAvailability(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .namespaces()
+ .checkNameAvailabilityWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ new CheckNameAvailabilityRequest().withName("testcappname").withType("Microsoft.App/containerApps"),
+ Context.NONE);
+ }
+}
+```
+
### Operations_List
```java
@@ -1254,7 +1435,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Operations_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Operations_List.json
*/
/**
* Sample code: List all operations.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
index 913fa8da594e3..156310ca96135 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for ContainerAppsApi Management
- This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2022-01-01-preview.
+ This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2022-03.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java
index a4ad2e5004c94..264a8f2bec65c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java
@@ -34,6 +34,7 @@
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsStoragesImpl;
+import com.azure.resourcemanager.appcontainers.implementation.NamespacesImpl;
import com.azure.resourcemanager.appcontainers.implementation.OperationsImpl;
import com.azure.resourcemanager.appcontainers.models.Certificates;
import com.azure.resourcemanager.appcontainers.models.ContainerApps;
@@ -44,6 +45,7 @@
import com.azure.resourcemanager.appcontainers.models.DaprComponents;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironments;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsStorages;
+import com.azure.resourcemanager.appcontainers.models.Namespaces;
import com.azure.resourcemanager.appcontainers.models.Operations;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@@ -54,26 +56,28 @@
/** Entry point to ContainerAppsApiManager. */
public final class ContainerAppsApiManager {
+ private ContainerAppsAuthConfigs containerAppsAuthConfigs;
+
private ContainerApps containerApps;
private ContainerAppsRevisions containerAppsRevisions;
private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;
- private ManagedEnvironments managedEnvironments;
-
- private Certificates certificates;
+ private DaprComponents daprComponents;
private Operations operations;
- private ContainerAppsSourceControls containerAppsSourceControls;
+ private ManagedEnvironments managedEnvironments;
- private DaprComponents daprComponents;
+ private Certificates certificates;
- private ContainerAppsAuthConfigs containerAppsAuthConfigs;
+ private Namespaces namespaces;
private ManagedEnvironmentsStorages managedEnvironmentsStorages;
+ private ContainerAppsSourceControls containerAppsSourceControls;
+
private final ContainerAppsApiClient clientObject;
private ContainerAppsApiManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -296,6 +300,19 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
}
}
+ /**
+ * Gets the resource collection API of ContainerAppsAuthConfigs.
+ *
+ * @return Resource collection API of ContainerAppsAuthConfigs.
+ */
+ public ContainerAppsAuthConfigs containerAppsAuthConfigs() {
+ if (this.containerAppsAuthConfigs == null) {
+ this.containerAppsAuthConfigs =
+ new ContainerAppsAuthConfigsImpl(clientObject.getContainerAppsAuthConfigs(), this);
+ }
+ return containerAppsAuthConfigs;
+ }
+
/**
* Gets the resource collection API of ContainerApps.
*
@@ -335,27 +352,15 @@ public ContainerAppsRevisionReplicas containerAppsRevisionReplicas() {
}
/**
- * Gets the resource collection API of ManagedEnvironments.
- *
- * @return Resource collection API of ManagedEnvironments.
- */
- public ManagedEnvironments managedEnvironments() {
- if (this.managedEnvironments == null) {
- this.managedEnvironments = new ManagedEnvironmentsImpl(clientObject.getManagedEnvironments(), this);
- }
- return managedEnvironments;
- }
-
- /**
- * Gets the resource collection API of Certificates.
+ * Gets the resource collection API of DaprComponents.
*
- * @return Resource collection API of Certificates.
+ * @return Resource collection API of DaprComponents.
*/
- public Certificates certificates() {
- if (this.certificates == null) {
- this.certificates = new CertificatesImpl(clientObject.getCertificates(), this);
+ public DaprComponents daprComponents() {
+ if (this.daprComponents == null) {
+ this.daprComponents = new DaprComponentsImpl(clientObject.getDaprComponents(), this);
}
- return certificates;
+ return daprComponents;
}
/**
@@ -371,41 +376,39 @@ public Operations operations() {
}
/**
- * Gets the resource collection API of ContainerAppsSourceControls.
+ * Gets the resource collection API of ManagedEnvironments.
*
- * @return Resource collection API of ContainerAppsSourceControls.
+ * @return Resource collection API of ManagedEnvironments.
*/
- public ContainerAppsSourceControls containerAppsSourceControls() {
- if (this.containerAppsSourceControls == null) {
- this.containerAppsSourceControls =
- new ContainerAppsSourceControlsImpl(clientObject.getContainerAppsSourceControls(), this);
+ public ManagedEnvironments managedEnvironments() {
+ if (this.managedEnvironments == null) {
+ this.managedEnvironments = new ManagedEnvironmentsImpl(clientObject.getManagedEnvironments(), this);
}
- return containerAppsSourceControls;
+ return managedEnvironments;
}
/**
- * Gets the resource collection API of DaprComponents.
+ * Gets the resource collection API of Certificates.
*
- * @return Resource collection API of DaprComponents.
+ * @return Resource collection API of Certificates.
*/
- public DaprComponents daprComponents() {
- if (this.daprComponents == null) {
- this.daprComponents = new DaprComponentsImpl(clientObject.getDaprComponents(), this);
+ public Certificates certificates() {
+ if (this.certificates == null) {
+ this.certificates = new CertificatesImpl(clientObject.getCertificates(), this);
}
- return daprComponents;
+ return certificates;
}
/**
- * Gets the resource collection API of ContainerAppsAuthConfigs.
+ * Gets the resource collection API of Namespaces.
*
- * @return Resource collection API of ContainerAppsAuthConfigs.
+ * @return Resource collection API of Namespaces.
*/
- public ContainerAppsAuthConfigs containerAppsAuthConfigs() {
- if (this.containerAppsAuthConfigs == null) {
- this.containerAppsAuthConfigs =
- new ContainerAppsAuthConfigsImpl(clientObject.getContainerAppsAuthConfigs(), this);
+ public Namespaces namespaces() {
+ if (this.namespaces == null) {
+ this.namespaces = new NamespacesImpl(clientObject.getNamespaces(), this);
}
- return containerAppsAuthConfigs;
+ return namespaces;
}
/**
@@ -421,6 +424,19 @@ public ManagedEnvironmentsStorages managedEnvironmentsStorages() {
return managedEnvironmentsStorages;
}
+ /**
+ * Gets the resource collection API of ContainerAppsSourceControls.
+ *
+ * @return Resource collection API of ContainerAppsSourceControls.
+ */
+ public ContainerAppsSourceControls containerAppsSourceControls() {
+ if (this.containerAppsSourceControls == null) {
+ this.containerAppsSourceControls =
+ new ContainerAppsSourceControlsImpl(clientObject.getContainerAppsSourceControls(), this);
+ }
+ return containerAppsSourceControls;
+ }
+
/**
* @return Wrapped service client ContainerAppsApiClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java
index d8914d077f388..21fe87e369a87 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java
@@ -44,6 +44,13 @@ public interface ContainerAppsApiClient {
*/
Duration getDefaultPollInterval();
+ /**
+ * Gets the ContainerAppsAuthConfigsClient object to access its operations.
+ *
+ * @return the ContainerAppsAuthConfigsClient object.
+ */
+ ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs();
+
/**
* Gets the ContainerAppsClient object to access its operations.
*
@@ -66,18 +73,11 @@ public interface ContainerAppsApiClient {
ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas();
/**
- * Gets the ManagedEnvironmentsClient object to access its operations.
- *
- * @return the ManagedEnvironmentsClient object.
- */
- ManagedEnvironmentsClient getManagedEnvironments();
-
- /**
- * Gets the CertificatesClient object to access its operations.
+ * Gets the DaprComponentsClient object to access its operations.
*
- * @return the CertificatesClient object.
+ * @return the DaprComponentsClient object.
*/
- CertificatesClient getCertificates();
+ DaprComponentsClient getDaprComponents();
/**
* Gets the OperationsClient object to access its operations.
@@ -87,25 +87,25 @@ public interface ContainerAppsApiClient {
OperationsClient getOperations();
/**
- * Gets the ContainerAppsSourceControlsClient object to access its operations.
+ * Gets the ManagedEnvironmentsClient object to access its operations.
*
- * @return the ContainerAppsSourceControlsClient object.
+ * @return the ManagedEnvironmentsClient object.
*/
- ContainerAppsSourceControlsClient getContainerAppsSourceControls();
+ ManagedEnvironmentsClient getManagedEnvironments();
/**
- * Gets the DaprComponentsClient object to access its operations.
+ * Gets the CertificatesClient object to access its operations.
*
- * @return the DaprComponentsClient object.
+ * @return the CertificatesClient object.
*/
- DaprComponentsClient getDaprComponents();
+ CertificatesClient getCertificates();
/**
- * Gets the ContainerAppsAuthConfigsClient object to access its operations.
+ * Gets the NamespacesClient object to access its operations.
*
- * @return the ContainerAppsAuthConfigsClient object.
+ * @return the NamespacesClient object.
*/
- ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs();
+ NamespacesClient getNamespaces();
/**
* Gets the ManagedEnvironmentsStoragesClient object to access its operations.
@@ -113,4 +113,11 @@ public interface ContainerAppsApiClient {
* @return the ManagedEnvironmentsStoragesClient object.
*/
ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages();
+
+ /**
+ * Gets the ContainerAppsSourceControlsClient object to access its operations.
+ *
+ * @return the ContainerAppsSourceControlsClient object.
+ */
+ ContainerAppsSourceControlsClient getContainerAppsSourceControls();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java
index c2f8766a13e28..c0455c7ca570e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsClient.java
@@ -14,7 +14,6 @@
import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
import com.azure.resourcemanager.appcontainers.fluent.models.CustomHostnameAnalysisResultInner;
import com.azure.resourcemanager.appcontainers.fluent.models.SecretsCollectionInner;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppPatch;
/** An instance of this class provides access to all the operations defined in ContainerAppsClient. */
public interface ContainerAppsClient {
@@ -218,36 +217,66 @@ ContainerAppInner createOrUpdate(
void delete(String resourceGroupName, String name, Context context);
/**
- * Patches a Container App. Currently only patching of tags is supported.
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
- * @param containerAppEnvelope Properties of a container app that need to be updated.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);
+
+ /**
+ * Patches a Container App using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);
+
+ /**
+ * Patches a Container App using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ContainerAppInner update(String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope);
+ void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);
/**
- * Patches a Container App. Currently only patching of tags is supported.
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
- * @param containerAppEnvelope Properties of a container app that need to be updated.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return container App along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope, Context context);
+ void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);
/**
* Analyzes a custom hostname for a Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java
index ef0aede139382..ec91000bad4cd 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java
@@ -32,6 +32,7 @@ public interface ContainerAppsRevisionsClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App for which Revisions are needed.
+ * @param filter The filter to apply on the operation.
* @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
@@ -40,7 +41,8 @@ public interface ContainerAppsRevisionsClient {
* @return the Revisions for a given Container App as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listRevisions(String resourceGroupName, String containerAppName, Context context);
+ PagedIterable listRevisions(
+ String resourceGroupName, String containerAppName, String filter, Context context);
/**
* Get a revision of a Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java
index b2b97bcf6e515..4147f026ca8c4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java
@@ -10,6 +10,7 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
/** An instance of this class provides access to all the operations defined in DaprComponentsClient. */
public interface DaprComponentsClient {
@@ -142,4 +143,36 @@ Response createOrUpdateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String environmentName, String name, Context context);
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr component Secrets Collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprSecretsCollectionInner listSecrets(String resourceGroupName, String environmentName, String name);
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr component Secrets Collection ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listSecretsWithResponse(
+ String resourceGroupName, String environmentName, String name, 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 06e6ada390832..352a540410fdf 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
@@ -12,7 +12,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
-import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPatch;
/** An instance of this class provides access to all the operations defined in ManagedEnvironmentsClient. */
public interface ManagedEnvironmentsClient {
@@ -220,7 +219,40 @@ ManagedEnvironmentInner createOrUpdate(
void delete(String resourceGroupName, String name, Context context);
/**
- * Patches a Managed Environment. Only patching of tags is supported currently.
+ * Patches a Managed Environment using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope);
+
+ /**
+ * Patches a Managed Environment using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context);
+
+ /**
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Environment.
@@ -229,13 +261,12 @@ 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 an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedEnvironmentInner update(String resourceGroupName, String name, ManagedEnvironmentPatch environmentEnvelope);
+ void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope);
/**
- * Patches a Managed Environment. Only patching of tags is supported currently.
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Environment.
@@ -245,9 +276,7 @@ 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 an environment for hosting container apps along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String name, ManagedEnvironmentPatch environmentEnvelope, Context context);
+ void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java
new file mode 100644
index 0000000000000..7c907d58a42b1
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+
+/** An instance of this class provides access to all the operations defined in NamespacesClient. */
+public interface NamespacesClient {
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @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 check availability result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameAvailabilityResponseInner checkNameAvailability(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest);
+
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @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 check availability result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigInner.java
index e550f4c462d2e..a4d911e32d68f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigInner.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
import com.azure.resourcemanager.appcontainers.models.GlobalValidation;
import com.azure.resourcemanager.appcontainers.models.HttpSettings;
@@ -23,13 +22,6 @@ public final class AuthConfigInner extends ProxyResource {
@JsonProperty(value = "properties")
private AuthConfigProperties innerProperties;
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/**
* Get the innerProperties property: AuthConfig resource specific properties.
*
@@ -39,15 +31,6 @@ private AuthConfigProperties innerProperties() {
return this.innerProperties;
}
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
/**
* Get the platform property: The configuration settings of the platform of ContainerApp Service
* Authentication/Authorization.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CheckNameAvailabilityResponseInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CheckNameAvailabilityResponseInner.java
new file mode 100644
index 0000000000000..5189f1a6cfb33
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CheckNameAvailabilityResponseInner.java
@@ -0,0 +1,99 @@
+// 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.resourcemanager.appcontainers.models.CheckNameAvailabilityReason;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The check availability result. */
+@Fluent
+public final class CheckNameAvailabilityResponseInner {
+ /*
+ * Indicates if the resource name is available.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /*
+ * The reason why the given name is not available.
+ */
+ @JsonProperty(value = "reason")
+ private CheckNameAvailabilityReason reason;
+
+ /*
+ * Detailed reason why the given name is available.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /**
+ * Get the nameAvailable property: Indicates if the resource name is available.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set the nameAvailable property: Indicates if the resource name is available.
+ *
+ * @param nameAvailable the nameAvailable value to set.
+ * @return the CheckNameAvailabilityResponseInner object itself.
+ */
+ public CheckNameAvailabilityResponseInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the reason property: The reason why the given name is not available.
+ *
+ * @return the reason value.
+ */
+ public CheckNameAvailabilityReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: The reason why the given name is not available.
+ *
+ * @param reason the reason value to set.
+ * @return the CheckNameAvailabilityResponseInner object itself.
+ */
+ public CheckNameAvailabilityResponseInner withReason(CheckNameAvailabilityReason reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Get the message property: Detailed reason why the given name is available.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the message property: Detailed reason why the given name is available.
+ *
+ * @param message the message value to set.
+ * @return the CheckNameAvailabilityResponseInner object itself.
+ */
+ public CheckNameAvailabilityResponseInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
index a769076b34c37..612f3c3383d77 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseError;
import com.azure.resourcemanager.appcontainers.models.DnsVerificationTestResult;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -20,6 +21,13 @@ public final class CustomHostnameAnalysisResultInner extends ProxyResource {
@JsonProperty(value = "properties")
private CustomHostnameAnalysisResultProperties innerProperties;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/**
* Get the innerProperties property: CustomHostnameAnalysisResult resource specific properties.
*
@@ -29,6 +37,15 @@ private CustomHostnameAnalysisResultProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the hostname property: Host name that was analyzed.
*
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
new file mode 100644
index 0000000000000..3c69e6c4b6c73
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
@@ -0,0 +1,59 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.models.Secret;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Dapr component Secrets Collection ARM resource. */
+@Fluent
+public final class DaprSecretsCollectionInner {
+ /*
+ * Collection of secrets used by a Dapr component
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /**
+ * Get the value property: Collection of secrets used by a Dapr component.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of secrets used by a Dapr component.
+ *
+ * @param value the value value to set.
+ * @return the DaprSecretsCollectionInner object itself.
+ */
+ public DaprSecretsCollectionInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property value in model DaprSecretsCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DaprSecretsCollectionInner.class);
+}
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 9c388d2f1b6df..6eb3f4a165a4a 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
@@ -95,6 +95,31 @@ public ManagedEnvironmentInner withDaprAIInstrumentationKey(String daprAIInstrum
return this;
}
+ /**
+ * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @return the daprAIConnectionString value.
+ */
+ public String daprAIConnectionString() {
+ return this.innerProperties() == null ? null : this.innerProperties().daprAIConnectionString();
+ }
+
+ /**
+ * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @param daprAIConnectionString the daprAIConnectionString value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withDaprAIConnectionString(String daprAIConnectionString) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withDaprAIConnectionString(daprAIConnectionString);
+ return this;
+ }
+
/**
* Get the vnetConfiguration property: Vnet configuration for the environment.
*
@@ -170,6 +195,29 @@ public ManagedEnvironmentInner withAppLogsConfiguration(AppLogsConfiguration app
return this;
}
+ /**
+ * Get the zoneRedundant property: Whether or not this Managed Environment is zone-redundant.
+ *
+ * @return the zoneRedundant value.
+ */
+ public Boolean zoneRedundant() {
+ return this.innerProperties() == null ? null : this.innerProperties().zoneRedundant();
+ }
+
+ /**
+ * Set the zoneRedundant property: Whether or not this Managed Environment is zone-redundant.
+ *
+ * @param zoneRedundant the zoneRedundant value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withZoneRedundant(Boolean zoneRedundant) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withZoneRedundant(zoneRedundant);
+ return this;
+ }
+
/**
* Validates the instance.
*
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 79ad23668d04f..3a58e75fc37d0 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
@@ -26,6 +26,13 @@ public final class ManagedEnvironmentProperties {
@JsonProperty(value = "daprAIInstrumentationKey")
private String daprAIInstrumentationKey;
+ /*
+ * Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry
+ */
+ @JsonProperty(value = "daprAIConnectionString")
+ private String daprAIConnectionString;
+
/*
* Vnet configuration for the environment
*/
@@ -58,6 +65,12 @@ public final class ManagedEnvironmentProperties {
@JsonProperty(value = "appLogsConfiguration")
private AppLogsConfiguration appLogsConfiguration;
+ /*
+ * Whether or not this Managed Environment is zone-redundant.
+ */
+ @JsonProperty(value = "zoneRedundant")
+ private Boolean zoneRedundant;
+
/**
* Get the provisioningState property: Provisioning state of the Environment.
*
@@ -89,6 +102,28 @@ public ManagedEnvironmentProperties withDaprAIInstrumentationKey(String daprAIIn
return this;
}
+ /**
+ * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @return the daprAIConnectionString value.
+ */
+ public String daprAIConnectionString() {
+ return this.daprAIConnectionString;
+ }
+
+ /**
+ * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
+ *
+ * @param daprAIConnectionString the daprAIConnectionString value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withDaprAIConnectionString(String daprAIConnectionString) {
+ this.daprAIConnectionString = daprAIConnectionString;
+ return this;
+ }
+
/**
* Get the vnetConfiguration property: Vnet configuration for the environment.
*
@@ -158,6 +193,26 @@ public ManagedEnvironmentProperties withAppLogsConfiguration(AppLogsConfiguratio
return this;
}
+ /**
+ * Get the zoneRedundant property: Whether or not this Managed Environment is zone-redundant.
+ *
+ * @return the zoneRedundant value.
+ */
+ public Boolean zoneRedundant() {
+ return this.zoneRedundant;
+ }
+
+ /**
+ * Set the zoneRedundant property: Whether or not this Managed Environment is zone-redundant.
+ *
+ * @param zoneRedundant the zoneRedundant value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withZoneRedundant(Boolean zoneRedundant) {
+ this.zoneRedundant = zoneRedundant;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
index a062a92d22fcc..7046b2bbef04d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.appcontainers.implementation;
-import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.appcontainers.fluent.models.AuthConfigInner;
import com.azure.resourcemanager.appcontainers.models.AuthConfig;
@@ -31,10 +30,6 @@ public String type() {
return this.innerModel().type();
}
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
public AuthPlatform platform() {
return this.innerModel().platform();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CheckNameAvailabilityResponseImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CheckNameAvailabilityResponseImpl.java
new file mode 100644
index 0000000000000..59b89b6157c12
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CheckNameAvailabilityResponseImpl.java
@@ -0,0 +1,42 @@
+// 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.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReason;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityResponse;
+
+public final class CheckNameAvailabilityResponseImpl implements CheckNameAvailabilityResponse {
+ private CheckNameAvailabilityResponseInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ CheckNameAvailabilityResponseImpl(
+ CheckNameAvailabilityResponseInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Boolean nameAvailable() {
+ return this.innerModel().nameAvailable();
+ }
+
+ public CheckNameAvailabilityReason reason() {
+ return this.innerModel().reason();
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public CheckNameAvailabilityResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
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 44d7d2f57bb83..68eb3da1a5bad 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
@@ -10,7 +10,6 @@
import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
import com.azure.resourcemanager.appcontainers.models.Configuration;
import com.azure.resourcemanager.appcontainers.models.ContainerApp;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppPatch;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProvisioningState;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
import com.azure.resourcemanager.appcontainers.models.SecretsCollection;
@@ -110,8 +109,6 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager(
private String name;
- private ContainerAppPatch updateContainerAppEnvelope;
-
public ContainerAppImpl withExistingResourceGroup(String resourceGroupName) {
this.resourceGroupName = resourceGroupName;
return this;
@@ -142,7 +139,6 @@ public ContainerApp create(Context context) {
}
public ContainerAppImpl update() {
- this.updateContainerAppEnvelope = new ContainerAppPatch();
return this;
}
@@ -151,8 +147,7 @@ public ContainerApp apply() {
serviceManager
.serviceClient()
.getContainerApps()
- .updateWithResponse(resourceGroupName, name, updateContainerAppEnvelope, Context.NONE)
- .getValue();
+ .createOrUpdate(resourceGroupName, name, this.innerModel(), Context.NONE);
return this;
}
@@ -161,8 +156,7 @@ public ContainerApp apply(Context context) {
serviceManager
.serviceClient()
.getContainerApps()
- .updateWithResponse(resourceGroupName, name, updateContainerAppEnvelope, context)
- .getValue();
+ .createOrUpdate(resourceGroupName, name, this.innerModel(), context);
return this;
}
@@ -213,13 +207,8 @@ public ContainerAppImpl withRegion(String location) {
}
public ContainerAppImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updateContainerAppEnvelope.withTags(tags);
- return this;
- }
+ this.innerModel().withTags(tags);
+ return this;
}
public ContainerAppImpl withIdentity(ManagedServiceIdentity identity) {
@@ -241,8 +230,4 @@ public ContainerAppImpl withTemplate(Template template) {
this.innerModel().withTemplate(template);
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/ContainerAppsApiClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
index 6c300279e330a..c8cf38f7761ff 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
@@ -31,6 +31,7 @@
import com.azure.resourcemanager.appcontainers.fluent.DaprComponentsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsStoragesClient;
+import com.azure.resourcemanager.appcontainers.fluent.NamespacesClient;
import com.azure.resourcemanager.appcontainers.fluent.OperationsClient;
import java.io.IOException;
import java.lang.reflect.Type;
@@ -117,6 +118,18 @@ public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
+ /** The ContainerAppsAuthConfigsClient object to access its operations. */
+ private final ContainerAppsAuthConfigsClient containerAppsAuthConfigs;
+
+ /**
+ * Gets the ContainerAppsAuthConfigsClient object to access its operations.
+ *
+ * @return the ContainerAppsAuthConfigsClient object.
+ */
+ public ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs() {
+ return this.containerAppsAuthConfigs;
+ }
+
/** The ContainerAppsClient object to access its operations. */
private final ContainerAppsClient containerApps;
@@ -153,28 +166,16 @@ public ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas() {
return this.containerAppsRevisionReplicas;
}
- /** The ManagedEnvironmentsClient object to access its operations. */
- private final ManagedEnvironmentsClient managedEnvironments;
-
- /**
- * Gets the ManagedEnvironmentsClient object to access its operations.
- *
- * @return the ManagedEnvironmentsClient object.
- */
- public ManagedEnvironmentsClient getManagedEnvironments() {
- return this.managedEnvironments;
- }
-
- /** The CertificatesClient object to access its operations. */
- private final CertificatesClient certificates;
+ /** The DaprComponentsClient object to access its operations. */
+ private final DaprComponentsClient daprComponents;
/**
- * Gets the CertificatesClient object to access its operations.
+ * Gets the DaprComponentsClient object to access its operations.
*
- * @return the CertificatesClient object.
+ * @return the DaprComponentsClient object.
*/
- public CertificatesClient getCertificates() {
- return this.certificates;
+ public DaprComponentsClient getDaprComponents() {
+ return this.daprComponents;
}
/** The OperationsClient object to access its operations. */
@@ -189,40 +190,40 @@ public OperationsClient getOperations() {
return this.operations;
}
- /** The ContainerAppsSourceControlsClient object to access its operations. */
- private final ContainerAppsSourceControlsClient containerAppsSourceControls;
+ /** The ManagedEnvironmentsClient object to access its operations. */
+ private final ManagedEnvironmentsClient managedEnvironments;
/**
- * Gets the ContainerAppsSourceControlsClient object to access its operations.
+ * Gets the ManagedEnvironmentsClient object to access its operations.
*
- * @return the ContainerAppsSourceControlsClient object.
+ * @return the ManagedEnvironmentsClient object.
*/
- public ContainerAppsSourceControlsClient getContainerAppsSourceControls() {
- return this.containerAppsSourceControls;
+ public ManagedEnvironmentsClient getManagedEnvironments() {
+ return this.managedEnvironments;
}
- /** The DaprComponentsClient object to access its operations. */
- private final DaprComponentsClient daprComponents;
+ /** The CertificatesClient object to access its operations. */
+ private final CertificatesClient certificates;
/**
- * Gets the DaprComponentsClient object to access its operations.
+ * Gets the CertificatesClient object to access its operations.
*
- * @return the DaprComponentsClient object.
+ * @return the CertificatesClient object.
*/
- public DaprComponentsClient getDaprComponents() {
- return this.daprComponents;
+ public CertificatesClient getCertificates() {
+ return this.certificates;
}
- /** The ContainerAppsAuthConfigsClient object to access its operations. */
- private final ContainerAppsAuthConfigsClient containerAppsAuthConfigs;
+ /** The NamespacesClient object to access its operations. */
+ private final NamespacesClient namespaces;
/**
- * Gets the ContainerAppsAuthConfigsClient object to access its operations.
+ * Gets the NamespacesClient object to access its operations.
*
- * @return the ContainerAppsAuthConfigsClient object.
+ * @return the NamespacesClient object.
*/
- public ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs() {
- return this.containerAppsAuthConfigs;
+ public NamespacesClient getNamespaces() {
+ return this.namespaces;
}
/** The ManagedEnvironmentsStoragesClient object to access its operations. */
@@ -237,6 +238,18 @@ public ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages() {
return this.managedEnvironmentsStorages;
}
+ /** The ContainerAppsSourceControlsClient object to access its operations. */
+ private final ContainerAppsSourceControlsClient containerAppsSourceControls;
+
+ /**
+ * Gets the ContainerAppsSourceControlsClient object to access its operations.
+ *
+ * @return the ContainerAppsSourceControlsClient object.
+ */
+ public ContainerAppsSourceControlsClient getContainerAppsSourceControls() {
+ return this.containerAppsSourceControls;
+ }
+
/**
* Initializes an instance of ContainerAppsApiClient client.
*
@@ -259,17 +272,18 @@ public ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-01-01-preview";
+ this.apiVersion = "2022-03-01";
+ this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsClientImpl(this);
this.containerApps = new ContainerAppsClientImpl(this);
this.containerAppsRevisions = new ContainerAppsRevisionsClientImpl(this);
this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasClientImpl(this);
+ this.daprComponents = new DaprComponentsClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
this.managedEnvironments = new ManagedEnvironmentsClientImpl(this);
this.certificates = new CertificatesClientImpl(this);
- this.operations = new OperationsClientImpl(this);
- this.containerAppsSourceControls = new ContainerAppsSourceControlsClientImpl(this);
- this.daprComponents = new DaprComponentsClientImpl(this);
- this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsClientImpl(this);
+ this.namespaces = new NamespacesClientImpl(this);
this.managedEnvironmentsStorages = new ManagedEnvironmentsStoragesClientImpl(this);
+ this.containerAppsSourceControls = new ContainerAppsSourceControlsClientImpl(this);
}
/**
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 4cbda20cdff30..8a1640536d75d 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
@@ -38,7 +38,6 @@
import com.azure.resourcemanager.appcontainers.fluent.models.CustomHostnameAnalysisResultInner;
import com.azure.resourcemanager.appcontainers.fluent.models.SecretsCollectionInner;
import com.azure.resourcemanager.appcontainers.models.ContainerAppCollection;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppPatch;
import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -143,15 +142,15 @@ Mono>> delete(
@Patch(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
+ "/{name}")
- @ExpectedResponses({200})
+ @ExpectedResponses({202})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> update(
+ Mono>> update(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("name") String name,
@QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") ContainerAppPatch containerAppEnvelope,
+ @BodyParam("application/json") ContainerAppInner containerAppEnvelope,
@HeaderParam("Accept") String accept,
Context context);
@@ -1158,19 +1157,19 @@ public void delete(String resourceGroupName, String name, Context context) {
}
/**
- * Patches a Container App. Currently only patching of tags is supported.
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
- * @param containerAppEnvelope Properties of a container app that need to be updated.
+ * @param containerAppEnvelope Properties of a Container App 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 container App along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(
- String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope) {
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -1214,20 +1213,20 @@ private Mono> updateWithResponseAsync(
}
/**
- * Patches a Container App. Currently only patching of tags is supported.
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
- * @param containerAppEnvelope Properties of a container app that need to be updated.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(
- String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope, Context context) {
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -1268,62 +1267,151 @@ private Mono> updateWithResponseAsync(
}
/**
- * Patches a Container App. Currently only patching of tags is supported.
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
- * @param containerAppEnvelope Properties of a container app that need to be updated.
+ * @param containerAppEnvelope Properties of a Container App 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 container App on successful completion of {@link Mono}.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginUpdateAsync(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, name, containerAppEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Patches a Container App using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginUpdateAsync(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, name, containerAppEnvelope, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Patches a Container App using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginUpdate(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) {
+ return beginUpdateAsync(resourceGroupName, name, containerAppEnvelope).getSyncPoller();
+ }
+
+ /**
+ * Patches a Container App using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginUpdate(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) {
+ return beginUpdateAsync(resourceGroupName, name, containerAppEnvelope, context).getSyncPoller();
+ }
+
+ /**
+ * Patches a Container App using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 updateAsync(
- String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope) {
- return updateWithResponseAsync(resourceGroupName, name, containerAppEnvelope)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ private Mono updateAsync(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) {
+ return beginUpdateAsync(resourceGroupName, name, containerAppEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Patches a Container App. Currently only patching of tags is supported.
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
- * @param containerAppEnvelope Properties of a container app that need to be updated.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 updateAsync(
+ String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) {
+ return beginUpdateAsync(resourceGroupName, name, containerAppEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Patches a Container App using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 ContainerAppInner update(String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope) {
- return updateAsync(resourceGroupName, name, containerAppEnvelope).block();
+ public void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) {
+ updateAsync(resourceGroupName, name, containerAppEnvelope).block();
}
/**
- * Patches a Container App. Currently only patching of tags is supported.
+ * Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Container App.
- * @param containerAppEnvelope Properties of a container app that need to be updated.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(
- String resourceGroupName, String name, ContainerAppPatch containerAppEnvelope, Context context) {
- return updateWithResponseAsync(resourceGroupName, name, containerAppEnvelope, context).block();
+ public void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) {
+ updateAsync(resourceGroupName, name, containerAppEnvelope, context).block();
}
/**
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 5e48d99e49fc0..0c686bc3c4bc1 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
@@ -84,6 +84,14 @@ public void delete(String resourceGroupName, String name, Context context) {
this.serviceClient().delete(resourceGroupName, name, context);
}
+ public void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope) {
+ this.serviceClient().update(resourceGroupName, name, containerAppEnvelope);
+ }
+
+ public void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context) {
+ this.serviceClient().update(resourceGroupName, name, containerAppEnvelope, context);
+ }
+
public CustomHostnameAnalysisResult listCustomHostnameAnalysis(String resourceGroupName, String containerAppName) {
CustomHostnameAnalysisResultInner inner =
this.serviceClient().listCustomHostnameAnalysis(resourceGroupName, containerAppName);
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 489b21202310f..72978fff9d9ab 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
@@ -70,6 +70,7 @@ Mono> listRevisions(
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("containerAppName") String containerAppName,
@QueryParam("api-version") String apiVersion,
+ @QueryParam("$filter") String filter,
@HeaderParam("Accept") String accept,
Context context);
@@ -153,6 +154,7 @@ Mono> listRevisionsNext(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App for which Revisions are needed.
+ * @param filter The filter to apply on the 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.
@@ -161,7 +163,7 @@ Mono> listRevisionsNext(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listRevisionsSinglePageAsync(
- String resourceGroupName, String containerAppName) {
+ String resourceGroupName, String containerAppName, String filter) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -193,6 +195,7 @@ private Mono> listRevisionsSinglePageAsync(
resourceGroupName,
containerAppName,
this.client.getApiVersion(),
+ filter,
accept,
context))
.>map(
@@ -212,6 +215,7 @@ private Mono> listRevisionsSinglePageAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App for which Revisions are needed.
+ * @param filter The filter to apply on the operation.
* @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.
@@ -221,7 +225,7 @@ private Mono> listRevisionsSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listRevisionsSinglePageAsync(
- String resourceGroupName, String containerAppName, Context context) {
+ String resourceGroupName, String containerAppName, String filter, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -251,6 +255,7 @@ private Mono> listRevisionsSinglePageAsync(
resourceGroupName,
containerAppName,
this.client.getApiVersion(),
+ filter,
accept,
context)
.map(
@@ -264,6 +269,25 @@ private Mono> listRevisionsSinglePageAsync(
null));
}
+ /**
+ * Get the Revisions for a given Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App for which Revisions are needed.
+ * @param filter The filter to apply on the 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 Revisions for a given Container App as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listRevisionsAsync(
+ String resourceGroupName, String containerAppName, String filter) {
+ return new PagedFlux<>(
+ () -> listRevisionsSinglePageAsync(resourceGroupName, containerAppName, filter),
+ nextLink -> listRevisionsNextSinglePageAsync(nextLink));
+ }
+
/**
* Get the Revisions for a given Container App.
*
@@ -276,8 +300,9 @@ private Mono> listRevisionsSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listRevisionsAsync(String resourceGroupName, String containerAppName) {
+ final String filter = null;
return new PagedFlux<>(
- () -> listRevisionsSinglePageAsync(resourceGroupName, containerAppName),
+ () -> listRevisionsSinglePageAsync(resourceGroupName, containerAppName, filter),
nextLink -> listRevisionsNextSinglePageAsync(nextLink));
}
@@ -286,6 +311,7 @@ private PagedFlux listRevisionsAsync(String resourceGroupName, St
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App for which Revisions are needed.
+ * @param filter The filter to apply on the operation.
* @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.
@@ -294,9 +320,9 @@ private PagedFlux listRevisionsAsync(String resourceGroupName, St
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listRevisionsAsync(
- String resourceGroupName, String containerAppName, Context context) {
+ String resourceGroupName, String containerAppName, String filter, Context context) {
return new PagedFlux<>(
- () -> listRevisionsSinglePageAsync(resourceGroupName, containerAppName, context),
+ () -> listRevisionsSinglePageAsync(resourceGroupName, containerAppName, filter, context),
nextLink -> listRevisionsNextSinglePageAsync(nextLink, context));
}
@@ -312,7 +338,8 @@ private PagedFlux listRevisionsAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listRevisions(String resourceGroupName, String containerAppName) {
- return new PagedIterable<>(listRevisionsAsync(resourceGroupName, containerAppName));
+ final String filter = null;
+ return new PagedIterable<>(listRevisionsAsync(resourceGroupName, containerAppName, filter));
}
/**
@@ -320,6 +347,7 @@ public PagedIterable listRevisions(String resourceGroupName, Stri
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App for which Revisions are needed.
+ * @param filter The filter to apply on the operation.
* @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.
@@ -328,8 +356,8 @@ public PagedIterable listRevisions(String resourceGroupName, Stri
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listRevisions(
- String resourceGroupName, String containerAppName, Context context) {
- return new PagedIterable<>(listRevisionsAsync(resourceGroupName, containerAppName, context));
+ String resourceGroupName, String containerAppName, String filter, Context context) {
+ return new PagedIterable<>(listRevisionsAsync(resourceGroupName, containerAppName, filter, context));
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java
index 113f5281de75e..92a5033ce15e0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java
@@ -33,9 +33,10 @@ public PagedIterable listRevisions(String resourceGroupName, String co
return Utils.mapPage(inner, inner1 -> new RevisionImpl(inner1, this.manager()));
}
- public PagedIterable listRevisions(String resourceGroupName, String containerAppName, Context context) {
+ public PagedIterable listRevisions(
+ String resourceGroupName, String containerAppName, String filter, Context context) {
PagedIterable inner =
- this.serviceClient().listRevisions(resourceGroupName, containerAppName, context);
+ this.serviceClient().listRevisions(resourceGroupName, containerAppName, filter, context);
return Utils.mapPage(inner, inner1 -> new RevisionImpl(inner1, this.manager()));
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CustomHostnameAnalysisResultImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CustomHostnameAnalysisResultImpl.java
index 3782b00d450ca..fb9b87b4236cf 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CustomHostnameAnalysisResultImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CustomHostnameAnalysisResultImpl.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.appcontainers.implementation;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.fluent.models.CustomHostnameAnalysisResultInner;
import com.azure.resourcemanager.appcontainers.models.CustomHostnameAnalysisResult;
import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseError;
@@ -35,6 +36,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String hostname() {
return this.innerModel().hostname();
}
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 4a797b8a2cbd9..6a4868cff3922 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
@@ -4,11 +4,13 @@
package com.azure.resourcemanager.appcontainers.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
import com.azure.resourcemanager.appcontainers.models.DaprComponent;
import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
+import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection;
import com.azure.resourcemanager.appcontainers.models.Secret;
import java.util.Collections;
import java.util.List;
@@ -177,6 +179,16 @@ public DaprComponent refresh(Context context) {
return this;
}
+ public DaprSecretsCollection listSecrets() {
+ return serviceManager.daprComponents().listSecrets(resourceGroupName, environmentName, name);
+ }
+
+ public Response listSecretsWithResponse(Context context) {
+ return serviceManager
+ .daprComponents()
+ .listSecretsWithResponse(resourceGroupName, environmentName, name, context);
+ }
+
public DaprComponentImpl withComponentType(String componentType) {
this.innerModel().withComponentType(componentType);
return this;
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 bb93dc1d11ddc..32649ddfb212b 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
@@ -13,6 +13,7 @@
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -29,6 +30,7 @@
import com.azure.core.util.FluxUtil;
import com.azure.resourcemanager.appcontainers.fluent.DaprComponentsClient;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
import com.azure.resourcemanager.appcontainers.models.DaprComponentsCollection;
import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
import reactor.core.publisher.Mono;
@@ -123,6 +125,22 @@ Mono> delete(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listSecrets(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("name") String name,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -830,6 +848,173 @@ public Response deleteWithResponse(
return deleteWithResponseAsync(resourceGroupName, environmentName, name, context).block();
}
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @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 dapr component Secrets Collection ARM resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSecretsWithResponseAsync(
+ String resourceGroupName, String environmentName, String name) {
+ 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listSecrets(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ name,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @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 dapr component Secrets Collection ARM resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSecretsWithResponseAsync(
+ String resourceGroupName, String environmentName, String name, 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listSecrets(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ name,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @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 dapr component Secrets Collection ARM resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listSecretsAsync(
+ String resourceGroupName, String environmentName, String name) {
+ return listSecretsWithResponseAsync(resourceGroupName, environmentName, name)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @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 dapr component Secrets Collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DaprSecretsCollectionInner listSecrets(String resourceGroupName, String environmentName, String name) {
+ return listSecretsAsync(resourceGroupName, environmentName, name).block();
+ }
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @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 dapr component Secrets Collection ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listSecretsWithResponse(
+ String resourceGroupName, String environmentName, String name, Context context) {
+ return listSecretsWithResponseAsync(resourceGroupName, environmentName, name, context).block();
+ }
+
/**
* Get the next page of items.
*
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 fa65c01c10dd6..da515dbdebe67 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
@@ -11,8 +11,10 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.appcontainers.fluent.DaprComponentsClient;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
import com.azure.resourcemanager.appcontainers.models.DaprComponent;
import com.azure.resourcemanager.appcontainers.models.DaprComponents;
+import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection;
public final class DaprComponentsImpl implements DaprComponents {
private static final ClientLogger LOGGER = new ClientLogger(DaprComponentsImpl.class);
@@ -72,6 +74,30 @@ public Response deleteWithResponse(
return this.serviceClient().deleteWithResponse(resourceGroupName, environmentName, name, context);
}
+ public DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String name) {
+ DaprSecretsCollectionInner inner = this.serviceClient().listSecrets(resourceGroupName, environmentName, name);
+ if (inner != null) {
+ return new DaprSecretsCollectionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response listSecretsWithResponse(
+ String resourceGroupName, String environmentName, String name, Context context) {
+ Response inner =
+ this.serviceClient().listSecretsWithResponse(resourceGroupName, environmentName, name, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DaprSecretsCollectionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
public DaprComponent getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
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
new file mode 100644
index 0000000000000..e515816a4cfb0
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprSecretsCollectionImpl.java
@@ -0,0 +1,41 @@
+// 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.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
+import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection;
+import com.azure.resourcemanager.appcontainers.models.Secret;
+import java.util.Collections;
+import java.util.List;
+
+public final class DaprSecretsCollectionImpl implements DaprSecretsCollection {
+ private DaprSecretsCollectionInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ DaprSecretsCollectionImpl(
+ DaprSecretsCollectionInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public DaprSecretsCollectionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
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 5dfb3cd464882..f204d0aaca1c8 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,7 +11,6 @@
import com.azure.resourcemanager.appcontainers.models.AppLogsConfiguration;
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironment;
-import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPatch;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import java.util.Collections;
import java.util.Map;
@@ -59,6 +58,10 @@ public String daprAIInstrumentationKey() {
return this.innerModel().daprAIInstrumentationKey();
}
+ public String daprAIConnectionString() {
+ return this.innerModel().daprAIConnectionString();
+ }
+
public VnetConfiguration vnetConfiguration() {
return this.innerModel().vnetConfiguration();
}
@@ -79,6 +82,10 @@ public AppLogsConfiguration appLogsConfiguration() {
return this.innerModel().appLogsConfiguration();
}
+ public Boolean zoneRedundant() {
+ return this.innerModel().zoneRedundant();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -99,8 +106,6 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager(
private String name;
- private ManagedEnvironmentPatch updateEnvironmentEnvelope;
-
public ManagedEnvironmentImpl withExistingResourceGroup(String resourceGroupName) {
this.resourceGroupName = resourceGroupName;
return this;
@@ -132,7 +137,6 @@ public ManagedEnvironment create(Context context) {
}
public ManagedEnvironmentImpl update() {
- this.updateEnvironmentEnvelope = new ManagedEnvironmentPatch();
return this;
}
@@ -141,8 +145,7 @@ public ManagedEnvironment apply() {
serviceManager
.serviceClient()
.getManagedEnvironments()
- .updateWithResponse(resourceGroupName, name, updateEnvironmentEnvelope, Context.NONE)
- .getValue();
+ .createOrUpdate(resourceGroupName, name, this.innerModel(), Context.NONE);
return this;
}
@@ -151,8 +154,7 @@ public ManagedEnvironment apply(Context context) {
serviceManager
.serviceClient()
.getManagedEnvironments()
- .updateWithResponse(resourceGroupName, name, updateEnvironmentEnvelope, context)
- .getValue();
+ .createOrUpdate(resourceGroupName, name, this.innerModel(), context);
return this;
}
@@ -196,13 +198,8 @@ public ManagedEnvironmentImpl withRegion(String location) {
}
public ManagedEnvironmentImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updateEnvironmentEnvelope.withTags(tags);
- return this;
- }
+ this.innerModel().withTags(tags);
+ return this;
}
public ManagedEnvironmentImpl withDaprAIInstrumentationKey(String daprAIInstrumentationKey) {
@@ -210,6 +207,11 @@ public ManagedEnvironmentImpl withDaprAIInstrumentationKey(String daprAIInstrume
return this;
}
+ public ManagedEnvironmentImpl withDaprAIConnectionString(String daprAIConnectionString) {
+ this.innerModel().withDaprAIConnectionString(daprAIConnectionString);
+ return this;
+ }
+
public ManagedEnvironmentImpl withVnetConfiguration(VnetConfiguration vnetConfiguration) {
this.innerModel().withVnetConfiguration(vnetConfiguration);
return this;
@@ -220,7 +222,8 @@ public ManagedEnvironmentImpl withAppLogsConfiguration(AppLogsConfiguration appL
return this;
}
- private boolean isInCreateMode() {
- return this.innerModel().id() == null;
+ public ManagedEnvironmentImpl withZoneRedundant(Boolean zoneRedundant) {
+ this.innerModel().withZoneRedundant(zoneRedundant);
+ 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 6e33741ee5f4f..fbf5e07de56d5 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
@@ -34,7 +34,6 @@
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsClient;
import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
-import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPatch;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsCollection;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -141,15 +140,15 @@ Mono>> delete(
@Patch(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ "/managedEnvironments/{name}")
- @ExpectedResponses({200})
+ @ExpectedResponses({202})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> update(
+ Mono>> update(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("name") String name,
@QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") ManagedEnvironmentPatch environmentEnvelope,
+ @BodyParam("application/json") ManagedEnvironmentInner environmentEnvelope,
@HeaderParam("Accept") String accept,
Context context);
@@ -1134,7 +1133,7 @@ public void delete(String resourceGroupName, String name, Context context) {
}
/**
- * Patches a Managed Environment. Only patching of tags is supported currently.
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Environment.
@@ -1142,12 +1141,11 @@ public void delete(String resourceGroupName, String name, Context context) {
* @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 along with {@link Response} on successful completion of {@link
- * Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(
- String resourceGroupName, String name, ManagedEnvironmentPatch environmentEnvelope) {
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -1191,7 +1189,7 @@ private Mono> updateWithResponseAsync(
}
/**
- * Patches a Managed Environment. Only patching of tags is supported currently.
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Environment.
@@ -1200,12 +1198,11 @@ 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 an environment for hosting container apps along with {@link Response} on successful completion of {@link
- * Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(
- String resourceGroupName, String name, ManagedEnvironmentPatch environmentEnvelope, Context context) {
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -1246,7 +1243,7 @@ private Mono> updateWithResponseAsync(
}
/**
- * Patches a Managed Environment. Only patching of tags is supported currently.
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Environment.
@@ -1254,41 +1251,131 @@ 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 an environment for hosting container apps on successful completion of {@link Mono}.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginUpdateAsync(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, name, environmentEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Patches a Managed Environment using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginUpdateAsync(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, name, environmentEnvelope, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Patches a Managed Environment using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginUpdate(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) {
+ return beginUpdateAsync(resourceGroupName, name, environmentEnvelope).getSyncPoller();
+ }
+
+ /**
+ * Patches a Managed Environment using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginUpdate(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) {
+ return beginUpdateAsync(resourceGroupName, name, environmentEnvelope, context).getSyncPoller();
+ }
+
+ /**
+ * Patches a Managed Environment using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the 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 A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
- String resourceGroupName, String name, ManagedEnvironmentPatch environmentEnvelope) {
- return updateWithResponseAsync(resourceGroupName, name, environmentEnvelope)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ private Mono updateAsync(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) {
+ return beginUpdateAsync(resourceGroupName, name, environmentEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Patches a Managed Environment. Only patching of tags is supported currently.
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Environment.
* @param environmentEnvelope Configuration details of the Environment.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ManagedEnvironmentInner update(
- String resourceGroupName, String name, ManagedEnvironmentPatch environmentEnvelope) {
- return updateAsync(resourceGroupName, name, environmentEnvelope).block();
+ private Mono updateAsync(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) {
+ return beginUpdateAsync(resourceGroupName, name, environmentEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Patches a Managed Environment. Only patching of tags is supported currently.
+ * Patches a Managed Environment using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) {
+ updateAsync(resourceGroupName, name, environmentEnvelope).block();
+ }
+
+ /**
+ * Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name Name of the Environment.
@@ -1297,12 +1384,11 @@ public ManagedEnvironmentInner update(
* @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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(
- String resourceGroupName, String name, ManagedEnvironmentPatch environmentEnvelope, Context context) {
- return updateWithResponseAsync(resourceGroupName, name, environmentEnvelope, context).block();
+ public void update(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) {
+ updateAsync(resourceGroupName, name, environmentEnvelope, context).block();
}
/**
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 912cb34322409..03caab102a76b 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
@@ -81,6 +81,15 @@ public void delete(String resourceGroupName, String name, Context context) {
this.serviceClient().delete(resourceGroupName, name, context);
}
+ public void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope) {
+ this.serviceClient().update(resourceGroupName, name, environmentEnvelope);
+ }
+
+ public void update(
+ String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context) {
+ this.serviceClient().update(resourceGroupName, name, environmentEnvelope, context);
+ }
+
public ManagedEnvironment getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
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
new file mode 100644
index 0000000000000..b4dc38d2ee4ec
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesClientImpl.java
@@ -0,0 +1,266 @@
+// 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.ExpectedResponses;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+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.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.appcontainers.fluent.NamespacesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in NamespacesClient. */
+public final class NamespacesClientImpl implements NamespacesClient {
+ /** The proxy service used to perform REST calls. */
+ private final NamespacesService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of NamespacesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ NamespacesClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy.create(NamespacesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientNamespaces to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ private interface NamespacesService {
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/managedEnvironments/{managedEnvironmentName}/checkNameAvailability")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> checkNameAvailability(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("managedEnvironmentName") String managedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @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 check availability result along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> checkNameAvailabilityWithResponseAsync(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest) {
+ 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (checkNameAvailabilityRequest == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter checkNameAvailabilityRequest is required and cannot be null."));
+ } else {
+ checkNameAvailabilityRequest.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .checkNameAvailability(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ managedEnvironmentName,
+ this.client.getApiVersion(),
+ checkNameAvailabilityRequest,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @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 check availability result along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> checkNameAvailabilityWithResponseAsync(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ 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 (managedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ }
+ if (checkNameAvailabilityRequest == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter checkNameAvailabilityRequest is required and cannot be null."));
+ } else {
+ checkNameAvailabilityRequest.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .checkNameAvailability(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ managedEnvironmentName,
+ this.client.getApiVersion(),
+ checkNameAvailabilityRequest,
+ accept,
+ context);
+ }
+
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @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 check availability result on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono checkNameAvailabilityAsync(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest) {
+ return checkNameAvailabilityWithResponseAsync(
+ resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @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 check availability result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CheckNameAvailabilityResponseInner checkNameAvailability(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest) {
+ return checkNameAvailabilityAsync(resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest)
+ .block();
+ }
+
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @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 check availability result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response checkNameAvailabilityWithResponse(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ Context context) {
+ return checkNameAvailabilityWithResponseAsync(
+ resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest, context)
+ .block();
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesImpl.java
new file mode 100644
index 0000000000000..2a963c915cfaf
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/NamespacesImpl.java
@@ -0,0 +1,73 @@
+// 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.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.NamespacesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityResponse;
+import com.azure.resourcemanager.appcontainers.models.Namespaces;
+
+public final class NamespacesImpl implements Namespaces {
+ private static final ClientLogger LOGGER = new ClientLogger(NamespacesImpl.class);
+
+ private final NamespacesClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public NamespacesImpl(
+ NamespacesClient innerClient, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public CheckNameAvailabilityResponse checkNameAvailability(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest) {
+ CheckNameAvailabilityResponseInner inner =
+ this
+ .serviceClient()
+ .checkNameAvailability(resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest);
+ if (inner != null) {
+ return new CheckNameAvailabilityResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response checkNameAvailabilityWithResponse(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .checkNameAvailabilityWithResponse(
+ resourceGroupName, managedEnvironmentName, checkNameAvailabilityRequest, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CheckNameAvailabilityResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ private NamespacesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AuthConfig.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AuthConfig.java
index b4d4beb47bf8f..726de14a283a4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AuthConfig.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/AuthConfig.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.appcontainers.models;
-import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.appcontainers.fluent.models.AuthConfigInner;
@@ -31,13 +30,6 @@ public interface AuthConfig {
*/
String type();
- /**
- * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- SystemData systemData();
-
/**
* Gets the platform property: The configuration settings of the platform of ContainerApp Service
* Authentication/Authorization.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CheckNameAvailabilityReason.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CheckNameAvailabilityReason.java
new file mode 100644
index 0000000000000..33c8af8b3707f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CheckNameAvailabilityReason.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for CheckNameAvailabilityReason. */
+public final class CheckNameAvailabilityReason extends ExpandableStringEnum {
+ /** Static value Invalid for CheckNameAvailabilityReason. */
+ public static final CheckNameAvailabilityReason INVALID = fromString("Invalid");
+
+ /** Static value AlreadyExists for CheckNameAvailabilityReason. */
+ public static final CheckNameAvailabilityReason ALREADY_EXISTS = fromString("AlreadyExists");
+
+ /**
+ * Creates or finds a CheckNameAvailabilityReason from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CheckNameAvailabilityReason.
+ */
+ @JsonCreator
+ public static CheckNameAvailabilityReason fromString(String name) {
+ return fromString(name, CheckNameAvailabilityReason.class);
+ }
+
+ /**
+ * Gets known CheckNameAvailabilityReason values.
+ *
+ * @return known CheckNameAvailabilityReason values.
+ */
+ public static Collection values() {
+ return values(CheckNameAvailabilityReason.class);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CheckNameAvailabilityRequest.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CheckNameAvailabilityRequest.java
new file mode 100644
index 0000000000000..d4d09570fe057
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CheckNameAvailabilityRequest.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The check availability request body. */
+@Fluent
+public final class CheckNameAvailabilityRequest {
+ /*
+ * The name of the resource for which availability needs to be checked.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The resource type.
+ */
+ @JsonProperty(value = "type")
+ private String type;
+
+ /**
+ * Get the name property: The name of the resource for which availability needs to be checked.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the resource for which availability needs to be checked.
+ *
+ * @param name the name value to set.
+ * @return the CheckNameAvailabilityRequest object itself.
+ */
+ public CheckNameAvailabilityRequest withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the type property: The resource type.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: The resource type.
+ *
+ * @param type the type value to set.
+ * @return the CheckNameAvailabilityRequest object itself.
+ */
+ public CheckNameAvailabilityRequest withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CheckNameAvailabilityResponse.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CheckNameAvailabilityResponse.java
new file mode 100644
index 0000000000000..7f61f59cc2a32
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CheckNameAvailabilityResponse.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
+
+/** An immutable client-side representation of CheckNameAvailabilityResponse. */
+public interface CheckNameAvailabilityResponse {
+ /**
+ * Gets the nameAvailable property: Indicates if the resource name is available.
+ *
+ * @return the nameAvailable value.
+ */
+ Boolean nameAvailable();
+
+ /**
+ * Gets the reason property: The reason why the given name is not available.
+ *
+ * @return the reason value.
+ */
+ CheckNameAvailabilityReason reason();
+
+ /**
+ * Gets the message property: Detailed reason why the given name is available.
+ *
+ * @return the message value.
+ */
+ String message();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner object.
+ *
+ * @return the inner object.
+ */
+ CheckNameAvailabilityResponseInner innerModel();
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Configuration.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Configuration.java
index 8f6029b3de2e7..e47ac5bce80d6 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Configuration.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Configuration.java
@@ -20,10 +20,10 @@ public final class Configuration {
/*
* ActiveRevisionsMode controls how active revisions are handled for the
* Container app:
- * - Multiple: multiple revisions can be active. If no value if
- * provided, this is the default
- Single: Only one revision can
- * be active at a time. Revision weights can not be used in this
- * mode
+ * - Multiple: multiple revisions can be
+ * active.
- Single: Only one revision can be active at a time.
+ * Revision weights can not be used in this mode. If no value if provided,
+ * this is the default.
*/
@JsonProperty(value = "activeRevisionsMode")
private ActiveRevisionsMode activeRevisionsMode;
@@ -69,9 +69,9 @@ public Configuration withSecrets(List secrets) {
/**
* Get the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the
- * Container app: <list><item>Multiple: multiple revisions can be active. If no value if provided, this
- * is the default</item><item>Single: Only one revision can be active at a time. Revision weights can
- * not be used in this mode</item></list>.
+ * Container app: <list><item>Multiple: multiple revisions can be
+ * active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be
+ * used in this mode. If no value if provided, this is the default.</item></list>.
*
* @return the activeRevisionsMode value.
*/
@@ -81,9 +81,9 @@ public ActiveRevisionsMode activeRevisionsMode() {
/**
* Set the activeRevisionsMode property: ActiveRevisionsMode controls how active revisions are handled for the
- * Container app: <list><item>Multiple: multiple revisions can be active. If no value if provided, this
- * is the default</item><item>Single: Only one revision can be active at a time. Revision weights can
- * not be used in this mode</item></list>.
+ * Container app: <list><item>Multiple: multiple revisions can be
+ * active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be
+ * used in this mode. If no value if provided, this is the default.</item></list>.
*
* @param activeRevisionsMode the activeRevisionsMode value to set.
* @return the Configuration object itself.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java
index 7d4c4129d40a4..d3ef7ded477dd 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java
@@ -259,7 +259,11 @@ interface WithTemplate {
ContainerApp.Update update();
/** The template for ContainerApp update. */
- interface Update extends UpdateStages.WithTags {
+ interface Update
+ extends UpdateStages.WithTags,
+ UpdateStages.WithIdentity,
+ UpdateStages.WithConfiguration,
+ UpdateStages.WithTemplate {
/**
* Executes the update request.
*
@@ -280,13 +284,45 @@ interface UpdateStages {
/** The stage of the ContainerApp update allowing to specify tags. */
interface WithTags {
/**
- * Specifies the tags property: Application-specific metadata in the form of key-value pairs..
+ * Specifies the tags property: Resource tags..
*
- * @param tags Application-specific metadata in the form of key-value pairs.
+ * @param tags Resource tags.
* @return the next definition stage.
*/
Update withTags(Map tags);
}
+ /** The stage of the ContainerApp update allowing to specify identity. */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: managed identities for the Container App to interact with other Azure
+ * services without maintaining any secrets or credentials in code..
+ *
+ * @param identity managed identities for the Container App to interact with other Azure services without
+ * maintaining any secrets or credentials in code.
+ * @return the next definition stage.
+ */
+ Update withIdentity(ManagedServiceIdentity identity);
+ }
+ /** The stage of the ContainerApp update allowing to specify configuration. */
+ interface WithConfiguration {
+ /**
+ * Specifies the configuration property: Non versioned Container App configuration properties..
+ *
+ * @param configuration Non versioned Container App configuration properties.
+ * @return the next definition stage.
+ */
+ Update withConfiguration(Configuration configuration);
+ }
+ /** The stage of the ContainerApp update allowing to specify template. */
+ interface WithTemplate {
+ /**
+ * Specifies the template property: Container App versioned application definition..
+ *
+ * @param template Container App versioned application definition.
+ * @return the next definition stage.
+ */
+ Update withTemplate(Template template);
+ }
}
/**
* Refreshes the resource to sync with Azure.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppPatch.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppPatch.java
deleted file mode 100644
index aee0588f80311..0000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppPatch.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.Map;
-
-/** Container App Patch. */
-@Fluent
-public final class ContainerAppPatch {
- /*
- * Application-specific metadata in the form of key-value pairs.
- */
- @JsonProperty(value = "tags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
- private Map tags;
-
- /**
- * Get the tags property: Application-specific metadata in the form of key-value pairs.
- *
- * @return the tags value.
- */
- public Map tags() {
- return this.tags;
- }
-
- /**
- * Set the tags property: Application-specific metadata in the form of key-value pairs.
- *
- * @param tags the tags value to set.
- * @return the ContainerAppPatch object itself.
- */
- public ContainerAppPatch withTags(Map tags) {
- this.tags = tags;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java
index aa5fece9d12aa..7dbe17388bdcc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApps.java
@@ -7,6 +7,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
/** Resource collection API of ContainerApps. */
public interface ContainerApps {
@@ -107,6 +108,33 @@ public interface ContainerApps {
*/
void delete(String resourceGroupName, String name, Context context);
+ /**
+ * Patches a Container App using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);
+
+ /**
+ * Patches a Container App using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Container App.
+ * @param containerAppEnvelope Properties of a Container App that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);
+
/**
* Analyzes a custom hostname for a Container App.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisions.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisions.java
index faded8478929b..bb7434d209994 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisions.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsRevisions.java
@@ -28,6 +28,7 @@ public interface ContainerAppsRevisions {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App for which Revisions are needed.
+ * @param filter The filter to apply on the operation.
* @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
@@ -35,7 +36,8 @@ public interface ContainerAppsRevisions {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Revisions for a given Container App as paginated response with {@link PagedIterable}.
*/
- PagedIterable listRevisions(String resourceGroupName, String containerAppName, Context context);
+ PagedIterable listRevisions(
+ String resourceGroupName, String containerAppName, String filter, Context context);
/**
* Get a revision of a Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CustomHostnameAnalysisResult.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CustomHostnameAnalysisResult.java
index ea1f021c61a0f..b2d9b4e1aa668 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CustomHostnameAnalysisResult.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/CustomHostnameAnalysisResult.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.appcontainers.models;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.fluent.models.CustomHostnameAnalysisResultInner;
import java.util.List;
@@ -30,6 +31,13 @@ public interface CustomHostnameAnalysisResult {
*/
String type();
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the hostname property: Host name that was analyzed.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java
index 57a68418ffa74..7655dd3e48f16 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponent.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.appcontainers.models;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
@@ -331,4 +332,26 @@ interface WithScopes {
* @return the refreshed resource.
*/
DaprComponent refresh(Context context);
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr component Secrets Collection ARM resource.
+ */
+ DaprSecretsCollection listSecrets();
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr component Secrets Collection ARM resource along with {@link Response}.
+ */
+ Response listSecretsWithResponse(Context context);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java
index 843da15048d4c..3c18a3d516a8d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprComponents.java
@@ -95,6 +95,36 @@ Response getWithResponse(
*/
Response deleteWithResponse(String resourceGroupName, String environmentName, String name, Context context);
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr component Secrets Collection ARM resource.
+ */
+ DaprSecretsCollection listSecrets(String resourceGroupName, String environmentName, String name);
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr component Secrets Collection ARM resource along with {@link Response}.
+ */
+ Response listSecretsWithResponse(
+ String resourceGroupName, String environmentName, String name, Context context);
+
/**
* Get a dapr component.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecretsCollection.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecretsCollection.java
new file mode 100644
index 0000000000000..3855936a9a9d7
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DaprSecretsCollection.java
@@ -0,0 +1,25 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
+import java.util.List;
+
+/** An immutable client-side representation of DaprSecretsCollection. */
+public interface DaprSecretsCollection {
+ /**
+ * Gets the value property: Collection of secrets used by a Dapr component.
+ *
+ * @return the value value.
+ */
+ List value();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner object.
+ *
+ * @return the inner object.
+ */
+ DaprSecretsCollectionInner innerModel();
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/GithubActionConfiguration.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/GithubActionConfiguration.java
index c1d9546821484..79344aadd0a6d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/GithubActionConfiguration.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/GithubActionConfiguration.java
@@ -23,10 +23,16 @@ public final class GithubActionConfiguration {
private AzureCredentials azureCredentials;
/*
- * Docker file path
+ * Context path
*/
- @JsonProperty(value = "dockerfilePath")
- private String dockerfilePath;
+ @JsonProperty(value = "contextPath")
+ private String contextPath;
+
+ /*
+ * Image name
+ */
+ @JsonProperty(value = "image")
+ private String image;
/*
* Code or Image
@@ -47,7 +53,7 @@ public final class GithubActionConfiguration {
private String runtimeStack;
/*
- * Runtime Version
+ * Runtime version
*/
@JsonProperty(value = "runtimeVersion")
private String runtimeVersion;
@@ -93,22 +99,42 @@ public GithubActionConfiguration withAzureCredentials(AzureCredentials azureCred
}
/**
- * Get the dockerfilePath property: Docker file path.
+ * Get the contextPath property: Context path.
+ *
+ * @return the contextPath value.
+ */
+ public String contextPath() {
+ return this.contextPath;
+ }
+
+ /**
+ * Set the contextPath property: Context path.
+ *
+ * @param contextPath the contextPath value to set.
+ * @return the GithubActionConfiguration object itself.
+ */
+ public GithubActionConfiguration withContextPath(String contextPath) {
+ this.contextPath = contextPath;
+ return this;
+ }
+
+ /**
+ * Get the image property: Image name.
*
- * @return the dockerfilePath value.
+ * @return the image value.
*/
- public String dockerfilePath() {
- return this.dockerfilePath;
+ public String image() {
+ return this.image;
}
/**
- * Set the dockerfilePath property: Docker file path.
+ * Set the image property: Image name.
*
- * @param dockerfilePath the dockerfilePath value to set.
+ * @param image the image value to set.
* @return the GithubActionConfiguration object itself.
*/
- public GithubActionConfiguration withDockerfilePath(String dockerfilePath) {
- this.dockerfilePath = dockerfilePath;
+ public GithubActionConfiguration withImage(String image) {
+ this.image = image;
return this;
}
@@ -173,7 +199,7 @@ public GithubActionConfiguration withRuntimeStack(String runtimeStack) {
}
/**
- * Get the runtimeVersion property: Runtime Version.
+ * Get the runtimeVersion property: Runtime version.
*
* @return the runtimeVersion value.
*/
@@ -182,7 +208,7 @@ public String runtimeVersion() {
}
/**
- * Set the runtimeVersion property: Runtime Version.
+ * Set the runtimeVersion property: Runtime version.
*
* @param runtimeVersion the runtimeVersion value to set.
* @return the GithubActionConfiguration object itself.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java
index c84716a249f25..83a065209bb5c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironment.java
@@ -69,6 +69,14 @@ public interface ManagedEnvironment {
*/
String daprAIInstrumentationKey();
+ /**
+ * Gets the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service
+ * to Service communication telemetry.
+ *
+ * @return the daprAIConnectionString value.
+ */
+ String daprAIConnectionString();
+
/**
* Gets the vnetConfiguration property: Vnet configuration for the environment.
*
@@ -105,6 +113,13 @@ public interface ManagedEnvironment {
*/
AppLogsConfiguration appLogsConfiguration();
+ /**
+ * Gets the zoneRedundant property: Whether or not this Managed Environment is zone-redundant.
+ *
+ * @return the zoneRedundant value.
+ */
+ Boolean zoneRedundant();
+
/**
* Gets the region of the resource.
*
@@ -173,8 +188,10 @@ interface WithResourceGroup {
interface WithCreate
extends DefinitionStages.WithTags,
DefinitionStages.WithDaprAIInstrumentationKey,
+ DefinitionStages.WithDaprAIConnectionString,
DefinitionStages.WithVnetConfiguration,
- DefinitionStages.WithAppLogsConfiguration {
+ DefinitionStages.WithAppLogsConfiguration,
+ DefinitionStages.WithZoneRedundant {
/**
* Executes the create request.
*
@@ -212,6 +229,18 @@ interface WithDaprAIInstrumentationKey {
*/
WithCreate withDaprAIInstrumentationKey(String daprAIInstrumentationKey);
}
+ /** The stage of the ManagedEnvironment definition allowing to specify daprAIConnectionString. */
+ interface WithDaprAIConnectionString {
+ /**
+ * Specifies the daprAIConnectionString property: Application Insights connection string used by Dapr to
+ * export Service to Service communication telemetry.
+ *
+ * @param daprAIConnectionString Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
+ * @return the next definition stage.
+ */
+ WithCreate withDaprAIConnectionString(String daprAIConnectionString);
+ }
/** The stage of the ManagedEnvironment definition allowing to specify vnetConfiguration. */
interface WithVnetConfiguration {
/**
@@ -234,6 +263,16 @@ interface WithAppLogsConfiguration {
*/
WithCreate withAppLogsConfiguration(AppLogsConfiguration appLogsConfiguration);
}
+ /** The stage of the ManagedEnvironment definition allowing to specify zoneRedundant. */
+ interface WithZoneRedundant {
+ /**
+ * Specifies the zoneRedundant property: Whether or not this Managed Environment is zone-redundant..
+ *
+ * @param zoneRedundant Whether or not this Managed Environment is zone-redundant.
+ * @return the next definition stage.
+ */
+ WithCreate withZoneRedundant(Boolean zoneRedundant);
+ }
}
/**
* Begins update for the ManagedEnvironment resource.
@@ -243,7 +282,8 @@ interface WithAppLogsConfiguration {
ManagedEnvironment.Update update();
/** The template for ManagedEnvironment update. */
- interface Update extends UpdateStages.WithTags {
+ interface Update
+ extends UpdateStages.WithTags, UpdateStages.WithVnetConfiguration, UpdateStages.WithAppLogsConfiguration {
/**
* Executes the update request.
*
@@ -264,13 +304,35 @@ interface UpdateStages {
/** The stage of the ManagedEnvironment update allowing to specify tags. */
interface WithTags {
/**
- * Specifies the tags property: Application-specific metadata in the form of key-value pairs..
+ * Specifies the tags property: Resource tags..
*
- * @param tags Application-specific metadata in the form of key-value pairs.
+ * @param tags Resource tags.
* @return the next definition stage.
*/
Update withTags(Map tags);
}
+ /** The stage of the ManagedEnvironment update allowing to specify vnetConfiguration. */
+ interface WithVnetConfiguration {
+ /**
+ * Specifies the vnetConfiguration property: Vnet configuration for the environment.
+ *
+ * @param vnetConfiguration Vnet configuration for the environment.
+ * @return the next definition stage.
+ */
+ Update withVnetConfiguration(VnetConfiguration vnetConfiguration);
+ }
+ /** The stage of the ManagedEnvironment update allowing to specify appLogsConfiguration. */
+ interface WithAppLogsConfiguration {
+ /**
+ * Specifies the appLogsConfiguration property: Cluster configuration which enables the log daemon to export
+ * app logs to a destination. Currently only "log-analytics" is supported.
+ *
+ * @param appLogsConfiguration Cluster configuration which enables the log daemon to export app logs to a
+ * destination. Currently only "log-analytics" is supported.
+ * @return the next definition stage.
+ */
+ Update withAppLogsConfiguration(AppLogsConfiguration appLogsConfiguration);
+ }
}
/**
* Refreshes the resource to sync with Azure.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentPatch.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentPatch.java
deleted file mode 100644
index b34ba2f56e0f6..0000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironmentPatch.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.Map;
-
-/** An environment for hosting container apps. */
-@Fluent
-public final class ManagedEnvironmentPatch {
- /*
- * Application-specific metadata in the form of key-value pairs.
- */
- @JsonProperty(value = "tags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
- private Map tags;
-
- /**
- * Get the tags property: Application-specific metadata in the form of key-value pairs.
- *
- * @return the tags value.
- */
- public Map tags() {
- return this.tags;
- }
-
- /**
- * Set the tags property: Application-specific metadata in the form of key-value pairs.
- *
- * @param tags the tags value to set.
- * @return the ManagedEnvironmentPatch object itself.
- */
- public ManagedEnvironmentPatch withTags(Map tags) {
- this.tags = tags;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java
index b14a0018f623f..7fe8270230a0d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ManagedEnvironments.java
@@ -7,6 +7,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
/** Resource collection API of ManagedEnvironments. */
public interface ManagedEnvironments {
@@ -109,6 +110,33 @@ public interface ManagedEnvironments {
*/
void delete(String resourceGroupName, String name, Context context);
+ /**
+ * Patches a Managed Environment using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope);
+
+ /**
+ * Patches a Managed Environment using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name Name of the Environment.
+ * @param environmentEnvelope Configuration details of the Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context);
+
/**
* Get the properties of a Managed Environment used to host container apps.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Namespaces.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Namespaces.java
new file mode 100644
index 0000000000000..0da6c9e6591a9
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Namespaces.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of Namespaces. */
+public interface Namespaces {
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @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 check availability result.
+ */
+ CheckNameAvailabilityResponse checkNameAvailability(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest);
+
+ /**
+ * Checks if resource name is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check name availability request.
+ * @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 check availability result along with {@link Response}.
+ */
+ Response checkNameAvailabilityWithResponse(
+ String resourceGroupName,
+ String managedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/RegistryCredentials.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/RegistryCredentials.java
index 24c93a97f0576..2ede306b687b1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/RegistryCredentials.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/RegistryCredentials.java
@@ -28,6 +28,14 @@ public final class RegistryCredentials {
@JsonProperty(value = "passwordSecretRef")
private String passwordSecretRef;
+ /*
+ * A Managed Identity to use to authenticate with Azure Container Registry.
+ * For user-assigned identities, use the full user-assigned identity
+ * Resource ID. For system-assigned identities, use 'system'
+ */
+ @JsonProperty(value = "identity")
+ private String identity;
+
/**
* Get the server property: Container Registry Server.
*
@@ -88,6 +96,30 @@ public RegistryCredentials withPasswordSecretRef(String passwordSecretRef) {
return this;
}
+ /**
+ * Get the identity property: A Managed Identity to use to authenticate with Azure Container Registry. For
+ * user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use
+ * 'system'.
+ *
+ * @return the identity value.
+ */
+ public String identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: A Managed Identity to use to authenticate with Azure Container Registry. For
+ * user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use
+ * 'system'.
+ *
+ * @param identity the identity value to set.
+ * @return the RegistryCredentials object itself.
+ */
+ public RegistryCredentials withIdentity(String identity) {
+ this.identity = identity;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/TrafficWeight.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/TrafficWeight.java
index 35f6630e308e3..b572fe457095f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/TrafficWeight.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/TrafficWeight.java
@@ -28,6 +28,12 @@ public final class TrafficWeight {
@JsonProperty(value = "latestRevision")
private Boolean latestRevision;
+ /*
+ * Associates a traffic label with a revision
+ */
+ @JsonProperty(value = "label")
+ private String label;
+
/**
* Get the revisionName property: Name of a revision.
*
@@ -88,6 +94,26 @@ public TrafficWeight withLatestRevision(Boolean latestRevision) {
return this;
}
+ /**
+ * Get the label property: Associates a traffic label with a revision.
+ *
+ * @return the label value.
+ */
+ public String label() {
+ return this.label;
+ }
+
+ /**
+ * Set the label property: Associates a traffic label with a revision.
+ *
+ * @param label the label value to set.
+ * @return the TrafficWeight object itself.
+ */
+ public TrafficWeight withLabel(String label) {
+ this.label = label;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java
index 35c5c46fea69c..f32420e6af4eb 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for Certificates CreateOrUpdate. */
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java
index 587188dd18926..12b6d83e16def 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for Certificates Delete. */
public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java
index 93794425ec204..6279efd0587d8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for Certificates Get. */
public final class CertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json
*/
/**
* Sample code: Get Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java
index 28d7ded0f2215..de192f2ea9952 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Certificates List. */
public final class CertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json
*/
/**
* Sample code: List Certificates by Managed Environment.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java
index 24ac944d39264..1780385c470d5 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java
@@ -12,7 +12,7 @@
/** Samples for Certificates Update. */
public final class CertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Certificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java
index b89b54c7fee57..ae3c05b4fcd2b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java
@@ -14,7 +14,7 @@
/** Samples for ContainerAppsAuthConfigs CreateOrUpdate. */
public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App AuthConfig.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java
index 41d3f0da24d41..100de975abd01 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsAuthConfigs Delete. */
public final class ContainerAppsAuthConfigsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Delete.json
*/
/**
* Sample code: Delete Container App AuthConfig.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java
index 8415f6c44ac2f..a3b229eab31e0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsAuthConfigs Get. */
public final class ContainerAppsAuthConfigsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_Get.json
*/
/**
* Sample code: Get Container App's AuthConfig.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java
index 0c74254f9943a..2e075bb0d1fce 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsAuthConfigs ListByContainerApp. */
public final class ContainerAppsAuthConfigsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/AuthConfigs_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/AuthConfigs_ListByContainer.json
*/
/**
* Sample code: List Auth Configs by Container Apps.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java
index 640512f504f72..01f361f3f654d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java
@@ -18,6 +18,7 @@
import com.azure.resourcemanager.appcontainers.models.Scale;
import com.azure.resourcemanager.appcontainers.models.ScaleRule;
import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
import com.azure.resourcemanager.appcontainers.models.Type;
import java.util.Arrays;
import java.util.HashMap;
@@ -26,7 +27,7 @@
/** Samples for ContainerApps CreateOrUpdate. */
public final class ContainerAppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App.
@@ -48,6 +49,13 @@ public static void createOrUpdateContainerApp(
new Ingress()
.withExternal(true)
.withTargetPort(3000)
+ .withTraffic(
+ Arrays
+ .asList(
+ new TrafficWeight()
+ .withRevisionName("testcontainerApp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
.withCustomDomains(
Arrays
.asList(
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java
index d16ef13acd46a..bde6e97ea925a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerApps Delete. */
public final class ContainerAppsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Delete.json
*/
/**
* Sample code: Delete Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java
index 7d41e3af82b78..8c693e63ff7af 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerApps GetByResourceGroup. */
public final class ContainerAppsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java
index 4b25663826bcf..5dce39d0e3fba 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerApps ListByResourceGroup. */
public final class ContainerAppsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListByResourceGroup.json
*/
/**
* Sample code: List Container Apps by resource group.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java
index a270a2073e9af..a0f775c3c2b30 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerApps ListCustomHostnameAnalysis. */
public final class ContainerAppsListCustomHostnameAnalysisSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysis.json
*/
/**
* Sample code: Analyze Custom Hostname.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java
index b061831e12778..6c5c0243b54a8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerApps List. */
public final class ContainerAppsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListBySubscription.json
*/
/**
* Sample code: List Container Apps by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java
index 4b1d86a72219f..40a50a752a6fe 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerApps ListSecrets. */
public final class ContainerAppsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java
index 8656b86761747..11bfc8009ce76 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisionReplicas GetReplica. */
public final class ContainerAppsRevisionReplicasGetReplicaSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Replicas_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_Get.json
*/
/**
* Sample code: Get Container App's revision replica.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java
index 829a2003181de..630f2ae298681 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisionReplicas ListReplicas. */
public final class ContainerAppsRevisionReplicasListReplicasSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Replicas_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Replicas_List.json
*/
/**
* Sample code: List Container App's replicas.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java
index c82468b3201c8..08235e1e1fc98 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions ActivateRevision. */
public final class ContainerAppsRevisionsActivateRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Activate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Activate.json
*/
/**
* Sample code: Activate Container App's revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java
index 373dedebbd341..c15271d947911 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions DeactivateRevision. */
public final class ContainerAppsRevisionsDeactivateRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Deactivate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Deactivate.json
*/
/**
* Sample code: Deactivate Container App's revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java
index fe05da506c4af..d8d564d918646 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions GetRevision. */
public final class ContainerAppsRevisionsGetRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java
index 04ed230ca4e55..5324581d5a8b9 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions ListRevisions. */
public final class ContainerAppsRevisionsListRevisionsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
@@ -18,6 +18,6 @@ public final class ContainerAppsRevisionsListRevisionsSamples {
*/
public static void listContainerAppSRevisions(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().listRevisions("rg", "testcontainerApp0", Context.NONE);
+ manager.containerAppsRevisions().listRevisions("rg", "testcontainerApp0", null, Context.NONE);
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java
index 31e039b11ebc1..cc55c0c2db001 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsRevisions RestartRevision. */
public final class ContainerAppsRevisionsRestartRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Revisions_Restart.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Revisions_Restart.json
*/
/**
* Sample code: Restart Container App's revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java
index 463369b92c157..ab4193d13f6b5 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ContainerAppsSourceControls CreateOrUpdate. */
public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App SourceControl.
@@ -37,7 +37,9 @@ public static void createOrUpdateContainerAppSourceControl(
new AzureCredentials()
.withClientId("")
.withClientSecret("")
- .withTenantId("")))
+ .withTenantId(""))
+ .withContextPath("./")
+ .withImage("image/tag"))
.create();
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java
index 70dd5c34ac071..6b809a4f2c7a7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsSourceControls Delete. */
public final class ContainerAppsSourceControlsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Delete.json
*/
/**
* Sample code: Delete Container App SourceControl.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java
index f07289e8eaa40..83e817f9115bf 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsSourceControls Get. */
public final class ContainerAppsSourceControlsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_Get.json
*/
/**
* Sample code: Get Container App's SourceControl.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java
index 3481e9d88639e..aecbfe983746c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java
@@ -9,7 +9,7 @@
/** Samples for ContainerAppsSourceControls ListByContainerApp. */
public final class ContainerAppsSourceControlsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_ListByContainer.json
*/
/**
* Sample code: List App's Source Controls.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java
index c516d9f2390d8..5c4c90935a889 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java
@@ -5,14 +5,31 @@
package com.azure.resourcemanager.appcontainers.generated;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.models.ContainerApp;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppInner;
+import com.azure.resourcemanager.appcontainers.models.AppProtocol;
+import com.azure.resourcemanager.appcontainers.models.BindingType;
+import com.azure.resourcemanager.appcontainers.models.Configuration;
+import com.azure.resourcemanager.appcontainers.models.Container;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
+import com.azure.resourcemanager.appcontainers.models.CustomDomain;
+import com.azure.resourcemanager.appcontainers.models.CustomScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Dapr;
+import com.azure.resourcemanager.appcontainers.models.Ingress;
+import com.azure.resourcemanager.appcontainers.models.Scale;
+import com.azure.resourcemanager.appcontainers.models.ScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
+import com.azure.resourcemanager.appcontainers.models.Type;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/** Samples for ContainerApps Update. */
public final class ContainerAppsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Patch.json
*/
/**
* Sample code: Patch Container App.
@@ -20,9 +37,80 @@ public final class ContainerAppsUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void patchContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- ContainerApp resource =
- manager.containerApps().getByResourceGroupWithResponse("rg", "testcontainerApp0", Context.NONE).getValue();
- resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
+ manager
+ .containerApps()
+ .update(
+ "rg",
+ "testcontainerApp0",
+ new ContainerAppInner()
+ .withLocation("East US")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withConfiguration(
+ new Configuration()
+ .withIngress(
+ new Ingress()
+ .withExternal(true)
+ .withTargetPort(3000)
+ .withTraffic(
+ Arrays
+ .asList(
+ new TrafficWeight()
+ .withRevisionName("testcontainerApp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
+ .withCustomDomains(
+ Arrays
+ .asList(
+ new CustomDomain()
+ .withName("www.my-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
+ new CustomDomain()
+ .withName("www.my-other-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"))))
+ .withDapr(new Dapr().withEnabled(true).withAppProtocol(AppProtocol.HTTP).withAppPort(3000)))
+ .withTemplate(
+ new Template()
+ .withContainers(
+ Arrays
+ .asList(
+ new Container()
+ .withImage("repo/testcontainerApp0:v1")
+ .withName("testcontainerApp0")
+ .withProbes(
+ Arrays
+ .asList(
+ new ContainerAppProbe()
+ .withHttpGet(
+ new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays
+ .asList(
+ new ContainerAppProbeHttpGetHttpHeadersItem()
+ .withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080))
+ .withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withType(Type.LIVENESS)))))
+ .withScale(
+ new Scale()
+ .withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(
+ Arrays
+ .asList(
+ new ScaleRule()
+ .withName("httpscalingrule")
+ .withCustom(
+ new CustomScaleRule()
+ .withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50"))))))),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java
index 46622b37d3314..34a651567bca7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for DaprComponents CreateOrUpdate. */
public final class DaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_CreateOrUpdate.json
*/
/**
* Sample code: Create or update dapr component.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java
index c2269964f872f..1493afdd33442 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for DaprComponents Delete. */
public final class DaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java
index 6e0d2b16515a7..23dd68e6619f6 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for DaprComponents Get. */
public final class DaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_Get.json
*/
/**
* Sample code: Get Dapr Component.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java
index 8b239e98b742b..a2306a54f73bc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for DaprComponents List. */
public final class DaprComponentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/DaprComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java
new file mode 100644
index 0000000000000..e8a47ef3f2687
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java
@@ -0,0 +1,23 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.generated;
+
+import com.azure.core.util.Context;
+
+/** Samples for DaprComponents ListSecrets. */
+public final class DaprComponentsListSecretsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_ListSecrets.json
+ */
+ /**
+ * Sample code: List Container Apps Secrets.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listContainerAppsSecrets(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents().listSecretsWithResponse("examplerg", "myenvironment", "reddog", Context.NONE);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java
index 9fae5d3b1d516..6fd91f9b1ccab 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for ManagedEnvironments CreateOrUpdate. */
public final class ManagedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create environments.
@@ -23,10 +23,13 @@ public static void createEnvironments(com.azure.resourcemanager.appcontainers.Co
.define("testcontainerenv")
.withRegion("East US")
.withExistingResourceGroup("examplerg")
+ .withDaprAIConnectionString(
+ "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
.withAppLogsConfiguration(
new AppLogsConfiguration()
.withLogAnalyticsConfiguration(
new LogAnalyticsConfiguration().withCustomerId("string").withSharedKey("string")))
+ .withZoneRedundant(true)
.create();
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java
index d1a7578aeae46..607d4c44bb7d1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments Delete. */
public final class ManagedEnvironmentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Delete.json
*/
/**
* Sample code: Delete environment by name.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java
index 7d01fdef40119..dafccc1ccd56d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments GetByResourceGroup. */
public final class ManagedEnvironmentsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java
index edafc4f17b13f..d5cc68e7ea40a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments ListByResourceGroup. */
public final class ManagedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_ListByResourceGroup.json
*/
/**
* Sample code: List environments by resource group.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java
index 6986216011beb..f33c68f8b9a5e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironments List. */
public final class ManagedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_ListBySubscription.json
*/
/**
* Sample code: List environments by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java
index 46a3cede80f72..df8dad2f96755 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ManagedEnvironmentsStorages CreateOrUpdate. */
public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java
index 57718341474cf..bd34d5966e2d4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironmentsStorages Delete. */
public final class ManagedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Delete.json
*/
/**
* Sample code: List environments storages by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java
index deb9017bb553a..f0493b5be2bff 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironmentsStorages Get. */
public final class ManagedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Get.json
*/
/**
* Sample code: get a environments storage properties by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java
index fbe49cff81cc0..41c79218d0770 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java
@@ -9,7 +9,7 @@
/** Samples for ManagedEnvironmentsStorages List. */
public final class ManagedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java
index 8e9dbe84d8c94..e0d5de098a3a1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java
@@ -5,14 +5,14 @@
package com.azure.resourcemanager.appcontainers.generated;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.models.ManagedEnvironment;
+import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentInner;
import java.util.HashMap;
import java.util.Map;
/** Samples for ManagedEnvironments Update. */
public final class ManagedEnvironmentsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ManagedEnvironments_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
@@ -21,12 +21,15 @@ public final class ManagedEnvironmentsUpdateSamples {
*/
public static void patchManagedEnvironment(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- ManagedEnvironment resource =
- manager
- .managedEnvironments()
- .getByResourceGroupWithResponse("examplerg", "testcontainerenv", Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
+ manager
+ .managedEnvironments()
+ .update(
+ "examplerg",
+ "testcontainerenv",
+ new ManagedEnvironmentInner()
+ .withLocation("East US")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")),
+ Context.NONE);
}
@SuppressWarnings("unchecked")
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java
new file mode 100644
index 0000000000000..353367eeff1ac
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.generated;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+
+/** Samples for Namespaces CheckNameAvailability. */
+public final class NamespacesCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: Certificates_CheckNameAvailability.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void certificatesCheckNameAvailability(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .namespaces()
+ .checkNameAvailabilityWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ new CheckNameAvailabilityRequest()
+ .withName("testcertificatename")
+ .withType("Microsoft.App/managedEnvironments/certificates"),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: ContainerApps_CheckNameAvailability.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void containerAppsCheckNameAvailability(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .namespaces()
+ .checkNameAvailabilityWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ new CheckNameAvailabilityRequest().withName("testcappname").withType("Microsoft.App/containerApps"),
+ Context.NONE);
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java
index 721559451e36d..93c196bea0eb7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/Operations_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Operations_List.json
*/
/**
* Sample code: List all operations.