diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
index 60c849290ef0..9a145f18ed6d 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.4 (Unreleased)
+## 1.0.0-beta.1 (2022-07-06)
+
+- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-preview-2022-06. 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 c456e0cf3e79..a02875ec8d5d 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-03. 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-preview-2022-06. 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.3
+ 1.0.0-beta.4
```
[//]: # ({x-version-update-end})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
index a863135771ff..443ec8b44e48 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
@@ -9,6 +9,39 @@
- [List](#certificates_list)
- [Update](#certificates_update)
+## ConnectedEnvironments
+
+- [CheckNameAvailability](#connectedenvironments_checknameavailability)
+- [CreateOrUpdate](#connectedenvironments_createorupdate)
+- [Delete](#connectedenvironments_delete)
+- [GetByResourceGroup](#connectedenvironments_getbyresourcegroup)
+- [List](#connectedenvironments_list)
+- [ListByResourceGroup](#connectedenvironments_listbyresourcegroup)
+- [Update](#connectedenvironments_update)
+
+## ConnectedEnvironmentsCertificates
+
+- [CreateOrUpdate](#connectedenvironmentscertificates_createorupdate)
+- [Delete](#connectedenvironmentscertificates_delete)
+- [Get](#connectedenvironmentscertificates_get)
+- [List](#connectedenvironmentscertificates_list)
+- [Update](#connectedenvironmentscertificates_update)
+
+## ConnectedEnvironmentsDaprComponents
+
+- [CreateOrUpdate](#connectedenvironmentsdaprcomponents_createorupdate)
+- [Delete](#connectedenvironmentsdaprcomponents_delete)
+- [Get](#connectedenvironmentsdaprcomponents_get)
+- [List](#connectedenvironmentsdaprcomponents_list)
+- [ListSecrets](#connectedenvironmentsdaprcomponents_listsecrets)
+
+## ConnectedEnvironmentsStorages
+
+- [CreateOrUpdate](#connectedenvironmentsstorages_createorupdate)
+- [Delete](#connectedenvironmentsstorages_delete)
+- [Get](#connectedenvironmentsstorages_get)
+- [List](#connectedenvironmentsstorages_list)
+
## ContainerApps
- [CreateOrUpdate](#containerapps_createorupdate)
@@ -27,6 +60,14 @@
- [Get](#containerappsauthconfigs_get)
- [ListByContainerApp](#containerappsauthconfigs_listbycontainerapp)
+## ContainerAppsDiagnostics
+
+- [GetDetector](#containerappsdiagnostics_getdetector)
+- [GetRevision](#containerappsdiagnostics_getrevision)
+- [GetRoot](#containerappsdiagnostics_getroot)
+- [ListDetectors](#containerappsdiagnostics_listdetectors)
+- [ListRevisions](#containerappsdiagnostics_listrevisions)
+
## ContainerAppsRevisionReplicas
- [GetReplica](#containerappsrevisionreplicas_getreplica)
@@ -55,6 +96,11 @@
- [List](#daprcomponents_list)
- [ListSecrets](#daprcomponents_listsecrets)
+## ManagedEnvironmentDiagnostics
+
+- [GetDetector](#managedenvironmentdiagnostics_getdetector)
+- [ListDetectors](#managedenvironmentdiagnostics_listdetectors)
+
## ManagedEnvironments
- [CreateOrUpdate](#managedenvironments_createorupdate)
@@ -64,155 +110,710 @@
- [ListByResourceGroup](#managedenvironments_listbyresourcegroup)
- [Update](#managedenvironments_update)
-## ManagedEnvironmentsStorages
+## ManagedEnvironmentsDiagnostics
+
+- [GetRoot](#managedenvironmentsdiagnostics_getroot)
+
+## ManagedEnvironmentsStorages
+
+- [CreateOrUpdate](#managedenvironmentsstorages_createorupdate)
+- [Delete](#managedenvironmentsstorages_delete)
+- [Get](#managedenvironmentsstorages_get)
+- [List](#managedenvironmentsstorages_list)
+
+## Namespaces
+
+- [CheckNameAvailability](#namespaces_checknameavailability)
+
+## Operations
+
+- [List](#operations_list)
+### Certificates_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
+
+/** Samples for Certificates CreateOrUpdate. */
+public final class CertificatesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificate_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateCertificate(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .certificates()
+ .define("certificate-firendly-name")
+ .withRegion("East US")
+ .withExistingManagedEnvironment("examplerg", "testcontainerenv")
+ .withProperties(
+ new CertificateProperties()
+ .withPassword("private key password")
+ .withValue("PFX-or-PEM-blob".getBytes()))
+ .create();
+ }
+}
+```
+
+### Certificates_Delete
+
+```java
+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-06-01-preview/examples/Certificate_Delete.json
+ */
+ /**
+ * Sample code: Delete Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .certificates()
+ .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE);
+ }
+}
+```
+
+### Certificates_Get
+
+```java
+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-06-01-preview/examples/Certificate_Get.json
+ */
+ /**
+ * Sample code: Get Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .certificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE);
+ }
+}
+```
+
+### Certificates_List
+
+```java
+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-06-01-preview/examples/Certificates_ListByManagedEnvironment.json
+ */
+ /**
+ * Sample code: List Certificates by Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listCertificatesByManagedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.certificates().list("examplerg", "testcontainerenv", Context.NONE);
+ }
+}
+```
+
+### Certificates_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.models.Certificate;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Certificates Update. */
+public final class CertificatesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_Patch.json
+ */
+ /**
+ * Sample code: Patch Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ Certificate resource =
+ manager
+ .certificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ConnectedEnvironments_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+
+/** Samples for ConnectedEnvironments CheckNameAvailability. */
+public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: Certificates_CheckNameAvailability.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void certificatesCheckNameAvailability(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .connectedEnvironments()
+ .checkNameAvailabilityWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ new CheckNameAvailabilityRequest()
+ .withName("testcertificatename")
+ .withType("Microsoft.App/connectedEnvironments/certificates"),
+ Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironments_CreateOrUpdate
+
+```java
+/** Samples for ConnectedEnvironments CreateOrUpdate. */
+public final class ConnectedEnvironmentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create kube environments.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createKubeEnvironments(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .connectedEnvironments()
+ .define("testenv")
+ .withRegion("East US")
+ .withExistingResourceGroup("examplerg")
+ .withStaticIp("1.2.3.4")
+ .create();
+ }
+}
+```
+
+### ConnectedEnvironments_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConnectedEnvironments Delete. */
+public final class ConnectedEnvironmentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Delete.json
+ */
+ /**
+ * Sample code: Delete connected environment by connectedEnvironmentName.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteConnectedEnvironmentByConnectedEnvironmentName(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().delete("examplerg", "examplekenv", Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironments_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConnectedEnvironments GetByResourceGroup. */
+public final class ConnectedEnvironmentsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Get.json
+ */
+ /**
+ * Sample code: Get connected environment by connectedEnvironmentName.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getConnectedEnvironmentByConnectedEnvironmentName(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().getByResourceGroupWithResponse("examplerg", "examplekenv", Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironments_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConnectedEnvironments List. */
+public final class ConnectedEnvironmentsListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListBySubscription.json
+ */
+ /**
+ * Sample code: List connected environments by subscription.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listConnectedEnvironmentsBySubscription(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().list(Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironments_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConnectedEnvironments ListByResourceGroup. */
+public final class ConnectedEnvironmentsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List environments by resource group.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listEnvironmentsByResourceGroup(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().listByResourceGroup("examplerg", Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironments_Update
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConnectedEnvironments Update. */
+public final class ConnectedEnvironmentsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_Patch.json
+ */
+ /**
+ * Sample code: Patch Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void patchManagedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().updateWithResponse("examplerg", "testenv", Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsCertificates_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
+import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
+
+/** Samples for ConnectedEnvironmentsCertificates CreateOrUpdate. */
+public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateCertificate(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .connectedEnvironmentsCertificates()
+ .createOrUpdateWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ "certificate-firendly-name",
+ new CertificateInner()
+ .withLocation("East US")
+ .withProperties(
+ new CertificateProperties()
+ .withPassword("private key password")
+ .withValue("PFX-or-PEM-blob".getBytes())),
+ Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsCertificates_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConnectedEnvironmentsCertificates Delete. */
+public final class ConnectedEnvironmentsCertificatesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
+ */
+ /**
+ * Sample code: Delete Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .connectedEnvironmentsCertificates()
+ .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsCertificates_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConnectedEnvironmentsCertificates Get. */
+public final class ConnectedEnvironmentsCertificatesGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json
+ */
+ /**
+ * Sample code: Get Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .connectedEnvironmentsCertificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsCertificates_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConnectedEnvironmentsCertificates List. */
+public final class ConnectedEnvironmentsCertificatesListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
+ */
+ /**
+ * Sample code: List Certificates by Connected Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listCertificatesByConnectedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsCertificates().list("examplerg", "testcontainerenv", Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsCertificates_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ConnectedEnvironmentsCertificates Update. */
+public final class ConnectedEnvironmentsCertificatesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
+ */
+ /**
+ * Sample code: Patch Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .connectedEnvironmentsCertificates()
+ .updateWithResponse(
+ "examplerg",
+ "testcontainerenv",
+ "certificate-firendly-name",
+ new CertificatePatch().withTags(mapOf("tag1", "value1", "tag2", "value2")),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ConnectedEnvironmentsDaprComponents_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
+import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
+import com.azure.resourcemanager.appcontainers.models.Secret;
+import java.util.Arrays;
+
+/** Samples for ConnectedEnvironmentsDaprComponents CreateOrUpdate. */
+public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or update dapr component.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateDaprComponent(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .connectedEnvironmentsDaprComponents()
+ .createOrUpdateWithResponse(
+ "examplerg",
+ "myenvironment",
+ "reddog",
+ new DaprComponentInner()
+ .withComponentType("state.azure.cosmosdb")
+ .withVersion("v1")
+ .withIgnoreErrors(false)
+ .withInitTimeout("50s")
+ .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
+ .withMetadata(
+ Arrays
+ .asList(
+ new DaprMetadata().withName("url").withValue(""),
+ new DaprMetadata().withName("database").withValue("itemsDB"),
+ new DaprMetadata().withName("collection").withValue("items"),
+ new DaprMetadata().withName("masterkey").withSecretRef("masterkey")))
+ .withScopes(Arrays.asList("container-app-1", "container-app-2")),
+ Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsDaprComponents_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConnectedEnvironmentsDaprComponents Delete. */
+public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
+ */
+ /**
+ * Sample code: Delete dapr component.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .connectedEnvironmentsDaprComponents()
+ .deleteWithResponse("examplerg", "myenvironment", "reddog", Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsDaprComponents_Get
-- [CreateOrUpdate](#managedenvironmentsstorages_createorupdate)
-- [Delete](#managedenvironmentsstorages_delete)
-- [Get](#managedenvironmentsstorages_get)
-- [List](#managedenvironmentsstorages_list)
+```java
+import com.azure.core.util.Context;
-## Namespaces
+/** Samples for ConnectedEnvironmentsDaprComponents Get. */
+public final class ConnectedEnvironmentsDaprComponentsGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
+ */
+ /**
+ * Sample code: Get Dapr Component.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .connectedEnvironmentsDaprComponents()
+ .getWithResponse("examplerg", "myenvironment", "reddog", Context.NONE);
+ }
+}
+```
-- [CheckNameAvailability](#namespaces_checknameavailability)
+### ConnectedEnvironmentsDaprComponents_List
-## Operations
+```java
+import com.azure.core.util.Context;
-- [List](#operations_list)
-### Certificates_CreateOrUpdate
+/** Samples for ConnectedEnvironmentsDaprComponents List. */
+public final class ConnectedEnvironmentsDaprComponentsListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
+ */
+ /**
+ * Sample code: List Dapr Components.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listDaprComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsDaprComponents().list("examplerg", "myenvironment", Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsDaprComponents_ListSecrets
```java
-import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
+import com.azure.core.util.Context;
-/** Samples for Certificates CreateOrUpdate. */
-public final class CertificatesCreateOrUpdateSamples {
+/** Samples for ConnectedEnvironmentsDaprComponents ListSecrets. */
+public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
*/
/**
- * Sample code: Create or Update Certificate.
+ * Sample code: List Container Apps Secrets.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateCertificate(
+ public static void listContainerAppsSecrets(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager
- .certificates()
- .define("certificate-firendly-name")
- .withRegion("East US")
- .withExistingManagedEnvironment("examplerg", "testcontainerenv")
- .withProperties(
- new CertificateProperties()
- .withPassword("private key password")
- .withValue("PFX-or-PEM-blob".getBytes()))
- .create();
+ .connectedEnvironmentsDaprComponents()
+ .listSecretsWithResponse("examplerg", "myenvironment", "reddog", Context.NONE);
}
}
```
-### Certificates_Delete
+### ConnectedEnvironmentsStorages_CreateOrUpdate
```java
-import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.models.AccessMode;
+import com.azure.resourcemanager.appcontainers.models.AzureFileProperties;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorageProperties;
-/** Samples for Certificates Delete. */
-public final class CertificatesDeleteSamples {
+/** Samples for ConnectedEnvironmentsStorages CreateOrUpdate. */
+public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
- * Sample code: Delete Certificate.
+ * Sample code: Create or update environments storage.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ public static void createOrUpdateEnvironmentsStorage(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager
- .certificates()
- .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE);
+ .connectedEnvironmentsStorages()
+ .define("jlaw-demo1")
+ .withExistingConnectedEnvironment("examplerg", "env")
+ .withProperties(
+ new ConnectedEnvironmentStorageProperties()
+ .withAzureFile(
+ new AzureFileProperties()
+ .withAccountName("account1")
+ .withAccountKey("key")
+ .withAccessMode(AccessMode.READ_ONLY)
+ .withShareName("share1")))
+ .create();
}
}
```
-### Certificates_Get
+### ConnectedEnvironmentsStorages_Delete
```java
import com.azure.core.util.Context;
-/** Samples for Certificates Get. */
-public final class CertificatesGetSamples {
+/** Samples for ConnectedEnvironmentsStorages Delete. */
+public final class ConnectedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json
*/
/**
- * Sample code: Get Certificate.
+ * Sample code: List environments storages by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager
- .certificates()
- .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE);
+ public static void listEnvironmentsStoragesBySubscription(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsStorages().deleteWithResponse("examplerg", "env", "jlaw-demo1", Context.NONE);
}
}
```
-### Certificates_List
+### ConnectedEnvironmentsStorages_Get
```java
import com.azure.core.util.Context;
-/** Samples for Certificates List. */
-public final class CertificatesListSamples {
+/** Samples for ConnectedEnvironmentsStorages Get. */
+public final class ConnectedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_Get.json
*/
/**
- * Sample code: List Certificates by Managed Environment.
+ * Sample code: get a environments storage properties by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listCertificatesByManagedEnvironment(
+ public static void getAEnvironmentsStoragePropertiesBySubscription(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates().list("examplerg", "testcontainerenv", Context.NONE);
+ manager.connectedEnvironmentsStorages().getWithResponse("examplerg", "env", "jlaw-demo1", Context.NONE);
}
}
```
-### Certificates_Update
+### ConnectedEnvironmentsStorages_List
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.models.Certificate;
-import java.util.HashMap;
-import java.util.Map;
-/** Samples for Certificates Update. */
-public final class CertificatesUpdateSamples {
+/** Samples for ConnectedEnvironmentsStorages List. */
+public final class ConnectedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironmentsStorages_List.json
*/
/**
- * Sample code: Patch Certificate.
+ * Sample code: List environments storages by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- Certificate resource =
- manager
- .certificates()
- .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name", Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ public static void listEnvironmentsStoragesBySubscription(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsStorages().listWithResponse("examplerg", "managedEnv", Context.NONE);
}
}
```
@@ -243,7 +844,7 @@ import java.util.Map;
/** Samples for ContainerApps CreateOrUpdate. */
public final class ContainerAppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App.
@@ -257,7 +858,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
.define("testcontainerApp0")
.withRegion("East US")
.withExistingResourceGroup("rg")
- .withManagedEnvironmentId(
+ .withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
.withConfiguration(
new Configuration()
@@ -285,7 +886,12 @@ public final class ContainerAppsCreateOrUpdateSamples {
.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)))
+ .withDapr(
+ new Dapr()
+ .withEnabled(true)
+ .withAppProtocol(AppProtocol.HTTP)
+ .withAppPort(3000)
+ .withHttpReadBufferSize(30)))
.withTemplate(
new Template()
.withContainers(
@@ -348,7 +954,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/stable/2022-03-01/examples/ContainerApps_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Delete.json
*/
/**
* Sample code: Delete Container App.
@@ -369,7 +975,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/stable/2022-03-01/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
@@ -390,7 +996,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/stable/2022-03-01/examples/ContainerApps_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListBySubscription.json
*/
/**
* Sample code: List Container Apps by subscription.
@@ -412,7 +1018,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/stable/2022-03-01/examples/ContainerApps_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListByResourceGroup.json
*/
/**
* Sample code: List Container Apps by resource group.
@@ -434,7 +1040,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/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysis.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
*/
/**
* Sample code: Analyze Custom Hostname.
@@ -457,7 +1063,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/stable/2022-03-01/examples/ContainerApps_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
@@ -499,7 +1105,7 @@ import java.util.Map;
/** Samples for ContainerApps Update. */
public final class ContainerAppsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Patch.json
*/
/**
* Sample code: Patch Container App.
@@ -541,7 +1147,12 @@ public final class ContainerAppsUpdateSamples {
.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)))
+ .withDapr(
+ new Dapr()
+ .withEnabled(true)
+ .withAppProtocol(AppProtocol.HTTP)
+ .withAppPort(3000)
+ .withHttpReadBufferSize(30)))
.withTemplate(
new Template()
.withContainers(
@@ -609,7 +1220,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/stable/2022-03-01/examples/AuthConfigs_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App AuthConfig.
@@ -644,7 +1255,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/stable/2022-03-01/examples/AuthConfigs_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Delete.json
*/
/**
* Sample code: Delete Container App AuthConfig.
@@ -668,7 +1279,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/stable/2022-03-01/examples/AuthConfigs_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_Get.json
*/
/**
* Sample code: Get Container App's AuthConfig.
@@ -692,7 +1303,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/stable/2022-03-01/examples/AuthConfigs_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/AuthConfigs_ListByContainer.json
*/
/**
* Sample code: List Auth Configs by Container Apps.
@@ -706,6 +1317,122 @@ public final class ContainerAppsAuthConfigsListByContainerAppSamples {
}
```
+### ContainerAppsDiagnostics_GetDetector
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsDiagnostics GetDetector. */
+public final class ContainerAppsDiagnosticsGetDetectorSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_Get.json
+ */
+ /**
+ * Sample code: Get Container App's diagnostics info.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getContainerAppSDiagnosticsInfo(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsDiagnostics()
+ .getDetectorWithResponse(
+ "mikono-workerapp-test-rg", "mikono-capp-stage1", "cappcontainerappnetworkIO", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsDiagnostics_GetRevision
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsDiagnostics GetRevision. */
+public final class ContainerAppsDiagnosticsGetRevisionSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json
+ */
+ /**
+ * Sample code: Get Container App's revision.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getContainerAppSRevision(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsDiagnostics()
+ .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsDiagnostics_GetRoot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsDiagnostics GetRoot. */
+public final class ContainerAppsDiagnosticsGetRootSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_Get.json
+ */
+ /**
+ * Sample code: Get Container App.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsDiagnostics().getRootWithResponse("rg", "testcontainerApp0", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsDiagnostics_ListDetectors
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsDiagnostics ListDetectors. */
+public final class ContainerAppsDiagnosticsListDetectorsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerAppsDiagnostics_List.json
+ */
+ /**
+ * Sample code: Get the list of available diagnostics for a given Container App.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getTheListOfAvailableDiagnosticsForAGivenContainerApp(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .containerAppsDiagnostics()
+ .listDetectors("mikono-workerapp-test-rg", "mikono-capp-stage1", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsDiagnostics_ListRevisions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsDiagnostics ListRevisions. */
+public final class ContainerAppsDiagnosticsListRevisionsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json
+ */
+ /**
+ * Sample code: List Container App's revisions.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listContainerAppSRevisions(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsDiagnostics().listRevisions("rg", "testcontainerApp0", null, Context.NONE);
+ }
+}
+```
+
### ContainerAppsRevisionReplicas_GetReplica
```java
@@ -714,7 +1441,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/stable/2022-03-01/examples/Replicas_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_Get.json
*/
/**
* Sample code: Get Container App's revision replica.
@@ -739,7 +1466,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/stable/2022-03-01/examples/Replicas_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Replicas_List.json
*/
/**
* Sample code: List Container App's replicas.
@@ -763,7 +1490,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/stable/2022-03-01/examples/Revisions_Activate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Activate.json
*/
/**
* Sample code: Activate Container App's revision.
@@ -787,7 +1514,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/stable/2022-03-01/examples/Revisions_Deactivate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Deactivate.json
*/
/**
* Sample code: Deactivate Container App's revision.
@@ -811,7 +1538,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/stable/2022-03-01/examples/Revisions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
@@ -835,7 +1562,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/stable/2022-03-01/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
@@ -857,7 +1584,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/stable/2022-03-01/examples/Revisions_Restart.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Revisions_Restart.json
*/
/**
* Sample code: Restart Container App's revision.
@@ -883,7 +1610,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/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App SourceControl.
@@ -925,7 +1652,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/stable/2022-03-01/examples/SourceControls_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Delete.json
*/
/**
* Sample code: Delete Container App SourceControl.
@@ -947,7 +1674,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/stable/2022-03-01/examples/SourceControls_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_Get.json
*/
/**
* Sample code: Get Container App's SourceControl.
@@ -971,7 +1698,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/stable/2022-03-01/examples/SourceControls_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/SourceControls_ListByContainer.json
*/
/**
* Sample code: List App's Source Controls.
@@ -994,7 +1721,7 @@ import java.util.Arrays;
/** Samples for DaprComponents CreateOrUpdate. */
public final class DaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/DaprComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_CreateOrUpdate.json
*/
/**
* Sample code: Create or update dapr component.
@@ -1033,7 +1760,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/stable/2022-03-01/examples/DaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
@@ -1054,7 +1781,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/stable/2022-03-01/examples/DaprComponents_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_Get.json
*/
/**
* Sample code: Get Dapr Component.
@@ -1075,7 +1802,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/stable/2022-03-01/examples/DaprComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
@@ -1096,7 +1823,7 @@ 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
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/DaprComponents_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
@@ -1110,6 +1837,55 @@ public final class DaprComponentsListSecretsSamples {
}
```
+### ManagedEnvironmentDiagnostics_GetDetector
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironmentDiagnostics GetDetector. */
+public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json
+ */
+ /**
+ * Sample code: Get diagnostic data for a managed environments.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getDiagnosticDataForAManagedEnvironments(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .managedEnvironmentDiagnostics()
+ .getDetectorWithResponse(
+ "mikono-workerapp-test-rg", "mikonokubeenv", "ManagedEnvAvailabilityMetrics", Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironmentDiagnostics_ListDetectors
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironmentDiagnostics ListDetectors. */
+public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentDiagnostics_List.json
+ */
+ /**
+ * Sample code: Get the list of available diagnostic data for a managed environments.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getTheListOfAvailableDiagnosticDataForAManagedEnvironments(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager
+ .managedEnvironmentDiagnostics()
+ .listDetectorsWithResponse("mikono-workerapp-test-rg", "mikonokubeenv", Context.NONE);
+ }
+}
+```
+
### ManagedEnvironments_CreateOrUpdate
```java
@@ -1119,7 +1895,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/stable/2022-03-01/examples/ManagedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create environments.
@@ -1152,7 +1928,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/stable/2022-03-01/examples/ManagedEnvironments_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Delete.json
*/
/**
* Sample code: Delete environment by name.
@@ -1174,7 +1950,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/stable/2022-03-01/examples/ManagedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -1195,7 +1971,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/stable/2022-03-01/examples/ManagedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json
*/
/**
* Sample code: List environments by subscription.
@@ -1217,7 +1993,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/stable/2022-03-01/examples/ManagedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json
*/
/**
* Sample code: List environments by resource group.
@@ -1242,7 +2018,7 @@ import java.util.Map;
/** Samples for ManagedEnvironments Update. */
public final class ManagedEnvironmentsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ManagedEnvironments_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
@@ -1275,6 +2051,27 @@ public final class ManagedEnvironmentsUpdateSamples {
}
```
+### ManagedEnvironmentsDiagnostics_GetRoot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedEnvironmentsDiagnostics GetRoot. */
+public final class ManagedEnvironmentsDiagnosticsGetRootSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json
+ */
+ /**
+ * Sample code: Get environments by name.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getEnvironmentsByName(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentsDiagnostics().getRootWithResponse("examplerg", "jlaw-demo1", Context.NONE);
+ }
+}
+```
+
### ManagedEnvironmentsStorages_CreateOrUpdate
```java
@@ -1285,7 +2082,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/stable/2022-03-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
@@ -1319,7 +2116,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/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Delete.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -1341,7 +2138,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/stable/2022-03-01/examples/ManagedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_Get.json
*/
/**
* Sample code: get a environments storage properties by subscription.
@@ -1363,7 +2160,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/stable/2022-03-01/examples/ManagedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -1386,7 +2183,7 @@ import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReque
/** 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
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/Certificates_CheckNameAvailability.json
*/
/**
* Sample code: Certificates_CheckNameAvailability.
@@ -1407,7 +2204,7 @@ public final class NamespacesCheckNameAvailabilitySamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ContainerApps_CheckNameAvailability.json
*/
/**
* Sample code: ContainerApps_CheckNameAvailability.
@@ -1435,7 +2232,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/stable/2022-03-01/examples/Operations_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/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 75a6bbbc039a..cac2c55ef51f 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-03.
+ 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-preview-2022-06.
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 2cda5dd69c19..699fbe3fb96e 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
@@ -25,25 +25,39 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsApiClient;
import com.azure.resourcemanager.appcontainers.implementation.CertificatesImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsCertificatesImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsDaprComponentsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsStoragesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsApiClientBuilder;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsAuthConfigsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionReplicasImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSourceControlsImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentDiagnosticsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsDiagnosticsImpl;
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.ConnectedEnvironments;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsCertificates;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsDaprComponents;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.ContainerApps;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsAuthConfigs;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisionReplicas;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisions;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsSourceControls;
import com.azure.resourcemanager.appcontainers.models.DaprComponents;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironments;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.Namespaces;
import com.azure.resourcemanager.appcontainers.models.Operations;
@@ -66,6 +80,12 @@ public final class ContainerAppsApiManager {
private DaprComponents daprComponents;
+ private ContainerAppsDiagnostics containerAppsDiagnostics;
+
+ private ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics;
+
+ private ManagedEnvironmentsDiagnostics managedEnvironmentsDiagnostics;
+
private Operations operations;
private ManagedEnvironments managedEnvironments;
@@ -78,6 +98,14 @@ public final class ContainerAppsApiManager {
private ContainerAppsSourceControls containerAppsSourceControls;
+ private ConnectedEnvironments connectedEnvironments;
+
+ private ConnectedEnvironmentsCertificates connectedEnvironmentsCertificates;
+
+ private ConnectedEnvironmentsDaprComponents connectedEnvironmentsDaprComponents;
+
+ private ConnectedEnvironmentsStorages connectedEnvironmentsStorages;
+
private final ContainerAppsApiClient clientObject;
private ContainerAppsApiManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -243,7 +271,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
- .append("1.0.0-beta.3");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -363,6 +391,45 @@ public DaprComponents daprComponents() {
return daprComponents;
}
+ /**
+ * Gets the resource collection API of ContainerAppsDiagnostics.
+ *
+ * @return Resource collection API of ContainerAppsDiagnostics.
+ */
+ public ContainerAppsDiagnostics containerAppsDiagnostics() {
+ if (this.containerAppsDiagnostics == null) {
+ this.containerAppsDiagnostics =
+ new ContainerAppsDiagnosticsImpl(clientObject.getContainerAppsDiagnostics(), this);
+ }
+ return containerAppsDiagnostics;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedEnvironmentDiagnostics.
+ *
+ * @return Resource collection API of ManagedEnvironmentDiagnostics.
+ */
+ public ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics() {
+ if (this.managedEnvironmentDiagnostics == null) {
+ this.managedEnvironmentDiagnostics =
+ new ManagedEnvironmentDiagnosticsImpl(clientObject.getManagedEnvironmentDiagnostics(), this);
+ }
+ return managedEnvironmentDiagnostics;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedEnvironmentsDiagnostics.
+ *
+ * @return Resource collection API of ManagedEnvironmentsDiagnostics.
+ */
+ public ManagedEnvironmentsDiagnostics managedEnvironmentsDiagnostics() {
+ if (this.managedEnvironmentsDiagnostics == null) {
+ this.managedEnvironmentsDiagnostics =
+ new ManagedEnvironmentsDiagnosticsImpl(clientObject.getManagedEnvironmentsDiagnostics(), this);
+ }
+ return managedEnvironmentsDiagnostics;
+ }
+
/**
* Gets the resource collection API of Operations.
*
@@ -437,6 +504,58 @@ public ContainerAppsSourceControls containerAppsSourceControls() {
return containerAppsSourceControls;
}
+ /**
+ * Gets the resource collection API of ConnectedEnvironments. It manages ConnectedEnvironment.
+ *
+ * @return Resource collection API of ConnectedEnvironments.
+ */
+ public ConnectedEnvironments connectedEnvironments() {
+ if (this.connectedEnvironments == null) {
+ this.connectedEnvironments = new ConnectedEnvironmentsImpl(clientObject.getConnectedEnvironments(), this);
+ }
+ return connectedEnvironments;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectedEnvironmentsCertificates.
+ *
+ * @return Resource collection API of ConnectedEnvironmentsCertificates.
+ */
+ public ConnectedEnvironmentsCertificates connectedEnvironmentsCertificates() {
+ if (this.connectedEnvironmentsCertificates == null) {
+ this.connectedEnvironmentsCertificates =
+ new ConnectedEnvironmentsCertificatesImpl(clientObject.getConnectedEnvironmentsCertificates(), this);
+ }
+ return connectedEnvironmentsCertificates;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectedEnvironmentsDaprComponents.
+ *
+ * @return Resource collection API of ConnectedEnvironmentsDaprComponents.
+ */
+ public ConnectedEnvironmentsDaprComponents connectedEnvironmentsDaprComponents() {
+ if (this.connectedEnvironmentsDaprComponents == null) {
+ this.connectedEnvironmentsDaprComponents =
+ new ConnectedEnvironmentsDaprComponentsImpl(
+ clientObject.getConnectedEnvironmentsDaprComponents(), this);
+ }
+ return connectedEnvironmentsDaprComponents;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectedEnvironmentsStorages. It manages ConnectedEnvironmentStorage.
+ *
+ * @return Resource collection API of ConnectedEnvironmentsStorages.
+ */
+ public ConnectedEnvironmentsStorages connectedEnvironmentsStorages() {
+ if (this.connectedEnvironmentsStorages == null) {
+ this.connectedEnvironmentsStorages =
+ new ConnectedEnvironmentsStoragesImpl(clientObject.getConnectedEnvironmentsStorages(), this);
+ }
+ return connectedEnvironmentsStorages;
+ }
+
/**
* @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/ConnectedEnvironmentsCertificatesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsCertificatesClient.java
new file mode 100644
index 000000000000..debd7fa9562f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsCertificatesClient.java
@@ -0,0 +1,191 @@
+// 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.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectedEnvironmentsCertificatesClient.
+ */
+public interface ConnectedEnvironmentsCertificatesClient {
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 Certificates in a given connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 Certificates in a given connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CertificateInner get(String resourceGroupName, String connectedEnvironmentName, String certificateName);
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context);
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CertificateInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName, String certificateName);
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ Context context);
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName);
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context);
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CertificateInner update(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope);
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsClient.java
new file mode 100644
index 000000000000..331f0270383b
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsClient.java
@@ -0,0 +1,300 @@
+// 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.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentInner;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+
+/** An instance of this class provides access to all the operations defined in ConnectedEnvironmentsClient. */
+public interface ConnectedEnvironmentsClient {
+ /**
+ * Description for Get all connectedEnvironments for a subscription.
+ *
+ * @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 collection of connectedEnvironments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Description for Get all connectedEnvironments for a subscription.
+ *
+ * @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 collection of connectedEnvironments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all connectedEnvironments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all connectedEnvironments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 properties of an connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentInner getByResourceGroup(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 properties of an connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope);
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context);
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentInner createOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope);
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentInner createOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context);
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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> beginDelete(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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> beginDelete(
+ String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Patches a Managed Environment. Only patching of tags is supported currently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentInner update(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Patches a Managed Environment. Only patching of tags is supported currently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads by Azure App Service along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Checks if resource connectedEnvironmentName is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check connectedEnvironmentName 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 connectedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest);
+
+ /**
+ * Checks if resource connectedEnvironmentName is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check connectedEnvironmentName 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 connectedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java
new file mode 100644
index 000000000000..d6b6fc9817f2
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java
@@ -0,0 +1,185 @@
+// 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.PagedIterable;
+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 ConnectedEnvironmentsDaprComponentsClient.
+ */
+public interface ConnectedEnvironmentsDaprComponentsClient {
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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 Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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 Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dapr component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprComponentInner get(String resourceGroupName, String connectedEnvironmentName, String componentName);
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dapr component along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, Context context);
+
+ /**
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr Component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprComponentInner createOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope);
+
+ /**
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr Component along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope,
+ Context context);
+
+ /**
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String connectedEnvironmentName, String componentName);
+
+ /**
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, Context context);
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr component Secrets Collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprSecretsCollectionInner listSecrets(
+ String resourceGroupName, String connectedEnvironmentName, String componentName);
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr component Secrets Collection ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listSecretsWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java
new file mode 100644
index 000000000000..637b4b0b548a
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java
@@ -0,0 +1,150 @@
+// 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.ConnectedEnvironmentStorageInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStoragesCollectionInner;
+
+/** An instance of this class provides access to all the operations defined in ConnectedEnvironmentsStoragesClient. */
+public interface ConnectedEnvironmentsStoragesClient {
+ /**
+ * Get all storages for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name 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 all storages for a connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentStoragesCollectionInner list(String resourceGroupName, String connectedEnvironmentName);
+
+ /**
+ * Get all storages for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name 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 all storages for a connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, Context context);
+
+ /**
+ * Get storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @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 storage for a connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentStorageInner get(String resourceGroupName, String connectedEnvironmentName, String storageName);
+
+ /**
+ * Get storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @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 storage for a connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String storageName, Context context);
+
+ /**
+ * Create or update storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @param storageEnvelope Configuration details of storage.
+ * @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 storage resource for connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedEnvironmentStorageInner createOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String storageName,
+ ConnectedEnvironmentStorageInner storageEnvelope);
+
+ /**
+ * Create or update storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @param storageEnvelope Configuration details of storage.
+ * @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 storage resource for connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String storageName,
+ ConnectedEnvironmentStorageInner storageEnvelope,
+ Context context);
+
+ /**
+ * Delete storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String connectedEnvironmentName, String storageName);
+
+ /**
+ * Delete storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String storageName, Context context);
+}
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 21fe87e369a8..ef1b6e2ece49 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
@@ -79,6 +79,27 @@ public interface ContainerAppsApiClient {
*/
DaprComponentsClient getDaprComponents();
+ /**
+ * Gets the ContainerAppsDiagnosticsClient object to access its operations.
+ *
+ * @return the ContainerAppsDiagnosticsClient object.
+ */
+ ContainerAppsDiagnosticsClient getContainerAppsDiagnostics();
+
+ /**
+ * Gets the ManagedEnvironmentDiagnosticsClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentDiagnosticsClient object.
+ */
+ ManagedEnvironmentDiagnosticsClient getManagedEnvironmentDiagnostics();
+
+ /**
+ * Gets the ManagedEnvironmentsDiagnosticsClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentsDiagnosticsClient object.
+ */
+ ManagedEnvironmentsDiagnosticsClient getManagedEnvironmentsDiagnostics();
+
/**
* Gets the OperationsClient object to access its operations.
*
@@ -120,4 +141,32 @@ public interface ContainerAppsApiClient {
* @return the ContainerAppsSourceControlsClient object.
*/
ContainerAppsSourceControlsClient getContainerAppsSourceControls();
+
+ /**
+ * Gets the ConnectedEnvironmentsClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsClient object.
+ */
+ ConnectedEnvironmentsClient getConnectedEnvironments();
+
+ /**
+ * Gets the ConnectedEnvironmentsCertificatesClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsCertificatesClient object.
+ */
+ ConnectedEnvironmentsCertificatesClient getConnectedEnvironmentsCertificates();
+
+ /**
+ * Gets the ConnectedEnvironmentsDaprComponentsClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsDaprComponentsClient object.
+ */
+ ConnectedEnvironmentsDaprComponentsClient getConnectedEnvironmentsDaprComponents();
+
+ /**
+ * Gets the ConnectedEnvironmentsStoragesClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsStoragesClient object.
+ */
+ ConnectedEnvironmentsStoragesClient getConnectedEnvironmentsStorages();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsAuthConfigsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsAuthConfigsClient.java
index 678a87d3ac7c..fc004e8352b8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsAuthConfigsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsAuthConfigsClient.java
@@ -76,7 +76,7 @@ Response getWithResponse(
String resourceGroupName, String containerAppName, String authConfigName, Context context);
/**
- * Create or update the AuthConfig for a Container App.
+ * Description for Create or update the AuthConfig for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -93,7 +93,7 @@ AuthConfigInner createOrUpdate(
String resourceGroupName, String containerAppName, String authConfigName, AuthConfigInner authConfigEnvelope);
/**
- * Create or update the AuthConfig for a Container App.
+ * Description for Create or update the AuthConfig for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -116,7 +116,7 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Delete a Container App AuthConfig.
+ * Description for Delete a Container App AuthConfig.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -130,7 +130,7 @@ Response createOrUpdateWithResponse(
void delete(String resourceGroupName, String containerAppName, String authConfigName);
/**
- * Delete a Container App AuthConfig.
+ * Description for Delete a Container App AuthConfig.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
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 5ee0e85fc0d8..a7bd32ff0247 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
@@ -97,7 +97,7 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String containerAppName, Context context);
/**
- * Create or update a Container App.
+ * Description for Create or update a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -113,7 +113,7 @@ SyncPoller, ContainerAppInner> beginCreateOrUpdate
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope);
/**
- * Create or update a Container App.
+ * Description for Create or update a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -130,7 +130,7 @@ SyncPoller, ContainerAppInner> beginCreateOrUpdate
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context);
/**
- * Create or update a Container App.
+ * Description for Create or update a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -146,7 +146,7 @@ ContainerAppInner createOrUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope);
/**
- * Create or update a Container App.
+ * Description for Create or update a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -163,7 +163,7 @@ ContainerAppInner createOrUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context);
/**
- * Delete a Container App.
+ * Description for Delete a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -177,7 +177,7 @@ ContainerAppInner createOrUpdate(
SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName);
/**
- * Delete a Container App.
+ * Description for Delete a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -192,7 +192,7 @@ ContainerAppInner createOrUpdate(
SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, Context context);
/**
- * Delete a Container App.
+ * Description for Delete a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -205,7 +205,7 @@ ContainerAppInner createOrUpdate(
void delete(String resourceGroupName, String containerAppName);
/**
- * Delete a Container App.
+ * Description for Delete a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsDiagnosticsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsDiagnosticsClient.java
new file mode 100644
index 000000000000..6e08aadf6927
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsDiagnosticsClient.java
@@ -0,0 +1,168 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+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;
+import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.RevisionInner;
+
+/** An instance of this class provides access to all the operations defined in ContainerAppsDiagnosticsClient. */
+public interface ContainerAppsDiagnosticsClient {
+ /**
+ * Get the list of diagnostics 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 detector info is needed.
+ * @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 list of diagnostics for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDetectors(String resourceGroupName, String containerAppName);
+
+ /**
+ * Get the list of diagnostics 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 detector info is needed.
+ * @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 list of diagnostics for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDetectors(String resourceGroupName, String containerAppName, Context context);
+
+ /**
+ * Get a diagnostics result of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param detectorName Name of the Container App Detector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a diagnostics result of a Container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticsInner getDetector(String resourceGroupName, String containerAppName, String detectorName);
+
+ /**
+ * Get a diagnostics result of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param detectorName Name of the Container App Detector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a diagnostics result of a Container App along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetectorWithResponse(
+ String resourceGroupName, String containerAppName, String detectorName, Context context);
+
+ /**
+ * 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.
+ * @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 Revisions for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listRevisions(String resourceGroupName, String containerAppName);
+
+ /**
+ * 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.
+ * @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 Revisions for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listRevisions(
+ String resourceGroupName, String containerAppName, String filter, Context context);
+
+ /**
+ * Get a revision of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param revisionName Name of the Container App Revision.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a revision of a Container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RevisionInner getRevision(String resourceGroupName, String containerAppName, String revisionName);
+
+ /**
+ * Get a revision of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param revisionName Name of the Container App Revision.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a revision of a Container App along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getRevisionWithResponse(
+ String resourceGroupName, String containerAppName, String revisionName, Context context);
+
+ /**
+ * Get the properties of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container App.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppInner getRoot(String resourceGroupName, String containerAppName);
+
+ /**
+ * Get the properties of a Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container App along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getRootWithResponse(String resourceGroupName, String containerAppName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java
index 80fac7537516..225727ccac1b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java
@@ -80,7 +80,7 @@ Response getWithResponse(
String resourceGroupName, String containerAppName, String sourceControlName, Context context);
/**
- * Create or update the SourceControl for a Container App.
+ * Description for Create or update the SourceControl for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -100,7 +100,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda
SourceControlInner sourceControlEnvelope);
/**
- * Create or update the SourceControl for a Container App.
+ * Description for Create or update the SourceControl for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -122,7 +122,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda
Context context);
/**
- * Create or update the SourceControl for a Container App.
+ * Description for Create or update the SourceControl for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -142,7 +142,7 @@ SourceControlInner createOrUpdate(
SourceControlInner sourceControlEnvelope);
/**
- * Create or update the SourceControl for a Container App.
+ * Description for Create or update the SourceControl for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -164,7 +164,7 @@ SourceControlInner createOrUpdate(
Context context);
/**
- * Delete a Container App SourceControl.
+ * Description for Delete a Container App SourceControl.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -180,7 +180,7 @@ SyncPoller, Void> beginDelete(
String resourceGroupName, String containerAppName, String sourceControlName);
/**
- * Delete a Container App SourceControl.
+ * Description for Delete a Container App SourceControl.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -197,7 +197,7 @@ SyncPoller, Void> beginDelete(
String resourceGroupName, String containerAppName, String sourceControlName, Context context);
/**
- * Delete a Container App SourceControl.
+ * Description for Delete a Container App SourceControl.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
@@ -211,7 +211,7 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String containerAppName, String sourceControlName);
/**
- * Delete a Container App SourceControl.
+ * Description for Delete a Container App SourceControl.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentDiagnosticsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentDiagnosticsClient.java
new file mode 100644
index 000000000000..d1c4ae19246a
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentDiagnosticsClient.java
@@ -0,0 +1,78 @@
+// 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.DiagnosticsCollectionInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsInner;
+
+/** An instance of this class provides access to all the operations defined in ManagedEnvironmentDiagnosticsClient. */
+public interface ManagedEnvironmentDiagnosticsClient {
+ /**
+ * Get the list of diagnostics for a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name 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 list of diagnostics for a Managed Environment used to host container apps.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticsCollectionInner listDetectors(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the list of diagnostics for a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name 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 list of diagnostics for a Managed Environment used to host container apps along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listDetectorsWithResponse(
+ String resourceGroupName, String environmentName, Context context);
+
+ /**
+ * Get the diagnostics data for a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Environment.
+ * @param detectorName Name of the Managed Environment detector.
+ * @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 diagnostics data for a Managed Environment used to host container apps.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticsInner getDetector(String resourceGroupName, String environmentName, String detectorName);
+
+ /**
+ * Get the diagnostics data for a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Environment.
+ * @param detectorName Name of the Managed Environment detector.
+ * @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 diagnostics data for a Managed Environment used to host container apps along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetectorWithResponse(
+ String resourceGroupName, String environmentName, String detectorName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsDiagnosticsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsDiagnosticsClient.java
new file mode 100644
index 000000000000..e6bba5fd43d6
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsDiagnosticsClient.java
@@ -0,0 +1,44 @@
+// 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.ManagedEnvironmentInner;
+
+/** An instance of this class provides access to all the operations defined in ManagedEnvironmentsDiagnosticsClient. */
+public interface ManagedEnvironmentsDiagnosticsClient {
+ /**
+ * Get the properties of a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name 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 properties of a Managed Environment used to host container apps.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedEnvironmentInner getRoot(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the properties of a Managed Environment used to host container apps.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name 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 properties of a Managed Environment used to host container apps along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getRootWithResponse(
+ String resourceGroupName, String environmentName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java
new file mode 100644
index 000000000000..50172374a86d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java
@@ -0,0 +1,152 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** An environment for Kubernetes cluster specialized for web workloads by Azure App Service. */
+@Fluent
+public final class ConnectedEnvironmentInner extends Resource {
+ /*
+ * The complex type of the extended location.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * ConnectedEnvironment resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private ConnectedEnvironmentProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the extendedLocation property: The complex type of the extended location.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The complex type of the extended location.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the ConnectedEnvironmentInner object itself.
+ */
+ public ConnectedEnvironmentInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: ConnectedEnvironment resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ConnectedEnvironmentProperties 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;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ConnectedEnvironmentInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ConnectedEnvironmentInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Kubernetes Environment.
+ *
+ * @return the provisioningState value.
+ */
+ public ConnectedEnvironmentProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the deploymentErrors property: Any errors that occurred during deployment or deployment validation.
+ *
+ * @return the deploymentErrors value.
+ */
+ public String deploymentErrors() {
+ return this.innerProperties() == null ? null : this.innerProperties().deploymentErrors();
+ }
+
+ /**
+ * Get the defaultDomain property: Default Domain Name for the cluster.
+ *
+ * @return the defaultDomain value.
+ */
+ public String defaultDomain() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultDomain();
+ }
+
+ /**
+ * Get the staticIp property: Static IP of the connectedEnvironment.
+ *
+ * @return the staticIp value.
+ */
+ public String staticIp() {
+ return this.innerProperties() == null ? null : this.innerProperties().staticIp();
+ }
+
+ /**
+ * Set the staticIp property: Static IP of the connectedEnvironment.
+ *
+ * @param staticIp the staticIp value to set.
+ * @return the ConnectedEnvironmentInner object itself.
+ */
+ public ConnectedEnvironmentInner withStaticIp(String staticIp) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConnectedEnvironmentProperties();
+ }
+ this.innerProperties().withStaticIp(staticIp);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java
new file mode 100644
index 000000000000..01a71f5b7525
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java
@@ -0,0 +1,92 @@
+// 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.ConnectedEnvironmentProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** ConnectedEnvironment resource specific properties. */
+@Fluent
+public final class ConnectedEnvironmentProperties {
+ /*
+ * Provisioning state of the Kubernetes Environment.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ConnectedEnvironmentProvisioningState provisioningState;
+
+ /*
+ * Any errors that occurred during deployment or deployment validation
+ */
+ @JsonProperty(value = "deploymentErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private String deploymentErrors;
+
+ /*
+ * Default Domain Name for the cluster
+ */
+ @JsonProperty(value = "defaultDomain", access = JsonProperty.Access.WRITE_ONLY)
+ private String defaultDomain;
+
+ /*
+ * Static IP of the connectedEnvironment
+ */
+ @JsonProperty(value = "staticIp")
+ private String staticIp;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Kubernetes Environment.
+ *
+ * @return the provisioningState value.
+ */
+ public ConnectedEnvironmentProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the deploymentErrors property: Any errors that occurred during deployment or deployment validation.
+ *
+ * @return the deploymentErrors value.
+ */
+ public String deploymentErrors() {
+ return this.deploymentErrors;
+ }
+
+ /**
+ * Get the defaultDomain property: Default Domain Name for the cluster.
+ *
+ * @return the defaultDomain value.
+ */
+ public String defaultDomain() {
+ return this.defaultDomain;
+ }
+
+ /**
+ * Get the staticIp property: Static IP of the connectedEnvironment.
+ *
+ * @return the staticIp value.
+ */
+ public String staticIp() {
+ return this.staticIp;
+ }
+
+ /**
+ * Set the staticIp property: Static IP of the connectedEnvironment.
+ *
+ * @param staticIp the staticIp value to set.
+ * @return the ConnectedEnvironmentProperties object itself.
+ */
+ public ConnectedEnvironmentProperties withStaticIp(String staticIp) {
+ this.staticIp = staticIp;
+ 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/ConnectedEnvironmentStorageInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStorageInner.java
new file mode 100644
index 000000000000..e462a51a8f02
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStorageInner.java
@@ -0,0 +1,68 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorageProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Storage resource for connectedEnvironment. */
+@Fluent
+public final class ConnectedEnvironmentStorageInner extends ProxyResource {
+ /*
+ * Storage properties
+ */
+ @JsonProperty(value = "properties")
+ private ConnectedEnvironmentStorageProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: Storage properties.
+ *
+ * @return the properties value.
+ */
+ public ConnectedEnvironmentStorageProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Storage properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ConnectedEnvironmentStorageInner object itself.
+ */
+ public ConnectedEnvironmentStorageInner withProperties(ConnectedEnvironmentStorageProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java
new file mode 100644
index 000000000000..f152f04bf171
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java
@@ -0,0 +1,58 @@
+// 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.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Collection of Storage for Environments. */
+@Fluent
+public final class ConnectedEnvironmentStoragesCollectionInner {
+ /*
+ * Collection of storage resources.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /**
+ * Get the value property: Collection of storage resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of storage resources.
+ *
+ * @param value the value value to set.
+ * @return the ConnectedEnvironmentStoragesCollectionInner object itself.
+ */
+ public ConnectedEnvironmentStoragesCollectionInner 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 ConnectedEnvironmentStoragesCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ConnectedEnvironmentStoragesCollectionInner.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
index 89661084471e..88904e419cd4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
@@ -8,6 +8,7 @@
import com.azure.core.management.Resource;
import com.azure.resourcemanager.appcontainers.models.Configuration;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
import com.azure.resourcemanager.appcontainers.models.Template;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -17,6 +18,12 @@
/** Container App. */
@Fluent
public final class ContainerAppInner extends Resource {
+ /*
+ * The complex type of the extended location.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
/*
* managed identities for the Container App to interact with other Azure
* services without maintaining any secrets or credentials in code.
@@ -30,6 +37,26 @@ public final class ContainerAppInner extends Resource {
@JsonProperty(value = "properties")
private ContainerAppProperties innerProperties;
+ /**
+ * Get the extendedLocation property: The complex type of the extended location.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The complex type of the extended location.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
/**
* Get the identity property: managed identities for the Container App to interact with other Azure services without
* maintaining any secrets or credentials in code.
@@ -85,7 +112,7 @@ public ContainerAppProvisioningState provisioningState() {
}
/**
- * Get the managedEnvironmentId property: Resource ID of the Container App's environment.
+ * Get the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment.
*
* @return the managedEnvironmentId value.
*/
@@ -94,7 +121,7 @@ public String managedEnvironmentId() {
}
/**
- * Set the managedEnvironmentId property: Resource ID of the Container App's environment.
+ * Set the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment.
*
* @param managedEnvironmentId the managedEnvironmentId value to set.
* @return the ContainerAppInner object itself.
@@ -107,6 +134,29 @@ public ContainerAppInner withManagedEnvironmentId(String managedEnvironmentId) {
return this;
}
+ /**
+ * Get the environmentId property: Resource ID of environment.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.innerProperties() == null ? null : this.innerProperties().environmentId();
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of environment.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withEnvironmentId(String environmentId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerAppProperties();
+ }
+ this.innerProperties().withEnvironmentId(environmentId);
+ return this;
+ }
+
/**
* Get the latestRevisionName property: Name of the latest revision of the Container App.
*
@@ -195,6 +245,9 @@ public List outboundIpAddresses() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
if (identity() != null) {
identity().validate();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
index e3a5b1736b4f..f77ad6a3e174 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
@@ -21,11 +21,17 @@ public final class ContainerAppProperties {
private ContainerAppProvisioningState provisioningState;
/*
- * Resource ID of the Container App's environment.
+ * Deprecated. Resource ID of the Container App's environment.
*/
@JsonProperty(value = "managedEnvironmentId")
private String managedEnvironmentId;
+ /*
+ * Resource ID of environment.
+ */
+ @JsonProperty(value = "environmentId")
+ private String environmentId;
+
/*
* Name of the latest revision of the Container App.
*/
@@ -72,7 +78,7 @@ public ContainerAppProvisioningState provisioningState() {
}
/**
- * Get the managedEnvironmentId property: Resource ID of the Container App's environment.
+ * Get the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment.
*
* @return the managedEnvironmentId value.
*/
@@ -81,7 +87,7 @@ public String managedEnvironmentId() {
}
/**
- * Set the managedEnvironmentId property: Resource ID of the Container App's environment.
+ * Set the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment.
*
* @param managedEnvironmentId the managedEnvironmentId value to set.
* @return the ContainerAppProperties object itself.
@@ -91,6 +97,26 @@ public ContainerAppProperties withManagedEnvironmentId(String managedEnvironment
return this;
}
+ /**
+ * Get the environmentId property: Resource ID of environment.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.environmentId;
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of environment.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the ContainerAppProperties object itself.
+ */
+ public ContainerAppProperties withEnvironmentId(String environmentId) {
+ this.environmentId = environmentId;
+ return this;
+ }
+
/**
* Get the latestRevisionName property: Name of the latest revision of the Container App.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
index 612f3c3383d7..933adc355602 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
@@ -5,46 +5,82 @@
package com.azure.resourcemanager.appcontainers.fluent.models;
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.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo;
import com.azure.resourcemanager.appcontainers.models.DnsVerificationTestResult;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Custom domain analysis. */
@Fluent
-public final class CustomHostnameAnalysisResultInner extends ProxyResource {
+public final class CustomHostnameAnalysisResultInner {
/*
- * CustomHostnameAnalysisResult resource specific properties
+ * Host name that was analyzed
*/
- @JsonProperty(value = "properties")
- private CustomHostnameAnalysisResultProperties innerProperties;
+ @JsonProperty(value = "hostName", access = JsonProperty.Access.WRITE_ONLY)
+ private String hostname;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * true if hostname is already verified; otherwise,
+ * false.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
+ @JsonProperty(value = "isHostnameAlreadyVerified", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isHostnameAlreadyVerified;
- /**
- * Get the innerProperties property: CustomHostnameAnalysisResult resource specific properties.
- *
- * @return the innerProperties value.
+ /*
+ * DNS verification test result.
*/
- private CustomHostnameAnalysisResultProperties innerProperties() {
- return this.innerProperties;
- }
+ @JsonProperty(value = "customDomainVerificationTest", access = JsonProperty.Access.WRITE_ONLY)
+ private DnsVerificationTestResult customDomainVerificationTest;
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
+ /*
+ * Raw failure information if DNS verification fails.
*/
- public SystemData systemData() {
- return this.systemData;
- }
+ @JsonProperty(value = "customDomainVerificationFailureInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo customDomainVerificationFailureInfo;
+
+ /*
+ * true if there is a conflict on the Container App's managed
+ * environment; otherwise, false.
+ */
+ @JsonProperty(value = "hasConflictOnManagedEnvironment", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean hasConflictOnManagedEnvironment;
+
+ /*
+ * Name of the conflicting Container App on the Managed Environment if it's
+ * within the same subscription.
+ */
+ @JsonProperty(value = "conflictingContainerAppResourceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String conflictingContainerAppResourceId;
+
+ /*
+ * CName records visible for this hostname.
+ */
+ @JsonProperty(value = "cNameRecords")
+ private List cNameRecords;
+
+ /*
+ * TXT records visible for this hostname.
+ */
+ @JsonProperty(value = "txtRecords")
+ private List txtRecords;
+
+ /*
+ * A records visible for this hostname.
+ */
+ @JsonProperty(value = "aRecords")
+ private List aRecords;
+
+ /*
+ * Alternate CName records visible for this hostname.
+ */
+ @JsonProperty(value = "alternateCNameRecords")
+ private List alternateCNameRecords;
+
+ /*
+ * Alternate TXT records visible for this hostname.
+ */
+ @JsonProperty(value = "alternateTxtRecords")
+ private List alternateTxtRecords;
/**
* Get the hostname property: Host name that was analyzed.
@@ -52,7 +88,7 @@ public SystemData systemData() {
* @return the hostname value.
*/
public String hostname() {
- return this.innerProperties() == null ? null : this.innerProperties().hostname();
+ return this.hostname;
}
/**
@@ -62,7 +98,7 @@ public String hostname() {
* @return the isHostnameAlreadyVerified value.
*/
public Boolean isHostnameAlreadyVerified() {
- return this.innerProperties() == null ? null : this.innerProperties().isHostnameAlreadyVerified();
+ return this.isHostnameAlreadyVerified;
}
/**
@@ -71,7 +107,7 @@ public Boolean isHostnameAlreadyVerified() {
* @return the customDomainVerificationTest value.
*/
public DnsVerificationTestResult customDomainVerificationTest() {
- return this.innerProperties() == null ? null : this.innerProperties().customDomainVerificationTest();
+ return this.customDomainVerificationTest;
}
/**
@@ -79,8 +115,8 @@ public DnsVerificationTestResult customDomainVerificationTest() {
*
* @return the customDomainVerificationFailureInfo value.
*/
- public DefaultErrorResponseError customDomainVerificationFailureInfo() {
- return this.innerProperties() == null ? null : this.innerProperties().customDomainVerificationFailureInfo();
+ public CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo customDomainVerificationFailureInfo() {
+ return this.customDomainVerificationFailureInfo;
}
/**
@@ -90,7 +126,7 @@ public DefaultErrorResponseError customDomainVerificationFailureInfo() {
* @return the hasConflictOnManagedEnvironment value.
*/
public Boolean hasConflictOnManagedEnvironment() {
- return this.innerProperties() == null ? null : this.innerProperties().hasConflictOnManagedEnvironment();
+ return this.hasConflictOnManagedEnvironment;
}
/**
@@ -100,7 +136,7 @@ public Boolean hasConflictOnManagedEnvironment() {
* @return the conflictingContainerAppResourceId value.
*/
public String conflictingContainerAppResourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().conflictingContainerAppResourceId();
+ return this.conflictingContainerAppResourceId;
}
/**
@@ -109,7 +145,7 @@ public String conflictingContainerAppResourceId() {
* @return the cNameRecords value.
*/
public List cNameRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().cNameRecords();
+ return this.cNameRecords;
}
/**
@@ -119,10 +155,7 @@ public List cNameRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withCNameRecords(List cNameRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withCNameRecords(cNameRecords);
+ this.cNameRecords = cNameRecords;
return this;
}
@@ -132,7 +165,7 @@ public CustomHostnameAnalysisResultInner withCNameRecords(List cNameReco
* @return the txtRecords value.
*/
public List txtRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().txtRecords();
+ return this.txtRecords;
}
/**
@@ -142,10 +175,7 @@ public List txtRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withTxtRecords(List txtRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withTxtRecords(txtRecords);
+ this.txtRecords = txtRecords;
return this;
}
@@ -155,7 +185,7 @@ public CustomHostnameAnalysisResultInner withTxtRecords(List txtRecords)
* @return the aRecords value.
*/
public List aRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().aRecords();
+ return this.aRecords;
}
/**
@@ -165,10 +195,7 @@ public List aRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withARecords(List aRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withARecords(aRecords);
+ this.aRecords = aRecords;
return this;
}
@@ -178,7 +205,7 @@ public CustomHostnameAnalysisResultInner withARecords(List aRecords) {
* @return the alternateCNameRecords value.
*/
public List alternateCNameRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().alternateCNameRecords();
+ return this.alternateCNameRecords;
}
/**
@@ -188,10 +215,7 @@ public List alternateCNameRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withAlternateCNameRecords(List alternateCNameRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withAlternateCNameRecords(alternateCNameRecords);
+ this.alternateCNameRecords = alternateCNameRecords;
return this;
}
@@ -201,7 +225,7 @@ public CustomHostnameAnalysisResultInner withAlternateCNameRecords(List
* @return the alternateTxtRecords value.
*/
public List alternateTxtRecords() {
- return this.innerProperties() == null ? null : this.innerProperties().alternateTxtRecords();
+ return this.alternateTxtRecords;
}
/**
@@ -211,10 +235,7 @@ public List alternateTxtRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withAlternateTxtRecords(List alternateTxtRecords) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CustomHostnameAnalysisResultProperties();
- }
- this.innerProperties().withAlternateTxtRecords(alternateTxtRecords);
+ this.alternateTxtRecords = alternateTxtRecords;
return this;
}
@@ -224,8 +245,8 @@ public CustomHostnameAnalysisResultInner withAlternateTxtRecords(List al
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (customDomainVerificationFailureInfo() != null) {
+ customDomainVerificationFailureInfo().validate();
}
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultProperties.java
deleted file mode 100644
index c567bf14bcfd..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultProperties.java
+++ /dev/null
@@ -1,252 +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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseError;
-import com.azure.resourcemanager.appcontainers.models.DnsVerificationTestResult;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** CustomHostnameAnalysisResult resource specific properties. */
-@Fluent
-public final class CustomHostnameAnalysisResultProperties {
- /*
- * Host name that was analyzed
- */
- @JsonProperty(value = "hostName", access = JsonProperty.Access.WRITE_ONLY)
- private String hostname;
-
- /*
- * true if hostname is already verified; otherwise,
- * false.
- */
- @JsonProperty(value = "isHostnameAlreadyVerified", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean isHostnameAlreadyVerified;
-
- /*
- * DNS verification test result.
- */
- @JsonProperty(value = "customDomainVerificationTest", access = JsonProperty.Access.WRITE_ONLY)
- private DnsVerificationTestResult customDomainVerificationTest;
-
- /*
- * Raw failure information if DNS verification fails.
- */
- @JsonProperty(value = "customDomainVerificationFailureInfo", access = JsonProperty.Access.WRITE_ONLY)
- private DefaultErrorResponseError customDomainVerificationFailureInfo;
-
- /*
- * true if there is a conflict on the Container App's managed
- * environment; otherwise, false.
- */
- @JsonProperty(value = "hasConflictOnManagedEnvironment", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean hasConflictOnManagedEnvironment;
-
- /*
- * Name of the conflicting Container App on the Managed Environment if it's
- * within the same subscription.
- */
- @JsonProperty(value = "conflictingContainerAppResourceId", access = JsonProperty.Access.WRITE_ONLY)
- private String conflictingContainerAppResourceId;
-
- /*
- * CName records visible for this hostname.
- */
- @JsonProperty(value = "cNameRecords")
- private List cNameRecords;
-
- /*
- * TXT records visible for this hostname.
- */
- @JsonProperty(value = "txtRecords")
- private List txtRecords;
-
- /*
- * A records visible for this hostname.
- */
- @JsonProperty(value = "aRecords")
- private List aRecords;
-
- /*
- * Alternate CName records visible for this hostname.
- */
- @JsonProperty(value = "alternateCNameRecords")
- private List alternateCNameRecords;
-
- /*
- * Alternate TXT records visible for this hostname.
- */
- @JsonProperty(value = "alternateTxtRecords")
- private List alternateTxtRecords;
-
- /**
- * Get the hostname property: Host name that was analyzed.
- *
- * @return the hostname value.
- */
- public String hostname() {
- return this.hostname;
- }
-
- /**
- * Get the isHostnameAlreadyVerified property: <code>true</code> if hostname is already verified;
- * otherwise, <code>false</code>.
- *
- * @return the isHostnameAlreadyVerified value.
- */
- public Boolean isHostnameAlreadyVerified() {
- return this.isHostnameAlreadyVerified;
- }
-
- /**
- * Get the customDomainVerificationTest property: DNS verification test result.
- *
- * @return the customDomainVerificationTest value.
- */
- public DnsVerificationTestResult customDomainVerificationTest() {
- return this.customDomainVerificationTest;
- }
-
- /**
- * Get the customDomainVerificationFailureInfo property: Raw failure information if DNS verification fails.
- *
- * @return the customDomainVerificationFailureInfo value.
- */
- public DefaultErrorResponseError customDomainVerificationFailureInfo() {
- return this.customDomainVerificationFailureInfo;
- }
-
- /**
- * Get the hasConflictOnManagedEnvironment property: <code>true</code> if there is a conflict on the
- * Container App's managed environment; otherwise, <code>false</code>.
- *
- * @return the hasConflictOnManagedEnvironment value.
- */
- public Boolean hasConflictOnManagedEnvironment() {
- return this.hasConflictOnManagedEnvironment;
- }
-
- /**
- * Get the conflictingContainerAppResourceId property: Name of the conflicting Container App on the Managed
- * Environment if it's within the same subscription.
- *
- * @return the conflictingContainerAppResourceId value.
- */
- public String conflictingContainerAppResourceId() {
- return this.conflictingContainerAppResourceId;
- }
-
- /**
- * Get the cNameRecords property: CName records visible for this hostname.
- *
- * @return the cNameRecords value.
- */
- public List cNameRecords() {
- return this.cNameRecords;
- }
-
- /**
- * Set the cNameRecords property: CName records visible for this hostname.
- *
- * @param cNameRecords the cNameRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withCNameRecords(List cNameRecords) {
- this.cNameRecords = cNameRecords;
- return this;
- }
-
- /**
- * Get the txtRecords property: TXT records visible for this hostname.
- *
- * @return the txtRecords value.
- */
- public List txtRecords() {
- return this.txtRecords;
- }
-
- /**
- * Set the txtRecords property: TXT records visible for this hostname.
- *
- * @param txtRecords the txtRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withTxtRecords(List txtRecords) {
- this.txtRecords = txtRecords;
- return this;
- }
-
- /**
- * Get the aRecords property: A records visible for this hostname.
- *
- * @return the aRecords value.
- */
- public List aRecords() {
- return this.aRecords;
- }
-
- /**
- * Set the aRecords property: A records visible for this hostname.
- *
- * @param aRecords the aRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withARecords(List aRecords) {
- this.aRecords = aRecords;
- return this;
- }
-
- /**
- * Get the alternateCNameRecords property: Alternate CName records visible for this hostname.
- *
- * @return the alternateCNameRecords value.
- */
- public List alternateCNameRecords() {
- return this.alternateCNameRecords;
- }
-
- /**
- * Set the alternateCNameRecords property: Alternate CName records visible for this hostname.
- *
- * @param alternateCNameRecords the alternateCNameRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withAlternateCNameRecords(List alternateCNameRecords) {
- this.alternateCNameRecords = alternateCNameRecords;
- return this;
- }
-
- /**
- * Get the alternateTxtRecords property: Alternate TXT records visible for this hostname.
- *
- * @return the alternateTxtRecords value.
- */
- public List alternateTxtRecords() {
- return this.alternateTxtRecords;
- }
-
- /**
- * Set the alternateTxtRecords property: Alternate TXT records visible for this hostname.
- *
- * @param alternateTxtRecords the alternateTxtRecords value to set.
- * @return the CustomHostnameAnalysisResultProperties object itself.
- */
- public CustomHostnameAnalysisResultProperties withAlternateTxtRecords(List alternateTxtRecords) {
- this.alternateTxtRecords = alternateTxtRecords;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (customDomainVerificationFailureInfo() != null) {
- customDomainVerificationFailureInfo().validate();
- }
- }
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.java
new file mode 100644
index 000000000000..d799fc3c0a3f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Diagnostics data collection for a resource. */
+@Fluent
+public final class DiagnosticsCollectionInner {
+ /*
+ * Collection of diagnostic data.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /*
+ * Link to next page of resources.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /**
+ * Get the value property: Collection of diagnostic data.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of diagnostic data.
+ *
+ * @param value the value value to set.
+ * @return the DiagnosticsCollectionInner object itself.
+ */
+ public DiagnosticsCollectionInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: Link to next page of resources.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property value in model DiagnosticsCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DiagnosticsCollectionInner.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java
new file mode 100644
index 000000000000..04849d85ed9d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java
@@ -0,0 +1,68 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.DiagnosticsProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Diagnostics data for a resource. */
+@Fluent
+public final class DiagnosticsInner extends ProxyResource {
+ /*
+ * Diagnostics resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private DiagnosticsProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: Diagnostics resource specific properties.
+ *
+ * @return the properties value.
+ */
+ public DiagnosticsProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Diagnostics resource specific properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DiagnosticsInner object itself.
+ */
+ public DiagnosticsInner withProperties(DiagnosticsProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
index 10388304b930..e8c5bb4e3bc4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
@@ -10,8 +10,10 @@
import com.azure.resourcemanager.appcontainers.models.RevisionHealthState;
import com.azure.resourcemanager.appcontainers.models.RevisionProvisioningState;
import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficLabel;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
+import java.util.List;
/** Container App Revision. */
@Fluent
@@ -102,6 +104,15 @@ public Integer trafficWeight() {
return this.innerProperties() == null ? null : this.innerProperties().trafficWeight();
}
+ /**
+ * Get the trafficLabels property: Traffic labels associated with this revision.
+ *
+ * @return the trafficLabels value.
+ */
+ public List trafficLabels() {
+ return this.innerProperties() == null ? null : this.innerProperties().trafficLabels();
+ }
+
/**
* Get the provisioningError property: Optional Field - Platform Error Message.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java
index bae22e238de8..8d75ec7ceb6f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java
@@ -8,8 +8,10 @@
import com.azure.resourcemanager.appcontainers.models.RevisionHealthState;
import com.azure.resourcemanager.appcontainers.models.RevisionProvisioningState;
import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficLabel;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
+import java.util.List;
/** Revision resource specific properties. */
@Immutable
@@ -53,6 +55,12 @@ public final class RevisionProperties {
@JsonProperty(value = "trafficWeight", access = JsonProperty.Access.WRITE_ONLY)
private Integer trafficWeight;
+ /*
+ * Traffic labels associated with this revision
+ */
+ @JsonProperty(value = "trafficLabels", access = JsonProperty.Access.WRITE_ONLY)
+ private List trafficLabels;
+
/*
* Optional Field - Platform Error Message
*/
@@ -126,6 +134,15 @@ public Integer trafficWeight() {
return this.trafficWeight;
}
+ /**
+ * Get the trafficLabels property: Traffic labels associated with this revision.
+ *
+ * @return the trafficLabels value.
+ */
+ public List trafficLabels() {
+ return this.trafficLabels;
+ }
+
/**
* Get the provisioningError property: Optional Field - Platform Error Message.
*
@@ -162,5 +179,8 @@ public void validate() {
if (template() != null) {
template().validate();
}
+ if (trafficLabels() != null) {
+ trafficLabels().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java
new file mode 100644
index 000000000000..06a7eca911b8
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentInner;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironment;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ConnectedEnvironmentImpl
+ implements ConnectedEnvironment, ConnectedEnvironment.Definition, ConnectedEnvironment.Update {
+ private ConnectedEnvironmentInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ExtendedLocation extendedLocation() {
+ return this.innerModel().extendedLocation();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ConnectedEnvironmentProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String deploymentErrors() {
+ return this.innerModel().deploymentErrors();
+ }
+
+ public String defaultDomain() {
+ return this.innerModel().defaultDomain();
+ }
+
+ public String staticIp() {
+ return this.innerModel().staticIp();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ConnectedEnvironmentInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String connectedEnvironmentName;
+
+ public ConnectedEnvironmentImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public ConnectedEnvironment create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ConnectedEnvironment create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), context);
+ return this;
+ }
+
+ ConnectedEnvironmentImpl(
+ String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new ConnectedEnvironmentInner();
+ this.serviceManager = serviceManager;
+ this.connectedEnvironmentName = name;
+ }
+
+ public ConnectedEnvironmentImpl update() {
+ return this;
+ }
+
+ public ConnectedEnvironment apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ConnectedEnvironment apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), context);
+ return this;
+ }
+
+ ConnectedEnvironmentImpl(
+ ConnectedEnvironmentInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourcegroups");
+ this.connectedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "connectedEnvironments");
+ }
+
+ public ConnectedEnvironment refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .getByResourceGroupWithResponse(resourceGroupName, connectedEnvironmentName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironment refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironments()
+ .getByResourceGroupWithResponse(resourceGroupName, connectedEnvironmentName, context)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.innerModel().withExtendedLocation(extendedLocation);
+ return this;
+ }
+
+ public ConnectedEnvironmentImpl withStaticIp(String staticIp) {
+ this.innerModel().withStaticIp(staticIp);
+ return this;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
new file mode 100644
index 000000000000..6b49e3cdead7
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStorageInner;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorage;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorageProperties;
+
+public final class ConnectedEnvironmentStorageImpl
+ implements ConnectedEnvironmentStorage, ConnectedEnvironmentStorage.Definition, ConnectedEnvironmentStorage.Update {
+ private ConnectedEnvironmentStorageInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public ConnectedEnvironmentStorageProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ConnectedEnvironmentStorageInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String connectedEnvironmentName;
+
+ private String storageName;
+
+ public ConnectedEnvironmentStorageImpl withExistingConnectedEnvironment(
+ String resourceGroupName, String connectedEnvironmentName) {
+ this.resourceGroupName = resourceGroupName;
+ this.connectedEnvironmentName = connectedEnvironmentName;
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ConnectedEnvironmentStorageImpl(
+ String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new ConnectedEnvironmentStorageInner();
+ this.serviceManager = serviceManager;
+ this.storageName = name;
+ }
+
+ public ConnectedEnvironmentStorageImpl update() {
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ConnectedEnvironmentStorageImpl(
+ ConnectedEnvironmentStorageInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.connectedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "connectedEnvironments");
+ this.storageName = Utils.getValueFromIdByName(innerObject.id(), "storages");
+ }
+
+ public ConnectedEnvironmentStorage refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, storageName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentStorage refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, storageName, context)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentStorageImpl withProperties(ConnectedEnvironmentStorageProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java
new file mode 100644
index 000000000000..e3f77be64af1
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java
@@ -0,0 +1,48 @@
+// 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.ConnectedEnvironmentStorageInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStoragesCollectionInner;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorage;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStoragesCollection;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.Collectors;
+
+public final class ConnectedEnvironmentStoragesCollectionImpl implements ConnectedEnvironmentStoragesCollection {
+ private ConnectedEnvironmentStoragesCollectionInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ ConnectedEnvironmentStoragesCollectionImpl(
+ ConnectedEnvironmentStoragesCollectionInner 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
+ .stream()
+ .map(inner1 -> new ConnectedEnvironmentStorageImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ConnectedEnvironmentStoragesCollectionInner 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/ConnectedEnvironmentsCertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
new file mode 100644
index 000000000000..d3a0d0809c03
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
@@ -0,0 +1,1165 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsCertificatesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
+import com.azure.resourcemanager.appcontainers.models.CertificateCollection;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+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 ConnectedEnvironmentsCertificatesClient.
+ */
+public final class ConnectedEnvironmentsCertificatesClientImpl implements ConnectedEnvironmentsCertificatesClient {
+ /** The proxy service used to perform REST calls. */
+ private final ConnectedEnvironmentsCertificatesService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ConnectedEnvironmentsCertificatesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConnectedEnvironmentsCertificatesClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ ConnectedEnvironmentsCertificatesService.class,
+ client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientConnectedEnvironmentsCertificates to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ private interface ConnectedEnvironmentsCertificatesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CertificateInner certificateEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CertificatePatch certificateEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 Certificates in a given connected environment along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 Certificates in a given connected environment along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String connectedEnvironmentName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 Certificates in a given connected environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String connectedEnvironmentName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, connectedEnvironmentName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 Certificates in a given connected environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, connectedEnvironmentName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 Certificates in a given connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String connectedEnvironmentName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, connectedEnvironmentName));
+ }
+
+ /**
+ * Get the Certificates in a given connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected 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 Certificates in a given connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, connectedEnvironmentName, context));
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ return getWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateInner get(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ return getAsync(resourceGroupName, connectedEnvironmentName, certificateName).block();
+ }
+
+ /**
+ * Get the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Certificate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
+ return getWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName, context).block();
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (certificateEnvelope != null) {
+ certificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (certificateEnvelope != null) {
+ certificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ final CertificateInner certificateEnvelope = null;
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateInner createOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ final CertificateInner certificateEnvelope = null;
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .block();
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ Context context) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context)
+ .block();
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ deleteAsync(resourceGroupName, connectedEnvironmentName, certificateName).block();
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName, context).block();
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (certificateEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateEnvelope is required and cannot be null."));
+ } else {
+ certificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (certificateEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateEnvelope is required and cannot be null."));
+ } else {
+ certificateEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ this.client.getApiVersion(),
+ certificateEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ return updateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateInner update(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ return updateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope).block();
+ }
+
+ /**
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context) {
+ return updateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context)
+ .block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of Certificates along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of Certificates along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
new file mode 100644
index 000000000000..520533110bfc
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
@@ -0,0 +1,156 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsCertificatesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
+import com.azure.resourcemanager.appcontainers.models.Certificate;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsCertificates;
+
+public final class ConnectedEnvironmentsCertificatesImpl implements ConnectedEnvironmentsCertificates {
+ private static final ClientLogger LOGGER = new ClientLogger(ConnectedEnvironmentsCertificatesImpl.class);
+
+ private final ConnectedEnvironmentsCertificatesClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public ConnectedEnvironmentsCertificatesImpl(
+ ConnectedEnvironmentsCertificatesClient innerClient,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String connectedEnvironmentName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, connectedEnvironmentName);
+ return Utils.mapPage(inner, inner1 -> new CertificateImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String connectedEnvironmentName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, connectedEnvironmentName, context);
+ return Utils.mapPage(inner, inner1 -> new CertificateImpl(inner1, this.manager()));
+ }
+
+ public Certificate get(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ CertificateInner inner = this.serviceClient().get(resourceGroupName, connectedEnvironmentName, certificateName);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public Certificate createOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ CertificateInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, connectedEnvironmentName, certificateName);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ this.serviceClient().delete(resourceGroupName, connectedEnvironmentName, certificateName);
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
+ return this
+ .serviceClient()
+ .deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
+ }
+
+ public Certificate update(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ CertificateInner inner =
+ this
+ .serviceClient()
+ .update(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .updateWithResponse(
+ resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ private ConnectedEnvironmentsCertificatesClient 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/implementation/ConnectedEnvironmentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
new file mode 100644
index 000000000000..521e49e89082
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
@@ -0,0 +1,1677 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentInner;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentCollection;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ConnectedEnvironmentsClient. */
+public final class ConnectedEnvironmentsClientImpl implements ConnectedEnvironmentsClient {
+ /** The proxy service used to perform REST calls. */
+ private final ConnectedEnvironmentsService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ConnectedEnvironmentsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConnectedEnvironmentsClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy
+ .create(ConnectedEnvironmentsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientConnectedEnvironments to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ private interface ConnectedEnvironmentsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/connectedEnvironments")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> getByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ConnectedEnvironmentInner environmentEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/checkNameAvailability")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> checkNameAvailability(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Description for Get all connectedEnvironments for a subscription.
+ *
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ 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."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Description for Get all connectedEnvironments for a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(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."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Description for Get all connectedEnvironments for a subscription.
+ *
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Description for Get all connectedEnvironments for a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Description for Get all connectedEnvironments for a subscription.
+ *
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * Description for Get all connectedEnvironments for a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all connectedEnvironments in a resource group along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName) {
+ 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."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all connectedEnvironments in a resource group along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, 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."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all connectedEnvironments in a resource group as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all connectedEnvironments in a resource group as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all connectedEnvironments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * Get all connectedEnvironments in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all connectedEnvironments in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 properties of an connectedEnvironment along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 properties of an connectedEnvironment along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 properties of an connectedEnvironment on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, connectedEnvironmentName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 properties of an connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConnectedEnvironmentInner getByResourceGroup(String resourceGroupName, String connectedEnvironmentName) {
+ return getByResourceGroupAsync(resourceGroupName, connectedEnvironmentName).block();
+ }
+
+ /**
+ * Get the properties of an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 properties of an connectedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, connectedEnvironmentName, context).block();
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (environmentEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentEnvelope is required and cannot be null."));
+ } else {
+ environmentEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ environmentEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (environmentEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentEnvelope is required and cannot be null."));
+ } else {
+ environmentEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ environmentEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ConnectedEnvironmentInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ConnectedEnvironmentInner.class,
+ ConnectedEnvironmentInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ConnectedEnvironmentInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ConnectedEnvironmentInner.class,
+ ConnectedEnvironmentInner.class,
+ context);
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope)
+ .getSyncPoller();
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 an environment for Kubernetes cluster specialized for web workloads
+ * by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConnectedEnvironmentInner createOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope).block();
+ }
+
+ /**
+ * Creates or updates an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param environmentEnvelope Configuration details of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConnectedEnvironmentInner createOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ ConnectedEnvironmentInner environmentEnvelope,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context).block();
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String connectedEnvironmentName) {
+ return beginDeleteAsync(resourceGroupName, connectedEnvironmentName).getSyncPoller();
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return beginDeleteAsync(resourceGroupName, connectedEnvironmentName, context).getSyncPoller();
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String connectedEnvironmentName) {
+ return beginDeleteAsync(resourceGroupName, connectedEnvironmentName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return beginDeleteAsync(resourceGroupName, connectedEnvironmentName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String connectedEnvironmentName) {
+ deleteAsync(resourceGroupName, connectedEnvironmentName).block();
+ }
+
+ /**
+ * Description for Delete an connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String connectedEnvironmentName, Context context) {
+ deleteAsync(resourceGroupName, connectedEnvironmentName, context).block();
+ }
+
+ /**
+ * Patches a Managed Environment. Only patching of tags is supported currently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Patches a Managed Environment. Only patching of tags is supported currently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Patches a Managed Environment. Only patching of tags is supported currently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String connectedEnvironmentName) {
+ return updateWithResponseAsync(resourceGroupName, connectedEnvironmentName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Patches a Managed Environment. Only patching of tags is supported currently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConnectedEnvironmentInner update(String resourceGroupName, String connectedEnvironmentName) {
+ return updateAsync(resourceGroupName, connectedEnvironmentName).block();
+ }
+
+ /**
+ * Patches a Managed Environment. Only patching of tags is supported currently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connectedEnvironment.
+ * @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 Kubernetes cluster specialized for web workloads by Azure App Service along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return updateWithResponseAsync(resourceGroupName, connectedEnvironmentName, context).block();
+ }
+
+ /**
+ * Checks if resource connectedEnvironmentName is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check connectedEnvironmentName 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 connectedEnvironmentName,
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ checkNameAvailabilityRequest,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Checks if resource connectedEnvironmentName is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check connectedEnvironmentName 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 connectedEnvironmentName,
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName 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,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ checkNameAvailabilityRequest,
+ accept,
+ context);
+ }
+
+ /**
+ * Checks if resource connectedEnvironmentName is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check connectedEnvironmentName 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 connectedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest) {
+ return checkNameAvailabilityWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, checkNameAvailabilityRequest)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Checks if resource connectedEnvironmentName is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check connectedEnvironmentName 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 connectedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest) {
+ return checkNameAvailabilityAsync(resourceGroupName, connectedEnvironmentName, checkNameAvailabilityRequest)
+ .block();
+ }
+
+ /**
+ * Checks if resource connectedEnvironmentName is available.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Managed Environment.
+ * @param checkNameAvailabilityRequest The check connectedEnvironmentName 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 connectedEnvironmentName,
+ CheckNameAvailabilityRequest checkNameAvailabilityRequest,
+ Context context) {
+ return checkNameAvailabilityWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, checkNameAvailabilityRequest, context)
+ .block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of connectedEnvironments along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
new file mode 100644
index 000000000000..9cb1eb0518b2
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
@@ -0,0 +1,1100 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsDaprComponentsClient;
+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;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectedEnvironmentsDaprComponentsClient.
+ */
+public final class ConnectedEnvironmentsDaprComponentsClientImpl implements ConnectedEnvironmentsDaprComponentsClient {
+ /** The proxy service used to perform REST calls. */
+ private final ConnectedEnvironmentsDaprComponentsService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ConnectedEnvironmentsDaprComponentsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConnectedEnvironmentsDaprComponentsClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ ConnectedEnvironmentsDaprComponentsService.class,
+ client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientConnectedEnvironmentsDaprComponents to be used
+ * by the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ private interface ConnectedEnvironmentsDaprComponentsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/daprComponents")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("componentName") String componentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("componentName") String componentName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DaprComponentInner daprComponentEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("componentName") String componentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
+ + "/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}/listSecrets")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listSecrets(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("connectedEnvironmentName") String connectedEnvironmentName,
+ @PathParam("componentName") String componentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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 Dapr Components for a connected environment along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String connectedEnvironmentName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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 Dapr Components for a connected environment along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String connectedEnvironmentName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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 Dapr Components for a connected environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String connectedEnvironmentName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, connectedEnvironmentName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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 Dapr Components for a connected environment as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, connectedEnvironmentName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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 Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String connectedEnvironmentName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, connectedEnvironmentName));
+ }
+
+ /**
+ * Get the Dapr Components for a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected 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 Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String connectedEnvironmentName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, connectedEnvironmentName, context));
+ }
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @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 dapr component along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String componentName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ componentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param 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 dapr component along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ componentName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @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 dapr component on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String connectedEnvironmentName, String componentName) {
+ return getWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @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 dapr component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DaprComponentInner get(String resourceGroupName, String connectedEnvironmentName, String componentName) {
+ return getAsync(resourceGroupName, connectedEnvironmentName, componentName).block();
+ }
+
+ /**
+ * Get a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param 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 dapr component along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, Context context) {
+ return getWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName, context).block();
+ }
+
+ /**
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr Component along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null."));
+ }
+ if (daprComponentEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter daprComponentEnvelope is required and cannot be null."));
+ } else {
+ daprComponentEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ componentName,
+ this.client.getApiVersion(),
+ daprComponentEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr Component along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope,
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null."));
+ }
+ if (daprComponentEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter daprComponentEnvelope is required and cannot be null."));
+ } else {
+ daprComponentEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ componentName,
+ this.client.getApiVersion(),
+ daprComponentEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DaprComponentInner createOrUpdate(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope) {
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope)
+ .block();
+ }
+
+ /**
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr Component along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String connectedEnvironmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope,
+ Context context) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope, context)
+ .block();
+ }
+
+ /**
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String componentName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ componentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ componentName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String connectedEnvironmentName, String componentName) {
+ return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String connectedEnvironmentName, String componentName) {
+ deleteAsync(resourceGroupName, connectedEnvironmentName, componentName).block();
+ }
+
+ /**
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String connectedEnvironmentName, String componentName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName, context).block();
+ }
+
+ /**
+ * List secrets for a dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName 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 connectedEnvironmentName, String componentName) {
+ 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listSecrets(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ connectedEnvironmentName,
+ componentName,
+ 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 connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 connectedEnvironmentName, String componentName, 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 (connectedEnvironmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter connectedEnvironmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName 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,
+ connectedEnvironmentName,
+ componentName,
+ 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 connectedEnvironmentName Name of the connected environment.
+ * @param componentName 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