diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
index df7bc59abf64..e81914ade011 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.3 (Unreleased)
+## 1.0.0-beta.1 (2022-05-12)
+
+- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-05. 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 b0ca9f7388c7..ff20afbbb30c 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-2022-05. 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.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
index a863135771ff..562e90360ba1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
@@ -27,6 +27,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 +63,11 @@
- [List](#daprcomponents_list)
- [ListSecrets](#daprcomponents_listsecrets)
+## ManagedEnvironmentDiagnostics
+
+- [GetDetector](#managedenvironmentdiagnostics_getdetector)
+- [ListDetectors](#managedenvironmentdiagnostics_listdetectors)
+
## ManagedEnvironments
- [CreateOrUpdate](#managedenvironments_createorupdate)
@@ -64,6 +77,10 @@
- [ListByResourceGroup](#managedenvironments_listbyresourcegroup)
- [Update](#managedenvironments_update)
+## ManagedEnvironmentsDiagnostics
+
+- [GetRoot](#managedenvironmentsdiagnostics_getroot)
+
## ManagedEnvironmentsStorages
- [CreateOrUpdate](#managedenvironmentsstorages_createorupdate)
@@ -86,7 +103,7 @@ import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
/** Samples for Certificates CreateOrUpdate. */
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
@@ -117,7 +134,7 @@ import com.azure.core.util.Context;
/** Samples for Certificates Delete. */
public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -140,7 +157,7 @@ import com.azure.core.util.Context;
/** Samples for Certificates Get. */
public final class CertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -163,7 +180,7 @@ import com.azure.core.util.Context;
/** Samples for Certificates List. */
public final class CertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/Certificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Certificates_ListByManagedEnvironment.json
*/
/**
* Sample code: List Certificates by Managed Environment.
@@ -188,7 +205,7 @@ import java.util.Map;
/** Samples for Certificates Update. */
public final class CertificatesUpdateSamples {
/*
- * 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/stable/2022-05-01/examples/Certificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -243,7 +260,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/stable/2022-05-01/examples/ContainerApps_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App.
@@ -348,7 +365,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/stable/2022-05-01/examples/ContainerApps_Delete.json
*/
/**
* Sample code: Delete Container App.
@@ -369,7 +386,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/stable/2022-05-01/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
@@ -390,7 +407,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/stable/2022-05-01/examples/ContainerApps_ListBySubscription.json
*/
/**
* Sample code: List Container Apps by subscription.
@@ -412,7 +429,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/stable/2022-05-01/examples/ContainerApps_ListByResourceGroup.json
*/
/**
* Sample code: List Container Apps by resource group.
@@ -434,7 +451,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/stable/2022-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json
*/
/**
* Sample code: Analyze Custom Hostname.
@@ -457,7 +474,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/stable/2022-05-01/examples/ContainerApps_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
@@ -499,7 +516,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/stable/2022-05-01/examples/ContainerApps_Patch.json
*/
/**
* Sample code: Patch Container App.
@@ -609,7 +626,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/stable/2022-05-01/examples/AuthConfigs_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App AuthConfig.
@@ -644,7 +661,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/stable/2022-05-01/examples/AuthConfigs_Delete.json
*/
/**
* Sample code: Delete Container App AuthConfig.
@@ -668,7 +685,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/stable/2022-05-01/examples/AuthConfigs_Get.json
*/
/**
* Sample code: Get Container App's AuthConfig.
@@ -692,7 +709,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/stable/2022-05-01/examples/AuthConfigs_ListByContainer.json
*/
/**
* Sample code: List Auth Configs by Container Apps.
@@ -706,6 +723,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/stable/2022-05-01/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/stable/2022-05-01/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/stable/2022-05-01/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/stable/2022-05-01/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/stable/2022-05-01/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 +847,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/stable/2022-05-01/examples/Replicas_Get.json
*/
/**
* Sample code: Get Container App's revision replica.
@@ -739,7 +872,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/stable/2022-05-01/examples/Replicas_List.json
*/
/**
* Sample code: List Container App's replicas.
@@ -763,7 +896,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/stable/2022-05-01/examples/Revisions_Activate.json
*/
/**
* Sample code: Activate Container App's revision.
@@ -787,7 +920,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/stable/2022-05-01/examples/Revisions_Deactivate.json
*/
/**
* Sample code: Deactivate Container App's revision.
@@ -811,7 +944,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/stable/2022-05-01/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
@@ -835,7 +968,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/stable/2022-05-01/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
@@ -857,7 +990,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/stable/2022-05-01/examples/Revisions_Restart.json
*/
/**
* Sample code: Restart Container App's revision.
@@ -883,7 +1016,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/stable/2022-05-01/examples/SourceControls_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App SourceControl.
@@ -925,7 +1058,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/stable/2022-05-01/examples/SourceControls_Delete.json
*/
/**
* Sample code: Delete Container App SourceControl.
@@ -947,7 +1080,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/stable/2022-05-01/examples/SourceControls_Get.json
*/
/**
* Sample code: Get Container App's SourceControl.
@@ -971,7 +1104,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/stable/2022-05-01/examples/SourceControls_ListByContainer.json
*/
/**
* Sample code: List App's Source Controls.
@@ -994,7 +1127,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/stable/2022-05-01/examples/DaprComponents_CreateOrUpdate.json
*/
/**
* Sample code: Create or update dapr component.
@@ -1033,7 +1166,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/stable/2022-05-01/examples/DaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
@@ -1054,7 +1187,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/stable/2022-05-01/examples/DaprComponents_Get.json
*/
/**
* Sample code: Get Dapr Component.
@@ -1075,7 +1208,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/stable/2022-05-01/examples/DaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
@@ -1096,7 +1229,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/stable/2022-05-01/examples/DaprComponents_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
@@ -1110,6 +1243,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/stable/2022-05-01/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/stable/2022-05-01/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 +1301,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/stable/2022-05-01/examples/ManagedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create environments.
@@ -1152,7 +1334,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/stable/2022-05-01/examples/ManagedEnvironments_Delete.json
*/
/**
* Sample code: Delete environment by name.
@@ -1174,7 +1356,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/stable/2022-05-01/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -1195,7 +1377,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/stable/2022-05-01/examples/ManagedEnvironments_ListBySubscription.json
*/
/**
* Sample code: List environments by subscription.
@@ -1217,7 +1399,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/stable/2022-05-01/examples/ManagedEnvironments_ListByResourceGroup.json
*/
/**
* Sample code: List environments by resource group.
@@ -1242,7 +1424,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/stable/2022-05-01/examples/ManagedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
@@ -1275,6 +1457,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/stable/2022-05-01/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 +1488,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/stable/2022-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
@@ -1319,7 +1522,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/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Delete.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -1341,7 +1544,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/stable/2022-05-01/examples/ManagedEnvironmentsStorages_Get.json
*/
/**
* Sample code: get a environments storage properties by subscription.
@@ -1363,7 +1566,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/stable/2022-05-01/examples/ManagedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -1386,7 +1589,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/stable/2022-05-01/examples/Certificates_CheckNameAvailability.json
*/
/**
* Sample code: Certificates_CheckNameAvailability.
@@ -1407,7 +1610,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/stable/2022-05-01/examples/ContainerApps_CheckNameAvailability.json
*/
/**
* Sample code: ContainerApps_CheckNameAvailability.
@@ -1435,7 +1638,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/stable/2022-05-01/examples/Operations_List.json
*/
/**
* Sample code: List all operations.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
index 95f36163cfde..12916c4b0fc2 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-2022-05.
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 c33a48ccf429..aed01fdc9c51 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
@@ -27,11 +27,14 @@
import com.azure.resourcemanager.appcontainers.implementation.CertificatesImpl;
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;
@@ -39,11 +42,14 @@
import com.azure.resourcemanager.appcontainers.models.Certificates;
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 +72,12 @@ public final class ContainerAppsApiManager {
private DaprComponents daprComponents;
+ private ContainerAppsDiagnostics containerAppsDiagnostics;
+
+ private ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics;
+
+ private ManagedEnvironmentsDiagnostics managedEnvironmentsDiagnostics;
+
private Operations operations;
private ManagedEnvironments managedEnvironments;
@@ -243,7 +255,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -363,6 +375,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.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java
index 31418f533203..32178bc86902 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/CertificatesClient.java
@@ -18,7 +18,7 @@ public interface CertificatesClient {
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
@@ -26,13 +26,13 @@ public interface CertificatesClient {
* @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String managedEnvironmentName);
+ PagedIterable list(String resourceGroupName, String environmentName);
/**
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -41,14 +41,14 @@ public interface CertificatesClient {
* @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String managedEnvironmentName, Context context);
+ PagedIterable list(String resourceGroupName, String environmentName, Context context);
/**
* Get the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -56,14 +56,14 @@ public interface CertificatesClient {
* @return the specified Certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CertificateInner get(String resourceGroupName, String managedEnvironmentName, String name);
+ CertificateInner get(String resourceGroupName, String environmentName, String certificateName);
/**
* Get the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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
@@ -73,14 +73,14 @@ public interface CertificatesClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String resourceGroupName, String managedEnvironmentName, String name, Context context);
+ String resourceGroupName, String environmentName, String certificateName, Context context);
/**
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -88,14 +88,14 @@ Response getWithResponse(
* @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CertificateInner createOrUpdate(String resourceGroupName, String managedEnvironmentName, String name);
+ CertificateInner createOrUpdate(String resourceGroupName, String environmentName, String certificateName);
/**
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -108,8 +108,8 @@ Response getWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
String resourceGroupName,
- String managedEnvironmentName,
- String name,
+ String environmentName,
+ String certificateName,
CertificateInner certificateEnvelope,
Context context);
@@ -117,22 +117,22 @@ Response createOrUpdateWithResponse(
* Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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 managedEnvironmentName, String name);
+ void delete(String resourceGroupName, String environmentName, String certificateName);
/**
* Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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
@@ -142,14 +142,14 @@ Response createOrUpdateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
- String resourceGroupName, String managedEnvironmentName, String name, Context context);
+ String resourceGroupName, String environmentName, 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 managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed Environment.
+ * @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -159,14 +159,14 @@ Response deleteWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CertificateInner update(
- String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope);
+ String resourceGroupName, String environmentName, 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 managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed Environment.
+ * @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -179,8 +179,8 @@ CertificateInner update(
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
String resourceGroupName,
- String managedEnvironmentName,
- String name,
+ String environmentName,
+ String certificateName,
CertificatePatch certificateEnvelope,
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..0ce9480b8f64 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.
*
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 8cc9c4ccd368..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
@@ -48,7 +48,7 @@ PagedIterable listByContainerApp(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App AuthConfig.
+ * @param authConfigName Name of the Container App AuthConfig.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
@@ -56,14 +56,14 @@ PagedIterable listByContainerApp(
* @return a AuthConfig of a Container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AuthConfigInner get(String resourceGroupName, String containerAppName, String name);
+ AuthConfigInner get(String resourceGroupName, String containerAppName, String authConfigName);
/**
* Get a AuthConfig 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 name Name of the Container App AuthConfig.
+ * @param authConfigName Name of the Container App AuthConfig.
* @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
@@ -73,14 +73,14 @@ PagedIterable listByContainerApp(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String resourceGroupName, String containerAppName, String name, Context context);
+ String resourceGroupName, String containerAppName, String authConfigName, Context context);
/**
* 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.
- * @param name Name of the Container App AuthConfig.
+ * @param authConfigName Name of the Container App AuthConfig.
* @param authConfigEnvelope Properties used to create a Container App AuthConfig.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -90,14 +90,14 @@ Response getWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AuthConfigInner createOrUpdate(
- String resourceGroupName, String containerAppName, String name, AuthConfigInner authConfigEnvelope);
+ String resourceGroupName, String containerAppName, String authConfigName, AuthConfigInner authConfigEnvelope);
/**
* 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.
- * @param name Name of the Container App AuthConfig.
+ * @param authConfigName Name of the Container App AuthConfig.
* @param authConfigEnvelope Properties used to create a Container App AuthConfig.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -111,7 +111,7 @@ AuthConfigInner createOrUpdate(
Response createOrUpdateWithResponse(
String resourceGroupName,
String containerAppName,
- String name,
+ String authConfigName,
AuthConfigInner authConfigEnvelope,
Context context);
@@ -120,21 +120,21 @@ Response createOrUpdateWithResponse(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App AuthConfig.
+ * @param authConfigName Name of the Container App AuthConfig.
* @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 containerAppName, String name);
+ void delete(String resourceGroupName, String containerAppName, String authConfigName);
/**
* 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.
- * @param name Name of the Container App AuthConfig.
+ * @param authConfigName Name of the Container App AuthConfig.
* @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
@@ -143,5 +143,6 @@ Response createOrUpdateWithResponse(
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String containerAppName, String name, Context context);
+ Response deleteWithResponse(
+ String resourceGroupName, String containerAppName, String authConfigName, Context context);
}
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 c0455c7ca570..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
@@ -72,20 +72,20 @@ public interface ContainerAppsClient {
* Get the properties of a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @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 getByResourceGroup(String resourceGroupName, String name);
+ ContainerAppInner getByResourceGroup(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 name Name of the Container App.
+ * @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.
@@ -93,13 +93,14 @@ public interface ContainerAppsClient {
* @return the properties of a Container App along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String name, Context context);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String containerAppName, Context context);
/**
* Description for Create or update a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @param containerAppEnvelope Properties used to create a container app.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -109,13 +110,13 @@ public interface ContainerAppsClient {
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ContainerAppInner> beginCreateOrUpdate(
- String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);
+ String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope);
/**
* Description for Create or update a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @param containerAppEnvelope Properties used to create a container app.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -126,13 +127,13 @@ SyncPoller, ContainerAppInner> beginCreateOrUpdate
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ContainerAppInner> beginCreateOrUpdate(
- String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);
+ String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context);
/**
* Description for Create or update a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @param containerAppEnvelope Properties used to create a container app.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -141,13 +142,14 @@ SyncPoller, ContainerAppInner> beginCreateOrUpdate
* @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ContainerAppInner createOrUpdate(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);
+ ContainerAppInner createOrUpdate(
+ String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope);
/**
* Description for Create or update a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @param containerAppEnvelope Properties used to create a container app.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -158,13 +160,13 @@ SyncPoller, ContainerAppInner> beginCreateOrUpdate
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ContainerAppInner createOrUpdate(
- String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);
+ String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context);
/**
* Description for Delete a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
@@ -172,13 +174,13 @@ ContainerAppInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String name);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName);
/**
* Description for Delete a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @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.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -187,26 +189,26 @@ ContainerAppInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, Context context);
/**
* Description for Delete a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @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 name);
+ void delete(String resourceGroupName, String containerAppName);
/**
* Description for Delete a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @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.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -214,13 +216,13 @@ ContainerAppInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String name, Context context);
+ void delete(String resourceGroupName, String containerAppName, Context context);
/**
* Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @param containerAppEnvelope Properties of a Container App that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -230,13 +232,13 @@ ContainerAppInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginUpdate(
- String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);
+ String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope);
/**
* Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @param containerAppEnvelope Properties of a Container App that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -247,13 +249,13 @@ SyncPoller, Void> beginUpdate(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginUpdate(
- String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);
+ String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context);
/**
* Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @param containerAppEnvelope Properties of a Container App that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -261,13 +263,13 @@ SyncPoller, Void> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope);
+ void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope);
/**
* Patches a Container App using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @param containerAppEnvelope Properties of a Container App that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -276,7 +278,8 @@ SyncPoller, Void> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(String resourceGroupName, String name, ContainerAppInner containerAppEnvelope, Context context);
+ void update(
+ String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context);
/**
* Analyzes a custom hostname for a Container App.
@@ -313,7 +316,7 @@ Response listCustomHostnameAnalysisWithRespon
* List secrets for a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @param containerAppName Name of the Container App.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
@@ -321,13 +324,13 @@ Response listCustomHostnameAnalysisWithRespon
* @return container App Secrets Collection ARM resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecretsCollectionInner listSecrets(String resourceGroupName, String name);
+ SecretsCollectionInner listSecrets(String resourceGroupName, String containerAppName);
/**
* List secrets for a container app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Container App.
+ * @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.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -336,5 +339,6 @@ Response listCustomHostnameAnalysisWithRespon
* @return container App Secrets Collection ARM resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listSecretsWithResponse(String resourceGroupName, String name, Context context);
+ Response listSecretsWithResponse(
+ String resourceGroupName, String containerAppName, Context context);
}
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/ContainerAppsRevisionReplicasClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionReplicasClient.java
index 7e302a5a4788..33cedc706bc7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionReplicasClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionReplicasClient.java
@@ -19,7 +19,7 @@ public interface ContainerAppsRevisionReplicasClient {
* @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 name Name of the Container App Revision Replica.
+ * @param replicaName Name of the Container App Revision Replica.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
@@ -27,7 +27,7 @@ public interface ContainerAppsRevisionReplicasClient {
* @return a replica for a Container App Revision.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ReplicaInner getReplica(String resourceGroupName, String containerAppName, String revisionName, String name);
+ ReplicaInner getReplica(String resourceGroupName, String containerAppName, String revisionName, String replicaName);
/**
* Get a replica for a Container App Revision.
@@ -35,7 +35,7 @@ public interface ContainerAppsRevisionReplicasClient {
* @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 name Name of the Container App Revision Replica.
+ * @param replicaName Name of the Container App Revision Replica.
* @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
@@ -45,7 +45,7 @@ public interface ContainerAppsRevisionReplicasClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getReplicaWithResponse(
- String resourceGroupName, String containerAppName, String revisionName, String name, Context context);
+ String resourceGroupName, String containerAppName, String revisionName, String replicaName, Context context);
/**
* List replicas for a Container App Revision.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java
index ec91000bad4c..c5255955c77a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsRevisionsClient.java
@@ -49,7 +49,7 @@ PagedIterable listRevisions(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App Revision.
+ * @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.
@@ -57,14 +57,14 @@ PagedIterable listRevisions(
* @return a revision of a Container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RevisionInner getRevision(String resourceGroupName, String containerAppName, String name);
+ 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 name Name of the Container App Revision.
+ * @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
@@ -74,28 +74,28 @@ PagedIterable listRevisions(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getRevisionWithResponse(
- String resourceGroupName, String containerAppName, String name, Context context);
+ String resourceGroupName, String containerAppName, String revisionName, Context context);
/**
* Activates a revision for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App Revision.
+ * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void activateRevision(String resourceGroupName, String containerAppName, String name);
+ void activateRevision(String resourceGroupName, String containerAppName, String revisionName);
/**
* Activates a revision for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App Revision.
+ * @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
@@ -105,28 +105,28 @@ Response getRevisionWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response activateRevisionWithResponse(
- String resourceGroupName, String containerAppName, String name, Context context);
+ String resourceGroupName, String containerAppName, String revisionName, Context context);
/**
* Deactivates a revision for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App Revision.
+ * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deactivateRevision(String resourceGroupName, String containerAppName, String name);
+ void deactivateRevision(String resourceGroupName, String containerAppName, String revisionName);
/**
* Deactivates a revision for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App Revision.
+ * @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
@@ -136,28 +136,28 @@ Response activateRevisionWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deactivateRevisionWithResponse(
- String resourceGroupName, String containerAppName, String name, Context context);
+ String resourceGroupName, String containerAppName, String revisionName, Context context);
/**
* Restarts a revision for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App Revision.
+ * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void restartRevision(String resourceGroupName, String containerAppName, String name);
+ void restartRevision(String resourceGroupName, String containerAppName, String revisionName);
/**
* Restarts a revision for a Container App.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App Revision.
+ * @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
@@ -167,5 +167,5 @@ Response deactivateRevisionWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response restartRevisionWithResponse(
- String resourceGroupName, String containerAppName, String name, Context context);
+ String resourceGroupName, String containerAppName, String revisionName, 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 2ad98007dcbb..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
@@ -52,7 +52,7 @@ PagedIterable listByContainerApp(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
@@ -60,14 +60,14 @@ PagedIterable listByContainerApp(
* @return a SourceControl of a Container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SourceControlInner get(String resourceGroupName, String containerAppName, String name);
+ SourceControlInner get(String resourceGroupName, String containerAppName, String sourceControlName);
/**
* Get a SourceControl 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 name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @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
@@ -77,14 +77,14 @@ PagedIterable listByContainerApp(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String resourceGroupName, String containerAppName, String name, Context context);
+ String resourceGroupName, String containerAppName, String sourceControlName, Context context);
/**
* 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.
- * @param name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @param sourceControlEnvelope Properties used to create a Container App SourceControl.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -94,14 +94,17 @@ Response getWithResponse(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SourceControlInner> beginCreateOrUpdate(
- String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope);
+ String resourceGroupName,
+ String containerAppName,
+ String sourceControlName,
+ SourceControlInner sourceControlEnvelope);
/**
* 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.
- * @param name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @param sourceControlEnvelope Properties used to create a Container App SourceControl.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -114,7 +117,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda
SyncPoller, SourceControlInner> beginCreateOrUpdate(
String resourceGroupName,
String containerAppName,
- String name,
+ String sourceControlName,
SourceControlInner sourceControlEnvelope,
Context context);
@@ -123,7 +126,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @param sourceControlEnvelope Properties used to create a Container App SourceControl.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -133,14 +136,17 @@ SyncPoller, SourceControlInner> beginCreateOrUpda
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SourceControlInner createOrUpdate(
- String resourceGroupName, String containerAppName, String name, SourceControlInner sourceControlEnvelope);
+ String resourceGroupName,
+ String containerAppName,
+ String sourceControlName,
+ SourceControlInner sourceControlEnvelope);
/**
* 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.
- * @param name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @param sourceControlEnvelope Properties used to create a Container App SourceControl.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -153,7 +159,7 @@ SourceControlInner createOrUpdate(
SourceControlInner createOrUpdate(
String resourceGroupName,
String containerAppName,
- String name,
+ String sourceControlName,
SourceControlInner sourceControlEnvelope,
Context context);
@@ -162,7 +168,7 @@ SourceControlInner createOrUpdate(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
- * @param name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
@@ -170,14 +176,15 @@ SourceControlInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String name);
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String containerAppName, String sourceControlName);
/**
* 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.
- * @param name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @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
@@ -187,28 +194,28 @@ SourceControlInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
- String resourceGroupName, String containerAppName, String name, Context context);
+ String resourceGroupName, String containerAppName, String sourceControlName, Context context);
/**
* 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.
- * @param name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @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 containerAppName, String name);
+ void delete(String resourceGroupName, String containerAppName, String sourceControlName);
/**
* 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.
- * @param name Name of the Container App SourceControl.
+ * @param sourceControlName Name of the Container App SourceControl.
* @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
@@ -216,5 +223,5 @@ SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String containerAppName, String name, Context context);
+ void delete(String resourceGroupName, String containerAppName, String sourceControlName, Context context);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java
index 4147f026ca8c..5a659b7517d8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentsClient.java
@@ -48,7 +48,7 @@ public interface DaprComponentsClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
- * @param name Name of the Dapr Component.
+ * @param 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.
@@ -56,14 +56,14 @@ public interface DaprComponentsClient {
* @return a dapr component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DaprComponentInner get(String resourceGroupName, String environmentName, String name);
+ DaprComponentInner get(String resourceGroupName, String environmentName, String componentName);
/**
* Get a dapr component.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
- * @param name Name of the Dapr Component.
+ * @param 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
@@ -73,14 +73,14 @@ public interface DaprComponentsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String resourceGroupName, String environmentName, String name, Context context);
+ String resourceGroupName, String environmentName, String componentName, Context context);
/**
* Creates or updates a Dapr Component in a Managed Environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
- * @param name Name of the Dapr Component.
+ * @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
@@ -90,14 +90,17 @@ Response getWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DaprComponentInner createOrUpdate(
- String resourceGroupName, String environmentName, String name, DaprComponentInner daprComponentEnvelope);
+ String resourceGroupName,
+ String environmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope);
/**
* Creates or updates a Dapr Component in a Managed Environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
- * @param name Name of the Dapr Component.
+ * @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.
@@ -110,7 +113,7 @@ DaprComponentInner createOrUpdate(
Response createOrUpdateWithResponse(
String resourceGroupName,
String environmentName,
- String name,
+ String componentName,
DaprComponentInner daprComponentEnvelope,
Context context);
@@ -119,21 +122,21 @@ Response createOrUpdateWithResponse(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
- * @param name Name of the Dapr Component.
+ * @param 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 environmentName, String name);
+ void delete(String resourceGroupName, String environmentName, String componentName);
/**
* Delete a Dapr Component from a Managed Environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
- * @param name Name of the Dapr Component.
+ * @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
@@ -142,14 +145,15 @@ Response createOrUpdateWithResponse(
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String environmentName, String name, Context context);
+ Response deleteWithResponse(
+ String resourceGroupName, String environmentName, String componentName, Context context);
/**
* List secrets for a dapr component.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
- * @param name Name of the Dapr Component.
+ * @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.
@@ -157,14 +161,14 @@ Response createOrUpdateWithResponse(
* @return dapr component Secrets Collection ARM resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DaprSecretsCollectionInner listSecrets(String resourceGroupName, String environmentName, String name);
+ DaprSecretsCollectionInner listSecrets(String resourceGroupName, String environmentName, String componentName);
/**
* List secrets for a dapr component.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
- * @param name Name of the Dapr Component.
+ * @param 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
@@ -174,5 +178,5 @@ Response createOrUpdateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listSecretsWithResponse(
- String resourceGroupName, String environmentName, String name, Context context);
+ String resourceGroupName, String environmentName, String componentName, Context context);
}
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/ManagedEnvironmentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java
index 352a540410fd..338dd07ce2e9 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java
@@ -70,7 +70,7 @@ public interface ManagedEnvironmentsClient {
* 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 name Name of the Environment.
+ * @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.
@@ -78,13 +78,13 @@ public interface ManagedEnvironmentsClient {
* @return the properties of a Managed Environment used to host container apps.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedEnvironmentInner getByResourceGroup(String resourceGroupName, String name);
+ ManagedEnvironmentInner getByResourceGroup(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 name Name of the Environment.
+ * @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
@@ -94,13 +94,13 @@ public interface ManagedEnvironmentsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
- String resourceGroupName, String name, Context context);
+ String resourceGroupName, String environmentName, Context context);
/**
* Creates or updates a Managed Environment used to host container apps.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @param environmentName Name of the Environment.
* @param environmentEnvelope Configuration details of the Environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -110,13 +110,13 @@ Response getByResourceGroupWithResponse(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate(
- String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope);
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
* Creates or updates a Managed Environment used to host container apps.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @param environmentName Name of the Environment.
* @param environmentEnvelope Configuration details of the Environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -127,13 +127,13 @@ SyncPoller, ManagedEnvironmentInner> beginCr
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ManagedEnvironmentInner> beginCreateOrUpdate(
- String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context);
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
* Creates or updates a Managed Environment used to host container apps.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @param environmentName Name of the Environment.
* @param environmentEnvelope Configuration details of the Environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -143,13 +143,13 @@ SyncPoller, ManagedEnvironmentInner> beginCr
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ManagedEnvironmentInner createOrUpdate(
- String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope);
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
* Creates or updates a Managed Environment used to host container apps.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @param environmentName Name of the Environment.
* @param environmentEnvelope Configuration details of the Environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -160,13 +160,13 @@ ManagedEnvironmentInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ManagedEnvironmentInner createOrUpdate(
- String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context);
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
* Delete a Managed Environment if it does not have any container apps.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @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.
@@ -174,13 +174,13 @@ ManagedEnvironmentInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String name);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName);
/**
* Delete a Managed Environment if it does not have any container apps.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @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
@@ -189,26 +189,26 @@ ManagedEnvironmentInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName, Context context);
/**
* Delete a Managed Environment if it does not have any container apps.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String name);
+ void delete(String resourceGroupName, String environmentName);
/**
* Delete a Managed Environment if it does not have any container apps.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @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
@@ -216,13 +216,13 @@ ManagedEnvironmentInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String name, Context context);
+ void delete(String resourceGroupName, String environmentName, Context context);
/**
* Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @param environmentName Name of the Environment.
* @param environmentEnvelope Configuration details of the Environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -232,13 +232,13 @@ ManagedEnvironmentInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginUpdate(
- String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope);
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
* Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @param environmentName Name of the Environment.
* @param environmentEnvelope Configuration details of the Environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -249,13 +249,13 @@ SyncPoller, Void> beginUpdate(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginUpdate(
- String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context);
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
* Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @param environmentName Name of the Environment.
* @param environmentEnvelope Configuration details of the Environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -263,13 +263,13 @@ SyncPoller, Void> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope);
+ void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
* Patches a Managed Environment using JSON Merge Patch.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param name Name of the Environment.
+ * @param environmentName Name of the Environment.
* @param environmentEnvelope Configuration details of the Environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -278,5 +278,6 @@ SyncPoller, Void> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(String resourceGroupName, String name, ManagedEnvironmentInner environmentEnvelope, Context context);
+ void update(
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/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/ManagedEnvironmentsStoragesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsStoragesClient.java
index 8d7fac32d847..02cea5645fd7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsStoragesClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsStoragesClient.java
@@ -17,7 +17,7 @@ public interface ManagedEnvironmentsStoragesClient {
* Get all storages for a managedEnvironment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param envName Name of the Environment.
+ * @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.
@@ -25,13 +25,13 @@ public interface ManagedEnvironmentsStoragesClient {
* @return all storages for a managedEnvironment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, String envName);
+ ManagedEnvironmentStoragesCollectionInner list(String resourceGroupName, String environmentName);
/**
* Get all storages for a managedEnvironment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param envName Name of the Environment.
+ * @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
@@ -41,14 +41,14 @@ public interface ManagedEnvironmentsStoragesClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
- String resourceGroupName, String envName, Context context);
+ String resourceGroupName, String environmentName, Context context);
/**
* Get storage for a managedEnvironment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param envName Name of the Environment.
- * @param name Name of the storage.
+ * @param environmentName 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.
@@ -56,14 +56,14 @@ Response listWithResponse(
* @return storage for a managedEnvironment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedEnvironmentStorageInner get(String resourceGroupName, String envName, String name);
+ ManagedEnvironmentStorageInner get(String resourceGroupName, String environmentName, String storageName);
/**
* Get storage for a managedEnvironment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param envName Name of the Environment.
- * @param name Name of the storage.
+ * @param environmentName 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
@@ -73,14 +73,14 @@ Response listWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String resourceGroupName, String envName, String name, Context context);
+ String resourceGroupName, String environmentName, String storageName, Context context);
/**
* Create or update storage for a managedEnvironment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param envName Name of the Environment.
- * @param name Name of the storage.
+ * @param environmentName 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
@@ -90,14 +90,17 @@ Response getWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ManagedEnvironmentStorageInner createOrUpdate(
- String resourceGroupName, String envName, String name, ManagedEnvironmentStorageInner storageEnvelope);
+ String resourceGroupName,
+ String environmentName,
+ String storageName,
+ ManagedEnvironmentStorageInner storageEnvelope);
/**
* Create or update storage for a managedEnvironment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param envName Name of the Environment.
- * @param name Name of the storage.
+ * @param environmentName 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.
@@ -109,8 +112,8 @@ ManagedEnvironmentStorageInner createOrUpdate(
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
String resourceGroupName,
- String envName,
- String name,
+ String environmentName,
+ String storageName,
ManagedEnvironmentStorageInner storageEnvelope,
Context context);
@@ -118,22 +121,22 @@ Response createOrUpdateWithResponse(
* Delete storage for a managedEnvironment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param envName Name of the Environment.
- * @param name Name of the storage.
+ * @param environmentName 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 envName, String name);
+ void delete(String resourceGroupName, String environmentName, String storageName);
/**
* Delete storage for a managedEnvironment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param envName Name of the Environment.
- * @param name Name of the storage.
+ * @param environmentName 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
@@ -142,5 +145,6 @@ Response createOrUpdateWithResponse(
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String envName, String name, Context context);
+ Response deleteWithResponse(
+ String resourceGroupName, String environmentName, String storageName, Context context);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java
index 7c907d58a42b..1a0dc5841f94 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/NamespacesClient.java
@@ -17,7 +17,7 @@ public interface NamespacesClient {
* Checks if resource name is available.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @param checkNameAvailabilityRequest The check name availability request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
@@ -27,15 +27,13 @@ public interface NamespacesClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CheckNameAvailabilityResponseInner checkNameAvailability(
- String resourceGroupName,
- String managedEnvironmentName,
- CheckNameAvailabilityRequest checkNameAvailabilityRequest);
+ String resourceGroupName, String environmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest);
/**
* Checks if resource name is available.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @param checkNameAvailabilityRequest The check name availability request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -47,7 +45,7 @@ CheckNameAvailabilityResponseInner checkNameAvailability(
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkNameAvailabilityWithResponse(
String resourceGroupName,
- String managedEnvironmentName,
+ String environmentName,
CheckNameAvailabilityRequest checkNameAvailabilityRequest,
Context context);
}
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/implementation/AuthConfigImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
index 7046b2bbef04..f56fd1159a72 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
@@ -62,7 +62,7 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager(
private String containerAppName;
- private String name;
+ private String authConfigName;
public AuthConfigImpl withExistingContainerApp(String resourceGroupName, String containerAppName) {
this.resourceGroupName = resourceGroupName;
@@ -75,7 +75,8 @@ public AuthConfig create() {
serviceManager
.serviceClient()
.getContainerAppsAuthConfigs()
- .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), Context.NONE)
+ .createOrUpdateWithResponse(
+ resourceGroupName, containerAppName, authConfigName, this.innerModel(), Context.NONE)
.getValue();
return this;
}
@@ -85,7 +86,8 @@ public AuthConfig create(Context context) {
serviceManager
.serviceClient()
.getContainerAppsAuthConfigs()
- .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), context)
+ .createOrUpdateWithResponse(
+ resourceGroupName, containerAppName, authConfigName, this.innerModel(), context)
.getValue();
return this;
}
@@ -93,7 +95,7 @@ public AuthConfig create(Context context) {
AuthConfigImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
this.innerObject = new AuthConfigInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.authConfigName = name;
}
public AuthConfigImpl update() {
@@ -105,7 +107,8 @@ public AuthConfig apply() {
serviceManager
.serviceClient()
.getContainerAppsAuthConfigs()
- .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), Context.NONE)
+ .createOrUpdateWithResponse(
+ resourceGroupName, containerAppName, authConfigName, this.innerModel(), Context.NONE)
.getValue();
return this;
}
@@ -115,7 +118,8 @@ public AuthConfig apply(Context context) {
serviceManager
.serviceClient()
.getContainerAppsAuthConfigs()
- .createOrUpdateWithResponse(resourceGroupName, containerAppName, name, this.innerModel(), context)
+ .createOrUpdateWithResponse(
+ resourceGroupName, containerAppName, authConfigName, this.innerModel(), context)
.getValue();
return this;
}
@@ -126,7 +130,7 @@ public AuthConfig apply(Context context) {
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
this.containerAppName = Utils.getValueFromIdByName(innerObject.id(), "containerApps");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "authConfigs");
+ this.authConfigName = Utils.getValueFromIdByName(innerObject.id(), "authConfigs");
}
public AuthConfig refresh() {
@@ -134,7 +138,7 @@ public AuthConfig refresh() {
serviceManager
.serviceClient()
.getContainerAppsAuthConfigs()
- .getWithResponse(resourceGroupName, containerAppName, name, Context.NONE)
+ .getWithResponse(resourceGroupName, containerAppName, authConfigName, Context.NONE)
.getValue();
return this;
}
@@ -144,7 +148,7 @@ public AuthConfig refresh(Context context) {
serviceManager
.serviceClient()
.getContainerAppsAuthConfigs()
- .getWithResponse(resourceGroupName, containerAppName, name, context)
+ .getWithResponse(resourceGroupName, containerAppName, authConfigName, context)
.getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
index ec63db7d4017..29c9315863cd 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
@@ -70,15 +70,15 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager(
private String resourceGroupName;
- private String managedEnvironmentName;
+ private String environmentName;
- private String name;
+ private String certificateName;
private CertificatePatch updateCertificateEnvelope;
- public CertificateImpl withExistingManagedEnvironment(String resourceGroupName, String managedEnvironmentName) {
+ public CertificateImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) {
this.resourceGroupName = resourceGroupName;
- this.managedEnvironmentName = managedEnvironmentName;
+ this.environmentName = environmentName;
return this;
}
@@ -88,7 +88,7 @@ public Certificate create() {
.serviceClient()
.getCertificates()
.createOrUpdateWithResponse(
- resourceGroupName, managedEnvironmentName, name, this.innerModel(), Context.NONE)
+ resourceGroupName, environmentName, certificateName, this.innerModel(), Context.NONE)
.getValue();
return this;
}
@@ -98,7 +98,8 @@ public Certificate create(Context context) {
serviceManager
.serviceClient()
.getCertificates()
- .createOrUpdateWithResponse(resourceGroupName, managedEnvironmentName, name, this.innerModel(), context)
+ .createOrUpdateWithResponse(
+ resourceGroupName, environmentName, certificateName, this.innerModel(), context)
.getValue();
return this;
}
@@ -106,7 +107,7 @@ public Certificate create(Context context) {
CertificateImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
this.innerObject = new CertificateInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.certificateName = name;
}
public CertificateImpl update() {
@@ -120,7 +121,7 @@ public Certificate apply() {
.serviceClient()
.getCertificates()
.updateWithResponse(
- resourceGroupName, managedEnvironmentName, name, updateCertificateEnvelope, Context.NONE)
+ resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, Context.NONE)
.getValue();
return this;
}
@@ -130,7 +131,8 @@ public Certificate apply(Context context) {
serviceManager
.serviceClient()
.getCertificates()
- .updateWithResponse(resourceGroupName, managedEnvironmentName, name, updateCertificateEnvelope, context)
+ .updateWithResponse(
+ resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, context)
.getValue();
return this;
}
@@ -140,8 +142,8 @@ public Certificate apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.managedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments");
- this.name = Utils.getValueFromIdByName(innerObject.id(), "certificates");
+ this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments");
+ this.certificateName = Utils.getValueFromIdByName(innerObject.id(), "certificates");
}
public Certificate refresh() {
@@ -149,7 +151,7 @@ public Certificate refresh() {
serviceManager
.serviceClient()
.getCertificates()
- .getWithResponse(resourceGroupName, managedEnvironmentName, name, Context.NONE)
+ .getWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE)
.getValue();
return this;
}
@@ -159,7 +161,7 @@ public Certificate refresh(Context context) {
serviceManager
.serviceClient()
.getCertificates()
- .getWithResponse(resourceGroupName, managedEnvironmentName, name, context)
+ .getWithResponse(resourceGroupName, environmentName, certificateName, context)
.getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
index b4d7f53d0142..fbf023d7dca5 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
@@ -64,14 +64,14 @@ private interface CertificatesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
- + "/managedEnvironments/{managedEnvironmentName}/certificates")
+ + "/managedEnvironments/{environmentName}/certificates")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
Mono> list(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("managedEnvironmentName") String managedEnvironmentName,
+ @PathParam("environmentName") String environmentName,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@@ -79,15 +79,15 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
- + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}")
+ + "/managedEnvironments/{environmentName}/certificates/{certificateName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
Mono> get(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("managedEnvironmentName") String managedEnvironmentName,
- @PathParam("name") String name,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("certificateName") String certificateName,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@@ -95,15 +95,15 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Put(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
- + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}")
+ + "/managedEnvironments/{environmentName}/certificates/{certificateName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
Mono> createOrUpdate(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("managedEnvironmentName") String managedEnvironmentName,
- @PathParam("name") String name,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("certificateName") String certificateName,
@QueryParam("api-version") String apiVersion,
@BodyParam("application/json") CertificateInner certificateEnvelope,
@HeaderParam("Accept") String accept,
@@ -112,15 +112,15 @@ Mono> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
- + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}")
+ + "/managedEnvironments/{environmentName}/certificates/{certificateName}")
@ExpectedResponses({200, 204})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
Mono> delete(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("managedEnvironmentName") String managedEnvironmentName,
- @PathParam("name") String name,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("certificateName") String certificateName,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@@ -128,15 +128,15 @@ Mono> delete(
@Headers({"Content-Type: application/json"})
@Patch(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
- + "/managedEnvironments/{managedEnvironmentName}/certificates/{name}")
+ + "/managedEnvironments/{environmentName}/certificates/{certificateName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
Mono> update(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("managedEnvironmentName") String managedEnvironmentName,
- @PathParam("name") String name,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("certificateName") String certificateName,
@QueryParam("api-version") String apiVersion,
@BodyParam("application/json") CertificatePatch certificateEnvelope,
@HeaderParam("Accept") String accept,
@@ -157,7 +157,7 @@ Mono> listNext(
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -166,7 +166,7 @@ Mono> listNext(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName, String managedEnvironmentName) {
+ String resourceGroupName, String environmentName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -183,10 +183,9 @@ private Mono> listSinglePageAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
@@ -197,7 +196,7 @@ private Mono> listSinglePageAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
+ environmentName,
this.client.getApiVersion(),
accept,
context))
@@ -217,7 +216,7 @@ private Mono> listSinglePageAsync(
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
@@ -227,7 +226,7 @@ private Mono> listSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName, String managedEnvironmentName, Context context) {
+ String resourceGroupName, String environmentName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -244,10 +243,9 @@ private Mono> listSinglePageAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -256,7 +254,7 @@ private Mono> listSinglePageAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
+ environmentName,
this.client.getApiVersion(),
accept,
context)
@@ -275,16 +273,16 @@ private Mono> listSinglePageAsync(
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Certificates in a given managed environment as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String managedEnvironmentName) {
+ private PagedFlux listAsync(String resourceGroupName, String environmentName) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, managedEnvironmentName),
+ () -> listSinglePageAsync(resourceGroupName, environmentName),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -292,7 +290,7 @@ private PagedFlux listAsync(String resourceGroupName, String m
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
@@ -300,10 +298,9 @@ private PagedFlux listAsync(String resourceGroupName, String m
* @return the Certificates in a given managed environment as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName, String managedEnvironmentName, Context context) {
+ private PagedFlux listAsync(String resourceGroupName, String environmentName, Context context) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, managedEnvironmentName, context),
+ () -> listSinglePageAsync(resourceGroupName, environmentName, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
@@ -311,22 +308,22 @@ private PagedFlux listAsync(
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String managedEnvironmentName) {
- return new PagedIterable<>(listAsync(resourceGroupName, managedEnvironmentName));
+ public PagedIterable list(String resourceGroupName, String environmentName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, environmentName));
}
/**
* Get the Certificates in a given managed environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
+ * @param environmentName Name of the Managed Environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
@@ -334,17 +331,16 @@ public PagedIterable list(String resourceGroupName, String man
* @return the Certificates in a given managed environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(
- String resourceGroupName, String managedEnvironmentName, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, managedEnvironmentName, context));
+ public PagedIterable list(String resourceGroupName, String environmentName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, environmentName, context));
}
/**
* Get the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -352,7 +348,7 @@ public PagedIterable list(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
- String resourceGroupName, String managedEnvironmentName, String name) {
+ String resourceGroupName, String environmentName, String certificateName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -369,13 +365,13 @@ private Mono> getWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
- if (name == null) {
- return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
@@ -386,8 +382,8 @@ private Mono> getWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
- name,
+ environmentName,
+ certificateName,
this.client.getApiVersion(),
accept,
context))
@@ -398,8 +394,8 @@ private Mono> getWithResponseAsync(
* Get the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -408,7 +404,7 @@ private Mono> getWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
- String resourceGroupName, String managedEnvironmentName, String name, Context context) {
+ String resourceGroupName, String environmentName, String certificateName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -425,13 +421,13 @@ private Mono> getWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
- if (name == null) {
- return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ 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);
@@ -440,8 +436,8 @@ private Mono> getWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
- name,
+ environmentName,
+ certificateName,
this.client.getApiVersion(),
accept,
context);
@@ -451,16 +447,16 @@ private Mono> getWithResponseAsync(
* Get the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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 managedEnvironmentName, String name) {
- return getWithResponseAsync(resourceGroupName, managedEnvironmentName, name)
+ private Mono getAsync(String resourceGroupName, String environmentName, String certificateName) {
+ return getWithResponseAsync(resourceGroupName, environmentName, certificateName)
.flatMap(
(Response res) -> {
if (res.getValue() != null) {
@@ -475,24 +471,24 @@ private Mono getAsync(String resourceGroupName, String managed
* Get the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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 managedEnvironmentName, String name) {
- return getAsync(resourceGroupName, managedEnvironmentName, name).block();
+ public CertificateInner get(String resourceGroupName, String environmentName, String certificateName) {
+ return getAsync(resourceGroupName, environmentName, certificateName).block();
}
/**
* Get the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -501,16 +497,16 @@ public CertificateInner get(String resourceGroupName, String managedEnvironmentN
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
- String resourceGroupName, String managedEnvironmentName, String name, Context context) {
- return getWithResponseAsync(resourceGroupName, managedEnvironmentName, name, context).block();
+ String resourceGroupName, String environmentName, String certificateName, Context context) {
+ return getWithResponseAsync(resourceGroupName, environmentName, certificateName, context).block();
}
/**
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -520,7 +516,10 @@ public Response getWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
- String resourceGroupName, String managedEnvironmentName, String name, CertificateInner certificateEnvelope) {
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -537,13 +536,13 @@ private Mono> createOrUpdateWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
- if (name == null) {
- return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
}
if (certificateEnvelope != null) {
certificateEnvelope.validate();
@@ -557,8 +556,8 @@ private Mono> createOrUpdateWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
- name,
+ environmentName,
+ certificateName,
this.client.getApiVersion(),
certificateEnvelope,
accept,
@@ -570,8 +569,8 @@ private Mono> createOrUpdateWithResponseAsync(
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -583,8 +582,8 @@ private Mono> createOrUpdateWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
String resourceGroupName,
- String managedEnvironmentName,
- String name,
+ String environmentName,
+ String certificateName,
CertificateInner certificateEnvelope,
Context context) {
if (this.client.getEndpoint() == null) {
@@ -603,13 +602,13 @@ private Mono> createOrUpdateWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
- if (name == null) {
- return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
}
if (certificateEnvelope != null) {
certificateEnvelope.validate();
@@ -621,8 +620,8 @@ private Mono> createOrUpdateWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
- name,
+ environmentName,
+ certificateName,
this.client.getApiVersion(),
certificateEnvelope,
accept,
@@ -633,8 +632,8 @@ private Mono> createOrUpdateWithResponseAsync(
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -644,8 +643,11 @@ private Mono> createOrUpdateWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
- String resourceGroupName, String managedEnvironmentName, String name, CertificateInner certificateEnvelope) {
- return createOrUpdateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope)
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope)
.flatMap(
(Response res) -> {
if (res.getValue() != null) {
@@ -660,8 +662,8 @@ private Mono createOrUpdateAsync(
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -670,9 +672,9 @@ private Mono createOrUpdateAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
- String resourceGroupName, String managedEnvironmentName, String name) {
+ String resourceGroupName, String environmentName, String certificateName) {
final CertificateInner certificateEnvelope = null;
- return createOrUpdateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope)
+ return createOrUpdateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope)
.flatMap(
(Response res) -> {
if (res.getValue() != null) {
@@ -687,25 +689,25 @@ private Mono createOrUpdateAsync(
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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 managedEnvironmentName, String name) {
+ public CertificateInner createOrUpdate(String resourceGroupName, String environmentName, String certificateName) {
final CertificateInner certificateEnvelope = null;
- return createOrUpdateAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope).block();
+ return createOrUpdateAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope).block();
}
/**
* Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -717,12 +719,12 @@ public CertificateInner createOrUpdate(String resourceGroupName, String managedE
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateWithResponse(
String resourceGroupName,
- String managedEnvironmentName,
- String name,
+ String environmentName,
+ String certificateName,
CertificateInner certificateEnvelope,
Context context) {
return createOrUpdateWithResponseAsync(
- resourceGroupName, managedEnvironmentName, name, certificateEnvelope, context)
+ resourceGroupName, environmentName, certificateName, certificateEnvelope, context)
.block();
}
@@ -730,8 +732,8 @@ public Response createOrUpdateWithResponse(
* Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -739,7 +741,7 @@ public Response createOrUpdateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
- String resourceGroupName, String managedEnvironmentName, String name) {
+ String resourceGroupName, String environmentName, String certificateName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -756,13 +758,13 @@ private Mono> deleteWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
- if (name == null) {
- return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
@@ -773,8 +775,8 @@ private Mono> deleteWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
- name,
+ environmentName,
+ certificateName,
this.client.getApiVersion(),
accept,
context))
@@ -785,8 +787,8 @@ private Mono> deleteWithResponseAsync(
* Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -795,7 +797,7 @@ private Mono> deleteWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
- String resourceGroupName, String managedEnvironmentName, String name, Context context) {
+ String resourceGroupName, String environmentName, String certificateName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -812,13 +814,13 @@ private Mono> deleteWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
- if (name == null) {
- return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ 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);
@@ -827,8 +829,8 @@ private Mono> deleteWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
- name,
+ environmentName,
+ certificateName,
this.client.getApiVersion(),
accept,
context);
@@ -838,16 +840,16 @@ private Mono> deleteWithResponseAsync(
* Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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 managedEnvironmentName, String name) {
- return deleteWithResponseAsync(resourceGroupName, managedEnvironmentName, name)
+ private Mono deleteAsync(String resourceGroupName, String environmentName, String certificateName) {
+ return deleteWithResponseAsync(resourceGroupName, environmentName, certificateName)
.flatMap((Response res) -> Mono.empty());
}
@@ -855,23 +857,23 @@ private Mono deleteAsync(String resourceGroupName, String managedEnvironme
* Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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 managedEnvironmentName, String name) {
- deleteAsync(resourceGroupName, managedEnvironmentName, name).block();
+ public void delete(String resourceGroupName, String environmentName, String certificateName) {
+ deleteAsync(resourceGroupName, environmentName, certificateName).block();
}
/**
* Deletes the specified Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed 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.
@@ -880,16 +882,16 @@ public void delete(String resourceGroupName, String managedEnvironmentName, Stri
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteWithResponse(
- String resourceGroupName, String managedEnvironmentName, String name, Context context) {
- return deleteWithResponseAsync(resourceGroupName, managedEnvironmentName, name, context).block();
+ String resourceGroupName, String environmentName, String certificateName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, environmentName, 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 managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed Environment.
+ * @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
@@ -899,7 +901,10 @@ public Response deleteWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
- String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope) {
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -916,13 +921,13 @@ private Mono> updateWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
- if (name == null) {
- return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
}
if (certificateEnvelope == null) {
return Mono
@@ -939,8 +944,8 @@ private Mono> updateWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
- name,
+ environmentName,
+ certificateName,
this.client.getApiVersion(),
certificateEnvelope,
accept,
@@ -952,8 +957,8 @@ private Mono> updateWithResponseAsync(
* Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed Environment.
+ * @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -965,8 +970,8 @@ private Mono> updateWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
String resourceGroupName,
- String managedEnvironmentName,
- String name,
+ String environmentName,
+ String certificateName,
CertificatePatch certificateEnvelope,
Context context) {
if (this.client.getEndpoint() == null) {
@@ -985,13 +990,13 @@ private Mono> updateWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (managedEnvironmentName == null) {
+ if (environmentName == null) {
return Mono
- .error(
- new IllegalArgumentException("Parameter managedEnvironmentName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
}
- if (name == null) {
- return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
}
if (certificateEnvelope == null) {
return Mono
@@ -1006,8 +1011,8 @@ private Mono> updateWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- managedEnvironmentName,
- name,
+ environmentName,
+ certificateName,
this.client.getApiVersion(),
certificateEnvelope,
accept,
@@ -1018,8 +1023,8 @@ private Mono> updateWithResponseAsync(
* Patches a certificate. Currently only patching of tags is supported.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param managedEnvironmentName Name of the Managed Environment.
- * @param name Name of the Certificate.
+ * @param environmentName Name of the Managed Environment.
+ * @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
@@ -1029,8 +1034,11 @@ private Mono> updateWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
- String resourceGroupName, String managedEnvironmentName, String name, CertificatePatch certificateEnvelope) {
- return updateWithResponseAsync(resourceGroupName, managedEnvironmentName, name, certificateEnvelope)
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ return updateWithResponseAsync(resourceGroupName, environmentName, certificateName, certificateEnvelope)
.flatMap(
(Response res) -> {
if (res.getValue() != null) {
@@ -1045,8 +1053,8 @@ private Mono