diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
index 9996bed8c3eb..12feba2a59f0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
@@ -1,14 +1,179 @@
# Release History
-## 1.1.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2025-02-05)
+
+- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2025-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
-### Breaking Changes
+* `models.SessionContainer` was added
+
+* `models.Runtime` was added
+
+* `models.SessionPoolUpdatableProperties` was added
+
+* `models.JavaComponentPropertiesScale` was added
+
+* `models.ScaleConfiguration` was added
+
+* `models.PoolManagementType` was added
+
+* `models.CertificateKeyVaultProperties` was added
+
+* `models.IdentitySettingsLifeCycle` was added
+
+* `models.SessionPoolProvisioningState` was added
+
+* `models.SpringBootAdminComponent` was added
+
+* `models.JavaComponentServiceBind` was added
+
+* `models.SessionPool$UpdateStages` was added
+
+* `models.JavaComponentConfigurationProperty` was added
+
+* `models.SpringCloudConfigComponent` was added
+
+* `models.SessionPool$Definition` was added
+
+* `models.LifecycleConfiguration` was added
+
+* `models.JavaComponent$Definition` was added
+
+* `models.SessionPool$DefinitionStages` was added
+
+* `models.SessionIngress` was added
+
+* `models.SessionPool` was added
+
+* `models.NfsAzureFileProperties` was added
+
+* `models.ContainerAppRunningStatus` was added
+
+* `models.SessionContainerResources` was added
+
+* `models.SessionPoolSecret` was added
+
+* `models.SessionPool$Update` was added
+
+* `models.JavaComponentsCollection` was added
+
+* `models.JavaComponent` was added
+
+* `models.SessionNetworkStatus` was added
+
+* `models.RuntimeJava` was added
+
+* `models.JavaComponent$UpdateStages` was added
+
+* `models.JavaComponentProvisioningState` was added
+
+* `models.ManagedIdentitySetting` was added
-### Bugs Fixed
+* `models.CustomContainerTemplate` was added
+
+* `models.SessionNetworkConfiguration` was added
+
+* `models.DynamicPoolConfiguration` was added
+
+* `models.JavaComponent$DefinitionStages` was added
+
+* `models.ContainerType` was added
+
+* `models.SessionRegistryCredentials` was added
+
+* `models.JavaComponentType` was added
+
+* `models.JavaComponentProperties` was added
+
+* `models.LifecycleType` was added
+
+* `models.ContainerAppsSessionPools` was added
+
+* `models.SessionPoolCollection` was added
-### Other Changes
+* `models.JavaComponent$Update` was added
+
+* `models.JavaComponentIngress` was added
+
+* `models.JavaComponents` was added
+
+* `models.SpringCloudEurekaComponent` was added
+
+#### `models.ManagedEnvironment$Update` was modified
+
+* `withIdentity(models.ManagedServiceIdentity)` was added
+
+#### `models.QueueScaleRule` was modified
+
+* `withIdentity(java.lang.String)` was added
+* `identity()` was added
+* `withAccountName(java.lang.String)` was added
+* `accountName()` was added
+
+#### `models.ManagedEnvironment$Definition` was modified
+
+* `withIdentity(models.ManagedServiceIdentity)` was added
+
+#### `models.ManagedEnvironmentStorageProperties` was modified
+
+* `withNfsAzureFile(models.NfsAzureFileProperties)` was added
+* `nfsAzureFile()` was added
+
+#### `models.TcpScaleRule` was modified
+
+* `withIdentity(java.lang.String)` was added
+* `identity()` was added
+
+#### `models.Scale` was modified
+
+* `withCooldownPeriod(java.lang.Integer)` was added
+* `cooldownPeriod()` was added
+* `pollingInterval()` was added
+* `withPollingInterval(java.lang.Integer)` was added
+
+#### `models.ManagedEnvironment` was modified
+
+* `identity()` was added
+
+#### `models.HttpScaleRule` was modified
+
+* `identity()` was added
+* `withIdentity(java.lang.String)` was added
+
+#### `models.CertificateProperties` was modified
+
+* `withCertificateKeyVaultProperties(models.CertificateKeyVaultProperties)` was added
+* `certificateKeyVaultProperties()` was added
+
+#### `models.ContainerApp` was modified
+
+* `runningStatus()` was added
+
+#### `models.JobScaleRule` was modified
+
+* `identity()` was added
+* `withIdentity(java.lang.String)` was added
+
+#### `ContainerAppsApiManager` was modified
+
+* `containerAppsSessionPools()` was added
+* `javaComponents()` was added
+
+#### `models.CustomScaleRule` was modified
+
+* `identity()` was added
+* `withIdentity(java.lang.String)` was added
+
+#### `models.CustomDomainConfiguration` was modified
+
+* `certificateKeyVaultProperties()` was added
+* `withCertificateKeyVaultProperties(models.CertificateKeyVaultProperties)` was added
+
+#### `models.Configuration` was modified
+
+* `runtime()` was added
+* `withRuntime(models.Runtime)` was added
## 1.1.0-beta.1 (2024-10-17)
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
index 9d05f22b6128..d76b814f22ed 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. Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions extension resource. Package tag package-preview-2024-08. 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-2025-01-01. 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.1.0-beta.1
+ 1.1.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
index 7eeafade7da3..80eb5b365951 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
@@ -1,14 +1,6 @@
# Code snippets and samples
-## AppResiliency
-
-- [CreateOrUpdate](#appresiliency_createorupdate)
-- [Delete](#appresiliency_delete)
-- [Get](#appresiliency_get)
-- [List](#appresiliency_list)
-- [Update](#appresiliency_update)
-
## AvailableWorkloadProfiles
- [Get](#availableworkloadprofiles_get)
@@ -17,29 +9,6 @@
- [Get](#billingmeters_get)
-## BuildAuthToken
-
-- [List](#buildauthtoken_list)
-
-## Builders
-
-- [CreateOrUpdate](#builders_createorupdate)
-- [Delete](#builders_delete)
-- [GetByResourceGroup](#builders_getbyresourcegroup)
-- [List](#builders_list)
-- [ListByResourceGroup](#builders_listbyresourcegroup)
-- [Update](#builders_update)
-
-## Builds
-
-- [CreateOrUpdate](#builds_createorupdate)
-- [Delete](#builds_delete)
-- [Get](#builds_get)
-
-## BuildsByBuilderResource
-
-- [List](#buildsbybuilderresource_list)
-
## Certificates
- [CreateOrUpdate](#certificates_createorupdate)
@@ -102,15 +71,6 @@
- [Get](#containerappsauthconfigs_get)
- [ListByContainerApp](#containerappsauthconfigs_listbycontainerapp)
-## ContainerAppsBuilds
-
-- [Delete](#containerappsbuilds_delete)
-- [Get](#containerappsbuilds_get)
-
-## ContainerAppsBuildsByContainerApp
-
-- [List](#containerappsbuildsbycontainerapp_list)
-
## ContainerAppsDiagnostics
- [GetDetector](#containerappsdiagnostics_getdetector)
@@ -119,14 +79,6 @@
- [ListDetectors](#containerappsdiagnostics_listdetectors)
- [ListRevisions](#containerappsdiagnostics_listrevisions)
-## ContainerAppsPatches
-
-- [Apply](#containerappspatches_apply)
-- [Delete](#containerappspatches_delete)
-- [Get](#containerappspatches_get)
-- [ListByContainerApp](#containerappspatches_listbycontainerapp)
-- [SkipConfigure](#containerappspatches_skipconfigure)
-
## ContainerAppsRevisionReplicas
- [GetReplica](#containerappsrevisionreplicas_getreplica)
@@ -156,13 +108,6 @@
- [Get](#containerappssourcecontrols_get)
- [ListByContainerApp](#containerappssourcecontrols_listbycontainerapp)
-## DaprComponentResiliencyPolicies
-
-- [CreateOrUpdate](#daprcomponentresiliencypolicies_createorupdate)
-- [Delete](#daprcomponentresiliencypolicies_delete)
-- [Get](#daprcomponentresiliencypolicies_get)
-- [List](#daprcomponentresiliencypolicies_list)
-
## DaprComponents
- [CreateOrUpdate](#daprcomponents_createorupdate)
@@ -171,25 +116,6 @@
- [List](#daprcomponents_list)
- [ListSecrets](#daprcomponents_listsecrets)
-## DaprSubscriptions
-
-- [CreateOrUpdate](#daprsubscriptions_createorupdate)
-- [Delete](#daprsubscriptions_delete)
-- [Get](#daprsubscriptions_get)
-- [List](#daprsubscriptions_list)
-
-## DotNetComponents
-
-- [CreateOrUpdate](#dotnetcomponents_createorupdate)
-- [Delete](#dotnetcomponents_delete)
-- [Get](#dotnetcomponents_get)
-- [List](#dotnetcomponents_list)
-- [Update](#dotnetcomponents_update)
-
-## FunctionsExtension
-
-- [InvokeFunctionsHost](#functionsextension_invokefunctionshost)
-
## JavaComponents
- [CreateOrUpdate](#javacomponents_createorupdate)
@@ -209,28 +135,15 @@
- [ListDetectors](#jobs_listdetectors)
- [ListSecrets](#jobs_listsecrets)
- [ProxyGet](#jobs_proxyget)
-- [Resume](#jobs_resume)
- [Start](#jobs_start)
- [StopExecution](#jobs_stopexecution)
- [StopMultipleExecutions](#jobs_stopmultipleexecutions)
-- [Suspend](#jobs_suspend)
- [Update](#jobs_update)
## JobsExecutions
- [List](#jobsexecutions_list)
-## LogicApps
-
-- [CreateOrUpdate](#logicapps_createorupdate)
-- [Delete](#logicapps_delete)
-- [DeployWorkflowArtifacts](#logicapps_deployworkflowartifacts)
-- [Get](#logicapps_get)
-- [GetWorkflow](#logicapps_getworkflow)
-- [Invoke](#logicapps_invoke)
-- [ListWorkflows](#logicapps_listworkflows)
-- [ListWorkflowsConnections](#logicapps_listworkflowsconnections)
-
## ManagedCertificates
- [CreateOrUpdate](#managedcertificates_createorupdate)
@@ -244,17 +157,6 @@
- [GetDetector](#managedenvironmentdiagnostics_getdetector)
- [ListDetectors](#managedenvironmentdiagnostics_listdetectors)
-## ManagedEnvironmentPrivateEndpointConnections
-
-- [CreateOrUpdate](#managedenvironmentprivateendpointconnections_createorupdate)
-- [Delete](#managedenvironmentprivateendpointconnections_delete)
-- [Get](#managedenvironmentprivateendpointconnections_get)
-- [List](#managedenvironmentprivateendpointconnections_list)
-
-## ManagedEnvironmentPrivateLinkResources
-
-- [List](#managedenvironmentprivatelinkresources_list)
-
## ManagedEnvironmentUsages
- [List](#managedenvironmentusages_list)
@@ -297,269 +199,200 @@
## Usages
- [List](#usages_list)
-### AppResiliency_CreateOrUpdate
+### AvailableWorkloadProfiles_Get
```java
-import com.azure.resourcemanager.appcontainers.models.CircuitBreakerPolicy;
-import com.azure.resourcemanager.appcontainers.models.HeaderMatch;
-import com.azure.resourcemanager.appcontainers.models.HttpConnectionPool;
-import com.azure.resourcemanager.appcontainers.models.HttpRetryPolicy;
-import com.azure.resourcemanager.appcontainers.models.TcpConnectionPool;
-import com.azure.resourcemanager.appcontainers.models.TcpRetryPolicy;
-import com.azure.resourcemanager.appcontainers.models.TimeoutPolicy;
-import java.util.Arrays;
-
/**
- * Samples for AppResiliency CreateOrUpdate.
+ * Samples for AvailableWorkloadProfiles Get.
*/
-public final class AppResiliencyCreateOrUpdateSamples {
+public final class AvailableWorkloadProfilesGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_CreateOrUpdate
- * .json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/AvailableWorkloadProfiles_Get.json
*/
/**
- * Sample code: Create or Update App Resiliency.
+ * Sample code: BillingMeters_Get.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- createOrUpdateAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.appResiliencies()
- .define("resiliency-policy-1")
- .withExistingContainerApp("rg", "testcontainerApp0")
- .withTimeoutPolicy(new TimeoutPolicy().withResponseTimeoutInSeconds(15).withConnectionTimeoutInSeconds(5))
- .withHttpRetryPolicy(
- new HttpRetryPolicy().withMaxRetries(5)
- .withInitialDelayInMilliseconds(1000L)
- .withMaxIntervalInMilliseconds(10000L)
- .withHeaders(
- Arrays.asList(new HeaderMatch().withHeaderProperty("X-Content-Type").withPrefixMatch("GOATS")))
- .withHttpStatusCodes(Arrays.asList(502, 503))
- .withErrors(Arrays.asList("5xx", "connect-failure", "reset", "retriable-headers",
- "retriable-status-codes")))
- .withTcpRetryPolicy(new TcpRetryPolicy().withMaxConnectAttempts(3))
- .withCircuitBreakerPolicy(new CircuitBreakerPolicy().withConsecutiveErrors(5)
- .withIntervalInSeconds(10)
- .withMaxEjectionPercent(50))
- .withHttpConnectionPool(
- new HttpConnectionPool().withHttp1MaxPendingRequests(1024).withHttp2MaxRequests(1024))
- .withTcpConnectionPool(new TcpConnectionPool().withMaxConnections(100))
- .create();
+ public static void billingMetersGet(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.availableWorkloadProfiles().get("East US", com.azure.core.util.Context.NONE);
}
}
```
-### AppResiliency_Delete
+### BillingMeters_Get
```java
/**
- * Samples for AppResiliency Delete.
+ * Samples for BillingMeters Get.
*/
-public final class AppResiliencyDeleteSamples {
+public final class BillingMetersGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Delete.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/BillingMeters_Get.json
*/
/**
- * Sample code: Delete App Resiliency.
+ * Sample code: BillingMeters_Get.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.appResiliencies()
- .deleteWithResponse("rg", "testcontainerApp0", "resiliency-policy-1", com.azure.core.util.Context.NONE);
+ public static void billingMetersGet(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.billingMeters().getWithResponse("East US", com.azure.core.util.Context.NONE);
}
}
```
-### AppResiliency_Get
+### Certificates_CreateOrUpdate
```java
-/**
- * Samples for AppResiliency Get.
- */
-public final class AppResiliencyGetSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Get.json
- */
- /**
- * Sample code: Get App Resiliency.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void getAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.appResiliencies()
- .getWithResponse("rg", "testcontainerApp0", "resiliency-policy-1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AppResiliency_List
+import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
+import com.azure.resourcemanager.appcontainers.models.CertificateKeyVaultProperties;
+import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
-```java
/**
- * Samples for AppResiliency List.
+ * Samples for Certificates CreateOrUpdate.
*/
-public final class AppResiliencyListSamples {
+public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * Certificate_CreateOrUpdate_FromKeyVault.json
*/
/**
- * Sample code: List App Resiliency.
+ * Sample code: Create or Update Certificate using Managed Identity.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.appResiliencies().list("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
+ public static void createOrUpdateCertificateUsingManagedIdentity(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.certificates()
+ .createOrUpdateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ new CertificateInner().withLocation("East US")
+ .withProperties(new CertificateProperties()
+ .withCertificateKeyVaultProperties(new CertificateKeyVaultProperties().withIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi")
+ .withKeyVaultUrl("fakeTokenPlaceholder"))),
+ com.azure.core.util.Context.NONE);
}
-}
-```
-
-### AppResiliency_Update
-
-```java
-import com.azure.resourcemanager.appcontainers.models.AppResiliency;
-import com.azure.resourcemanager.appcontainers.models.TimeoutPolicy;
-/**
- * Samples for AppResiliency Update.
- */
-public final class AppResiliencyUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Patch.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Certificate_CreateOrUpdate.json
*/
/**
- * Sample code: Update App Resiliency.
+ * Sample code: Create or Update Certificate.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void updateAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- AppResiliency resource = manager.appResiliencies()
- .getWithResponse("rg", "testcontainerApp0", "resiliency-policy-1", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withTimeoutPolicy(new TimeoutPolicy().withResponseTimeoutInSeconds(30).withConnectionTimeoutInSeconds(40))
- .apply();
+ public static void
+ createOrUpdateCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.certificates()
+ .createOrUpdateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ new CertificateInner().withLocation("East US")
+ .withProperties(new CertificateProperties().withPassword("fakeTokenPlaceholder")
+ .withValue("Y2VydA==".getBytes())),
+ com.azure.core.util.Context.NONE);
}
}
```
-### AvailableWorkloadProfiles_Get
+### Certificates_Delete
```java
/**
- * Samples for AvailableWorkloadProfiles Get.
+ * Samples for Certificates Delete.
*/
-public final class AvailableWorkloadProfilesGetSamples {
+public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * AvailableWorkloadProfiles_Get.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Certificate_Delete.json
*/
/**
- * Sample code: BillingMeters_Get.
+ * Sample code: Delete Certificate.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void billingMetersGet(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.availableWorkloadProfiles().get("East US", com.azure.core.util.Context.NONE);
+ public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.certificates()
+ .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE);
}
}
```
-### BillingMeters_Get
+### Certificates_Get
```java
/**
- * Samples for BillingMeters Get.
+ * Samples for Certificates Get.
*/
-public final class BillingMetersGetSamples {
+public final class CertificatesGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/BillingMeters_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Certificate_Get.json
*/
/**
- * Sample code: BillingMeters_Get.
+ * Sample code: Get Certificate.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void billingMetersGet(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.billingMeters().getWithResponse("East US", com.azure.core.util.Context.NONE);
+ public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.certificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE);
}
}
```
-### BuildAuthToken_List
+### Certificates_List
```java
/**
- * Samples for BuildAuthToken List.
+ * Samples for Certificates List.
*/
-public final class BuildAuthTokenListSamples {
+public final class CertificatesListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListAuthToken.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Certificates_ListByManagedEnvironment
+ * .json
*/
/**
- * Sample code: Get Build Auth Token.
+ * Sample code: List Certificates by Managed Environment.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getBuildAuthToken(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.buildAuthTokens().listWithResponse("rg", "testBuilder", "testBuild", com.azure.core.util.Context.NONE);
+ public static void
+ listCertificatesByManagedEnvironment(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.certificates().list("examplerg", "testcontainerenv", com.azure.core.util.Context.NONE);
}
}
```
-### Builders_CreateOrUpdate
+### Certificates_Update
```java
-import com.azure.resourcemanager.appcontainers.models.ContainerRegistry;
-import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity;
-import java.util.Arrays;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for Builders CreateOrUpdate.
+ * Samples for Certificates Update.
*/
-public final class BuildersCreateOrUpdateSamples {
+public final class CertificatesUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_CreateOrUpdate.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Certificates_Patch.json
*/
/**
- * Sample code: Builders_CreateOrUpdate_0.
+ * Sample code: Patch Certificate.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- buildersCreateOrUpdate0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builders()
- .define("testBuilder")
- .withRegion("eastus")
- .withExistingResourceGroup("rg")
- .withTags(mapOf("company", "Microsoft"))
- .withIdentity(new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1",
- new UserAssignedIdentity())))
- .withEnvironmentId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv")
- .withContainerRegistries(Arrays.asList(new ContainerRegistry()
- .withContainerRegistryServer("test.azurecr.io")
- .withIdentityResourceId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"),
- new ContainerRegistry().withContainerRegistryServer("test2.azurecr.io")
- .withIdentityResourceId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")))
- .create();
+ public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.certificates()
+ .updateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ new CertificatePatch().withTags(mapOf("tag1", "value1", "tag2", "value2")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -576,310 +409,198 @@ public final class BuildersCreateOrUpdateSamples {
}
```
-### Builders_Delete
+### ConnectedEnvironments_CheckNameAvailability
```java
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+
/**
- * Samples for Builders Delete.
+ * Samples for ConnectedEnvironments CheckNameAvailability.
*/
-public final class BuildersDeleteSamples {
+public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsCertificates_CheckNameAvailability.json
*/
/**
- * Sample code: Builders_Delete_0.
+ * Sample code: Certificates_CheckNameAvailability.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void buildersDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builders().delete("rg", "testBuilder", com.azure.core.util.Context.NONE);
+ public static void
+ certificatesCheckNameAvailability(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments()
+ .checkNameAvailabilityWithResponse("examplerg", "testcontainerenv",
+ new CheckNameAvailabilityRequest().withName("testcertificatename")
+ .withType("Microsoft.App/connectedEnvironments/certificates"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### Builders_GetByResourceGroup
+### ConnectedEnvironments_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
+
/**
- * Samples for Builders GetByResourceGroup.
+ * Samples for ConnectedEnvironments CreateOrUpdate.
*/
-public final class BuildersGetByResourceGroupSamples {
+public final class ConnectedEnvironmentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ConnectedEnvironments_CreateOrUpdate.
+ * json
*/
/**
- * Sample code: Builders_Get_0.
+ * Sample code: Create kube environments.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void buildersGet0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builders().getByResourceGroupWithResponse("rg", "testBuilder", com.azure.core.util.Context.NONE);
+ public static void createKubeEnvironments(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments()
+ .define("testenv")
+ .withRegion("East US")
+ .withExistingResourceGroup("examplerg")
+ .withStaticIp("1.2.3.4")
+ .withDaprAIConnectionString(
+ "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
+ .withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("www.my-name.com")
+ .withCertificateValue("Y2VydA==".getBytes())
+ .withCertificatePassword("fakeTokenPlaceholder"))
+ .create();
}
}
```
-### Builders_List
+### ConnectedEnvironments_Delete
```java
/**
- * Samples for Builders List.
+ * Samples for ConnectedEnvironments Delete.
*/
-public final class BuildersListSamples {
+public final class ConnectedEnvironmentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListBySubscription.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ConnectedEnvironments_Delete.json
*/
/**
- * Sample code: Builders_ListBySubscription_0.
+ * Sample code: Delete connected environment by connectedEnvironmentName.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- buildersListBySubscription0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builders().list(com.azure.core.util.Context.NONE);
+ public static void deleteConnectedEnvironmentByConnectedEnvironmentName(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().delete("examplerg", "examplekenv", com.azure.core.util.Context.NONE);
}
}
```
-### Builders_ListByResourceGroup
+### ConnectedEnvironments_GetByResourceGroup
```java
/**
- * Samples for Builders ListByResourceGroup.
+ * Samples for ConnectedEnvironments GetByResourceGroup.
*/
-public final class BuildersListByResourceGroupSamples {
+public final class ConnectedEnvironmentsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListByResourceGroup
- * .json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ConnectedEnvironments_Get.json
*/
/**
- * Sample code: Builders_ListByResourceGroup_0.
+ * Sample code: Get connected environment by connectedEnvironmentName.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- buildersListByResourceGroup0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builders().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
+ public static void getConnectedEnvironmentByConnectedEnvironmentName(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments()
+ .getByResourceGroupWithResponse("examplerg", "examplekenv", com.azure.core.util.Context.NONE);
}
}
```
-### Builders_Update
+### ConnectedEnvironments_List
```java
-import com.azure.resourcemanager.appcontainers.models.BuilderResource;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for Builders Update.
+ * Samples for ConnectedEnvironments List.
*/
-public final class BuildersUpdateSamples {
+public final class ConnectedEnvironmentsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Update.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironments_ListBySubscription.json
*/
/**
- * Sample code: Builders_Update_0.
+ * Sample code: List connected environments by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void buildersUpdate0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- BuilderResource resource = manager.builders()
- .getByResourceGroupWithResponse("rg", "testBuilder", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("mytag1", "myvalue1")).apply();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ public static void listConnectedEnvironmentsBySubscription(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().list(com.azure.core.util.Context.NONE);
}
}
```
-### Builds_CreateOrUpdate
+### ConnectedEnvironments_ListByResourceGroup
```java
-import com.azure.resourcemanager.appcontainers.models.BuildConfiguration;
-import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
-import com.azure.resourcemanager.appcontainers.models.EnvironmentVariable;
-import com.azure.resourcemanager.appcontainers.models.HttpGet;
-import com.azure.resourcemanager.appcontainers.models.PreBuildStep;
-import java.util.Arrays;
-
/**
- * Samples for Builds CreateOrUpdate.
+ * Samples for ConnectedEnvironments ListByResourceGroup.
*/
-public final class BuildsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_CreateOrUpdate.json
- */
- /**
- * Sample code: Builds_CreateOrUpdate_WithConfig.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- buildsCreateOrUpdateWithConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builds()
- .define("testBuild-123456789az")
- .withExistingBuilder("rg", "testBuilder")
- .withDestinationContainerRegistry(new ContainerRegistryWithCustomImage().withServer("test.azurecr.io")
- .withImage("test.azurecr.io/repo:tag"))
- .withConfiguration(new BuildConfiguration().withBaseOs("DebianBullseye")
- .withPlatform("dotnetcore")
- .withPlatformVersion("7.0")
- .withEnvironmentVariables(Arrays.asList(new EnvironmentVariable().withName("foo1").withValue("bar1"),
- new EnvironmentVariable().withName("foo2").withValue("bar2")))
- .withPreBuildSteps(Arrays.asList(
- new PreBuildStep().withDescription("First pre build step.")
- .withScripts(Arrays.asList("echo 'hello'", "echo 'world'"))
- .withHttpGet(new HttpGet().withUrl("https://microsoft.com")
- .withFileName("output.txt")
- .withHeaders(Arrays.asList("foo", "bar"))),
- new PreBuildStep().withDescription("Second pre build step.")
- .withScripts(Arrays.asList("echo 'hello'", "echo 'again'"))
- .withHttpGet(new HttpGet().withUrl("https://microsoft.com")
- .withFileName("output.txt")
- .withHeaders(Arrays.asList("foo"))))))
- .create();
- }
-
+public final class ConnectedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * Builds_CreateOrUpdate_NoConfig.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironments_ListByResourceGroup.json
*/
/**
- * Sample code: Builds_CreateOrUpdate_NoConfig.
+ * Sample code: List environments by resource group.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- buildsCreateOrUpdateNoConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builds().define("testBuild").withExistingBuilder("rg", "testBuilder").create();
+ listEnvironmentsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().listByResourceGroup("examplerg", com.azure.core.util.Context.NONE);
}
}
```
-### Builds_Delete
+### ConnectedEnvironments_Update
```java
/**
- * Samples for Builds Delete.
+ * Samples for ConnectedEnvironments Update.
*/
-public final class BuildsDeleteSamples {
+public final class ConnectedEnvironmentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Delete.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ConnectedEnvironments_Patch.json
*/
/**
- * Sample code: Builds_Delete_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void buildsDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builds().delete("rg", "testBuilder", "testBuild", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Builds_Get
-
-```java
-/**
- * Samples for Builds Get.
- */
-public final class BuildsGetSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Get.json
- */
- /**
- * Sample code: Builds_Get_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void buildsGet0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builds().getWithResponse("rg", "testBuilder", "testBuild", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BuildsByBuilderResource_List
-
-```java
-/**
- * Samples for BuildsByBuilderResource List.
- */
-public final class BuildsByBuilderResourceListSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListByBuilderResource
- * .json
- */
- /**
- * Sample code: Builds_ListByBuilderResource_0.
+ * Sample code: Patch Managed Environment.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- buildsListByBuilderResource0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.buildsByBuilderResources().list("rg", "testBuilder", com.azure.core.util.Context.NONE);
+ patchManagedEnvironment(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().updateWithResponse("examplerg", "testenv", com.azure.core.util.Context.NONE);
}
}
```
-### Certificates_CreateOrUpdate
+### ConnectedEnvironmentsCertificates_CreateOrUpdate
```java
-import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
-import com.azure.resourcemanager.appcontainers.models.CertificateKeyVaultProperties;
import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
-import com.azure.resourcemanager.appcontainers.models.CertificateType;
/**
- * Samples for Certificates CreateOrUpdate.
+ * Samples for ConnectedEnvironmentsCertificates CreateOrUpdate.
*/
-public final class CertificatesCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * Certificate_CreateOrUpdate_FromKeyVault.json
- */
- /**
- * Sample code: Create or Update Certificate using Managed Identity.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void createOrUpdateCertificateUsingManagedIdentity(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates()
- .createOrUpdateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- new CertificateInner().withLocation("East US")
- .withProperties(new CertificateProperties()
- .withCertificateKeyVaultProperties(new CertificateKeyVaultProperties().withIdentity(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi")
- .withKeyVaultUrl("fakeTokenPlaceholder"))
- .withCertificateType(CertificateType.SERVER_SSLCERTIFICATE)),
- com.azure.core.util.Context.NONE);
- }
-
+public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_CreateOrUpdate.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsCertificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
@@ -888,27 +609,27 @@ public final class CertificatesCreateOrUpdateSamples {
*/
public static void
createOrUpdateCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates()
- .createOrUpdateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- new CertificateInner().withLocation("East US")
- .withProperties(new CertificateProperties().withPassword("fakeTokenPlaceholder")
- .withValue("Y2VydA==".getBytes())
- .withCertificateType(CertificateType.IMAGE_PULL_TRUSTED_CA)),
- com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsCertificates()
+ .define("certificate-firendly-name")
+ .withRegion("East US")
+ .withExistingConnectedEnvironment("examplerg", "testcontainerenv")
+ .withProperties(
+ new CertificateProperties().withPassword("fakeTokenPlaceholder").withValue("Y2VydA==".getBytes()))
+ .create();
}
}
```
-### Certificates_Delete
+### ConnectedEnvironmentsCertificates_Delete
```java
/**
- * Samples for Certificates Delete.
+ * Samples for ConnectedEnvironmentsCertificates Delete.
*/
-public final class CertificatesDeleteSamples {
+public final class ConnectedEnvironmentsCertificatesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsCertificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -916,23 +637,24 @@ public final class CertificatesDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates()
+ manager.connectedEnvironmentsCertificates()
.deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
com.azure.core.util.Context.NONE);
}
}
```
-### Certificates_Get
+### ConnectedEnvironmentsCertificates_Get
```java
/**
- * Samples for Certificates Get.
+ * Samples for ConnectedEnvironmentsCertificates Get.
*/
-public final class CertificatesGetSamples {
+public final class ConnectedEnvironmentsCertificatesGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ConnectedEnvironmentsCertificate_Get.
+ * json
*/
/**
* Sample code: Get Certificate.
@@ -940,50 +662,51 @@ public final class CertificatesGetSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates()
+ manager.connectedEnvironmentsCertificates()
.getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
com.azure.core.util.Context.NONE);
}
}
```
-### Certificates_List
+### ConnectedEnvironmentsCertificates_List
```java
/**
- * Samples for Certificates List.
+ * Samples for ConnectedEnvironmentsCertificates List.
*/
-public final class CertificatesListSamples {
+public final class ConnectedEnvironmentsCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * Certificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
*/
/**
- * Sample code: List Certificates by Managed Environment.
+ * Sample code: List Certificates by Connected Environment.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- listCertificatesByManagedEnvironment(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates().list("examplerg", "testcontainerenv", com.azure.core.util.Context.NONE);
+ public static void listCertificatesByConnectedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsCertificates()
+ .list("examplerg", "testcontainerenv", com.azure.core.util.Context.NONE);
}
}
```
-### Certificates_Update
+### ConnectedEnvironmentsCertificates_Update
```java
-import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+import com.azure.resourcemanager.appcontainers.models.Certificate;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for Certificates Update.
+ * Samples for ConnectedEnvironmentsCertificates Update.
*/
-public final class CertificatesUpdateSamples {
+public final class ConnectedEnvironmentsCertificatesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsCertificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -991,10 +714,11 @@ public final class CertificatesUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates()
- .updateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- new CertificatePatch().withTags(mapOf("tag1", "value1", "tag2", "value2")),
- com.azure.core.util.Context.NONE);
+ Certificate resource = manager.connectedEnvironmentsCertificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
}
// Use "Map.of" if available
@@ -1011,670 +735,321 @@ public final class CertificatesUpdateSamples {
}
```
-### ConnectedEnvironments_CheckNameAvailability
+### ConnectedEnvironmentsDaprComponents_CreateOrUpdate
```java
-import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
+import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
+import com.azure.resourcemanager.appcontainers.models.Secret;
+import java.util.Arrays;
/**
- * Samples for ConnectedEnvironments CheckNameAvailability.
+ * Samples for ConnectedEnvironmentsDaprComponents CreateOrUpdate.
*/
-public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
+public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsCertificates_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
*/
/**
- * Sample code: Certificates_CheckNameAvailability.
+ * Sample code: Create or update dapr component.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- certificatesCheckNameAvailability(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironments()
- .checkNameAvailabilityWithResponse("examplerg", "testcontainerenv",
- new CheckNameAvailabilityRequest().withName("testcertificatename")
- .withType("Microsoft.App/connectedEnvironments/certificates"),
- com.azure.core.util.Context.NONE);
+ createOrUpdateDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsDaprComponents()
+ .define("reddog")
+ .withExistingConnectedEnvironment("examplerg", "myenvironment")
+ .withComponentType("state.azure.cosmosdb")
+ .withVersion("v1")
+ .withIgnoreErrors(false)
+ .withInitTimeout("50s")
+ .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
+ .withMetadata(Arrays.asList(new DaprMetadata().withName("url").withValue(""),
+ new DaprMetadata().withName("database").withValue("itemsDB"),
+ new DaprMetadata().withName("collection").withValue("items"),
+ new DaprMetadata().withName("masterkey").withSecretRef("fakeTokenPlaceholder")))
+ .withScopes(Arrays.asList("container-app-1", "container-app-2"))
+ .create();
}
}
```
-### ConnectedEnvironments_CreateOrUpdate
+### ConnectedEnvironmentsDaprComponents_Delete
```java
-import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
-
/**
- * Samples for ConnectedEnvironments CreateOrUpdate.
+ * Samples for ConnectedEnvironmentsDaprComponents Delete.
*/
-public final class ConnectedEnvironmentsCreateOrUpdateSamples {
+public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsDaprComponents_Delete.json
*/
/**
- * Sample code: Create kube environments.
+ * Sample code: Delete dapr component.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createKubeEnvironments(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironments()
- .define("testenv")
- .withRegion("East US")
- .withExistingResourceGroup("examplerg")
- .withStaticIp("1.2.3.4")
- .withDaprAIConnectionString(
- "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
- .withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("www.my-name.com")
- .withCertificateValue("Y2VydA==".getBytes())
- .withCertificatePassword("fakeTokenPlaceholder"))
- .create();
+ public static void deleteDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsDaprComponents()
+ .deleteWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironments_Delete
+### ConnectedEnvironmentsDaprComponents_Get
```java
/**
- * Samples for ConnectedEnvironments Delete.
+ * Samples for ConnectedEnvironmentsDaprComponents Get.
*/
-public final class ConnectedEnvironmentsDeleteSamples {
+public final class ConnectedEnvironmentsDaprComponentsGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Delete
- * .json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsDaprComponents_Get.json
*/
/**
- * Sample code: Delete connected environment by connectedEnvironmentName.
+ * Sample code: Get Dapr Component.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteConnectedEnvironmentByConnectedEnvironmentName(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironments().delete("examplerg", "examplekenv", com.azure.core.util.Context.NONE);
+ public static void getDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsDaprComponents()
+ .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironments_GetByResourceGroup
+### ConnectedEnvironmentsDaprComponents_List
```java
/**
- * Samples for ConnectedEnvironments GetByResourceGroup.
+ * Samples for ConnectedEnvironmentsDaprComponents List.
*/
-public final class ConnectedEnvironmentsGetByResourceGroupSamples {
+public final class ConnectedEnvironmentsDaprComponentsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Get.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsDaprComponents_List.json
*/
/**
- * Sample code: Get connected environment by connectedEnvironmentName.
+ * Sample code: List Dapr Components.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getConnectedEnvironmentByConnectedEnvironmentName(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironments()
- .getByResourceGroupWithResponse("examplerg", "examplekenv", com.azure.core.util.Context.NONE);
+ public static void listDaprComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsDaprComponents()
+ .list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironments_List
+### ConnectedEnvironmentsDaprComponents_ListSecrets
```java
/**
- * Samples for ConnectedEnvironments List.
+ * Samples for ConnectedEnvironmentsDaprComponents ListSecrets.
*/
-public final class ConnectedEnvironmentsListSamples {
+public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsDaprComponents_ListSecrets.json
*/
/**
- * Sample code: List connected environments by subscription.
+ * Sample code: List Container Apps Secrets.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listConnectedEnvironmentsBySubscription(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironments().list(com.azure.core.util.Context.NONE);
+ public static void
+ listContainerAppsSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsDaprComponents()
+ .listSecretsWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironments_ListByResourceGroup
+### ConnectedEnvironmentsStorages_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcontainers.models.AccessMode;
+import com.azure.resourcemanager.appcontainers.models.AzureFileProperties;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorageProperties;
+
/**
- * Samples for ConnectedEnvironments ListByResourceGroup.
+ * Samples for ConnectedEnvironmentsStorages CreateOrUpdate.
*/
-public final class ConnectedEnvironmentsListByResourceGroupSamples {
+public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ConnectedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
- * Sample code: List environments by resource group.
+ * Sample code: Create or update environments storage.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- listEnvironmentsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironments().listByResourceGroup("examplerg", com.azure.core.util.Context.NONE);
+ createOrUpdateEnvironmentsStorage(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsStorages()
+ .define("jlaw-demo1")
+ .withExistingConnectedEnvironment("examplerg", "env")
+ .withProperties(new ConnectedEnvironmentStorageProperties()
+ .withAzureFile(new AzureFileProperties().withAccountName("account1")
+ .withAccountKey("fakeTokenPlaceholder")
+ .withAccessMode(AccessMode.READ_ONLY)
+ .withShareName("share1")))
+ .create();
}
}
```
-### ConnectedEnvironments_Update
+### ConnectedEnvironmentsStorages_Delete
```java
/**
- * Samples for ConnectedEnvironments Update.
+ * Samples for ConnectedEnvironmentsStorages Delete.
*/
-public final class ConnectedEnvironmentsUpdateSamples {
+public final class ConnectedEnvironmentsStoragesDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Patch.
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ConnectedEnvironmentsStorages_Delete.
* json
*/
/**
- * Sample code: Patch Managed Environment.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- patchManagedEnvironment(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironments().updateWithResponse("examplerg", "testenv", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ConnectedEnvironmentsCertificates_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
-
-/**
- * Samples for ConnectedEnvironmentsCertificates CreateOrUpdate.
- */
-public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsCertificate_CreateOrUpdate.json
- */
- /**
- * Sample code: Create or Update Certificate.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- createOrUpdateCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates()
- .define("certificate-firendly-name")
- .withRegion("East US")
- .withExistingConnectedEnvironment("examplerg", "testcontainerenv")
- .withProperties(
- new CertificateProperties().withPassword("fakeTokenPlaceholder").withValue("Y2VydA==".getBytes()))
- .create();
- }
-}
-```
-
-### ConnectedEnvironmentsCertificates_Delete
-
-```java
-/**
- * Samples for ConnectedEnvironmentsCertificates Delete.
- */
-public final class ConnectedEnvironmentsCertificatesDeleteSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsCertificate_Delete.json
- */
- /**
- * Sample code: Delete Certificate.
+ * Sample code: List environments storages by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates()
- .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- com.azure.core.util.Context.NONE);
+ public static void listEnvironmentsStoragesBySubscription(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsStorages()
+ .deleteWithResponse("examplerg", "env", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsCertificates_Get
+### ConnectedEnvironmentsStorages_Get
```java
/**
- * Samples for ConnectedEnvironmentsCertificates Get.
+ * Samples for ConnectedEnvironmentsStorages Get.
*/
-public final class ConnectedEnvironmentsCertificatesGetSamples {
+public final class ConnectedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsCertificate_Get.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ConnectedEnvironmentsStorages_Get.
+ * json
*/
/**
- * Sample code: Get Certificate.
+ * Sample code: get a environments storage properties by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates()
- .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- com.azure.core.util.Context.NONE);
+ public static void getAEnvironmentsStoragePropertiesBySubscription(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsStorages()
+ .getWithResponse("examplerg", "env", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsCertificates_List
+### ConnectedEnvironmentsStorages_List
```java
/**
- * Samples for ConnectedEnvironmentsCertificates List.
+ * Samples for ConnectedEnvironmentsStorages List.
*/
-public final class ConnectedEnvironmentsCertificatesListSamples {
+public final class ConnectedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ConnectedEnvironmentsStorages_List.
+ * json
*/
/**
- * Sample code: List Certificates by Connected Environment.
+ * Sample code: List environments storages by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listCertificatesByConnectedEnvironment(
+ public static void listEnvironmentsStoragesBySubscription(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates()
- .list("examplerg", "testcontainerenv", com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsStorages()
+ .listWithResponse("examplerg", "managedEnv", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsCertificates_Update
+### ContainerApps_CreateOrUpdate
```java
-import com.azure.resourcemanager.appcontainers.models.Certificate;
+import com.azure.resourcemanager.appcontainers.models.Action;
+import com.azure.resourcemanager.appcontainers.models.Affinity;
+import com.azure.resourcemanager.appcontainers.models.AppProtocol;
+import com.azure.resourcemanager.appcontainers.models.BindingType;
+import com.azure.resourcemanager.appcontainers.models.Configuration;
+import com.azure.resourcemanager.appcontainers.models.Container;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket;
+import com.azure.resourcemanager.appcontainers.models.ContainerResources;
+import com.azure.resourcemanager.appcontainers.models.CorsPolicy;
+import com.azure.resourcemanager.appcontainers.models.CustomDomain;
+import com.azure.resourcemanager.appcontainers.models.CustomScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Dapr;
+import com.azure.resourcemanager.appcontainers.models.Ingress;
+import com.azure.resourcemanager.appcontainers.models.IngressClientCertificateMode;
+import com.azure.resourcemanager.appcontainers.models.IngressPortMapping;
+import com.azure.resourcemanager.appcontainers.models.IngressStickySessions;
+import com.azure.resourcemanager.appcontainers.models.IngressTransportMethod;
+import com.azure.resourcemanager.appcontainers.models.InitContainer;
+import com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule;
+import com.azure.resourcemanager.appcontainers.models.LogLevel;
+import com.azure.resourcemanager.appcontainers.models.QueueScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Runtime;
+import com.azure.resourcemanager.appcontainers.models.RuntimeJava;
+import com.azure.resourcemanager.appcontainers.models.Scale;
+import com.azure.resourcemanager.appcontainers.models.ScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Service;
+import com.azure.resourcemanager.appcontainers.models.ServiceBind;
+import com.azure.resourcemanager.appcontainers.models.StorageType;
+import com.azure.resourcemanager.appcontainers.models.TcpScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
+import com.azure.resourcemanager.appcontainers.models.Type;
+import com.azure.resourcemanager.appcontainers.models.Volume;
+import com.azure.resourcemanager.appcontainers.models.VolumeMount;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for ConnectedEnvironmentsCertificates Update.
- */
-public final class ConnectedEnvironmentsCertificatesUpdateSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsCertificates_Patch.json
- */
- /**
- * Sample code: Patch Certificate.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- Certificate resource = manager.connectedEnvironmentsCertificates()
- .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
-### ConnectedEnvironmentsDaprComponents_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.appcontainers.models.DaprComponentServiceBinding;
-import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
-import com.azure.resourcemanager.appcontainers.models.DaprServiceBindMetadata;
-import com.azure.resourcemanager.appcontainers.models.Secret;
-import java.util.Arrays;
-
-/**
- * Samples for ConnectedEnvironmentsDaprComponents CreateOrUpdate.
+ * Samples for ContainerApps CreateOrUpdate.
*/
-public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
+public final class ContainerAppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_CreateOrUpdate.json
*/
/**
- * Sample code: Create or update dapr component.
+ * Sample code: Create or Update Container App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- createOrUpdateDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents()
- .define("reddog")
- .withExistingConnectedEnvironment("examplerg", "myenvironment")
- .withComponentType("state.azure.cosmosdb")
- .withVersion("v1")
- .withIgnoreErrors(false)
- .withInitTimeout("50s")
- .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
- .withMetadata(Arrays.asList(new DaprMetadata().withName("url").withValue(""),
- new DaprMetadata().withName("database").withValue("itemsDB"),
- new DaprMetadata().withName("collection").withValue("items"),
- new DaprMetadata().withName("masterkey").withSecretRef("fakeTokenPlaceholder")))
- .withScopes(Arrays.asList("container-app-1", "container-app-2"))
- .withServiceComponentBind(Arrays.asList(new DaprComponentServiceBinding().withName("statestore")
- .withServiceId(
- "/subscriptions/9f7371f1-b593-4c3c-84e2-9167806ad358/resourceGroups/ca-syn2-group/providers/Microsoft.App/containerapps/cappredis")
- .withMetadata(new DaprServiceBindMetadata().withName("daprcomponentBind").withValue("redis-bind"))))
- .create();
- }
-}
-```
-
-### ConnectedEnvironmentsDaprComponents_Delete
-
-```java
-/**
- * Samples for ConnectedEnvironmentsDaprComponents Delete.
- */
-public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_Delete.json
- */
- /**
- * Sample code: Delete dapr component.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void deleteDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents()
- .deleteWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ConnectedEnvironmentsDaprComponents_Get
-
-```java
-/**
- * Samples for ConnectedEnvironmentsDaprComponents Get.
- */
-public final class ConnectedEnvironmentsDaprComponentsGetSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_Get.json
- */
- /**
- * Sample code: Get Dapr Component.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void getDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents()
- .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ConnectedEnvironmentsDaprComponents_List
-
-```java
-/**
- * Samples for ConnectedEnvironmentsDaprComponents List.
- */
-public final class ConnectedEnvironmentsDaprComponentsListSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_List.json
- */
- /**
- * Sample code: List Dapr Components.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void listDaprComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents()
- .list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ConnectedEnvironmentsDaprComponents_ListSecrets
-
-```java
-/**
- * Samples for ConnectedEnvironmentsDaprComponents ListSecrets.
- */
-public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_ListSecrets.json
- */
- /**
- * Sample code: List Container Apps Secrets.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listContainerAppsSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents()
- .listSecretsWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ConnectedEnvironmentsStorages_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.appcontainers.models.AccessMode;
-import com.azure.resourcemanager.appcontainers.models.AzureFileProperties;
-import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorageProperties;
-
-/**
- * Samples for ConnectedEnvironmentsStorages CreateOrUpdate.
- */
-public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsStorages_CreateOrUpdate.json
- */
- /**
- * Sample code: Create or update environments storage.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- createOrUpdateEnvironmentsStorage(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsStorages()
- .define("jlaw-demo1")
- .withExistingConnectedEnvironment("examplerg", "env")
- .withProperties(new ConnectedEnvironmentStorageProperties()
- .withAzureFile(new AzureFileProperties().withAccountName("account1")
- .withAccountKey("fakeTokenPlaceholder")
- .withAccessMode(AccessMode.READ_ONLY)
- .withShareName("share1")))
- .create();
- }
-}
-```
-
-### ConnectedEnvironmentsStorages_Delete
-
-```java
-/**
- * Samples for ConnectedEnvironmentsStorages Delete.
- */
-public final class ConnectedEnvironmentsStoragesDeleteSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsStorages_Delete.json
- */
- /**
- * Sample code: List environments storages by subscription.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void listEnvironmentsStoragesBySubscription(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsStorages()
- .deleteWithResponse("examplerg", "env", "jlaw-demo1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ConnectedEnvironmentsStorages_Get
-
-```java
-/**
- * Samples for ConnectedEnvironmentsStorages Get.
- */
-public final class ConnectedEnvironmentsStoragesGetSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsStorages_Get.json
- */
- /**
- * Sample code: get a environments storage properties by subscription.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void getAEnvironmentsStoragePropertiesBySubscription(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsStorages()
- .getWithResponse("examplerg", "env", "jlaw-demo1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ConnectedEnvironmentsStorages_List
-
-```java
-/**
- * Samples for ConnectedEnvironmentsStorages List.
- */
-public final class ConnectedEnvironmentsStoragesListSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ConnectedEnvironmentsStorages_List.json
- */
- /**
- * Sample code: List environments storages by subscription.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void listEnvironmentsStoragesBySubscription(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsStorages()
- .listWithResponse("examplerg", "managedEnv", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.appcontainers.models.Action;
-import com.azure.resourcemanager.appcontainers.models.ActiveRevisionsMode;
-import com.azure.resourcemanager.appcontainers.models.Affinity;
-import com.azure.resourcemanager.appcontainers.models.AppProtocol;
-import com.azure.resourcemanager.appcontainers.models.BindingType;
-import com.azure.resourcemanager.appcontainers.models.Configuration;
-import com.azure.resourcemanager.appcontainers.models.Container;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppPropertiesPatchingConfiguration;
-import com.azure.resourcemanager.appcontainers.models.ContainerResources;
-import com.azure.resourcemanager.appcontainers.models.CorsPolicy;
-import com.azure.resourcemanager.appcontainers.models.CustomDomain;
-import com.azure.resourcemanager.appcontainers.models.CustomScaleRule;
-import com.azure.resourcemanager.appcontainers.models.Dapr;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
-import com.azure.resourcemanager.appcontainers.models.IdentitySettings;
-import com.azure.resourcemanager.appcontainers.models.IdentitySettingsLifeCycle;
-import com.azure.resourcemanager.appcontainers.models.ImageType;
-import com.azure.resourcemanager.appcontainers.models.Ingress;
-import com.azure.resourcemanager.appcontainers.models.IngressClientCertificateMode;
-import com.azure.resourcemanager.appcontainers.models.IngressPortMapping;
-import com.azure.resourcemanager.appcontainers.models.IngressStickySessions;
-import com.azure.resourcemanager.appcontainers.models.IngressTransportMethod;
-import com.azure.resourcemanager.appcontainers.models.InitContainer;
-import com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule;
-import com.azure.resourcemanager.appcontainers.models.Kind;
-import com.azure.resourcemanager.appcontainers.models.Level;
-import com.azure.resourcemanager.appcontainers.models.LogLevel;
-import com.azure.resourcemanager.appcontainers.models.LoggerSetting;
-import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.appcontainers.models.PatchingMode;
-import com.azure.resourcemanager.appcontainers.models.QueueScaleRule;
-import com.azure.resourcemanager.appcontainers.models.Runtime;
-import com.azure.resourcemanager.appcontainers.models.RuntimeDotnet;
-import com.azure.resourcemanager.appcontainers.models.RuntimeJava;
-import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgent;
-import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgentLogging;
-import com.azure.resourcemanager.appcontainers.models.Scale;
-import com.azure.resourcemanager.appcontainers.models.ScaleRule;
-import com.azure.resourcemanager.appcontainers.models.Service;
-import com.azure.resourcemanager.appcontainers.models.ServiceBind;
-import com.azure.resourcemanager.appcontainers.models.StorageType;
-import com.azure.resourcemanager.appcontainers.models.TcpScaleRule;
-import com.azure.resourcemanager.appcontainers.models.Template;
-import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
-import com.azure.resourcemanager.appcontainers.models.Type;
-import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity;
-import com.azure.resourcemanager.appcontainers.models.Volume;
-import com.azure.resourcemanager.appcontainers.models.VolumeMount;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for ContainerApps CreateOrUpdate.
- */
-public final class ContainerAppsCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerApps_SourceToCloudApp_CreateOrUpdate.json
- */
- /**
- * Sample code: Create or Update SourceToCloud App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- createOrUpdateSourceToCloudApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ createOrUpdateContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager.containerApps()
- .define("testcontainerApp0")
+ .define("testcontainerapp0")
.withRegion("East US")
.withExistingResourceGroup("rg")
.withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
.withWorkloadProfileName("My-GP-01")
- .withPatchingConfiguration(
- new ContainerAppPropertiesPatchingConfiguration().withPatchingMode(PatchingMode.AUTOMATIC))
.withConfiguration(
new Configuration()
.withIngress(new Ingress().withExternal(true)
.withTargetPort(3000)
.withTraffic(Arrays.asList(new TrafficWeight()
- .withRevisionName("testcontainerApp0-ab1234")
+ .withRevisionName("testcontainerapp0-ab1234")
.withWeight(100)
.withLabel("production")))
.withCustomDomains(Arrays.asList(new CustomDomain()
@@ -1718,18 +1093,18 @@ public final class ContainerAppsCreateOrUpdateSamples {
.withHttpMaxRequestSize(10)
.withLogLevel(LogLevel.DEBUG)
.withEnableApiLogging(true))
+ .withRuntime(new Runtime().withJava(new RuntimeJava().withEnableMetrics(true)))
.withMaxInactiveRevisions(10)
.withService(new Service().withType("redis")))
.withTemplate(new Template()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
+ .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerapp0:v4")
.withName("testinitcontainerApp0")
.withCommand(Arrays.asList("/bin/sh"))
.withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
+ .withResources(new ContainerResources().withCpu(0.5D).withMemory("1Gi"))))
.withContainers(Arrays.asList(new Container()
- .withImage("")
- .withImageType(ImageType.CLOUD_BUILD)
- .withName("testcontainerApp0")
+ .withImage("repo/testcontainerapp0:v1")
+ .withName("testcontainerapp0")
.withVolumeMounts(
Arrays.asList(
new VolumeMount().withVolumeName("azurefile")
@@ -1746,3555 +1121,2147 @@ public final class ContainerAppsCreateOrUpdateSamples {
.withValue("Awesome")))
.withPath("/health")
.withPort(8080)).withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
- .withScale(
- new Scale().withMinReplicas(1)
- .withMaxReplicas(5)
- .withCooldownPeriod(350)
- .withPollingInterval(35)
- .withRules(Arrays.asList(new ScaleRule().withName("httpscalingrule")
- .withCustom(new CustomScaleRule().withType("http")
- .withMetadata(mapOf("concurrentRequests", "50"))))))
+ .withScale(new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withCooldownPeriod(350)
+ .withPollingInterval(35)
+ .withRules(Arrays.asList(
+ new ScaleRule().withName("httpscalingrule")
+ .withCustom(
+ new CustomScaleRule().withType("http").withMetadata(mapOf("concurrentRequests", "50"))),
+ new ScaleRule().withName("servicebus")
+ .withCustom(new CustomScaleRule().withType("azure-servicebus")
+ .withMetadata(
+ mapOf("messageCount", "5", "namespace", "mynamespace", "queueName", "myqueue"))
+ .withIdentity(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")),
+ new ScaleRule().withName("azure-queue")
+ .withAzureQueue(new QueueScaleRule().withAccountName("account1")
+ .withQueueName("queue1")
+ .withQueueLength(1)
+ .withIdentity("system")))))
.withVolumes(Arrays.asList(
new Volume().withName("azurefile")
- .withStorageType(StorageType.AZURE_FILE)
- .withStorageName("storage"),
- new Volume().withName("nfsazurefile")
- .withStorageType(StorageType.NFS_AZURE_FILE)
- .withStorageName("nfsStorage")))
- .withServiceBinds(Arrays.asList(new ServiceBind().withServiceId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService")
- .withName("redisService")
- .withClientType("dotnet")
- .withCustomizedKeys(mapOf("DesiredKey", "fakeTokenPlaceholder")))))
- .create();
- }
-
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerApps_CreateOrUpdate_ConnectedEnvironment.json
- */
- /**
- * Sample code: Create or Update App On A Connected Environment.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void createOrUpdateAppOnAConnectedEnvironment(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps()
- .define("testcontainerApp0")
- .withRegion("East US")
- .withExistingResourceGroup("rg")
- .withExtendedLocation(new ExtendedLocation().withName(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withEnvironmentId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube")
- .withConfiguration(
- new Configuration()
- .withIngress(new Ingress().withExternal(true)
- .withTargetPort(3000)
- .withTraffic(Arrays.asList(new TrafficWeight()
- .withRevisionName("testcontainerApp0-ab1234")
- .withWeight(100)
- .withLabel("production")))
- .withCustomDomains(Arrays.asList(new CustomDomain()
- .withName("www.my-name.com")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
- new CustomDomain().withName("www.my-other-name.com")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
- .withIpSecurityRestrictions(
- Arrays
- .asList(
- new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
- .withDescription(
- "Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/32")
- .withAction(Action.ALLOW),
- new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
- .withDescription(
- "Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/8")
- .withAction(Action.ALLOW)))
- .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY))
- .withClientCertificateMode(IngressClientCertificateMode.ACCEPT)
- .withCorsPolicy(new CorsPolicy()
- .withAllowedOrigins(Arrays.asList("https://a.test.com", "https://b.test.com"))
- .withAllowedMethods(Arrays.asList("GET", "POST"))
- .withAllowedHeaders(Arrays.asList("HEADER1", "HEADER2"))
- .withExposeHeaders(Arrays.asList("HEADER3", "HEADER4"))
- .withMaxAge(1234)
- .withAllowCredentials(true))
- .withAdditionalPortMappings(Arrays.asList(
- new IngressPortMapping().withExternal(true).withTargetPort(1234),
- new IngressPortMapping().withExternal(false).withTargetPort(2345).withExposedPort(3456))))
- .withDapr(new Dapr()
- .withEnabled(true)
- .withAppProtocol(AppProtocol.HTTP)
- .withAppPort(3000)
- .withHttpReadBufferSize(30)
- .withHttpMaxRequestSize(10)
- .withLogLevel(LogLevel.DEBUG)
- .withEnableApiLogging(true))
- .withRuntime(new Runtime().withJava(new RuntimeJava().withEnableMetrics(true)
- .withJavaAgent(new RuntimeJavaAgent().withEnabled(true)
- .withLogging(new RuntimeJavaAgentLogging().withLoggerSettings(Arrays.asList(
- new LoggerSetting().withLogger("org.springframework.boot").withLevel(Level.DEBUG))))))
- .withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(true)))
- .withMaxInactiveRevisions(10))
- .withTemplate(new Template()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
- .withName("testinitcontainerApp0")
- .withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(new Container()
- .withImage("repo/testcontainerApp0:v1")
- .withName("testcontainerApp0")
- .withProbes(
- Arrays.asList(new ContainerAppProbe().withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(
- Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
- .withValue("Awesome")))
- .withPath("/health")
- .withPort(8080)).withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
- .withScale(
- new Scale().withMinReplicas(1)
- .withMaxReplicas(5)
- .withCooldownPeriod(350)
- .withPollingInterval(35)
- .withRules(Arrays.asList(new ScaleRule().withName("httpscalingrule")
- .withCustom(new CustomScaleRule().withType("http")
- .withMetadata(mapOf("concurrentRequests", "50")))))))
- .create();
- }
-
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_CreateOrUpdate
- * .json
- */
- /**
- * Sample code: Create or Update Container App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- createOrUpdateContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps()
- .define("testcontainerApp0")
- .withRegion("East US")
- .withExistingResourceGroup("rg")
- .withIdentity(new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity",
- new UserAssignedIdentity())))
- .withEnvironmentId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withWorkloadProfileName("My-GP-01")
- .withConfiguration(
- new Configuration()
- .withIngress(new Ingress().withExternal(true)
- .withTargetPort(3000)
- .withTraffic(Arrays.asList(new TrafficWeight()
- .withRevisionName("testcontainerApp0-ab1234")
- .withWeight(100)
- .withLabel("production")))
- .withCustomDomains(Arrays.asList(new CustomDomain()
- .withName("www.my-name.com")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
- new CustomDomain().withName("www.my-other-name.com")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
- .withIpSecurityRestrictions(
- Arrays
- .asList(
- new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
- .withDescription(
- "Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/32")
- .withAction(Action.ALLOW),
- new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
- .withDescription(
- "Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/8")
- .withAction(Action.ALLOW)))
- .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY))
- .withClientCertificateMode(IngressClientCertificateMode.ACCEPT)
- .withCorsPolicy(new CorsPolicy()
- .withAllowedOrigins(Arrays.asList("https://a.test.com", "https://b.test.com"))
- .withAllowedMethods(Arrays.asList("GET", "POST"))
- .withAllowedHeaders(Arrays.asList("HEADER1", "HEADER2"))
- .withExposeHeaders(Arrays.asList("HEADER3", "HEADER4"))
- .withMaxAge(1234)
- .withAllowCredentials(true))
- .withAdditionalPortMappings(Arrays.asList(
- new IngressPortMapping().withExternal(true).withTargetPort(1234),
- new IngressPortMapping().withExternal(false).withTargetPort(2345).withExposedPort(3456))))
- .withDapr(new Dapr()
- .withEnabled(true)
- .withAppProtocol(AppProtocol.HTTP)
- .withAppPort(3000)
- .withHttpReadBufferSize(30)
- .withHttpMaxRequestSize(10)
- .withLogLevel(LogLevel.DEBUG)
- .withEnableApiLogging(true))
- .withRuntime(new Runtime().withJava(new RuntimeJava()
- .withEnableMetrics(true)
- .withJavaAgent(new RuntimeJavaAgent()
- .withEnabled(true)
- .withLogging(new RuntimeJavaAgentLogging().withLoggerSettings(
- Arrays.asList(new LoggerSetting().withLogger("org.springframework.boot")
- .withLevel(Level.DEBUG))))))
- .withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(true)))
- .withMaxInactiveRevisions(10)
- .withService(new Service().withType("redis"))
- .withIdentitySettings(Arrays.asList(new IdentitySettings().withIdentity(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")
- .withLifecycle(IdentitySettingsLifeCycle.ALL),
- new IdentitySettings().withIdentity("system").withLifecycle(IdentitySettingsLifeCycle.INIT))))
- .withTemplate(new Template()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
- .withName("testinitcontainerApp0")
- .withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(new Container()
- .withImage("repo/testcontainerApp0:v1")
- .withName("testcontainerApp0")
- .withVolumeMounts(
- Arrays.asList(
- new VolumeMount().withVolumeName("azurefile")
- .withMountPath("/mnt/path1")
- .withSubPath("subPath1"),
- new VolumeMount()
- .withVolumeName("nfsazurefile")
- .withMountPath("/mnt/path2")
- .withSubPath("subPath2")))
- .withProbes(
- Arrays.asList(new ContainerAppProbe().withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(
- Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
- .withValue("Awesome")))
- .withPath("/health")
- .withPort(8080)).withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
- .withScale(new Scale().withMinReplicas(1)
- .withMaxReplicas(5)
- .withCooldownPeriod(350)
- .withPollingInterval(35)
- .withRules(Arrays.asList(
- new ScaleRule().withName("httpscalingrule")
- .withCustom(
- new CustomScaleRule().withType("http").withMetadata(mapOf("concurrentRequests", "50"))),
- new ScaleRule().withName("servicebus")
- .withCustom(new CustomScaleRule().withType("azure-servicebus")
- .withMetadata(
- mapOf("messageCount", "5", "namespace", "mynamespace", "queueName", "myqueue"))
- .withIdentity(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")),
- new ScaleRule().withName("azure-queue")
- .withAzureQueue(new QueueScaleRule().withAccountName("account1")
- .withQueueName("queue1")
- .withQueueLength(1)
- .withIdentity("system")))))
- .withVolumes(Arrays.asList(
- new Volume().withName("azurefile")
- .withStorageType(StorageType.AZURE_FILE)
- .withStorageName("storage"),
- new Volume().withName("nfsazurefile")
- .withStorageType(StorageType.NFS_AZURE_FILE)
- .withStorageName("nfsStorage")))
- .withServiceBinds(Arrays.asList(new ServiceBind().withServiceId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService")
- .withName("redisService")
- .withClientType("dotnet")
- .withCustomizedKeys(mapOf("DesiredKey", "fakeTokenPlaceholder")))))
- .create();
- }
-
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerApps_TcpApp_CreateOrUpdate.json
- */
- /**
- * Sample code: Create or Update Tcp App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void createOrUpdateTcpApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps()
- .define("testcontainerAppTcp")
- .withRegion("East US")
- .withExistingResourceGroup("rg")
- .withEnvironmentId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withConfiguration(
- new Configuration().withIngress(new Ingress().withExternal(true)
- .withTargetPort(3000)
- .withExposedPort(4000)
- .withTransport(IngressTransportMethod.TCP)
- .withTraffic(Arrays
- .asList(new TrafficWeight().withRevisionName("testcontainerAppTcp-ab1234").withWeight(100)))))
- .withTemplate(new Template()
- .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppTcp:v1")
- .withName("testcontainerAppTcp")
- .withProbes(Arrays.asList(new ContainerAppProbe().withInitialDelaySeconds(3)
- .withPeriodSeconds(3)
- .withTcpSocket(new ContainerAppProbeTcpSocket().withPort(8080))
- .withType(Type.LIVENESS)))))
- .withScale(new Scale().withMinReplicas(1)
- .withMaxReplicas(5)
- .withCooldownPeriod(350)
- .withPollingInterval(35)
- .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
- .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
- .create();
- }
-
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerApps_Kind_CreateOrUpdate.json
- */
- /**
- * Sample code: Create or Update App Kind.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void createOrUpdateAppKind(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps()
- .define("testcontainerAppKind")
- .withRegion("East Us")
- .withExistingResourceGroup("rg")
- .withManagedBy(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Web/sites/testcontainerAppKind")
- .withKind(Kind.WORKFLOWAPP)
- .withManagedEnvironmentId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/testmanagedenv3")
- .withConfiguration(new Configuration().withActiveRevisionsMode(ActiveRevisionsMode.SINGLE)
- .withIngress(new Ingress().withExternal(true).withTargetPort(80).withAllowInsecure(true)))
- .withTemplate(new Template()
- .withContainers(Arrays.asList(new Container().withImage("default/logicapps-base:latest")
- .withName("logicapps-container")
- .withResources(new ContainerResources().withCpu(1.0D).withMemory("2.0Gi"))))
- .withScale(
- new Scale().withMinReplicas(1).withMaxReplicas(30).withCooldownPeriod(350).withPollingInterval(35)))
- .create();
- }
-
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerApps_ManagedBy_CreateOrUpdate.json
- */
- /**
- * Sample code: Create or Update ManagedBy App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- createOrUpdateManagedByApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps()
- .define("testcontainerAppManagedBy")
- .withRegion("East US")
- .withExistingResourceGroup("rg")
- .withManagedBy(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/springapp")
- .withEnvironmentId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withConfiguration(new Configuration().withIngress(new Ingress().withExternal(true)
- .withTargetPort(3000)
- .withExposedPort(4000)
- .withTransport(IngressTransportMethod.TCP)
- .withTraffic(Arrays
- .asList(new TrafficWeight().withRevisionName("testcontainerAppManagedBy-ab1234").withWeight(100)))))
- .withTemplate(new Template()
- .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppManagedBy:v1")
- .withName("testcontainerAppManagedBy")
- .withProbes(Arrays.asList(new ContainerAppProbe().withInitialDelaySeconds(3)
- .withPeriodSeconds(3)
- .withTcpSocket(new ContainerAppProbeTcpSocket().withPort(8080))
- .withType(Type.LIVENESS)))))
- .withScale(new Scale().withMinReplicas(1)
- .withMaxReplicas(5)
- .withCooldownPeriod(350)
- .withPollingInterval(35)
- .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
- .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
- .create();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
-### ContainerApps_Delete
-
-```java
-/**
- * Samples for ContainerApps Delete.
- */
-public final class ContainerAppsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Delete.json
- */
- /**
- * Sample code: Delete Container App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void deleteContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().delete("rg", "testWorkerApp0", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_GetAuthToken
-
-```java
-/**
- * Samples for ContainerApps GetAuthToken.
- */
-public final class ContainerAppsGetAuthTokenSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_GetAuthToken.
- * json
- */
- /**
- * Sample code: Get Container App Auth Token.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- getContainerAppAuthToken(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().getAuthTokenWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_GetByResourceGroup
-
-```java
-/**
- * Samples for ContainerApps GetByResourceGroup.
- */
-public final class ContainerAppsGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Get.json
- */
- /**
- * Sample code: Get Container App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void getContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps()
- .getByResourceGroupWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_List
-
-```java
-/**
- * Samples for ContainerApps List.
- */
-public final class ContainerAppsListSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerApps_ListBySubscription.json
- */
- /**
- * Sample code: List Container Apps by subscription.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listContainerAppsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_ListByResourceGroup
-
-```java
-/**
- * Samples for ContainerApps ListByResourceGroup.
- */
-public final class ContainerAppsListByResourceGroupSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerApps_ListByResourceGroup.json
- */
- /**
- * Sample code: List Container Apps by resource group.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listContainerAppsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_ListCustomHostnameAnalysis
-
-```java
-/**
- * Samples for ContainerApps ListCustomHostnameAnalysis.
- */
-public final class ContainerAppsListCustomHostnameAnalysisSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerApps_ListCustomHostNameAnalysis.json
- */
- /**
- * Sample code: Analyze Custom Hostname.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void analyzeCustomHostname(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps()
- .listCustomHostnameAnalysisWithResponse("rg", "testcontainerApp0", "my.name.corp",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_ListSecrets
-
-```java
-/**
- * Samples for ContainerApps ListSecrets.
- */
-public final class ContainerAppsListSecretsSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_ListSecrets.
- * json
- */
- /**
- * Sample code: List Container Apps Secrets.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listContainerAppsSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().listSecretsWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_Start
-
-```java
-/**
- * Samples for ContainerApps Start.
- */
-public final class ContainerAppsStartSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Start.json
- */
- /**
- * Sample code: Start Container App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void startContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().start("rg", "testWorkerApp0", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_Stop
-
-```java
-/**
- * Samples for ContainerApps Stop.
- */
-public final class ContainerAppsStopSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Stop.json
- */
- /**
- * Sample code: Stop Container App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void stopContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().stop("rg", "testWorkerApp0", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerApps_Update
-
-```java
-import com.azure.resourcemanager.appcontainers.models.Action;
-import com.azure.resourcemanager.appcontainers.models.Affinity;
-import com.azure.resourcemanager.appcontainers.models.AppProtocol;
-import com.azure.resourcemanager.appcontainers.models.BindingType;
-import com.azure.resourcemanager.appcontainers.models.Configuration;
-import com.azure.resourcemanager.appcontainers.models.Container;
-import com.azure.resourcemanager.appcontainers.models.ContainerApp;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
-import com.azure.resourcemanager.appcontainers.models.ContainerResources;
-import com.azure.resourcemanager.appcontainers.models.CustomDomain;
-import com.azure.resourcemanager.appcontainers.models.CustomScaleRule;
-import com.azure.resourcemanager.appcontainers.models.Dapr;
-import com.azure.resourcemanager.appcontainers.models.Ingress;
-import com.azure.resourcemanager.appcontainers.models.IngressStickySessions;
-import com.azure.resourcemanager.appcontainers.models.InitContainer;
-import com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule;
-import com.azure.resourcemanager.appcontainers.models.Level;
-import com.azure.resourcemanager.appcontainers.models.LogLevel;
-import com.azure.resourcemanager.appcontainers.models.LoggerSetting;
-import com.azure.resourcemanager.appcontainers.models.Runtime;
-import com.azure.resourcemanager.appcontainers.models.RuntimeDotnet;
-import com.azure.resourcemanager.appcontainers.models.RuntimeJava;
-import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgent;
-import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgentLogging;
-import com.azure.resourcemanager.appcontainers.models.Scale;
-import com.azure.resourcemanager.appcontainers.models.ScaleRule;
-import com.azure.resourcemanager.appcontainers.models.Service;
-import com.azure.resourcemanager.appcontainers.models.ServiceBind;
-import com.azure.resourcemanager.appcontainers.models.Template;
-import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
-import com.azure.resourcemanager.appcontainers.models.Type;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for ContainerApps Update.
- */
-public final class ContainerAppsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Patch.json
- */
- /**
- * Sample code: Patch Container App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void patchContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- ContainerApp resource = manager.containerApps()
- .getByResourceGroupWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withConfiguration(
- new Configuration()
- .withIngress(new Ingress().withExternal(true)
- .withTargetPort(3000)
- .withTraffic(Arrays.asList(new TrafficWeight()
- .withRevisionName("testcontainerApp0-ab1234")
- .withWeight(100)
- .withLabel("production")))
- .withCustomDomains(Arrays.asList(new CustomDomain()
- .withName("www.my-name.com")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
- new CustomDomain().withName("www.my-other-name.com")
- .withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
- .withIpSecurityRestrictions(
- Arrays
- .asList(
- new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
- .withDescription(
- "Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/32")
- .withAction(Action.ALLOW),
- new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
- .withDescription(
- "Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/8")
- .withAction(Action.ALLOW)))
- .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY)))
- .withDapr(new Dapr()
- .withEnabled(true)
- .withAppProtocol(AppProtocol.HTTP)
- .withAppPort(3000)
- .withHttpReadBufferSize(30)
- .withHttpMaxRequestSize(10)
- .withLogLevel(LogLevel.DEBUG)
- .withEnableApiLogging(true))
- .withRuntime(new Runtime().withJava(new RuntimeJava().withEnableMetrics(true)
- .withJavaAgent(new RuntimeJavaAgent().withEnabled(true)
- .withLogging(new RuntimeJavaAgentLogging().withLoggerSettings(Arrays.asList(
- new LoggerSetting().withLogger("org.springframework.boot").withLevel(Level.DEBUG))))))
- .withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(true)))
- .withMaxInactiveRevisions(10)
- .withService(new Service().withType("redis")))
- .withTemplate(new Template()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
- .withName("testinitcontainerApp0")
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(new Container()
- .withImage("repo/testcontainerApp0:v1")
- .withName("testcontainerApp0")
- .withProbes(
- Arrays.asList(new ContainerAppProbe().withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(
- Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
- .withValue("Awesome")))
- .withPath("/health")
- .withPort(8080)).withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
- .withScale(
- new Scale().withMinReplicas(1)
- .withMaxReplicas(5)
- .withCooldownPeriod(350)
- .withPollingInterval(35)
- .withRules(
- Arrays.asList(new ScaleRule().withName("httpscalingrule")
- .withCustom(new CustomScaleRule().withType("http")
- .withMetadata(mapOf("concurrentRequests", "50"))))))
- .withServiceBinds(Arrays.asList(new ServiceBind().withServiceId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service")
- .withName("service")
- .withClientType("dotnet")
- .withCustomizedKeys(mapOf("DesiredKey", "fakeTokenPlaceholder")))))
- .apply();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
-### ContainerAppsAuthConfigs_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.appcontainers.models.AppRegistration;
-import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
-import com.azure.resourcemanager.appcontainers.models.EncryptionSettings;
-import com.azure.resourcemanager.appcontainers.models.Facebook;
-import com.azure.resourcemanager.appcontainers.models.GlobalValidation;
-import com.azure.resourcemanager.appcontainers.models.IdentityProviders;
-import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActionV2;
-
-/**
- * Samples for ContainerAppsAuthConfigs CreateOrUpdate.
- */
-public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_CreateOrUpdate.
- * json
- */
- /**
- * Sample code: Create or Update Container App AuthConfig.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- createOrUpdateContainerAppAuthConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsAuthConfigs()
- .define("current")
- .withExistingContainerApp("workerapps-rg-xj", "testcanadacentral")
- .withPlatform(new AuthPlatform().withEnabled(true))
- .withGlobalValidation(
- new GlobalValidation().withUnauthenticatedClientAction(UnauthenticatedClientActionV2.ALLOW_ANONYMOUS))
- .withIdentityProviders(new IdentityProviders().withFacebook(new Facebook().withRegistration(
- new AppRegistration().withAppId("123").withAppSecretSettingName("fakeTokenPlaceholder"))))
- .withEncryptionSettings(
- new EncryptionSettings().withContainerAppAuthEncryptionSecretName("fakeTokenPlaceholder")
- .withContainerAppAuthSigningSecretName("fakeTokenPlaceholder"))
- .create();
- }
-}
-```
-
-### ContainerAppsAuthConfigs_Delete
-
-```java
-/**
- * Samples for ContainerAppsAuthConfigs Delete.
- */
-public final class ContainerAppsAuthConfigsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Delete.json
- */
- /**
- * Sample code: Delete Container App AuthConfig.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- deleteContainerAppAuthConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsAuthConfigs()
- .deleteWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsAuthConfigs_Get
-
-```java
-/**
- * Samples for ContainerAppsAuthConfigs Get.
- */
-public final class ContainerAppsAuthConfigsGetSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Get.json
- */
- /**
- * Sample code: Get Container App's AuthConfig.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- getContainerAppSAuthConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsAuthConfigs()
- .getWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsAuthConfigs_ListByContainerApp
-
-```java
-/**
- * Samples for ContainerAppsAuthConfigs ListByContainerApp.
- */
-public final class ContainerAppsAuthConfigsListByContainerAppSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_ListByContainer.
- * json
- */
- /**
- * Sample code: List Auth Configs by Container Apps.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listAuthConfigsByContainerApps(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsAuthConfigs()
- .listByContainerApp("workerapps-rg-xj", "testcanadacentral", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsBuilds_Delete
-
-```java
-/**
- * Samples for ContainerAppsBuilds Delete.
- */
-public final class ContainerAppsBuildsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Delete.
- * json
- */
- /**
- * Sample code: ContainerAppsBuilds_Delete_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- containerAppsBuildsDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsBuilds().delete("rg", "testCapp", "testBuild", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsBuilds_Get
-
-```java
-/**
- * Samples for ContainerAppsBuilds Get.
- */
-public final class ContainerAppsBuildsGetSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Get.json
- */
- /**
- * Sample code: ContainerAppsBuilds_Get_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- containerAppsBuildsGet0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsBuilds().getWithResponse("rg", "testCapp", "testBuild", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsBuildsByContainerApp_List
-
-```java
-/**
- * Samples for ContainerAppsBuildsByContainerApp List.
- */
-public final class ContainerAppsBuildsByContainerAppListSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerAppsBuilds_ListByContainerApp.json
- */
- /**
- * Sample code: ContainerAppsBuilds_ListByContainerApp_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void containerAppsBuildsListByContainerApp0(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsBuildsByContainerApps().list("rg", "testCapp", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsDiagnostics_GetDetector
-
-```java
-/**
- * Samples for ContainerAppsDiagnostics GetDetector.
- */
-public final class ContainerAppsDiagnosticsGetDetectorSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsDiagnostics_Get
- * .json
- */
- /**
- * Sample code: Get Container App's diagnostics info.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- getContainerAppSDiagnosticsInfo(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics()
- .getDetectorWithResponse("mikono-workerapp-test-rg", "mikono-capp-stage1", "cappcontainerappnetworkIO",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsDiagnostics_GetRevision
-
-```java
-/**
- * Samples for ContainerAppsDiagnostics GetRevision.
- */
-public final class ContainerAppsDiagnosticsGetRevisionSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Get.json
- */
- /**
- * Sample code: Get Container App's revision.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- getContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics()
- .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsDiagnostics_GetRoot
-
-```java
-/**
- * Samples for ContainerAppsDiagnostics GetRoot.
- */
-public final class ContainerAppsDiagnosticsGetRootSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Get.json
- */
- /**
- * Sample code: Get Container App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void getContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics()
- .getRootWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsDiagnostics_ListDetectors
-
-```java
-/**
- * Samples for ContainerAppsDiagnostics ListDetectors.
- */
-public final class ContainerAppsDiagnosticsListDetectorsSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerAppsDiagnostics_List.json
- */
- /**
- * Sample code: Get the list of available diagnostics for a given Container App.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void getTheListOfAvailableDiagnosticsForAGivenContainerApp(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics()
- .listDetectors("mikono-workerapp-test-rg", "mikono-capp-stage1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsDiagnostics_ListRevisions
-
-```java
-/**
- * Samples for ContainerAppsDiagnostics ListRevisions.
- */
-public final class ContainerAppsDiagnosticsListRevisionsSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_List.json
- */
- /**
- * Sample code: List Container App's revisions.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listContainerAppSRevisions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics()
- .listRevisions("rg", "testcontainerApp0", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsPatches_Apply
-
-```java
-/**
- * Samples for ContainerAppsPatches Apply.
- */
-public final class ContainerAppsPatchesApplySamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Apply.
- * json
- */
- /**
- * Sample code: ContainerAppsPatches_Apply_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- containerAppsPatchesApply0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsPatches().apply("rg", "test-app", "testPatch-25fe4b", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsPatches_Delete
-
-```java
-/**
- * Samples for ContainerAppsPatches Delete.
- */
-public final class ContainerAppsPatchesDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Delete.
- * json
- */
- /**
- * Sample code: ContainerAppsPatches_Delete_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- containerAppsPatchesDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsPatches().delete("rg", "test-app", "testPatch-25fe4b", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsPatches_Get
-
-```java
-/**
- * Samples for ContainerAppsPatches Get.
- */
-public final class ContainerAppsPatchesGetSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Get.
- * json
- */
- /**
- * Sample code: ContainerAppsPatches_Get_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- containerAppsPatchesGet0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsPatches()
- .getWithResponse("rg", "test-app", "testPatch-25fe4b", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsPatches_ListByContainerApp
-
-```java
-/**
- * Samples for ContainerAppsPatches ListByContainerApp.
- */
-public final class ContainerAppsPatchesListByContainerAppSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerAppsPatches_ListByContainerApp.json
- */
- /**
- * Sample code: ContainerAppsPatches_ListByContainerApp_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void containerAppsPatchesListByContainerApp0(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsPatches().listByContainerApp("rg", "test-app", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsPatches_SkipConfigure
-
-```java
-import com.azure.resourcemanager.appcontainers.models.PatchSkipConfig;
-
-/**
- * Samples for ContainerAppsPatches SkipConfigure.
- */
-public final class ContainerAppsPatchesSkipConfigureSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerAppsPatches_Skip_Configure.json
- */
- /**
- * Sample code: ContainerAppsPatches_Skip_Configure_0.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- containerAppsPatchesSkipConfigure0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsPatches()
- .skipConfigure("rg", "test-app", "testPatch-25fe4b", new PatchSkipConfig().withSkip(true),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsRevisionReplicas_GetReplica
-
-```java
-/**
- * Samples for ContainerAppsRevisionReplicas GetReplica.
- */
-public final class ContainerAppsRevisionReplicasGetReplicaSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_Get.json
- */
- /**
- * Sample code: Get Container App's revision replica.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- getContainerAppSRevisionReplica(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisionReplicas()
- .getReplicaWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09", "myapp--0wlqy09-5d9774cff-5wnd8",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsRevisionReplicas_ListReplicas
-
-```java
-/**
- * Samples for ContainerAppsRevisionReplicas ListReplicas.
- */
-public final class ContainerAppsRevisionReplicasListReplicasSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_List.json
- */
- /**
- * Sample code: List Container App's replicas.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listContainerAppSReplicas(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisionReplicas()
- .listReplicasWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsRevisions_ActivateRevision
-
-```java
-/**
- * Samples for ContainerAppsRevisions ActivateRevision.
- */
-public final class ContainerAppsRevisionsActivateRevisionSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Activate.json
- */
- /**
- * Sample code: Activate Container App's revision.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- activateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions()
- .activateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsRevisions_DeactivateRevision
-
-```java
-/**
- * Samples for ContainerAppsRevisions DeactivateRevision.
- */
-public final class ContainerAppsRevisionsDeactivateRevisionSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Deactivate.json
- */
- /**
- * Sample code: Deactivate Container App's revision.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- deactivateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions()
- .deactivateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsRevisions_GetRevision
-
-```java
-/**
- * Samples for ContainerAppsRevisions GetRevision.
- */
-public final class ContainerAppsRevisionsGetRevisionSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Get.json
- */
- /**
- * Sample code: Get Container App's revision.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- getContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions()
- .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsRevisions_ListRevisions
-
-```java
-/**
- * Samples for ContainerAppsRevisions ListRevisions.
- */
-public final class ContainerAppsRevisionsListRevisionsSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_List.json
- */
- /**
- * Sample code: List Container App's revisions.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listContainerAppSRevisions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions()
- .listRevisions("rg", "testcontainerApp0", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsRevisions_RestartRevision
-
-```java
-/**
- * Samples for ContainerAppsRevisions RestartRevision.
- */
-public final class ContainerAppsRevisionsRestartRevisionSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Restart.json
- */
- /**
- * Sample code: Restart Container App's revision.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- restartContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions()
- .restartRevisionWithResponse("rg", "testStaticSite0", "testcontainerApp0-pjxhsye",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsSessionPools_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.appcontainers.models.ContainerType;
-import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
-import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration;
-import com.azure.resourcemanager.appcontainers.models.ExecutionType;
-import com.azure.resourcemanager.appcontainers.models.PoolManagementType;
-import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
-import com.azure.resourcemanager.appcontainers.models.SessionContainer;
-import com.azure.resourcemanager.appcontainers.models.SessionContainerResources;
-import com.azure.resourcemanager.appcontainers.models.SessionIngress;
-import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
-import com.azure.resourcemanager.appcontainers.models.SessionNetworkStatus;
-import java.util.Arrays;
-
-/**
- * Samples for ContainerAppsSessionPools CreateOrUpdate.
- */
-public final class ContainerAppsSessionPoolsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_CreateOrUpdate.
- * json
- */
- /**
- * Sample code: Create or Update Session Pool.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- createOrUpdateSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSessionPools()
- .define("testsessionpool")
- .withRegion("East US")
- .withExistingResourceGroup("rg")
- .withEnvironmentId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withContainerType(ContainerType.CUSTOM_CONTAINER)
- .withPoolManagementType(PoolManagementType.DYNAMIC)
- .withScaleConfiguration(
- new ScaleConfiguration().withMaxConcurrentSessions(500).withReadySessionInstances(100))
- .withDynamicPoolConfiguration(
- new DynamicPoolConfiguration().withExecutionType(ExecutionType.TIMED).withCooldownPeriodInSeconds(600))
- .withCustomContainerTemplate(new CustomContainerTemplate()
- .withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
- .withName("testinitcontainer")
- .withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new SessionContainerResources().withCpu(0.25D).withMemory("0.5Gi"))))
- .withIngress(new SessionIngress().withTargetPort(80)))
- .withSessionNetworkConfiguration(
- new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
- .create();
- }
-}
-```
-
-### ContainerAppsSessionPools_Delete
-
-```java
-/**
- * Samples for ContainerAppsSessionPools Delete.
- */
-public final class ContainerAppsSessionPoolsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Delete.json
- */
- /**
- * Sample code: Delete Session Pool.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void deleteSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSessionPools().delete("rg", "testsessionpool", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsSessionPools_GetByResourceGroup
-
-```java
-/**
- * Samples for ContainerAppsSessionPools GetByResourceGroup.
- */
-public final class ContainerAppsSessionPoolsGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Get.json
- */
- /**
- * Sample code: Get Session Pool.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void getSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSessionPools()
- .getByResourceGroupWithResponse("rg", "testsessionpool", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsSessionPools_List
-
-```java
-/**
- * Samples for ContainerAppsSessionPools List.
- */
-public final class ContainerAppsSessionPoolsListSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * SessionPools_ListBySubscription.json
- */
- /**
- * Sample code: List Session Pools by subscription.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listSessionPoolsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSessionPools().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsSessionPools_ListByResourceGroup
-
-```java
-/**
- * Samples for ContainerAppsSessionPools ListByResourceGroup.
- */
-public final class ContainerAppsSessionPoolsListByResourceGroupSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * SessionPools_ListByResourceGroup.json
- */
- /**
- * Sample code: List Session Pools by resource group.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void
- listSessionPoolsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSessionPools().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ContainerAppsSessionPools_Update
-
-```java
-import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
-import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration;
-import com.azure.resourcemanager.appcontainers.models.ExecutionType;
-import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
-import com.azure.resourcemanager.appcontainers.models.SessionContainer;
-import com.azure.resourcemanager.appcontainers.models.SessionContainerResources;
-import com.azure.resourcemanager.appcontainers.models.SessionIngress;
-import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
-import com.azure.resourcemanager.appcontainers.models.SessionNetworkStatus;
-import com.azure.resourcemanager.appcontainers.models.SessionPool;
-import java.util.Arrays;
-
-/**
- * Samples for ContainerAppsSessionPools Update.
- */
-public final class ContainerAppsSessionPoolsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Patch.json
- */
- /**
- * Sample code: Update Session Pool.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void updateSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- SessionPool resource = manager.containerAppsSessionPools()
- .getByResourceGroupWithResponse("rg", "testsessionpool", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withScaleConfiguration(
- new ScaleConfiguration().withMaxConcurrentSessions(500).withReadySessionInstances(100))
- .withDynamicPoolConfiguration(
- new DynamicPoolConfiguration().withExecutionType(ExecutionType.TIMED).withCooldownPeriodInSeconds(600))
- .withCustomContainerTemplate(new CustomContainerTemplate()
- .withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
- .withName("testinitcontainer")
- .withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new SessionContainerResources().withCpu(0.25D).withMemory("0.5Gi"))))
- .withIngress(new SessionIngress().withTargetPort(80)))
- .withSessionNetworkConfiguration(
- new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
- .apply();
+ .withStorageType(StorageType.AZURE_FILE)
+ .withStorageName("storage"),
+ new Volume().withName("nfsazurefile")
+ .withStorageType(StorageType.NFS_AZURE_FILE)
+ .withStorageName("nfsStorage")))
+ .withServiceBinds(Arrays.asList(new ServiceBind().withServiceId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService")
+ .withName("redisService"))))
+ .create();
}
-}
-```
-
-### ContainerAppsSourceControls_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.appcontainers.models.AzureCredentials;
-import com.azure.resourcemanager.appcontainers.models.EnvironmentVariable;
-import com.azure.resourcemanager.appcontainers.models.GithubActionConfiguration;
-import com.azure.resourcemanager.appcontainers.models.RegistryInfo;
-import java.util.Arrays;
-/**
- * Samples for ContainerAppsSourceControls CreateOrUpdate.
- */
-public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * SourceControls_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_TcpApp_CreateOrUpdate.
+ * json
*/
/**
- * Sample code: Create or Update Container App SourceControl.
+ * Sample code: Create or Update Tcp App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateContainerAppSourceControl(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSourceControls()
- .define("current")
- .withExistingContainerApp("workerapps-rg-xj", "testcanadacentral")
- .withRepoUrl("https://github.com/xwang971/ghatest")
- .withBranch("master")
- .withGithubActionConfiguration(new GithubActionConfiguration()
- .withRegistryInfo(new RegistryInfo().withRegistryUrl("test-registry.azurecr.io")
- .withRegistryUsername("test-registry")
- .withRegistryPassword("fakeTokenPlaceholder"))
- .withAzureCredentials(new AzureCredentials().withClientId("")
- .withClientSecret("fakeTokenPlaceholder")
- .withTenantId("")
- .withKind("feaderated"))
- .withContextPath("./")
- .withDockerfilePath("./Dockerfile")
- .withGithubPersonalAccessToken("fakeTokenPlaceholder")
- .withImage("image/tag")
- .withBuildEnvironmentVariables(
- Arrays.asList(new EnvironmentVariable().withName("foo1").withValue("bar1"),
- new EnvironmentVariable().withName("foo2").withValue("bar2"))))
- .withXMsGithubAuxiliary("githubaccesstoken")
+ public static void createOrUpdateTcpApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps()
+ .define("testcontainerapptcp")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withConfiguration(
+ new Configuration().withIngress(new Ingress().withExternal(true)
+ .withTargetPort(3000)
+ .withExposedPort(4000)
+ .withTransport(IngressTransportMethod.TCP)
+ .withTraffic(Arrays
+ .asList(new TrafficWeight().withRevisionName("testcontainerapptcp-ab1234").withWeight(100)))))
+ .withTemplate(new Template()
+ .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerapptcp:v1")
+ .withName("testcontainerapptcp")
+ .withProbes(Arrays.asList(new ContainerAppProbe().withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withTcpSocket(new ContainerAppProbeTcpSocket().withPort(8080))
+ .withType(Type.LIVENESS)))))
+ .withScale(new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withCooldownPeriod(350)
+ .withPollingInterval(35)
+ .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
+ .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
.create();
}
-}
-```
-### ContainerAppsSourceControls_Delete
-
-```java
-/**
- * Samples for ContainerAppsSourceControls Delete.
- */
-public final class ContainerAppsSourceControlsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ContainerApps_ManagedBy_CreateOrUpdate.json
*/
/**
- * Sample code: Delete Container App SourceControl.
+ * Sample code: Create or Update ManagedBy App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- deleteContainerAppSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSourceControls()
- .delete("workerapps-rg-xj", "testcanadacentral", "current", "githubaccesstoken", false, false,
- com.azure.core.util.Context.NONE);
+ createOrUpdateManagedByApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps()
+ .define("testcontainerappmanagedby")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withManagedBy(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/springapp")
+ .withEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withConfiguration(new Configuration().withIngress(new Ingress().withExternal(true)
+ .withTargetPort(3000)
+ .withExposedPort(4000)
+ .withTransport(IngressTransportMethod.TCP)
+ .withTraffic(Arrays
+ .asList(new TrafficWeight().withRevisionName("testcontainerappmanagedby-ab1234").withWeight(100)))))
+ .withTemplate(new Template()
+ .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerappmanagedby:v1")
+ .withName("testcontainerappmanagedby")
+ .withProbes(Arrays.asList(new ContainerAppProbe().withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withTcpSocket(new ContainerAppProbeTcpSocket().withPort(8080))
+ .withType(Type.LIVENESS)))))
+ .withScale(new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withCooldownPeriod(350)
+ .withPollingInterval(35)
+ .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
+ .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### ContainerAppsSourceControls_Get
+### ContainerApps_Delete
```java
/**
- * Samples for ContainerAppsSourceControls Get.
+ * Samples for ContainerApps Delete.
*/
-public final class ContainerAppsSourceControlsGetSamples {
+public final class ContainerAppsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Delete.json
*/
/**
- * Sample code: Get Container App's SourceControl.
+ * Sample code: Delete Container App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- getContainerAppSSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSourceControls()
- .getWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
+ public static void deleteContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps().delete("rg", "testworkerapp0", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsSourceControls_ListByContainerApp
+### ContainerApps_GetAuthToken
```java
/**
- * Samples for ContainerAppsSourceControls ListByContainerApp.
+ * Samples for ContainerApps GetAuthToken.
*/
-public final class ContainerAppsSourceControlsListByContainerAppSamples {
+public final class ContainerAppsGetAuthTokenSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * SourceControls_ListByContainer.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_GetAuthToken.json
*/
/**
- * Sample code: List App's Source Controls.
+ * Sample code: Get Container App Auth Token.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listAppSSourceControls(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSourceControls()
- .listByContainerApp("workerapps-rg-xj", "testcanadacentral", com.azure.core.util.Context.NONE);
+ public static void
+ getContainerAppAuthToken(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps().getAuthTokenWithResponse("rg", "testcontainerapp0", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponentResiliencyPolicies_CreateOrUpdate
+### ContainerApps_GetByResourceGroup
```java
-import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration;
-import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyConfiguration;
-import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration;
-import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration;
-import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration;
-
/**
- * Samples for DaprComponentResiliencyPolicies CreateOrUpdate.
+ * Samples for ContainerApps GetByResourceGroup.
*/
-public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
+public final class ContainerAppsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Get.json
*/
/**
- * Sample code: Create or update dapr component resiliency policy with outbound policy only.
+ * Sample code: Get Container App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateDaprComponentResiliencyPolicyWithOutboundPolicyOnly(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies()
- .define("myresiliencypolicy")
- .withExistingDaprComponent("examplerg", "myenvironment", "mydaprcomponent")
- .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration()
- .withHttpRetryPolicy(new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(5)
- .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration()
- .withInitialDelayInMilliseconds(100)
- .withMaxIntervalInMilliseconds(30000)))
- .withTimeoutPolicy(
- new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(12))
- .withCircuitBreakerPolicy(
- new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(3)
- .withTimeoutInSeconds(20)
- .withIntervalInSeconds(60)))
- .create();
+ public static void getContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps()
+ .getByResourceGroupWithResponse("rg", "testcontainerapp0", com.azure.core.util.Context.NONE);
}
+}
+```
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprComponentResiliencyPolicy_CreateOrUpdate_AllOptions.json
- */
- /**
- * Sample code: Create or update dapr component resiliency policy with all options.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void createOrUpdateDaprComponentResiliencyPolicyWithAllOptions(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies()
- .define("myresiliencypolicy")
- .withExistingDaprComponent("examplerg", "myenvironment", "mydaprcomponent")
- .withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration()
- .withHttpRetryPolicy(new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(15)
- .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration()
- .withInitialDelayInMilliseconds(2000)
- .withMaxIntervalInMilliseconds(5500)))
- .withTimeoutPolicy(
- new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(30))
- .withCircuitBreakerPolicy(
- new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(5)
- .withTimeoutInSeconds(10)
- .withIntervalInSeconds(4)))
- .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration()
- .withHttpRetryPolicy(new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(5)
- .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration()
- .withInitialDelayInMilliseconds(100)
- .withMaxIntervalInMilliseconds(30000)))
- .withTimeoutPolicy(
- new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(12))
- .withCircuitBreakerPolicy(
- new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(3)
- .withTimeoutInSeconds(20)
- .withIntervalInSeconds(60)))
- .create();
- }
+### ContainerApps_List
+```java
+/**
+ * Samples for ContainerApps List.
+ */
+public final class ContainerAppsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListBySubscription.json
*/
/**
- * Sample code: Create or update dapr component resiliency policy with sparse options.
+ * Sample code: List Container Apps by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateDaprComponentResiliencyPolicyWithSparseOptions(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies()
- .define("myresiliencypolicy")
- .withExistingDaprComponent("examplerg", "myenvironment", "mydaprcomponent")
- .withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration()
- .withHttpRetryPolicy(new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(5)
- .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration()
- .withInitialDelayInMilliseconds(2000)
- .withMaxIntervalInMilliseconds(5500)))
- .withCircuitBreakerPolicy(
- new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(3)
- .withTimeoutInSeconds(20)))
- .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration().withTimeoutPolicy(
- new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(12)))
- .create();
+ public static void
+ listContainerAppsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps().list(com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponentResiliencyPolicies_Delete
+### ContainerApps_ListByResourceGroup
```java
/**
- * Samples for DaprComponentResiliencyPolicies Delete.
+ * Samples for ContainerApps ListByResourceGroup.
*/
-public final class DaprComponentResiliencyPoliciesDeleteSamples {
+public final class ContainerAppsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprComponentResiliencyPolicies_Delete.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListByResourceGroup.
+ * json
*/
/**
- * Sample code: Delete dapr component resiliency policy.
+ * Sample code: List Container Apps by resource group.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- deleteDaprComponentResiliencyPolicy(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies()
- .deleteWithResponse("examplerg", "myenvironment", "mydaprcomponent", "myresiliencypolicy",
- com.azure.core.util.Context.NONE);
+ listContainerAppsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponentResiliencyPolicies_Get
+### ContainerApps_ListCustomHostnameAnalysis
```java
/**
- * Samples for DaprComponentResiliencyPolicies Get.
+ * Samples for ContainerApps ListCustomHostnameAnalysis.
*/
-public final class DaprComponentResiliencyPoliciesGetSamples {
+public final class ContainerAppsListCustomHostnameAnalysisSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprComponentResiliencyPolicies_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * ContainerApps_ListCustomHostNameAnalysis.json
*/
/**
- * Sample code: Get Dapr component resiliency policy.
+ * Sample code: Analyze Custom Hostname.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- getDaprComponentResiliencyPolicy(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies()
- .getWithResponse("examplerg", "myenvironment", "mydaprcomponent", "myresiliencypolicy",
+ public static void analyzeCustomHostname(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps()
+ .listCustomHostnameAnalysisWithResponse("rg", "testcontainerapp0", "my.name.corp",
com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponentResiliencyPolicies_List
+### ContainerApps_ListSecrets
```java
/**
- * Samples for DaprComponentResiliencyPolicies List.
+ * Samples for ContainerApps ListSecrets.
*/
-public final class DaprComponentResiliencyPoliciesListSamples {
+public final class ContainerAppsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprComponentResiliencyPolicies_List.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListSecrets.json
*/
/**
- * Sample code: List Dapr component resiliency policies.
+ * Sample code: List Container Apps Secrets.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- listDaprComponentResiliencyPolicies(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies()
- .list("examplerg", "myenvironment", "mydaprcomponent", com.azure.core.util.Context.NONE);
+ listContainerAppsSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps().listSecretsWithResponse("rg", "testcontainerapp0", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponents_CreateOrUpdate
+### ContainerApps_Start
```java
-import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
-import com.azure.resourcemanager.appcontainers.models.DaprComponentServiceBinding;
-import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
-import com.azure.resourcemanager.appcontainers.models.DaprServiceBindMetadata;
-import com.azure.resourcemanager.appcontainers.models.Secret;
-import java.util.Arrays;
-
/**
- * Samples for DaprComponents CreateOrUpdate.
+ * Samples for ContainerApps Start.
*/
-public final class DaprComponentsCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprComponents_CreateOrUpdate_Secrets.json
- */
- /**
- * Sample code: Create or update dapr component with secrets.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void createOrUpdateDaprComponentWithSecrets(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents()
- .createOrUpdateWithResponse("examplerg", "myenvironment", "reddog",
- new DaprComponentInner().withComponentType("state.azure.cosmosdb")
- .withVersion("v1")
- .withIgnoreErrors(false)
- .withInitTimeout("50s")
- .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
- .withMetadata(Arrays.asList(new DaprMetadata().withName("url").withValue(""),
- new DaprMetadata().withName("database").withValue("itemsDB"),
- new DaprMetadata().withName("collection").withValue("items"),
- new DaprMetadata().withName("masterkey").withSecretRef("fakeTokenPlaceholder")))
- .withScopes(Arrays.asList("container-app-1", "container-app-2"))
- .withServiceComponentBind(Arrays.asList(new DaprComponentServiceBinding().withName("statestore")
- .withServiceId(
- "/subscriptions/9f7371f1-b593-4c3c-84e2-9167806ad358/resourceGroups/ca-syn2-group/providers/Microsoft.App/containerapps/cappredis")
- .withMetadata(
- new DaprServiceBindMetadata().withName("daprcomponentBind").withValue("redis-bind")))),
- com.azure.core.util.Context.NONE);
- }
-
+public final class ContainerAppsStartSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprComponents_CreateOrUpdate_SecretStoreComponent.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Start.json
*/
/**
- * Sample code: Create or update dapr component with secret store component.
+ * Sample code: Start Container App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateDaprComponentWithSecretStoreComponent(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents()
- .createOrUpdateWithResponse("examplerg", "myenvironment", "reddog",
- new DaprComponentInner().withComponentType("state.azure.cosmosdb")
- .withVersion("v1")
- .withIgnoreErrors(false)
- .withInitTimeout("50s")
- .withSecretStoreComponent("fakeTokenPlaceholder")
- .withMetadata(Arrays.asList(new DaprMetadata().withName("url").withValue(""),
- new DaprMetadata().withName("database").withValue("itemsDB"),
- new DaprMetadata().withName("collection").withValue("items"),
- new DaprMetadata().withName("masterkey").withSecretRef("fakeTokenPlaceholder")))
- .withScopes(Arrays.asList("container-app-1", "container-app-2"))
- .withServiceComponentBind(Arrays.asList(new DaprComponentServiceBinding().withName("statestore")
- .withServiceId(
- "/subscriptions/9f7371f1-b593-4c3c-84e2-9167806ad358/resourceGroups/ca-syn2-group/providers/Microsoft.App/containerapps/cappredis")
- .withMetadata(
- new DaprServiceBindMetadata().withName("daprcomponentBind").withValue("redis-bind")))),
- com.azure.core.util.Context.NONE);
+ public static void startContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps().start("rg", "testworkerapp0", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponents_Delete
+### ContainerApps_Stop
```java
/**
- * Samples for DaprComponents Delete.
+ * Samples for ContainerApps Stop.
*/
-public final class DaprComponentsDeleteSamples {
+public final class ContainerAppsStopSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Delete.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Stop.json
*/
/**
- * Sample code: Delete dapr component.
+ * Sample code: Stop Container App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents()
- .deleteWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
+ public static void stopContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps().stop("rg", "testworkerApp0", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponents_Get
+### ContainerApps_Update
```java
+import com.azure.resourcemanager.appcontainers.models.Action;
+import com.azure.resourcemanager.appcontainers.models.Affinity;
+import com.azure.resourcemanager.appcontainers.models.AppProtocol;
+import com.azure.resourcemanager.appcontainers.models.BindingType;
+import com.azure.resourcemanager.appcontainers.models.Configuration;
+import com.azure.resourcemanager.appcontainers.models.Container;
+import com.azure.resourcemanager.appcontainers.models.ContainerApp;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
+import com.azure.resourcemanager.appcontainers.models.ContainerResources;
+import com.azure.resourcemanager.appcontainers.models.CustomDomain;
+import com.azure.resourcemanager.appcontainers.models.CustomScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Dapr;
+import com.azure.resourcemanager.appcontainers.models.Ingress;
+import com.azure.resourcemanager.appcontainers.models.IngressStickySessions;
+import com.azure.resourcemanager.appcontainers.models.InitContainer;
+import com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule;
+import com.azure.resourcemanager.appcontainers.models.LogLevel;
+import com.azure.resourcemanager.appcontainers.models.Runtime;
+import com.azure.resourcemanager.appcontainers.models.RuntimeJava;
+import com.azure.resourcemanager.appcontainers.models.Scale;
+import com.azure.resourcemanager.appcontainers.models.ScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Service;
+import com.azure.resourcemanager.appcontainers.models.ServiceBind;
+import com.azure.resourcemanager.appcontainers.models.Template;
+import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
+import com.azure.resourcemanager.appcontainers.models.Type;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for DaprComponents Get.
+ * Samples for ContainerApps Update.
*/
-public final class DaprComponentsGetSamples {
+public final class ContainerAppsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprComponents_Get_SecretStoreComponent.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Patch.json
*/
/**
- * Sample code: Get Dapr Component with secret store component.
+ * Sample code: Patch Container App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getDaprComponentWithSecretStoreComponent(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents()
- .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
+ public static void patchContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ ContainerApp resource = manager.containerApps()
+ .getByResourceGroupWithResponse("rg", "testcontainerapp0", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withConfiguration(
+ new Configuration()
+ .withIngress(new Ingress().withExternal(true)
+ .withTargetPort(3000)
+ .withTraffic(Arrays.asList(new TrafficWeight()
+ .withRevisionName("testcontainerapp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
+ .withCustomDomains(Arrays.asList(new CustomDomain()
+ .withName("www.my-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
+ new CustomDomain().withName("www.my-other-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
+ .withIpSecurityRestrictions(
+ Arrays
+ .asList(
+ new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/32")
+ .withAction(Action.ALLOW),
+ new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/8")
+ .withAction(Action.ALLOW)))
+ .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY)))
+ .withDapr(new Dapr().withEnabled(true)
+ .withAppProtocol(AppProtocol.HTTP)
+ .withAppPort(3000)
+ .withHttpReadBufferSize(30)
+ .withHttpMaxRequestSize(10)
+ .withLogLevel(LogLevel.DEBUG)
+ .withEnableApiLogging(true))
+ .withRuntime(new Runtime().withJava(new RuntimeJava().withEnableMetrics(true)))
+ .withMaxInactiveRevisions(10)
+ .withService(new Service().withType("redis")))
+ .withTemplate(new Template()
+ .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerapp0:v4")
+ .withName("testinitcontainerApp0")
+ .withResources(new ContainerResources().withCpu(0.5D).withMemory("1Gi"))))
+ .withContainers(Arrays.asList(new Container()
+ .withImage("repo/testcontainerapp0:v1")
+ .withName("testcontainerapp0")
+ .withProbes(
+ Arrays.asList(new ContainerAppProbe().withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080)).withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
+ .withScale(
+ new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withCooldownPeriod(350)
+ .withPollingInterval(35)
+ .withRules(
+ Arrays.asList(new ScaleRule().withName("httpscalingrule")
+ .withCustom(new CustomScaleRule().withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50"))))))
+ .withServiceBinds(Arrays.asList(new ServiceBind().withServiceId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service")
+ .withName("service"))))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
+}
+```
+
+### ContainerAppsAuthConfigs_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appcontainers.models.AppRegistration;
+import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
+import com.azure.resourcemanager.appcontainers.models.EncryptionSettings;
+import com.azure.resourcemanager.appcontainers.models.Facebook;
+import com.azure.resourcemanager.appcontainers.models.GlobalValidation;
+import com.azure.resourcemanager.appcontainers.models.IdentityProviders;
+import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActionV2;
+/**
+ * Samples for ContainerAppsAuthConfigs CreateOrUpdate.
+ */
+public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Get_Secrets.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/AuthConfigs_CreateOrUpdate.json
*/
/**
- * Sample code: Get Dapr Component with secrets.
+ * Sample code: Create or Update Container App AuthConfig.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- getDaprComponentWithSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents()
- .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
+ createOrUpdateContainerAppAuthConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsAuthConfigs()
+ .define("current")
+ .withExistingContainerApp("workerapps-rg-xj", "testcanadacentral")
+ .withPlatform(new AuthPlatform().withEnabled(true))
+ .withGlobalValidation(
+ new GlobalValidation().withUnauthenticatedClientAction(UnauthenticatedClientActionV2.ALLOW_ANONYMOUS))
+ .withIdentityProviders(new IdentityProviders().withFacebook(new Facebook().withRegistration(
+ new AppRegistration().withAppId("123").withAppSecretSettingName("fakeTokenPlaceholder"))))
+ .withEncryptionSettings(
+ new EncryptionSettings().withContainerAppAuthEncryptionSecretName("fakeTokenPlaceholder")
+ .withContainerAppAuthSigningSecretName("fakeTokenPlaceholder"))
+ .create();
}
}
```
-### DaprComponents_List
+### ContainerAppsAuthConfigs_Delete
```java
/**
- * Samples for DaprComponents List.
+ * Samples for ContainerAppsAuthConfigs Delete.
*/
-public final class DaprComponentsListSamples {
+public final class ContainerAppsAuthConfigsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_List.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/AuthConfigs_Delete.json
*/
/**
- * Sample code: List Dapr Components.
+ * Sample code: Delete Container App AuthConfig.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listDaprComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
+ public static void
+ deleteContainerAppAuthConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsAuthConfigs()
+ .deleteWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponents_ListSecrets
+### ContainerAppsAuthConfigs_Get
```java
/**
- * Samples for DaprComponents ListSecrets.
+ * Samples for ContainerAppsAuthConfigs Get.
*/
-public final class DaprComponentsListSecretsSamples {
+public final class ContainerAppsAuthConfigsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_ListSecrets.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/AuthConfigs_Get.json
*/
/**
- * Sample code: List Container Apps Secrets.
+ * Sample code: Get Container App's AuthConfig.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- listContainerAppsSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents()
- .listSecretsWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
+ getContainerAppSAuthConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsAuthConfigs()
+ .getWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
}
}
```
-### DaprSubscriptions_CreateOrUpdate
+### ContainerAppsAuthConfigs_ListByContainerApp
```java
-import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionBulkSubscribeOptions;
-import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRouteRule;
-import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRoutes;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for DaprSubscriptions CreateOrUpdate.
+ * Samples for ContainerAppsAuthConfigs ListByContainerApp.
*/
-public final class DaprSubscriptionsCreateOrUpdateSamples {
+public final class ContainerAppsAuthConfigsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/AuthConfigs_ListByContainer.json
*/
/**
- * Sample code: Create or update dapr subscription with route rules and metadata.
+ * Sample code: List Auth Configs by Container Apps.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateDaprSubscriptionWithRouteRulesAndMetadata(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions()
- .define("mysubscription")
- .withExistingManagedEnvironment("examplerg", "myenvironment")
- .withPubsubName("mypubsubcomponent")
- .withTopic("inventory")
- .withRoutes(new DaprSubscriptionRoutes()
- .withRules(Arrays.asList(
- new DaprSubscriptionRouteRule().withMatch("event.type == 'widget'").withPath("/widgets"),
- new DaprSubscriptionRouteRule().withMatch("event.type == 'gadget'").withPath("/gadgets")))
- .withDefaultProperty("/products"))
- .withMetadata(mapOf("foo", "bar", "hello", "world"))
- .create();
+ public static void
+ listAuthConfigsByContainerApps(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsAuthConfigs()
+ .listByContainerApp("workerapps-rg-xj", "testcanadacentral", com.azure.core.util.Context.NONE);
}
+}
+```
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprSubscriptions_CreateOrUpdate_DefaultRoute.json
- */
- /**
- * Sample code: Create or update dapr subscription with default route only.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void createOrUpdateDaprSubscriptionWithDefaultRouteOnly(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions()
- .define("mysubscription")
- .withExistingManagedEnvironment("examplerg", "myenvironment")
- .withPubsubName("mypubsubcomponent")
- .withTopic("inventory")
- .withRoutes(new DaprSubscriptionRoutes().withDefaultProperty("/products"))
- .create();
- }
+### ContainerAppsDiagnostics_GetDetector
+```java
+/**
+ * Samples for ContainerAppsDiagnostics GetDetector.
+ */
+public final class ContainerAppsDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerAppsDiagnostics_Get.json
*/
/**
- * Sample code: Create or update dapr subscription with bulk subscribe configuration and scopes.
+ * Sample code: Get Container App's diagnostics info.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateDaprSubscriptionWithBulkSubscribeConfigurationAndScopes(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions()
- .define("mysubscription")
- .withExistingManagedEnvironment("examplerg", "myenvironment")
- .withPubsubName("mypubsubcomponent")
- .withTopic("inventory")
- .withRoutes(new DaprSubscriptionRoutes().withDefaultProperty("/products"))
- .withScopes(Arrays.asList("warehouseapp", "customersupportapp"))
- .withBulkSubscribe(new DaprSubscriptionBulkSubscribeOptions().withEnabled(true)
- .withMaxMessagesCount(123)
- .withMaxAwaitDurationMs(500))
- .create();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ public static void
+ getContainerAppSDiagnosticsInfo(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsDiagnostics()
+ .getDetectorWithResponse("mikono-workerapp-test-rg", "mikono-capp-stage1", "cappcontainerappnetworkIO",
+ com.azure.core.util.Context.NONE);
}
}
```
-### DaprSubscriptions_Delete
+### ContainerAppsDiagnostics_GetRevision
```java
/**
- * Samples for DaprSubscriptions Delete.
+ * Samples for ContainerAppsDiagnostics GetRevision.
*/
-public final class DaprSubscriptionsDeleteSamples {
+public final class ContainerAppsDiagnosticsGetRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_Delete.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Revisions_Get.json
*/
/**
- * Sample code: Delete dapr subscription.
+ * Sample code: Get Container App's revision.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteDaprSubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions()
- .deleteWithResponse("examplerg", "myenvironment", "mysubscription", com.azure.core.util.Context.NONE);
+ public static void
+ getContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsDiagnostics()
+ .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
-### DaprSubscriptions_Get
+### ContainerAppsDiagnostics_GetRoot
```java
/**
- * Samples for DaprSubscriptions Get.
+ * Samples for ContainerAppsDiagnostics GetRoot.
*/
-public final class DaprSubscriptionsGetSamples {
+public final class ContainerAppsDiagnosticsGetRootSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprSubscriptions_Get_DefaultRoute.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Get.json
*/
/**
- * Sample code: Get Dapr subscription with bulk subscribe configuration and scopes.
+ * Sample code: Get Container App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getDaprSubscriptionWithBulkSubscribeConfigurationAndScopes(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions()
- .getWithResponse("examplerg", "myenvironment", "mypubsubcomponent", com.azure.core.util.Context.NONE);
+ public static void getContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsDiagnostics()
+ .getRootWithResponse("rg", "testcontainerapp0", com.azure.core.util.Context.NONE);
}
+}
+```
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprSubscriptions_Get_BulkSubscribeAndScopes.json
- */
- /**
- * Sample code: Get Dapr subscription with default route only.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void getDaprSubscriptionWithDefaultRouteOnly(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions()
- .getWithResponse("examplerg", "myenvironment", "mypubsubcomponent", com.azure.core.util.Context.NONE);
- }
+### ContainerAppsDiagnostics_ListDetectors
+```java
+/**
+ * Samples for ContainerAppsDiagnostics ListDetectors.
+ */
+public final class ContainerAppsDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DaprSubscriptions_Get_RouteRulesAndMetadata.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerAppsDiagnostics_List.json
*/
/**
- * Sample code: GetDapr subscription with route rules and metadata.
+ * Sample code: Get the list of available diagnostics for a given Container App.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getDaprSubscriptionWithRouteRulesAndMetadata(
+ public static void getTheListOfAvailableDiagnosticsForAGivenContainerApp(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions()
- .getWithResponse("examplerg", "myenvironment", "mypubsubcomponent", com.azure.core.util.Context.NONE);
+ manager.containerAppsDiagnostics()
+ .listDetectors("mikono-workerapp-test-rg", "mikono-capp-stage1", com.azure.core.util.Context.NONE);
}
}
```
-### DaprSubscriptions_List
+### ContainerAppsDiagnostics_ListRevisions
```java
/**
- * Samples for DaprSubscriptions List.
+ * Samples for ContainerAppsDiagnostics ListRevisions.
*/
-public final class DaprSubscriptionsListSamples {
+public final class ContainerAppsDiagnosticsListRevisionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_List.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Revisions_List.json
*/
/**
- * Sample code: List Dapr subscriptions.
+ * Sample code: List Container App's revisions.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listDaprSubscriptions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
+ public static void
+ listContainerAppSRevisions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsDiagnostics()
+ .listRevisions("rg", "testcontainerApp0", null, com.azure.core.util.Context.NONE);
}
}
```
-### DotNetComponents_CreateOrUpdate
+### ContainerAppsRevisionReplicas_GetReplica
```java
-import com.azure.resourcemanager.appcontainers.models.DotNetComponentConfigurationProperty;
-import com.azure.resourcemanager.appcontainers.models.DotNetComponentServiceBind;
-import com.azure.resourcemanager.appcontainers.models.DotNetComponentType;
-import java.util.Arrays;
-
/**
- * Samples for DotNetComponents CreateOrUpdate.
+ * Samples for ContainerAppsRevisionReplicas GetReplica.
*/
-public final class DotNetComponentsCreateOrUpdateSamples {
+public final class ContainerAppsRevisionReplicasGetReplicaSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DotNetComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Replicas_Get.json
*/
/**
- * Sample code: Create or Update .NET Component.
+ * Sample code: Get Container App's revision replica.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- createOrUpdateNETComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents()
- .define("mydotnetcomponent")
- .withExistingManagedEnvironment("examplerg", "myenvironment")
- .withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
- .withConfigurations(Arrays.asList(
- new DotNetComponentConfigurationProperty().withPropertyName("dashboard-theme").withValue("dark")))
- .create();
+ getContainerAppSRevisionReplica(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisionReplicas()
+ .getReplicaWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09", "myapp--0wlqy09-5d9774cff-5wnd8",
+ com.azure.core.util.Context.NONE);
}
+}
+```
+
+### ContainerAppsRevisionReplicas_ListReplicas
+```java
+/**
+ * Samples for ContainerAppsRevisionReplicas ListReplicas.
+ */
+public final class ContainerAppsRevisionReplicasListReplicasSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DotNetComponents_CreateOrUpdate_ServiceBind.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Replicas_List.json
*/
/**
- * Sample code: Create or Update .NET Component with ServiceBinds.
+ * Sample code: List Container App's replicas.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateNETComponentWithServiceBinds(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents()
- .define("mydotnetcomponent")
- .withExistingManagedEnvironment("examplerg", "myenvironment")
- .withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
- .withConfigurations(Arrays.asList(
- new DotNetComponentConfigurationProperty().withPropertyName("dashboard-theme").withValue("dark")))
- .withServiceBinds(Arrays.asList(new DotNetComponentServiceBind().withName("yellowcat")
- .withServiceId(
- "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat")))
- .create();
+ public static void
+ listContainerAppSReplicas(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisionReplicas()
+ .listReplicasWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09", com.azure.core.util.Context.NONE);
}
}
```
-### DotNetComponents_Delete
+### ContainerAppsRevisions_ActivateRevision
```java
/**
- * Samples for DotNetComponents Delete.
+ * Samples for ContainerAppsRevisions ActivateRevision.
*/
-public final class DotNetComponentsDeleteSamples {
+public final class ContainerAppsRevisionsActivateRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Delete.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Revisions_Activate.json
*/
/**
- * Sample code: Delete .NET Component.
+ * Sample code: Activate Container App's revision.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteNETComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents()
- .delete("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE);
+ public static void
+ activateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions()
+ .activateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
-### DotNetComponents_Get
+### ContainerAppsRevisions_DeactivateRevision
```java
/**
- * Samples for DotNetComponents Get.
+ * Samples for ContainerAppsRevisions DeactivateRevision.
*/
-public final class DotNetComponentsGetSamples {
+public final class ContainerAppsRevisionsDeactivateRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DotNetComponents_Get_ServiceBind.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Revisions_Deactivate.json
*/
/**
- * Sample code: Get .NET Component with ServiceBinds.
+ * Sample code: Deactivate Container App's revision.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- getNETComponentWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents()
- .getWithResponse("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE);
+ deactivateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions()
+ .deactivateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
+}
+```
+
+### ContainerAppsRevisions_GetRevision
+```java
+/**
+ * Samples for ContainerAppsRevisions GetRevision.
+ */
+public final class ContainerAppsRevisionsGetRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Revisions_Get.json
*/
/**
- * Sample code: Get .NET Component.
+ * Sample code: Get Container App's revision.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getNETComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents()
- .getWithResponse("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE);
+ public static void
+ getContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions()
+ .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
-### DotNetComponents_List
+### ContainerAppsRevisions_ListRevisions
```java
/**
- * Samples for DotNetComponents List.
+ * Samples for ContainerAppsRevisions ListRevisions.
*/
-public final class DotNetComponentsListSamples {
+public final class ContainerAppsRevisionsListRevisionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_List.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Revisions_List.json
*/
/**
- * Sample code: List .NET Components.
+ * Sample code: List Container App's revisions.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listNETComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
+ public static void
+ listContainerAppSRevisions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions()
+ .listRevisions("rg", "testcontainerApp0", null, com.azure.core.util.Context.NONE);
}
+}
+```
+
+### ContainerAppsRevisions_RestartRevision
+```java
+/**
+ * Samples for ContainerAppsRevisions RestartRevision.
+ */
+public final class ContainerAppsRevisionsRestartRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DotNetComponents_List_ServiceBind.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Revisions_Restart.json
*/
/**
- * Sample code: List .NET Components with ServiceBinds.
+ * Sample code: Restart Container App's revision.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- listNETComponentsWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
+ restartContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions()
+ .restartRevisionWithResponse("rg", "testStaticSite0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
-### DotNetComponents_Update
+### ContainerAppsSessionPools_CreateOrUpdate
```java
-import com.azure.resourcemanager.appcontainers.models.DotNetComponent;
-import com.azure.resourcemanager.appcontainers.models.DotNetComponentConfigurationProperty;
-import com.azure.resourcemanager.appcontainers.models.DotNetComponentServiceBind;
-import com.azure.resourcemanager.appcontainers.models.DotNetComponentType;
+import com.azure.resourcemanager.appcontainers.models.ContainerType;
+import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
+import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration;
+import com.azure.resourcemanager.appcontainers.models.IdentitySettingsLifeCycle;
+import com.azure.resourcemanager.appcontainers.models.LifecycleConfiguration;
+import com.azure.resourcemanager.appcontainers.models.LifecycleType;
+import com.azure.resourcemanager.appcontainers.models.ManagedIdentitySetting;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.appcontainers.models.PoolManagementType;
+import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionContainer;
+import com.azure.resourcemanager.appcontainers.models.SessionContainerResources;
+import com.azure.resourcemanager.appcontainers.models.SessionIngress;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkStatus;
+import com.azure.resourcemanager.appcontainers.models.SessionRegistryCredentials;
import java.util.Arrays;
/**
- * Samples for DotNetComponents Update.
+ * Samples for ContainerAppsSessionPools CreateOrUpdate.
*/
-public final class DotNetComponentsUpdateSamples {
+public final class ContainerAppsSessionPoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * DotNetComponents_Patch_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * SessionPools_LifecycleOnContainerExit_CreateOrUpdate.json
*/
/**
- * Sample code: Patch .NET Component with ServiceBinds.
+ * Sample code: Create or Update Session Pool with lifecycle OnContainerExit Timed.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- patchNETComponentWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- DotNetComponent resource = manager.dotNetComponents()
- .getWithResponse("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
- .withConfigurations(Arrays.asList(
- new DotNetComponentConfigurationProperty().withPropertyName("dashboard-theme").withValue("dark")))
- .withServiceBinds(Arrays.asList(new DotNetComponentServiceBind().withName("yellowcat")
- .withServiceId(
- "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat")))
- .apply();
+ public static void createOrUpdateSessionPoolWithLifecycleOnContainerExitTimed(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools()
+ .define("testsessionpool")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
+ .withEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withContainerType(ContainerType.CUSTOM_CONTAINER)
+ .withPoolManagementType(PoolManagementType.DYNAMIC)
+ .withScaleConfiguration(
+ new ScaleConfiguration().withMaxConcurrentSessions(500).withReadySessionInstances(100))
+ .withDynamicPoolConfiguration(new DynamicPoolConfiguration().withLifecycleConfiguration(
+ new LifecycleConfiguration().withLifecycleType(LifecycleType.ON_CONTAINER_EXIT)
+ .withMaxAlivePeriodInSeconds(86400)))
+ .withCustomContainerTemplate(new CustomContainerTemplate()
+ .withRegistryCredentials(new SessionRegistryCredentials().withServer("test.azurecr.io")
+ .withIdentity(
+ "/subscriptions/7a497526-bb8d-4816-9795-db1418a1f977/resourcegroups/test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testSP"))
+ .withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
+ .withName("testinitcontainer")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new SessionContainerResources().withCpu(0.25D).withMemory("0.5Gi"))))
+ .withIngress(new SessionIngress().withTargetPort(80)))
+ .withSessionNetworkConfiguration(
+ new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
+ .withManagedIdentitySettings(Arrays.asList(
+ new ManagedIdentitySetting().withIdentity("system").withLifecycle(IdentitySettingsLifeCycle.MAIN)))
+ .create();
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * SessionPools_LifecycleTimed_CreateOrUpdate.json
*/
/**
- * Sample code: Patch .NET Component.
+ * Sample code: Create or Update Session Pool with lifecycle type Timed.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void patchNETComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- DotNetComponent resource = manager.dotNetComponents()
- .getWithResponse("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
- .withConfigurations(Arrays.asList(
- new DotNetComponentConfigurationProperty().withPropertyName("dashboard-theme").withValue("dark")))
- .apply();
+ public static void createOrUpdateSessionPoolWithLifecycleTypeTimed(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools()
+ .define("testsessionpool")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
+ .withEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withContainerType(ContainerType.CUSTOM_CONTAINER)
+ .withPoolManagementType(PoolManagementType.DYNAMIC)
+ .withScaleConfiguration(
+ new ScaleConfiguration().withMaxConcurrentSessions(500).withReadySessionInstances(100))
+ .withDynamicPoolConfiguration(new DynamicPoolConfiguration().withLifecycleConfiguration(
+ new LifecycleConfiguration().withLifecycleType(LifecycleType.ON_CONTAINER_EXIT)
+ .withMaxAlivePeriodInSeconds(86400)))
+ .withCustomContainerTemplate(new CustomContainerTemplate()
+ .withRegistryCredentials(new SessionRegistryCredentials().withServer("test.azurecr.io")
+ .withIdentity(
+ "/subscriptions/7a497526-bb8d-4816-9795-db1418a1f977/resourcegroups/test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testSP"))
+ .withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
+ .withName("testinitcontainer")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new SessionContainerResources().withCpu(0.25D).withMemory("0.5Gi"))))
+ .withIngress(new SessionIngress().withTargetPort(80)))
+ .withSessionNetworkConfiguration(
+ new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
+ .withManagedIdentitySettings(Arrays.asList(
+ new ManagedIdentitySetting().withIdentity("system").withLifecycle(IdentitySettingsLifeCycle.MAIN)))
+ .create();
}
}
```
-### FunctionsExtension_InvokeFunctionsHost
+### ContainerAppsSessionPools_Delete
```java
/**
- * Samples for FunctionsExtension InvokeFunctionsHost.
+ * Samples for ContainerAppsSessionPools Delete.
*/
-public final class FunctionsExtensionInvokeFunctionsHostSamples {
+public final class ContainerAppsSessionPoolsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/FunctionsExtension_Post.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/SessionPools_Delete.json
*/
/**
- * Sample code: Invoke Functions host using Functions Extension API.
+ * Sample code: Delete Session Pool.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void invokeFunctionsHostUsingFunctionsExtensionAPI(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.functionsExtensions()
- .invokeFunctionsHostWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
- "testcontainerApp0", com.azure.core.util.Context.NONE);
+ public static void deleteSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools().delete("rg", "testsessionpool", com.azure.core.util.Context.NONE);
}
}
```
-### JavaComponents_CreateOrUpdate
+### ContainerAppsSessionPools_GetByResourceGroup
```java
-import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentPropertiesScale;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind;
-import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent;
-import java.util.Arrays;
-
/**
- * Samples for JavaComponents CreateOrUpdate.
+ * Samples for ContainerAppsSessionPools GetByResourceGroup.
*/
-public final class JavaComponentsCreateOrUpdateSamples {
+public final class ContainerAppsSessionPoolsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * JavaComponents_CreateOrUpdate_ServiceBind.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/SessionPools_Get.json
*/
/**
- * Sample code: Create or Update Java Component with ServiceBinds.
+ * Sample code: Get Session Pool.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateJavaComponentWithServiceBinds(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents()
- .define("myjavacomponent")
- .withExistingManagedEnvironment("examplerg", "myenvironment")
- .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
- new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
- .withValue("true"),
- new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
- .withValue("10000ms")))
- .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1))
- .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat")
- .withServiceId(
- "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat"))))
- .create();
+ public static void getSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools()
+ .getByResourceGroupWithResponse("rg", "testsessionpool", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsSessionPools_List
+
+```java
+/**
+ * Samples for ContainerAppsSessionPools List.
+ */
+public final class ContainerAppsSessionPoolsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/SessionPools_ListBySubscription.json
+ */
+ /**
+ * Sample code: List Session Pools by subscription.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ listSessionPoolsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools().list(com.azure.core.util.Context.NONE);
}
+}
+```
+
+### ContainerAppsSessionPools_ListByResourceGroup
+```java
+/**
+ * Samples for ContainerAppsSessionPools ListByResourceGroup.
+ */
+public final class ContainerAppsSessionPoolsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * JavaComponents_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/SessionPools_ListByResourceGroup.json
*/
/**
- * Sample code: Create or Update Java Component.
+ * Sample code: List Session Pools by resource group.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- createOrUpdateJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents()
- .define("myjavacomponent")
- .withExistingManagedEnvironment("examplerg", "myenvironment")
- .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
- new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
- .withValue("true"),
- new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
- .withValue("10000ms")))
- .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1)))
- .create();
+ listSessionPoolsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
}
}
```
-### JavaComponents_Delete
+### ContainerAppsSessionPools_Update
```java
+import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
+import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionContainer;
+import com.azure.resourcemanager.appcontainers.models.SessionContainerResources;
+import com.azure.resourcemanager.appcontainers.models.SessionIngress;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkStatus;
+import com.azure.resourcemanager.appcontainers.models.SessionPool;
+import java.util.Arrays;
+
/**
- * Samples for JavaComponents Delete.
+ * Samples for ContainerAppsSessionPools Update.
*/
-public final class JavaComponentsDeleteSamples {
+public final class ContainerAppsSessionPoolsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Delete.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/SessionPools_Patch.json
*/
/**
- * Sample code: Delete Java Component.
+ * Sample code: Update Session Pool.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents()
- .delete("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
+ public static void updateSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ SessionPool resource = manager.containerAppsSessionPools()
+ .getByResourceGroupWithResponse("rg", "testsessionpool", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withScaleConfiguration(
+ new ScaleConfiguration().withMaxConcurrentSessions(500).withReadySessionInstances(100))
+ .withCustomContainerTemplate(new CustomContainerTemplate()
+ .withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
+ .withName("testinitcontainer")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new SessionContainerResources().withCpu(0.25D).withMemory("0.5Gi"))))
+ .withIngress(new SessionIngress().withTargetPort(80)))
+ .withSessionNetworkConfiguration(
+ new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
+ .apply();
}
}
```
-### JavaComponents_Get
+### ContainerAppsSourceControls_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcontainers.models.AzureCredentials;
+import com.azure.resourcemanager.appcontainers.models.GithubActionConfiguration;
+import com.azure.resourcemanager.appcontainers.models.RegistryInfo;
+
/**
- * Samples for JavaComponents Get.
+ * Samples for ContainerAppsSourceControls CreateOrUpdate.
*/
-public final class JavaComponentsGetSamples {
+public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/SourceControls_CreateOrUpdate.json
*/
/**
- * Sample code: Get Java Component.
+ * Sample code: Create or Update Container App SourceControl.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents()
- .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
+ public static void createOrUpdateContainerAppSourceControl(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSourceControls()
+ .define("current")
+ .withExistingContainerApp("workerapps-rg-xj", "testcanadacentral")
+ .withRepoUrl("https://github.com/xwang971/ghatest")
+ .withBranch("master")
+ .withGithubActionConfiguration(new GithubActionConfiguration()
+ .withRegistryInfo(new RegistryInfo().withRegistryUrl("test-registry.azurecr.io")
+ .withRegistryUsername("test-registry")
+ .withRegistryPassword("fakeTokenPlaceholder"))
+ .withAzureCredentials(new AzureCredentials().withClientId("")
+ .withClientSecret("fakeTokenPlaceholder")
+ .withTenantId("")
+ .withKind("feaderated"))
+ .withContextPath("./")
+ .withGithubPersonalAccessToken("fakeTokenPlaceholder")
+ .withImage("image/tag"))
+ .create();
}
+}
+```
+
+### ContainerAppsSourceControls_Delete
+```java
+/**
+ * Samples for ContainerAppsSourceControls Delete.
+ */
+public final class ContainerAppsSourceControlsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * JavaComponents_Get_ServiceBind.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/SourceControls_Delete.json
*/
/**
- * Sample code: Get Java Component with ServiceBinds.
+ * Sample code: Delete Container App SourceControl.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- getJavaComponentWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents()
- .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
+ deleteContainerAppSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSourceControls()
+ .delete("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
}
}
```
-### JavaComponents_List
+### ContainerAppsSourceControls_Get
```java
/**
- * Samples for JavaComponents List.
+ * Samples for ContainerAppsSourceControls Get.
*/
-public final class JavaComponentsListSamples {
+public final class ContainerAppsSourceControlsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_List.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/SourceControls_Get.json
*/
/**
- * Sample code: List Java Components.
+ * Sample code: Get Container App's SourceControl.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listJavaComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
+ public static void
+ getContainerAppSSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSourceControls()
+ .getWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
}
+}
+```
+### ContainerAppsSourceControls_ListByContainerApp
+
+```java
+/**
+ * Samples for ContainerAppsSourceControls ListByContainerApp.
+ */
+public final class ContainerAppsSourceControlsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * JavaComponents_List_ServiceBind.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/SourceControls_ListByContainer.json
*/
/**
- * Sample code: List Java Components with ServiceBinds.
+ * Sample code: List App's Source Controls.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- listJavaComponentsWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
+ public static void listAppSSourceControls(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSourceControls()
+ .listByContainerApp("workerapps-rg-xj", "testcanadacentral", com.azure.core.util.Context.NONE);
}
}
```
-### JavaComponents_Update
+### DaprComponents_CreateOrUpdate
```java
-import com.azure.resourcemanager.appcontainers.models.JavaComponent;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentPropertiesScale;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind;
-import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
+import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
+import com.azure.resourcemanager.appcontainers.models.Secret;
import java.util.Arrays;
/**
- * Samples for JavaComponents Update.
+ * Samples for DaprComponents CreateOrUpdate.
*/
-public final class JavaComponentsUpdateSamples {
+public final class DaprComponentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Patch.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/DaprComponents_CreateOrUpdate_Secrets
+ * .json
*/
/**
- * Sample code: Patch Java Component.
+ * Sample code: Create or update dapr component with secrets.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void patchJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- JavaComponent resource = manager.javaComponents()
- .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
- new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
- .withValue("true"),
- new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
- .withValue("10000ms")))
- .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1)))
- .apply();
+ public static void createOrUpdateDaprComponentWithSecrets(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .createOrUpdateWithResponse("examplerg", "myenvironment", "reddog",
+ new DaprComponentInner().withComponentType("state.azure.cosmosdb")
+ .withVersion("v1")
+ .withIgnoreErrors(false)
+ .withInitTimeout("50s")
+ .withSecrets(Arrays.asList(new Secret().withName("masterkey").withValue("keyvalue")))
+ .withMetadata(Arrays.asList(new DaprMetadata().withName("url").withValue(""),
+ new DaprMetadata().withName("database").withValue("itemsDB"),
+ new DaprMetadata().withName("collection").withValue("items"),
+ new DaprMetadata().withName("masterkey").withSecretRef("fakeTokenPlaceholder")))
+ .withScopes(Arrays.asList("container-app-1", "container-app-2")),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * JavaComponents_Patch_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * DaprComponents_CreateOrUpdate_SecretStoreComponent.json
*/
/**
- * Sample code: Patch Java Component with ServiceBinds.
+ * Sample code: Create or update dapr component with secret store component.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- patchJavaComponentWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- JavaComponent resource = manager.javaComponents()
- .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
- new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
- .withValue("true"),
- new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
- .withValue("10000ms")))
- .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1))
- .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat")
- .withServiceId(
- "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat"))))
- .apply();
+ public static void createOrUpdateDaprComponentWithSecretStoreComponent(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .createOrUpdateWithResponse("examplerg", "myenvironment", "reddog",
+ new DaprComponentInner().withComponentType("state.azure.cosmosdb")
+ .withVersion("v1")
+ .withIgnoreErrors(false)
+ .withInitTimeout("50s")
+ .withSecretStoreComponent("fakeTokenPlaceholder")
+ .withMetadata(Arrays.asList(new DaprMetadata().withName("url").withValue(""),
+ new DaprMetadata().withName("database").withValue("itemsDB"),
+ new DaprMetadata().withName("collection").withValue("items"),
+ new DaprMetadata().withName("masterkey").withSecretRef("fakeTokenPlaceholder")))
+ .withScopes(Arrays.asList("container-app-1", "container-app-2")),
+ com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_CreateOrUpdate
-
-```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.appcontainers.models.Container;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
-import com.azure.resourcemanager.appcontainers.models.ContainerResources;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
-import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
-import com.azure.resourcemanager.appcontainers.models.IdentitySettings;
-import com.azure.resourcemanager.appcontainers.models.IdentitySettingsLifeCycle;
-import com.azure.resourcemanager.appcontainers.models.InitContainer;
-import com.azure.resourcemanager.appcontainers.models.JobConfiguration;
-import com.azure.resourcemanager.appcontainers.models.JobConfigurationEventTriggerConfig;
-import com.azure.resourcemanager.appcontainers.models.JobConfigurationManualTriggerConfig;
-import com.azure.resourcemanager.appcontainers.models.JobScale;
-import com.azure.resourcemanager.appcontainers.models.JobScaleRule;
-import com.azure.resourcemanager.appcontainers.models.JobTemplate;
-import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.appcontainers.models.TriggerType;
-import com.azure.resourcemanager.appcontainers.models.Type;
-import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity;
-import com.azure.resourcemanager.appcontainers.models.VolumeMount;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
+### DaprComponents_Delete
+```java
/**
- * Samples for Jobs CreateOrUpdate.
+ * Samples for DaprComponents Delete.
*/
-public final class JobsCreateOrUpdateSamples {
+public final class DaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * Job_CreateorUpdate_ConnectedEnvironment.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/DaprComponents_Delete.json
*/
/**
- * Sample code: Create or Update Container Apps Job On A Connected Environment.
+ * Sample code: Delete dapr component.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateContainerAppsJobOnAConnectedEnvironment(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs()
- .define("testcontainerAppsJob0")
- .withRegion("East US")
- .withExistingResourceGroup("rg")
- .withExtendedLocation(new ExtendedLocation().withName(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation")
- .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
- .withEnvironmentId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube")
- .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL)
- .withReplicaTimeout(10)
- .withReplicaRetryLimit(10)
- .withManualTriggerConfig(
- new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1).withParallelism(4)))
- .withTemplate(new JobTemplate()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testinitcontainerAppsJob0")
- .withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppsJob0:v1")
- .withName("testcontainerAppsJob0")
- .withProbes(Arrays.asList(new ContainerAppProbe()
- .withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(
- Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
- .withValue("Awesome")))
- .withPath("/health")
- .withPort(8080))
- .withInitialDelaySeconds(5)
- .withPeriodSeconds(3)
- .withType(Type.LIVENESS))))))
- .create();
+ public static void deleteDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .deleteWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### DaprComponents_Get
+```java
+/**
+ * Samples for DaprComponents Get.
+ */
+public final class DaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * Job_CreateorUpdate_EventTrigger.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * DaprComponents_Get_SecretStoreComponent.json
*/
/**
- * Sample code: Create or Update Container Apps Job With Event Driven Trigger.
+ * Sample code: Get Dapr Component with secret store component.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateContainerAppsJobWithEventDrivenTrigger(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) throws IOException {
- manager.jobs()
- .define("testcontainerAppsJob0")
- .withRegion("East US")
- .withExistingResourceGroup("rg")
- .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity",
- new UserAssignedIdentity())))
- .withEnvironmentId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.EVENT)
- .withReplicaTimeout(10)
- .withReplicaRetryLimit(10)
- .withEventTriggerConfig(new JobConfigurationEventTriggerConfig().withReplicaCompletionCount(1)
- .withParallelism(4)
- .withScale(new JobScale().withPollingInterval(40)
- .withMinExecutions(1)
- .withMaxExecutions(5)
- .withRules(Arrays.asList(new JobScaleRule().withName("servicebuscalingrule")
- .withType("azure-servicebus")
- .withMetadata(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"topicName\":\"my-topic\"}", Object.class, SerializerEncoding.JSON))
- .withIdentity(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity"))))))
- .withTemplate(new JobTemplate()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testinitcontainerAppsJob0")
- .withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(
- new Container().withImage("repo/testcontainerAppsJob0:v1").withName("testcontainerAppsJob0"))))
- .create();
+ public static void getDaprComponentWithSecretStoreComponent(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_CreateorUpdate.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/DaprComponents_Get_Secrets.json
*/
/**
- * Sample code: Create or Update Container Apps Job.
+ * Sample code: Get Dapr Component with secrets.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- createOrUpdateContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs()
- .define("testcontainerAppsJob0")
- .withRegion("East US")
- .withExistingResourceGroup("rg")
- .withIdentity(new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity",
- new UserAssignedIdentity())))
- .withEnvironmentId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL)
- .withReplicaTimeout(10)
- .withReplicaRetryLimit(10)
- .withManualTriggerConfig(
- new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1).withParallelism(4))
- .withIdentitySettings(Arrays.asList(new IdentitySettings().withIdentity(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")
- .withLifecycle(IdentitySettingsLifeCycle.ALL),
- new IdentitySettings().withIdentity("system").withLifecycle(IdentitySettingsLifeCycle.INIT))))
- .withTemplate(new JobTemplate()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testinitcontainerAppsJob0")
- .withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppsJob0:v1")
- .withName("testcontainerAppsJob0")
- .withVolumeMounts(Arrays.asList(
- new VolumeMount().withVolumeName("azurefile")
- .withMountPath("/mnt/path1")
- .withSubPath("subPath1"),
- new VolumeMount().withVolumeName("nfsazurefile")
- .withMountPath("/mnt/path2")
- .withSubPath("subPath2")))
- .withProbes(Arrays.asList(new ContainerAppProbe()
- .withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(
- Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
- .withValue("Awesome")))
- .withPath("/health")
- .withPort(8080))
- .withInitialDelaySeconds(5)
- .withPeriodSeconds(3)
- .withType(Type.LIVENESS))))))
- .create();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ getDaprComponentWithSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_Delete
+### DaprComponents_List
```java
/**
- * Samples for Jobs Delete.
+ * Samples for DaprComponents List.
*/
-public final class JobsDeleteSamples {
+public final class DaprComponentsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Delete.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/DaprComponents_List.json
*/
/**
- * Sample code: Delete Container Apps Job.
+ * Sample code: List Dapr Components.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().delete("rg", "testWorkerContainerAppsJob0", com.azure.core.util.Context.NONE);
+ public static void listDaprComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_GetByResourceGroup
+### DaprComponents_ListSecrets
```java
/**
- * Samples for Jobs GetByResourceGroup.
+ * Samples for DaprComponents ListSecrets.
*/
-public final class JobsGetByResourceGroupSamples {
+public final class DaprComponentsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/DaprComponents_ListSecrets.json
*/
/**
- * Sample code: Get Container Apps Job.
+ * Sample code: List Container Apps Secrets.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().getByResourceGroupWithResponse("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
+ public static void
+ listContainerAppsSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .listSecretsWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_GetDetector
+### JavaComponents_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty;
+import com.azure.resourcemanager.appcontainers.models.JavaComponentPropertiesScale;
+import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind;
+import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent;
+import java.util.Arrays;
+
/**
- * Samples for Jobs GetDetector.
+ * Samples for JavaComponents CreateOrUpdate.
*/
-public final class JobsGetDetectorSamples {
+public final class JavaComponentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
+ * JavaComponents_CreateOrUpdate_ServiceBind.json
+ */
+ /**
+ * Sample code: Create or Update Java Component with ServiceBinds.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateJavaComponentWithServiceBinds(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents()
+ .define("myjavacomponent")
+ .withExistingManagedEnvironment("examplerg", "myenvironment")
+ .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
+ new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
+ .withValue("true"),
+ new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
+ .withValue("10000ms")))
+ .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1))
+ .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat")
+ .withServiceId(
+ "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat"))))
+ .create();
+ }
+
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_GetDetector.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/JavaComponents_CreateOrUpdate.json
*/
/**
- * Sample code: Get diagnostic data for a Container App Job.
+ * Sample code: Create or Update Java Component.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- getDiagnosticDataForAContainerAppJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs()
- .getDetectorWithResponse("mikono-workerapp-test-rg", "mikonojob1", "containerappjobnetworkIO",
- com.azure.core.util.Context.NONE);
+ createOrUpdateJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents()
+ .define("myjavacomponent")
+ .withExistingManagedEnvironment("examplerg", "myenvironment")
+ .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
+ new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
+ .withValue("true"),
+ new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
+ .withValue("10000ms")))
+ .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1)))
+ .create();
}
}
```
-### Jobs_List
+### JavaComponents_Delete
```java
/**
- * Samples for Jobs List.
+ * Samples for JavaComponents Delete.
*/
-public final class JobsListSamples {
+public final class JavaComponentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListBySubscription.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/JavaComponents_Delete.json
*/
/**
- * Sample code: List Container Apps Jobs by subscription.
+ * Sample code: Delete Java Component.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- listContainerAppsJobsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().list(com.azure.core.util.Context.NONE);
+ public static void deleteJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents()
+ .delete("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_ListByResourceGroup
+### JavaComponents_Get
```java
/**
- * Samples for Jobs ListByResourceGroup.
+ * Samples for JavaComponents Get.
*/
-public final class JobsListByResourceGroupSamples {
+public final class JavaComponentsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListByResourceGroup.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/JavaComponents_Get.json
*/
/**
- * Sample code: List Container Apps Jobs by resource group.
+ * Sample code: Get Java Component.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents()
+ .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/JavaComponents_Get_ServiceBind.json
+ */
+ /**
+ * Sample code: Get Java Component with ServiceBinds.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- listContainerAppsJobsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
+ getJavaComponentWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents()
+ .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_ListDetectors
+### JavaComponents_List
```java
/**
- * Samples for Jobs ListDetectors.
+ * Samples for JavaComponents List.
*/
-public final class JobsListDetectorsSamples {
+public final class JavaComponentsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListDetectors.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/JavaComponents_List.json
*/
/**
- * Sample code: Get the list of available diagnostic data for a Container App Job.
+ * Sample code: List Java Components.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getTheListOfAvailableDiagnosticDataForAContainerAppJob(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().listDetectors("mikono-workerapp-test-rg", "mikonojob1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Jobs_ListSecrets
+ public static void listJavaComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
+ }
-```java
-/**
- * Samples for Jobs ListSecrets.
- */
-public final class JobsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListSecrets.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/JavaComponents_List_ServiceBind.json
*/
/**
- * Sample code: List Container Apps Job Secrets.
+ * Sample code: List Java Components with ServiceBinds.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- listContainerAppsJobSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().listSecretsWithResponse("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
+ listJavaComponentsWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_ProxyGet
+### JavaComponents_Update
```java
+import com.azure.resourcemanager.appcontainers.models.JavaComponent;
+import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty;
+import com.azure.resourcemanager.appcontainers.models.JavaComponentPropertiesScale;
+import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind;
+import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent;
+import java.util.Arrays;
+
/**
- * Samples for Jobs ProxyGet.
+ * Samples for JavaComponents Update.
*/
-public final class JobsProxyGetSamples {
+public final class JavaComponentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ProxyGet.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/JavaComponents_Patch.json
*/
/**
- * Sample code: Get Container App Job by name.
+ * Sample code: Patch Java Component.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- getContainerAppJobByName(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().proxyGetWithResponse("rg", "testcontainerAppsJob0", "rootApi", com.azure.core.util.Context.NONE);
+ public static void patchJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ JavaComponent resource = manager.javaComponents()
+ .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
+ new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
+ .withValue("true"),
+ new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
+ .withValue("10000ms")))
+ .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1)))
+ .apply();
}
-}
-```
-### Jobs_Resume
-
-```java
-/**
- * Samples for Jobs Resume.
- */
-public final class JobsResumeSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Resume.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/JavaComponents_Patch_ServiceBind.json
*/
/**
- * Sample code: Resume Job.
+ * Sample code: Patch Java Component with ServiceBinds.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void resumeJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().resume("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
+ public static void
+ patchJavaComponentWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ JavaComponent resource = manager.javaComponents()
+ .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
+ new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
+ .withValue("true"),
+ new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
+ .withValue("10000ms")))
+ .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1))
+ .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat")
+ .withServiceId(
+ "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat"))))
+ .apply();
}
}
```
-### Jobs_Start
+### Jobs_CreateOrUpdate
```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.appcontainers.models.Container;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
import com.azure.resourcemanager.appcontainers.models.ContainerResources;
-import com.azure.resourcemanager.appcontainers.models.JobExecutionContainer;
-import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate;
+import com.azure.resourcemanager.appcontainers.models.InitContainer;
+import com.azure.resourcemanager.appcontainers.models.JobConfiguration;
+import com.azure.resourcemanager.appcontainers.models.JobConfigurationEventTriggerConfig;
+import com.azure.resourcemanager.appcontainers.models.JobConfigurationManualTriggerConfig;
+import com.azure.resourcemanager.appcontainers.models.JobScale;
+import com.azure.resourcemanager.appcontainers.models.JobScaleRule;
+import com.azure.resourcemanager.appcontainers.models.JobTemplate;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.appcontainers.models.StorageType;
+import com.azure.resourcemanager.appcontainers.models.TriggerType;
+import com.azure.resourcemanager.appcontainers.models.Type;
+import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity;
+import com.azure.resourcemanager.appcontainers.models.Volume;
+import com.azure.resourcemanager.appcontainers.models.VolumeMount;
+import java.io.IOException;
import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for Jobs Start.
+ * Samples for Jobs CreateOrUpdate.
*/
-public final class JobsStartSamples {
+public final class JobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Start.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_CreateorUpdate_EventTrigger.json
*/
/**
- * Sample code: Run a Container Apps Job.
+ * Sample code: Create or Update Container Apps Job With Event Driven Trigger.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void runAContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ public static void createOrUpdateContainerAppsJobWithEventDrivenTrigger(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) throws IOException {
manager.jobs()
- .start("rg", "testcontainerAppsJob0", new JobExecutionTemplate()
- .withContainers(Arrays.asList(new JobExecutionContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testcontainerAppsJob0")
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withInitContainers(Arrays.asList(new JobExecutionContainer().withImage("repo/testcontainerAppsJob0:v4")
+ .define("testcontainerappsjob0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity",
+ new UserAssignedIdentity())))
+ .withEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.EVENT)
+ .withReplicaTimeout(10)
+ .withReplicaRetryLimit(10)
+ .withEventTriggerConfig(new JobConfigurationEventTriggerConfig().withReplicaCompletionCount(1)
+ .withParallelism(4)
+ .withScale(new JobScale().withPollingInterval(40)
+ .withMinExecutions(1)
+ .withMaxExecutions(5)
+ .withRules(Arrays.asList(new JobScaleRule().withName("servicebuscalingrule")
+ .withType("azure-servicebus")
+ .withMetadata(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"topicName\":\"my-topic\"}", Object.class, SerializerEncoding.JSON))
+ .withIdentity(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity"))))))
+ .withTemplate(new JobTemplate()
+ .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerappsjob0:v4")
.withName("testinitcontainerAppsJob0")
.withCommand(Arrays.asList("/bin/sh"))
.withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi")))),
- com.azure.core.util.Context.NONE);
+ .withResources(new ContainerResources().withCpu(0.5D).withMemory("1Gi"))))
+ .withContainers(Arrays.asList(
+ new Container().withImage("repo/testcontainerappsjob0:v1").withName("testcontainerappsjob0"))))
+ .create();
}
-}
-```
-### Jobs_StopExecution
-
-```java
-/**
- * Samples for Jobs StopExecution.
- */
-public final class JobsStopExecutionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Execution.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_CreateorUpdate.json
*/
/**
- * Sample code: Terminate a Container Apps Job.
+ * Sample code: Create or Update Container Apps Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- terminateAContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().stopExecution("rg", "testcontainerAppsJob0", "jobExecution1", com.azure.core.util.Context.NONE);
+ createOrUpdateContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs()
+ .define("testcontainerappsjob0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL)
+ .withReplicaTimeout(10)
+ .withReplicaRetryLimit(10)
+ .withManualTriggerConfig(
+ new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1).withParallelism(4)))
+ .withTemplate(new JobTemplate()
+ .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerappsjob0:v4")
+ .withName("testinitcontainerAppsJob0")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new ContainerResources().withCpu(0.5D).withMemory("1Gi"))))
+ .withContainers(Arrays.asList(new Container()
+ .withImage("repo/testcontainerappsjob0:v1")
+ .withName("testcontainerappsjob0")
+ .withVolumeMounts(
+ Arrays.asList(
+ new VolumeMount().withVolumeName("azurefile")
+ .withMountPath("/mnt/path1")
+ .withSubPath("subPath1"),
+ new VolumeMount()
+ .withVolumeName("nfsazurefile")
+ .withMountPath("/mnt/path2")
+ .withSubPath("subPath2")))
+ .withProbes(
+ Arrays.asList(new ContainerAppProbe().withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080)).withInitialDelaySeconds(5).withPeriodSeconds(3).withType(Type.LIVENESS)))))
+ .withVolumes(Arrays.asList(
+ new Volume().withName("azurefile")
+ .withStorageType(StorageType.AZURE_FILE)
+ .withStorageName("storage"),
+ new Volume().withName("nfsazurefile")
+ .withStorageType(StorageType.NFS_AZURE_FILE)
+ .withStorageName("nfsStorage"))))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### Jobs_StopMultipleExecutions
+### Jobs_Delete
```java
/**
- * Samples for Jobs StopMultipleExecutions.
+ * Samples for Jobs Delete.
*/
-public final class JobsStopMultipleExecutionsSamples {
+public final class JobsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Multiple.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_Delete.json
*/
/**
- * Sample code: Terminate Multiple Container Apps Job.
+ * Sample code: Delete Container Apps Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- terminateMultipleContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().stopMultipleExecutions("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
+ public static void deleteContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().delete("rg", "testworkercontainerappsjob0", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_Suspend
+### Jobs_GetByResourceGroup
```java
/**
- * Samples for Jobs Suspend.
+ * Samples for Jobs GetByResourceGroup.
*/
-public final class JobsSuspendSamples {
+public final class JobsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Suspend.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_Get.json
*/
/**
- * Sample code: Suspend Job.
+ * Sample code: Get Container Apps Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void suspendJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().suspend("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
+ public static void getContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().getByResourceGroupWithResponse("rg", "testcontainerappsjob0", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_Update
+### Jobs_GetDetector
```java
-import com.azure.resourcemanager.appcontainers.models.Container;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
-import com.azure.resourcemanager.appcontainers.models.ContainerResources;
-import com.azure.resourcemanager.appcontainers.models.InitContainer;
-import com.azure.resourcemanager.appcontainers.models.Job;
-import com.azure.resourcemanager.appcontainers.models.JobConfiguration;
-import com.azure.resourcemanager.appcontainers.models.JobConfigurationManualTriggerConfig;
-import com.azure.resourcemanager.appcontainers.models.JobPatchPropertiesProperties;
-import com.azure.resourcemanager.appcontainers.models.JobTemplate;
-import com.azure.resourcemanager.appcontainers.models.TriggerType;
-import com.azure.resourcemanager.appcontainers.models.Type;
-import java.util.Arrays;
-
/**
- * Samples for Jobs Update.
+ * Samples for Jobs GetDetector.
*/
-public final class JobsUpdateSamples {
+public final class JobsGetDetectorSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Patch.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_GetDetector.json
*/
/**
- * Sample code: Patch Container Apps Job.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void patchContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- Job resource = manager.jobs()
- .getByResourceGroupWithResponse("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(new JobPatchPropertiesProperties()
- .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL)
- .withReplicaTimeout(10)
- .withReplicaRetryLimit(10)
- .withManualTriggerConfig(
- new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1).withParallelism(4)))
- .withTemplate(new JobTemplate()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testinitcontainerAppsJob0")
- .withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppsJob0:v1")
- .withName("testcontainerAppsJob0")
- .withProbes(Arrays.asList(new ContainerAppProbe()
- .withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(Arrays
- .asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
- .withValue("Awesome")))
- .withPath("/health")
- .withPort(8080))
- .withInitialDelaySeconds(3)
- .withPeriodSeconds(3)
- .withType(Type.LIVENESS)))))))
- .apply();
+ * Sample code: Get diagnostic data for a Container App Job.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ getDiagnosticDataForAContainerAppJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs()
+ .getDetectorWithResponse("mikono-workerapp-test-rg", "mikonojob1", "containerappjobnetworkIO",
+ com.azure.core.util.Context.NONE);
}
}
```
-### JobsExecutions_List
+### Jobs_List
```java
/**
- * Samples for JobsExecutions List.
+ * Samples for Jobs List.
*/
-public final class JobsExecutionsListSamples {
+public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Executions_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Jobs_ListBySubscription.json
*/
/**
- * Sample code: Get a Container Apps Job Executions.
+ * Sample code: List Container Apps Jobs by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- getAContainerAppsJobExecutions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobsExecutions().list("rg", "testcontainerAppsJob0", null, com.azure.core.util.Context.NONE);
+ listContainerAppsJobsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().list(com.azure.core.util.Context.NONE);
}
}
```
-### LogicApps_CreateOrUpdate
+### Jobs_ListByResourceGroup
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import java.io.IOException;
-
/**
- * Samples for LogicApps CreateOrUpdate.
+ * Samples for Jobs ListByResourceGroup.
*/
-public final class LogicAppsCreateOrUpdateSamples {
+public final class JobsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Create.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Jobs_ListByResourceGroup.json
*/
/**
- * Sample code: Create logic app extension.
+ * Sample code: List Container Apps Jobs by resource group.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createLogicAppExtension(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager)
- throws IOException {
- manager.logicApps()
- .define("testcontainerApp0")
- .withExistingContainerApp("examplerg", "testcontainerApp0")
- .withProperties(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON))
- .create();
+ public static void
+ listContainerAppsJobsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
}
}
```
-### LogicApps_Delete
+### Jobs_ListDetectors
```java
/**
- * Samples for LogicApps Delete.
+ * Samples for Jobs ListDetectors.
*/
-public final class LogicAppsDeleteSamples {
+public final class JobsListDetectorsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Delete.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_ListDetectors.json
*/
/**
- * Sample code: Create logic app extension.
+ * Sample code: Get the list of available diagnostic data for a Container App Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- createLogicAppExtension(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.logicApps()
- .deleteWithResponse("examplerg", "testcontainerApp0", "testcontainerApp0",
- com.azure.core.util.Context.NONE);
+ public static void getTheListOfAvailableDiagnosticDataForAContainerAppJob(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().listDetectors("mikono-workerapp-test-rg", "mikonojob1", com.azure.core.util.Context.NONE);
}
}
```
-### LogicApps_DeployWorkflowArtifacts
+### Jobs_ListSecrets
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.appcontainers.models.WorkflowArtifacts;
-import java.io.IOException;
-import java.util.Arrays;
-
/**
- * Samples for LogicApps DeployWorkflowArtifacts.
+ * Samples for Jobs ListSecrets.
*/
-public final class LogicAppsDeployWorkflowArtifactsSamples {
+public final class JobsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * LogicApps_PostDeployWorkflowArtifacts.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_ListSecrets.json
*/
/**
- * Sample code: Deploys workflow artifacts.
+ * Sample code: List Container Apps Job Secrets.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deploysWorkflowArtifacts(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager)
- throws IOException {
- manager.logicApps()
- .deployWorkflowArtifactsWithResponse("testrg123", "testapp2", "testapp2", new WorkflowArtifacts()
- .withAppSettings(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"eventHub_connectionString\":\"Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE=\"}",
- Object.class, SerializerEncoding.JSON))
- .withFiles(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"connections.json\":{\"managedApiConnections\":{},\"serviceProviderConnections\":{\"eventHub\":{\"displayName\":\"example1\",\"parameterValues\":{\"connectionString\":\"@appsetting('eventHub_connectionString')\"},\"serviceProvider\":{\"id\":\"/serviceProviders/eventHub\"}}}},\"test1/workflow.json\":{\"definition\":{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"triggers\":{\"When_events_are_available_in_Event_hub\":{\"type\":\"ServiceProvider\",\"inputs\":{\"parameters\":{\"eventHubName\":\"test123\"},\"serviceProviderConfiguration\":{\"operationId\":\"receiveEvents\",\"connectionName\":\"eventHub\",\"serviceProviderId\":\"/serviceProviders/eventHub\"}},\"splitOn\":\"@triggerOutputs()?['body']\"}}},\"kind\":\"Stateful\"}}",
- Object.class, SerializerEncoding.JSON)),
- com.azure.core.util.Context.NONE);
+ public static void
+ listContainerAppsJobSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().listSecretsWithResponse("rg", "testcontainerappsjob0", com.azure.core.util.Context.NONE);
}
+}
+```
+### Jobs_ProxyGet
+
+```java
+/**
+ * Samples for Jobs ProxyGet.
+ */
+public final class JobsProxyGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * LogicApps_DeleteDeployWorkflowArtifacts.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_ProxyGet.json
*/
/**
- * Sample code: Delete workflow artifacts.
+ * Sample code: Get Container App Job by name.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- deleteWorkflowArtifacts(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.logicApps()
- .deployWorkflowArtifactsWithResponse("testrg123", "testapp2", "testapp2",
- new WorkflowArtifacts().withFilesToDelete(Arrays.asList("test/workflow.json", "test/")),
- com.azure.core.util.Context.NONE);
+ getContainerAppJobByName(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().proxyGetWithResponse("rg", "testcontainerappsjob0", "rootApi", com.azure.core.util.Context.NONE);
}
}
```
-### LogicApps_Get
+### Jobs_Start
```java
+import com.azure.resourcemanager.appcontainers.models.ContainerResources;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionContainer;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate;
+import java.util.Arrays;
+
/**
- * Samples for LogicApps Get.
+ * Samples for Jobs Start.
*/
-public final class LogicAppsGetSamples {
+public final class JobsStartSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_Start.json
*/
/**
- * Sample code: Get logic app extension by name.
+ * Sample code: Run a Container Apps Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- getLogicAppExtensionByName(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.logicApps()
- .getWithResponse("examplerg", "testcontainerApp0", "testcontainerApp0", com.azure.core.util.Context.NONE);
+ public static void runAContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs()
+ .start("rg", "testcontainerappsjob0", new JobExecutionTemplate()
+ .withContainers(Arrays.asList(new JobExecutionContainer().withImage("repo/testcontainerappsjob0:v4")
+ .withName("testcontainerappsjob0")
+ .withResources(new ContainerResources().withCpu(0.5D).withMemory("1Gi"))))
+ .withInitContainers(Arrays.asList(new JobExecutionContainer().withImage("repo/testcontainerappsjob0:v4")
+ .withName("testinitcontainerAppsJob0")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new ContainerResources().withCpu(0.5D).withMemory("1Gi")))),
+ com.azure.core.util.Context.NONE);
}
}
```
-### LogicApps_GetWorkflow
+### Jobs_StopExecution
```java
/**
- * Samples for LogicApps GetWorkflow.
+ * Samples for Jobs StopExecution.
*/
-public final class LogicAppsGetWorkflowSamples {
+public final class JobsStopExecutionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_GetWorkflow.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_Stop_Execution.json
*/
/**
- * Sample code: GET a workflow.
+ * Sample code: Terminate a Container Apps Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void gETAWorkflow(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.logicApps()
- .getWorkflowWithResponse("examplerg", "testcontainerApp0", "testcontainerApp0", "stateful1",
- com.azure.core.util.Context.NONE);
+ public static void
+ terminateAContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().stopExecution("rg", "testcontainerappsjob0", "jobExecution1", com.azure.core.util.Context.NONE);
}
}
```
-### LogicApps_Invoke
+### Jobs_StopMultipleExecutions
```java
-import com.azure.resourcemanager.appcontainers.models.LogicAppsProxyMethod;
-
/**
- * Samples for LogicApps Invoke.
+ * Samples for Jobs StopMultipleExecutions.
*/
-public final class LogicAppsInvokeSamples {
+public final class JobsStopMultipleExecutionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListCallbackURL.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_Stop_Multiple.json
*/
/**
- * Sample code: Get workflow list call back URL.
+ * Sample code: Terminate Multiple Container Apps Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- getWorkflowListCallBackURL(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.logicApps()
- .invokeWithResponse("testrg123", "testapp2", "testapp2",
- "/runtime/webhooks/workflow/api/management/workflows/Stateful1/triggers/When_a_HTTP_request_is_received/listCallbackUrl",
- LogicAppsProxyMethod.POST, com.azure.core.util.Context.NONE);
+ terminateMultipleContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().stopMultipleExecutions("rg", "testcontainerappsjob0", com.azure.core.util.Context.NONE);
}
}
```
-### LogicApps_ListWorkflows
+### Jobs_Update
```java
+import com.azure.resourcemanager.appcontainers.models.Container;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
+import com.azure.resourcemanager.appcontainers.models.ContainerResources;
+import com.azure.resourcemanager.appcontainers.models.InitContainer;
+import com.azure.resourcemanager.appcontainers.models.Job;
+import com.azure.resourcemanager.appcontainers.models.JobConfiguration;
+import com.azure.resourcemanager.appcontainers.models.JobConfigurationManualTriggerConfig;
+import com.azure.resourcemanager.appcontainers.models.JobPatchPropertiesProperties;
+import com.azure.resourcemanager.appcontainers.models.JobTemplate;
+import com.azure.resourcemanager.appcontainers.models.TriggerType;
+import com.azure.resourcemanager.appcontainers.models.Type;
+import java.util.Arrays;
+
/**
- * Samples for LogicApps ListWorkflows.
+ * Samples for Jobs Update.
*/
-public final class LogicAppsListWorkflowsSamples {
+public final class JobsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListWorkflows.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_Patch.json
*/
/**
- * Sample code: List the workflows.
+ * Sample code: Patch Container Apps Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listTheWorkflows(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.logicApps()
- .listWorkflows("examplerg", "testcontainerApp0", "testcontainerApp0", com.azure.core.util.Context.NONE);
+ public static void patchContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ Job resource = manager.jobs()
+ .getByResourceGroupWithResponse("rg", "testcontainerappsjob0", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new JobPatchPropertiesProperties()
+ .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL)
+ .withReplicaTimeout(10)
+ .withReplicaRetryLimit(10)
+ .withManualTriggerConfig(
+ new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1).withParallelism(4)))
+ .withTemplate(new JobTemplate()
+ .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerappsjob0:v4")
+ .withName("testinitcontainerAppsJob0")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new ContainerResources().withCpu(0.5D).withMemory("1Gi"))))
+ .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerappsjob0:v1")
+ .withName("testcontainerappsjob0")
+ .withProbes(Arrays.asList(new ContainerAppProbe()
+ .withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(Arrays
+ .asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080))
+ .withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withType(Type.LIVENESS)))))))
+ .apply();
}
}
```
-### LogicApps_ListWorkflowsConnections
+### JobsExecutions_List
```java
/**
- * Samples for LogicApps ListWorkflowsConnections.
+ * Samples for JobsExecutions List.
*/
-public final class LogicAppsListWorkflowsConnectionsSamples {
+public final class JobsExecutionsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListConnections.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_Executions_Get.json
*/
/**
- * Sample code: List the Workflows Configuration Connections.
+ * Sample code: Get a Container Apps Job Executions.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listTheWorkflowsConfigurationConnections(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.logicApps()
- .listWorkflowsConnectionsWithResponse("testrg123", "testapp2", "testapp2",
- com.azure.core.util.Context.NONE);
+ public static void
+ getAContainerAppsJobExecutions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobsExecutions().list("rg", "testcontainerappsjob0", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -5310,8 +3277,9 @@ import com.azure.resourcemanager.appcontainers.models.ManagedCertificateProperti
*/
public final class ManagedCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedCertificate_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedCertificate_CreateOrUpdate.
+ * json
*/
/**
* Sample code: Create or Update Certificate.
@@ -5340,8 +3308,7 @@ public final class ManagedCertificatesCreateOrUpdateSamples {
public final class ManagedCertificatesDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Delete.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedCertificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -5365,7 +3332,7 @@ public final class ManagedCertificatesDeleteSamples {
public final class ManagedCertificatesGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedCertificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -5388,7 +3355,7 @@ public final class ManagedCertificatesGetSamples {
*/
public final class ManagedCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
* ManagedCertificates_ListByManagedEnvironment.json
*/
/**
@@ -5416,8 +3383,7 @@ import java.util.Map;
public final class ManagedCertificatesUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificates_Patch.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedCertificates_Patch.json
*/
/**
* Sample code: Patch Managed Certificate.
@@ -5455,8 +3421,9 @@ public final class ManagedCertificatesUpdateSamples {
*/
public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentDiagnostics_Get.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironmentDiagnostics_Get.
+ * json
*/
/**
* Sample code: Get diagnostic data for a managed environments.
@@ -5480,8 +3447,9 @@ public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
*/
public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentDiagnostics_List.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironmentDiagnostics_List.
+ * json
*/
/**
* Sample code: Get the list of available diagnostic data for a managed environments.
@@ -5496,136 +3464,6 @@ public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
}
```
-### ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.appcontainers.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.appcontainers.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnectionState;
-
-/**
- * Samples for ManagedEnvironmentPrivateEndpointConnections CreateOrUpdate.
- */
-public final class ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json
- */
- /**
- * Sample code: Update a Private Endpoint Connection by Managed Environment.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void updateAPrivateEndpointConnectionByManagedEnvironment(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- PrivateEndpointConnection resource = manager.managedEnvironmentPrivateEndpointConnections()
- .getWithResponse("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withActionsRequired("None"))
- .apply();
- }
-}
-```
-
-### ManagedEnvironmentPrivateEndpointConnections_Delete
-
-```java
-/**
- * Samples for ManagedEnvironmentPrivateEndpointConnections Delete.
- */
-public final class ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentPrivateEndpointConnections_Delete.json
- */
- /**
- * Sample code: Delete a Private Endpoint Connection by Managed Environment.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void deleteAPrivateEndpointConnectionByManagedEnvironment(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentPrivateEndpointConnections()
- .delete("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ManagedEnvironmentPrivateEndpointConnections_Get
-
-```java
-/**
- * Samples for ManagedEnvironmentPrivateEndpointConnections Get.
- */
-public final class ManagedEnvironmentPrivateEndpointConnectionsGetSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentPrivateEndpointConnections_Get.json
- */
- /**
- * Sample code: Get a Private Endpoint Connection by Managed Environment.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void getAPrivateEndpointConnectionByManagedEnvironment(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentPrivateEndpointConnections()
- .getWithResponse("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ManagedEnvironmentPrivateEndpointConnections_List
-
-```java
-/**
- * Samples for ManagedEnvironmentPrivateEndpointConnections List.
- */
-public final class ManagedEnvironmentPrivateEndpointConnectionsListSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentPrivateEndpointConnections_List.json
- */
- /**
- * Sample code: List Private Endpoint Connections by Managed Environment.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void listPrivateEndpointConnectionsByManagedEnvironment(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentPrivateEndpointConnections()
- .list("examplerg", "managedEnv", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ManagedEnvironmentPrivateLinkResources_List
-
-```java
-/**
- * Samples for ManagedEnvironmentPrivateLinkResources List.
- */
-public final class ManagedEnvironmentPrivateLinkResourcesListSamples {
- /*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentPrivateLinkResources_List.json
- */
- /**
- * Sample code: List Private Link Resources by Managed Environment.
- *
- * @param manager Entry point to ContainerAppsApiManager.
- */
- public static void listPrivateLinkResourcesByManagedEnvironment(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentPrivateLinkResources()
- .list("examplerg", "managedEnv", com.azure.core.util.Context.NONE);
- }
-}
-```
-
### ManagedEnvironmentUsages_List
```java
@@ -5634,8 +3472,8 @@ public final class ManagedEnvironmentPrivateLinkResourcesListSamples {
*/
public final class ManagedEnvironmentUsagesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentUsages_List.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironmentUsages_List.json
*/
/**
* Sample code: List managed environment usages.
@@ -5652,24 +3490,15 @@ public final class ManagedEnvironmentUsagesListSamples {
### ManagedEnvironments_CreateOrUpdate
```java
-import com.azure.resourcemanager.appcontainers.models.AppInsightsConfiguration;
import com.azure.resourcemanager.appcontainers.models.AppLogsConfiguration;
import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
-import com.azure.resourcemanager.appcontainers.models.DataDogConfiguration;
-import com.azure.resourcemanager.appcontainers.models.DestinationsConfiguration;
-import com.azure.resourcemanager.appcontainers.models.Header;
import com.azure.resourcemanager.appcontainers.models.LogAnalyticsConfiguration;
-import com.azure.resourcemanager.appcontainers.models.LogsConfiguration;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.appcontainers.models.MetricsConfiguration;
import com.azure.resourcemanager.appcontainers.models.Mtls;
-import com.azure.resourcemanager.appcontainers.models.OpenTelemetryConfiguration;
-import com.azure.resourcemanager.appcontainers.models.OtlpConfiguration;
-import com.azure.resourcemanager.appcontainers.models.TracesConfiguration;
import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
@@ -5682,7 +3511,7 @@ import java.util.Map;
*/
public final class ManagedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
* ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
*/
/**
@@ -5708,7 +3537,6 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
.withCertificatePassword("fakeTokenPlaceholder"))
.withWorkloadProfiles(Arrays.asList(
new WorkloadProfile().withName("My-GP-01")
- .withEnableFips(true)
.withWorkloadProfileType("GeneralPurpose")
.withMinimumCount(3)
.withMaximumCount(12),
@@ -5726,8 +3554,9 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironments_CreateOrUpdate.
+ * json
*/
/**
* Sample code: Create environments.
@@ -5748,35 +3577,14 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
.withVnetConfiguration(new VnetConfiguration().withInfrastructureSubnetId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"))
- .withAppLogsConfiguration(new AppLogsConfiguration()
- .withLogAnalyticsConfiguration(new LogAnalyticsConfiguration().withCustomerId("string")
- .withSharedKey("fakeTokenPlaceholder")
- .withDynamicJsonColumns(true)))
- .withAppInsightsConfiguration(new AppInsightsConfiguration().withConnectionString(
- "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"))
- .withOpenTelemetryConfiguration(
- new OpenTelemetryConfiguration()
- .withDestinationsConfiguration(
- new DestinationsConfiguration()
- .withDataDogConfiguration(
- new DataDogConfiguration().withSite("string").withKey("fakeTokenPlaceholder"))
- .withOtlpConfigurations(Arrays.asList(new OtlpConfiguration().withName("dashboard")
- .withEndpoint("dashboard.k8s.region.azurecontainerapps.io:80")
- .withInsecure(true)
- .withHeaders(Arrays
- .asList(new Header().withKey("fakeTokenPlaceholder").withValue("xxxxxxxxxxx"))))))
- .withTracesConfiguration(
- new TracesConfiguration().withIncludeDapr(true).withDestinations(Arrays.asList("appInsights")))
- .withLogsConfiguration(new LogsConfiguration().withDestinations(Arrays.asList("appInsights")))
- .withMetricsConfiguration(
- new MetricsConfiguration().withIncludeKeda(true).withDestinations(Arrays.asList("dataDog"))))
+ .withAppLogsConfiguration(new AppLogsConfiguration().withLogAnalyticsConfiguration(
+ new LogAnalyticsConfiguration().withCustomerId("string").withSharedKey("fakeTokenPlaceholder")))
.withZoneRedundant(true)
.withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("www.my-name.com")
.withCertificateValue("Y2VydA==".getBytes())
.withCertificatePassword("fakeTokenPlaceholder"))
.withWorkloadProfiles(Arrays.asList(
new WorkloadProfile().withName("My-GP-01")
- .withEnableFips(true)
.withWorkloadProfileType("GeneralPurpose")
.withMinimumCount(3)
.withMaximumCount(12),
@@ -5819,8 +3627,7 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
public final class ManagedEnvironmentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Delete.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironments_Delete.json
*/
/**
* Sample code: Delete environment by name.
@@ -5842,8 +3649,8 @@ public final class ManagedEnvironmentsDeleteSamples {
*/
public final class ManagedEnvironmentsGetAuthTokenSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironments_GetAuthToken.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironments_GetAuthToken.json
*/
/**
* Sample code: Get Managed Environment Auth Token.
@@ -5866,7 +3673,7 @@ public final class ManagedEnvironmentsGetAuthTokenSamples {
public final class ManagedEnvironmentsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -5888,7 +3695,7 @@ public final class ManagedEnvironmentsGetByResourceGroupSamples {
*/
public final class ManagedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
* ManagedEnvironments_ListBySubscription.json
*/
/**
@@ -5911,7 +3718,7 @@ public final class ManagedEnvironmentsListSamples {
*/
public final class ManagedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
* ManagedEnvironments_ListByResourceGroup.json
*/
/**
@@ -5934,7 +3741,7 @@ public final class ManagedEnvironmentsListByResourceGroupSamples {
*/
public final class ManagedEnvironmentsListWorkloadProfileStatesSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
* ManagedEnvironments_ListWorkloadProfileStates.json
*/
/**
@@ -5963,8 +3770,7 @@ import java.util.Map;
public final class ManagedEnvironmentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Patch.
- * json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
@@ -6002,7 +3808,7 @@ public final class ManagedEnvironmentsUpdateSamples {
public final class ManagedEnvironmentsDiagnosticsGetRootSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -6029,7 +3835,7 @@ import com.azure.resourcemanager.appcontainers.models.NfsAzureFileProperties;
*/
public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
* ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json
*/
/**
@@ -6050,7 +3856,7 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
* ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
@@ -6081,8 +3887,9 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
*/
public final class ManagedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentsStorages_Delete.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironmentsStorages_Delete.
+ * json
*/
/**
* Sample code: List environments storages by subscription.
@@ -6105,8 +3912,8 @@ public final class ManagedEnvironmentsStoragesDeleteSamples {
*/
public final class ManagedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentsStorages_Get.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironmentsStorages_Get.json
*/
/**
* Sample code: get a environments storage.
@@ -6120,7 +3927,7 @@ public final class ManagedEnvironmentsStoragesGetSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
* ManagedEnvironmentsStorages_Get_NfsAzureFile.json
*/
/**
@@ -6144,8 +3951,8 @@ public final class ManagedEnvironmentsStoragesGetSamples {
*/
public final class ManagedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ManagedEnvironmentsStorages_List.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ManagedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -6170,8 +3977,9 @@ import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReque
*/
public final class NamespacesCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * Certificates_CheckNameAvailability.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Certificates_CheckNameAvailability.
+ * json
*/
/**
* Sample code: Certificates_CheckNameAvailability.
@@ -6188,8 +3996,9 @@ public final class NamespacesCheckNameAvailabilitySamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
- * ContainerApps_CheckNameAvailability.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_CheckNameAvailability.
+ * json
*/
/**
* Sample code: ContainerApps_CheckNameAvailability.
@@ -6215,7 +4024,7 @@ public final class NamespacesCheckNameAvailabilitySamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Operations_List.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Operations_List.json
*/
/**
* Sample code: List all operations.
@@ -6236,7 +4045,7 @@ public final class OperationsListSamples {
*/
public final class ResourceProviderGetCustomDomainVerificationIdSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/
* Subscriptions_GetCustomDomainVerificationId.json
*/
/**
@@ -6259,7 +4068,7 @@ public final class ResourceProviderGetCustomDomainVerificationIdSamples {
public final class ResourceProviderJobExecutionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Execution_Get.json
+ * specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Job_Execution_Get.json
*/
/**
* Sample code: Get a single Job Execution.
@@ -6268,7 +4077,7 @@ public final class ResourceProviderJobExecutionSamples {
*/
public static void getASingleJobExecution(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager.resourceProviders()
- .jobExecutionWithResponse("rg", "testcontainerAppsJob0", "jobExecution1", com.azure.core.util.Context.NONE);
+ .jobExecutionWithResponse("rg", "testcontainerappsjob0", "jobExecution1", com.azure.core.util.Context.NONE);
}
}
```
@@ -6281,8 +4090,7 @@ public final class ResourceProviderJobExecutionSamples {
*/
public final class UsagesListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Usages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/Usages_List.json
*/
/**
* Sample code: List usages.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
index f66250bf72d6..3d59881c4f64 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
@@ -18,7 +18,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. Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions extension resource. Package tag package-preview-2024-08.
+ 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-2025-01-01.
https://github.com/Azure/azure-sdk-for-java
@@ -46,6 +46,7 @@
0
0
true
+ false
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 37ba91013964..9fc2c971f056 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
@@ -11,6 +11,7 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -19,18 +20,12 @@
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsApiClient;
-import com.azure.resourcemanager.appcontainers.implementation.AppResilienciesImpl;
import com.azure.resourcemanager.appcontainers.implementation.AvailableWorkloadProfilesImpl;
import com.azure.resourcemanager.appcontainers.implementation.BillingMetersImpl;
-import com.azure.resourcemanager.appcontainers.implementation.BuildAuthTokensImpl;
-import com.azure.resourcemanager.appcontainers.implementation.BuildersImpl;
-import com.azure.resourcemanager.appcontainers.implementation.BuildsByBuilderResourcesImpl;
-import com.azure.resourcemanager.appcontainers.implementation.BuildsImpl;
import com.azure.resourcemanager.appcontainers.implementation.CertificatesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsCertificatesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsDaprComponentsImpl;
@@ -38,28 +33,18 @@
import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsStoragesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsApiClientBuilder;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsAuthConfigsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsByContainerAppsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsPatchesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionReplicasImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSessionPoolsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSourceControlsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.DaprComponentResiliencyPoliciesImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.DaprSubscriptionsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.DotNetComponentsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.FunctionsExtensionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.JavaComponentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.JobsExecutionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.JobsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.LogicAppsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedCertificatesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentDiagnosticsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentPrivateEndpointConnectionsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentPrivateLinkResourcesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentUsagesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsImpl;
@@ -68,13 +53,8 @@
import com.azure.resourcemanager.appcontainers.implementation.OperationsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.appcontainers.implementation.UsagesImpl;
-import com.azure.resourcemanager.appcontainers.models.AppResiliencies;
import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfiles;
import com.azure.resourcemanager.appcontainers.models.BillingMeters;
-import com.azure.resourcemanager.appcontainers.models.BuildAuthTokens;
-import com.azure.resourcemanager.appcontainers.models.Builders;
-import com.azure.resourcemanager.appcontainers.models.Builds;
-import com.azure.resourcemanager.appcontainers.models.BuildsByBuilderResources;
import com.azure.resourcemanager.appcontainers.models.Certificates;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironments;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsCertificates;
@@ -82,27 +62,17 @@
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.ContainerApps;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsAuthConfigs;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuilds;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildsByContainerApps;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsDiagnostics;
-import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatches;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisionReplicas;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisions;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsSessionPools;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsSourceControls;
-import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicies;
import com.azure.resourcemanager.appcontainers.models.DaprComponents;
-import com.azure.resourcemanager.appcontainers.models.DaprSubscriptions;
-import com.azure.resourcemanager.appcontainers.models.DotNetComponents;
-import com.azure.resourcemanager.appcontainers.models.FunctionsExtensions;
import com.azure.resourcemanager.appcontainers.models.JavaComponents;
import com.azure.resourcemanager.appcontainers.models.Jobs;
import com.azure.resourcemanager.appcontainers.models.JobsExecutions;
-import com.azure.resourcemanager.appcontainers.models.LogicApps;
import com.azure.resourcemanager.appcontainers.models.ManagedCertificates;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentDiagnostics;
-import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPrivateEndpointConnections;
-import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPrivateLinkResources;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentUsages;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironments;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsDiagnostics;
@@ -120,27 +90,14 @@
/**
* Entry point to ContainerAppsApiManager.
- * Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the
- * function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions
- * extension resource.
*/
public final class ContainerAppsApiManager {
- private AppResiliencies appResiliencies;
-
private ContainerAppsAuthConfigs containerAppsAuthConfigs;
private AvailableWorkloadProfiles availableWorkloadProfiles;
private BillingMeters billingMeters;
- private Builders builders;
-
- private BuildsByBuilderResources buildsByBuilderResources;
-
- private Builds builds;
-
- private BuildAuthTokens buildAuthTokens;
-
private ConnectedEnvironments connectedEnvironments;
private ConnectedEnvironmentsCertificates connectedEnvironmentsCertificates;
@@ -151,12 +108,6 @@ public final class ContainerAppsApiManager {
private ContainerApps containerApps;
- private ContainerAppsBuildsByContainerApps containerAppsBuildsByContainerApps;
-
- private ContainerAppsBuilds containerAppsBuilds;
-
- private ContainerAppsPatches containerAppsPatches;
-
private ContainerAppsRevisions containerAppsRevisions;
private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;
@@ -169,10 +120,6 @@ public final class ContainerAppsApiManager {
private Jobs jobs;
- private DotNetComponents dotNetComponents;
-
- private FunctionsExtensions functionsExtensions;
-
private Operations operations;
private JavaComponents javaComponents;
@@ -181,8 +128,6 @@ public final class ContainerAppsApiManager {
private ResourceProviders resourceProviders;
- private LogicApps logicApps;
-
private ManagedEnvironments managedEnvironments;
private Certificates certificates;
@@ -191,16 +136,8 @@ public final class ContainerAppsApiManager {
private Namespaces namespaces;
- private ManagedEnvironmentPrivateEndpointConnections managedEnvironmentPrivateEndpointConnections;
-
- private ManagedEnvironmentPrivateLinkResources managedEnvironmentPrivateLinkResources;
-
- private DaprComponentResiliencyPolicies daprComponentResiliencyPolicies;
-
private DaprComponents daprComponents;
- private DaprSubscriptions daprSubscriptions;
-
private ManagedEnvironmentsStorages managedEnvironmentsStorages;
private ContainerAppsSessionPools containerAppsSessionPools;
@@ -375,7 +312,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
- .append("1.1.0-beta.1");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -408,7 +345,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -421,18 +358,6 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
}
}
- /**
- * Gets the resource collection API of AppResiliencies. It manages AppResiliency.
- *
- * @return Resource collection API of AppResiliencies.
- */
- public AppResiliencies appResiliencies() {
- if (this.appResiliencies == null) {
- this.appResiliencies = new AppResilienciesImpl(clientObject.getAppResiliencies(), this);
- }
- return appResiliencies;
- }
-
/**
* Gets the resource collection API of ContainerAppsAuthConfigs. It manages AuthConfig.
*
@@ -471,55 +396,6 @@ public BillingMeters billingMeters() {
return billingMeters;
}
- /**
- * Gets the resource collection API of Builders. It manages BuilderResource.
- *
- * @return Resource collection API of Builders.
- */
- public Builders builders() {
- if (this.builders == null) {
- this.builders = new BuildersImpl(clientObject.getBuilders(), this);
- }
- return builders;
- }
-
- /**
- * Gets the resource collection API of BuildsByBuilderResources.
- *
- * @return Resource collection API of BuildsByBuilderResources.
- */
- public BuildsByBuilderResources buildsByBuilderResources() {
- if (this.buildsByBuilderResources == null) {
- this.buildsByBuilderResources
- = new BuildsByBuilderResourcesImpl(clientObject.getBuildsByBuilderResources(), this);
- }
- return buildsByBuilderResources;
- }
-
- /**
- * Gets the resource collection API of Builds. It manages BuildResource.
- *
- * @return Resource collection API of Builds.
- */
- public Builds builds() {
- if (this.builds == null) {
- this.builds = new BuildsImpl(clientObject.getBuilds(), this);
- }
- return builds;
- }
-
- /**
- * Gets the resource collection API of BuildAuthTokens.
- *
- * @return Resource collection API of BuildAuthTokens.
- */
- public BuildAuthTokens buildAuthTokens() {
- if (this.buildAuthTokens == null) {
- this.buildAuthTokens = new BuildAuthTokensImpl(clientObject.getBuildAuthTokens(), this);
- }
- return buildAuthTokens;
- }
-
/**
* Gets the resource collection API of ConnectedEnvironments. It manages ConnectedEnvironment.
*
@@ -583,43 +459,6 @@ public ContainerApps containerApps() {
return containerApps;
}
- /**
- * Gets the resource collection API of ContainerAppsBuildsByContainerApps.
- *
- * @return Resource collection API of ContainerAppsBuildsByContainerApps.
- */
- public ContainerAppsBuildsByContainerApps containerAppsBuildsByContainerApps() {
- if (this.containerAppsBuildsByContainerApps == null) {
- this.containerAppsBuildsByContainerApps = new ContainerAppsBuildsByContainerAppsImpl(
- clientObject.getContainerAppsBuildsByContainerApps(), this);
- }
- return containerAppsBuildsByContainerApps;
- }
-
- /**
- * Gets the resource collection API of ContainerAppsBuilds.
- *
- * @return Resource collection API of ContainerAppsBuilds.
- */
- public ContainerAppsBuilds containerAppsBuilds() {
- if (this.containerAppsBuilds == null) {
- this.containerAppsBuilds = new ContainerAppsBuildsImpl(clientObject.getContainerAppsBuilds(), this);
- }
- return containerAppsBuilds;
- }
-
- /**
- * Gets the resource collection API of ContainerAppsPatches.
- *
- * @return Resource collection API of ContainerAppsPatches.
- */
- public ContainerAppsPatches containerAppsPatches() {
- if (this.containerAppsPatches == null) {
- this.containerAppsPatches = new ContainerAppsPatchesImpl(clientObject.getContainerAppsPatches(), this);
- }
- return containerAppsPatches;
- }
-
/**
* Gets the resource collection API of ContainerAppsRevisions.
*
@@ -697,30 +536,6 @@ public Jobs jobs() {
return jobs;
}
- /**
- * Gets the resource collection API of DotNetComponents. It manages DotNetComponent.
- *
- * @return Resource collection API of DotNetComponents.
- */
- public DotNetComponents dotNetComponents() {
- if (this.dotNetComponents == null) {
- this.dotNetComponents = new DotNetComponentsImpl(clientObject.getDotNetComponents(), this);
- }
- return dotNetComponents;
- }
-
- /**
- * Gets the resource collection API of FunctionsExtensions.
- *
- * @return Resource collection API of FunctionsExtensions.
- */
- public FunctionsExtensions functionsExtensions() {
- if (this.functionsExtensions == null) {
- this.functionsExtensions = new FunctionsExtensionsImpl(clientObject.getFunctionsExtensions(), this);
- }
- return functionsExtensions;
- }
-
/**
* Gets the resource collection API of Operations.
*
@@ -769,18 +584,6 @@ public ResourceProviders resourceProviders() {
return resourceProviders;
}
- /**
- * Gets the resource collection API of LogicApps. It manages LogicApp.
- *
- * @return Resource collection API of LogicApps.
- */
- public LogicApps logicApps() {
- if (this.logicApps == null) {
- this.logicApps = new LogicAppsImpl(clientObject.getLogicApps(), this);
- }
- return logicApps;
- }
-
/**
* Gets the resource collection API of ManagedEnvironments. It manages ManagedEnvironment.
*
@@ -829,46 +632,6 @@ public Namespaces namespaces() {
return namespaces;
}
- /**
- * Gets the resource collection API of ManagedEnvironmentPrivateEndpointConnections. It manages
- * PrivateEndpointConnection.
- *
- * @return Resource collection API of ManagedEnvironmentPrivateEndpointConnections.
- */
- public ManagedEnvironmentPrivateEndpointConnections managedEnvironmentPrivateEndpointConnections() {
- if (this.managedEnvironmentPrivateEndpointConnections == null) {
- this.managedEnvironmentPrivateEndpointConnections = new ManagedEnvironmentPrivateEndpointConnectionsImpl(
- clientObject.getManagedEnvironmentPrivateEndpointConnections(), this);
- }
- return managedEnvironmentPrivateEndpointConnections;
- }
-
- /**
- * Gets the resource collection API of ManagedEnvironmentPrivateLinkResources.
- *
- * @return Resource collection API of ManagedEnvironmentPrivateLinkResources.
- */
- public ManagedEnvironmentPrivateLinkResources managedEnvironmentPrivateLinkResources() {
- if (this.managedEnvironmentPrivateLinkResources == null) {
- this.managedEnvironmentPrivateLinkResources = new ManagedEnvironmentPrivateLinkResourcesImpl(
- clientObject.getManagedEnvironmentPrivateLinkResources(), this);
- }
- return managedEnvironmentPrivateLinkResources;
- }
-
- /**
- * Gets the resource collection API of DaprComponentResiliencyPolicies. It manages DaprComponentResiliencyPolicy.
- *
- * @return Resource collection API of DaprComponentResiliencyPolicies.
- */
- public DaprComponentResiliencyPolicies daprComponentResiliencyPolicies() {
- if (this.daprComponentResiliencyPolicies == null) {
- this.daprComponentResiliencyPolicies
- = new DaprComponentResiliencyPoliciesImpl(clientObject.getDaprComponentResiliencyPolicies(), this);
- }
- return daprComponentResiliencyPolicies;
- }
-
/**
* Gets the resource collection API of DaprComponents.
*
@@ -881,18 +644,6 @@ public DaprComponents daprComponents() {
return daprComponents;
}
- /**
- * Gets the resource collection API of DaprSubscriptions. It manages DaprSubscription.
- *
- * @return Resource collection API of DaprSubscriptions.
- */
- public DaprSubscriptions daprSubscriptions() {
- if (this.daprSubscriptions == null) {
- this.daprSubscriptions = new DaprSubscriptionsImpl(clientObject.getDaprSubscriptions(), this);
- }
- return daprSubscriptions;
- }
-
/**
* Gets the resource collection API of ManagedEnvironmentsStorages. It manages ManagedEnvironmentStorage.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/AppResilienciesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/AppResilienciesClient.java
deleted file mode 100644
index 1a40d6420997..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/AppResilienciesClient.java
+++ /dev/null
@@ -1,198 +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;
-
-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.AppResiliencyInner;
-
-/**
- * An instance of this class provides access to all the operations defined in AppResilienciesClient.
- */
-public interface AppResilienciesClient {
- /**
- * Create or update an application's resiliency policy.
- *
- * Create or update container app resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName Name of the Container App.
- * @param name Name of the resiliency policy.
- * @param resiliencyEnvelope The resiliency policy to create or update.
- * @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 configuration to setup App Resiliency along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String appName, String name,
- AppResiliencyInner resiliencyEnvelope, Context context);
-
- /**
- * Create or update an application's resiliency policy.
- *
- * Create or update container app resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName Name of the Container App.
- * @param name Name of the resiliency policy.
- * @param resiliencyEnvelope The resiliency policy to create or update.
- * @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 configuration to setup App Resiliency.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AppResiliencyInner createOrUpdate(String resourceGroupName, String appName, String name,
- AppResiliencyInner resiliencyEnvelope);
-
- /**
- * Update an application's resiliency policy.
- *
- * Update container app resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName Name of the Container App.
- * @param name Name of the resiliency policy.
- * @param resiliencyEnvelope The resiliency policy to update.
- * @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 configuration to setup App Resiliency along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String appName, String name,
- AppResiliencyInner resiliencyEnvelope, Context context);
-
- /**
- * Update an application's resiliency policy.
- *
- * Update container app resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName Name of the Container App.
- * @param name Name of the resiliency policy.
- * @param resiliencyEnvelope The resiliency policy to update.
- * @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 configuration to setup App Resiliency.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AppResiliencyInner update(String resourceGroupName, String appName, String name,
- AppResiliencyInner resiliencyEnvelope);
-
- /**
- * Delete an application's resiliency policy.
- *
- * Delete container app resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName Name of the Container App.
- * @param name Name of the resiliency policy.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String appName, String name, Context context);
-
- /**
- * Delete an application's resiliency policy.
- *
- * Delete container app resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName Name of the Container App.
- * @param name Name of the resiliency policy.
- * @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 appName, String name);
-
- /**
- * Get an application's resiliency policy.
- *
- * Get container app resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName Name of the Container App.
- * @param name Name of the resiliency policy.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return container app resiliency policy along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String appName, String name,
- Context context);
-
- /**
- * Get an application's resiliency policy.
- *
- * Get container app resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName Name of the Container App.
- * @param name Name of the resiliency policy.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return container app resiliency policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AppResiliencyInner get(String resourceGroupName, String appName, String name);
-
- /**
- * List an application's resiliency policies.
- *
- * List container app resiliency policies.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName 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.
- * @return collection of AppResiliency policies as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String appName);
-
- /**
- * List an application's resiliency policies.
- *
- * List container app resiliency policies.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appName 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
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return collection of AppResiliency policies as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String appName, Context context);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildAuthTokensClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildAuthTokensClient.java
deleted file mode 100644
index c794c5f7277a..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildAuthTokensClient.java
+++ /dev/null
@@ -1,47 +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;
-
-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.BuildTokenInner;
-
-/**
- * An instance of this class provides access to all the operations defined in BuildAuthTokensClient.
- */
-public interface BuildAuthTokensClient {
- /**
- * Gets the token used to connect to the endpoint where source code can be uploaded for a build.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @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 token used to connect to the endpoint where source code can be uploaded for a build along with
- * {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String resourceGroupName, String builderName, String buildName,
- Context context);
-
- /**
- * Gets the token used to connect to the endpoint where source code can be uploaded for a build.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @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 token used to connect to the endpoint where source code can be uploaded for a build.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BuildTokenInner list(String resourceGroupName, String builderName, String buildName);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildersClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildersClient.java
deleted file mode 100644
index 65cd73fe23a4..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildersClient.java
+++ /dev/null
@@ -1,270 +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;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner;
-import com.azure.resourcemanager.appcontainers.models.BuilderResourceUpdate;
-
-/**
- * An instance of this class provides access to all the operations defined in BuildersClient.
- */
-public interface BuildersClient {
- /**
- * List BuilderResource resources by subscription ID.
- *
- * @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 response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List BuilderResource resources by subscription ID.
- *
- * @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 response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * List BuilderResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.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 response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List BuilderResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.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 response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * Get a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @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 a BuilderResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String builderName,
- Context context);
-
- /**
- * Get a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @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 a BuilderResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BuilderResourceInner getByResourceGroup(String resourceGroupName, String builderName);
-
- /**
- * Create or update a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param builderEnvelope Resource create parameters.
- * @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 {@link SyncPoller} for polling of information about the SourceToCloud builder resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BuilderResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String builderName, BuilderResourceInner builderEnvelope);
-
- /**
- * Create or update a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param builderEnvelope Resource create parameters.
- * @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 {@link SyncPoller} for polling of information about the SourceToCloud builder resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BuilderResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String builderName, BuilderResourceInner builderEnvelope, Context context);
-
- /**
- * Create or update a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param builderEnvelope Resource create parameters.
- * @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 information about the SourceToCloud builder resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BuilderResourceInner createOrUpdate(String resourceGroupName, String builderName,
- BuilderResourceInner builderEnvelope);
-
- /**
- * Create or update a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param builderEnvelope Resource create parameters.
- * @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 information about the SourceToCloud builder resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BuilderResourceInner createOrUpdate(String resourceGroupName, String builderName,
- BuilderResourceInner builderEnvelope, Context context);
-
- /**
- * Update a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param builderEnvelope The resource properties to be updated.
- * @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 {@link SyncPoller} for polling of information about the SourceToCloud builder resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BuilderResourceInner> beginUpdate(String resourceGroupName,
- String builderName, BuilderResourceUpdate builderEnvelope);
-
- /**
- * Update a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param builderEnvelope The resource properties to be updated.
- * @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 {@link SyncPoller} for polling of information about the SourceToCloud builder resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BuilderResourceInner> beginUpdate(String resourceGroupName,
- String builderName, BuilderResourceUpdate builderEnvelope, Context context);
-
- /**
- * Update a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param builderEnvelope The resource properties to be updated.
- * @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 information about the SourceToCloud builder resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BuilderResourceInner update(String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope);
-
- /**
- * Update a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param builderEnvelope The resource properties to be updated.
- * @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 information about the SourceToCloud builder resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BuilderResourceInner update(String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope,
- Context context);
-
- /**
- * Delete a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String builderName);
-
- /**
- * Delete a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String builderName, Context context);
-
- /**
- * Delete a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String builderName);
-
- /**
- * Delete a BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String builderName, Context context);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildsByBuilderResourcesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildsByBuilderResourcesClient.java
deleted file mode 100644
index a957f2df2405..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildsByBuilderResourcesClient.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
-
-/**
- * An instance of this class provides access to all the operations defined in BuildsByBuilderResourcesClient.
- */
-public interface BuildsByBuilderResourcesClient {
- /**
- * List BuildResource resources by BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @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 response of a BuildResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String builderName);
-
- /**
- * List BuildResource resources by BuilderResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @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 response of a BuildResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String builderName, Context context);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildsClient.java
deleted file mode 100644
index 5cce1f950e18..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildsClient.java
+++ /dev/null
@@ -1,171 +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;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
-
-/**
- * An instance of this class provides access to all the operations defined in BuildsClient.
- */
-public interface BuildsClient {
- /**
- * Get a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @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 a BuildResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String builderName, String buildName,
- Context context);
-
- /**
- * Get a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @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 a BuildResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BuildResourceInner get(String resourceGroupName, String builderName, String buildName);
-
- /**
- * Create a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @param buildEnvelope Resource create or update parameters.
- * @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 {@link SyncPoller} for polling of information pertaining to an individual build.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BuildResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String builderName, String buildName, BuildResourceInner buildEnvelope);
-
- /**
- * Create a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @param buildEnvelope Resource create or update parameters.
- * @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 {@link SyncPoller} for polling of information pertaining to an individual build.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BuildResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String builderName, String buildName, BuildResourceInner buildEnvelope, Context context);
-
- /**
- * Create a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @param buildEnvelope Resource create or update parameters.
- * @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 information pertaining to an individual build.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BuildResourceInner createOrUpdate(String resourceGroupName, String builderName, String buildName,
- BuildResourceInner buildEnvelope);
-
- /**
- * Create a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @param buildEnvelope Resource create or update parameters.
- * @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 information pertaining to an individual build.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BuildResourceInner createOrUpdate(String resourceGroupName, String builderName, String buildName,
- BuildResourceInner buildEnvelope, Context context);
-
- /**
- * Delete a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String builderName, String buildName);
-
- /**
- * Delete a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String builderName, String buildName,
- Context context);
-
- /**
- * Delete a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String builderName, String buildName);
-
- /**
- * Delete a BuildResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param builderName The name of the builder.
- * @param buildName The name of a build.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String builderName, String buildName, 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 dafb90840eb0..9a29313e03cb 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
@@ -12,7 +12,7 @@
*/
public interface ContainerAppsApiClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
@@ -46,13 +46,6 @@ public interface ContainerAppsApiClient {
*/
Duration getDefaultPollInterval();
- /**
- * Gets the AppResilienciesClient object to access its operations.
- *
- * @return the AppResilienciesClient object.
- */
- AppResilienciesClient getAppResiliencies();
-
/**
* Gets the ContainerAppsAuthConfigsClient object to access its operations.
*
@@ -74,34 +67,6 @@ public interface ContainerAppsApiClient {
*/
BillingMetersClient getBillingMeters();
- /**
- * Gets the BuildersClient object to access its operations.
- *
- * @return the BuildersClient object.
- */
- BuildersClient getBuilders();
-
- /**
- * Gets the BuildsByBuilderResourcesClient object to access its operations.
- *
- * @return the BuildsByBuilderResourcesClient object.
- */
- BuildsByBuilderResourcesClient getBuildsByBuilderResources();
-
- /**
- * Gets the BuildsClient object to access its operations.
- *
- * @return the BuildsClient object.
- */
- BuildsClient getBuilds();
-
- /**
- * Gets the BuildAuthTokensClient object to access its operations.
- *
- * @return the BuildAuthTokensClient object.
- */
- BuildAuthTokensClient getBuildAuthTokens();
-
/**
* Gets the ConnectedEnvironmentsClient object to access its operations.
*
@@ -137,27 +102,6 @@ public interface ContainerAppsApiClient {
*/
ContainerAppsClient getContainerApps();
- /**
- * Gets the ContainerAppsBuildsByContainerAppsClient object to access its operations.
- *
- * @return the ContainerAppsBuildsByContainerAppsClient object.
- */
- ContainerAppsBuildsByContainerAppsClient getContainerAppsBuildsByContainerApps();
-
- /**
- * Gets the ContainerAppsBuildsClient object to access its operations.
- *
- * @return the ContainerAppsBuildsClient object.
- */
- ContainerAppsBuildsClient getContainerAppsBuilds();
-
- /**
- * Gets the ContainerAppsPatchesClient object to access its operations.
- *
- * @return the ContainerAppsPatchesClient object.
- */
- ContainerAppsPatchesClient getContainerAppsPatches();
-
/**
* Gets the ContainerAppsRevisionsClient object to access its operations.
*
@@ -200,20 +144,6 @@ public interface ContainerAppsApiClient {
*/
JobsClient getJobs();
- /**
- * Gets the DotNetComponentsClient object to access its operations.
- *
- * @return the DotNetComponentsClient object.
- */
- DotNetComponentsClient getDotNetComponents();
-
- /**
- * Gets the FunctionsExtensionsClient object to access its operations.
- *
- * @return the FunctionsExtensionsClient object.
- */
- FunctionsExtensionsClient getFunctionsExtensions();
-
/**
* Gets the OperationsClient object to access its operations.
*
@@ -242,13 +172,6 @@ public interface ContainerAppsApiClient {
*/
ResourceProvidersClient getResourceProviders();
- /**
- * Gets the LogicAppsClient object to access its operations.
- *
- * @return the LogicAppsClient object.
- */
- LogicAppsClient getLogicApps();
-
/**
* Gets the ManagedEnvironmentsClient object to access its operations.
*
@@ -277,27 +200,6 @@ public interface ContainerAppsApiClient {
*/
NamespacesClient getNamespaces();
- /**
- * Gets the ManagedEnvironmentPrivateEndpointConnectionsClient object to access its operations.
- *
- * @return the ManagedEnvironmentPrivateEndpointConnectionsClient object.
- */
- ManagedEnvironmentPrivateEndpointConnectionsClient getManagedEnvironmentPrivateEndpointConnections();
-
- /**
- * Gets the ManagedEnvironmentPrivateLinkResourcesClient object to access its operations.
- *
- * @return the ManagedEnvironmentPrivateLinkResourcesClient object.
- */
- ManagedEnvironmentPrivateLinkResourcesClient getManagedEnvironmentPrivateLinkResources();
-
- /**
- * Gets the DaprComponentResiliencyPoliciesClient object to access its operations.
- *
- * @return the DaprComponentResiliencyPoliciesClient object.
- */
- DaprComponentResiliencyPoliciesClient getDaprComponentResiliencyPolicies();
-
/**
* Gets the DaprComponentsClient object to access its operations.
*
@@ -305,13 +207,6 @@ public interface ContainerAppsApiClient {
*/
DaprComponentsClient getDaprComponents();
- /**
- * Gets the DaprSubscriptionsClient object to access its operations.
- *
- * @return the DaprSubscriptionsClient object.
- */
- DaprSubscriptionsClient getDaprSubscriptions();
-
/**
* Gets the ManagedEnvironmentsStoragesClient object to access its operations.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsByContainerAppsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsByContainerAppsClient.java
deleted file mode 100644
index 258e621ecb99..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsByContainerAppsClient.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner;
-
-/**
- * An instance of this class provides access to all the operations defined in ContainerAppsBuildsByContainerAppsClient.
- */
-public interface ContainerAppsBuildsByContainerAppsClient {
- /**
- * List Container Apps Build resources by Container App.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Build is associated.
- * @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 response of a Container Apps Build Resource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String containerAppName);
-
- /**
- * List Container Apps Build resources by Container App.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Build is associated.
- * @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 response of a Container Apps Build Resource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String containerAppName,
- Context context);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsClient.java
deleted file mode 100644
index 7d3c288df126..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsClient.java
+++ /dev/null
@@ -1,105 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.appcontainers.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner;
-
-/**
- * An instance of this class provides access to all the operations defined in ContainerAppsBuildsClient.
- */
-public interface ContainerAppsBuildsClient {
- /**
- * Get a Container Apps Build resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Build is associated.
- * @param buildName The name of a build.
- * @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 a Container Apps Build resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String containerAppName,
- String buildName, Context context);
-
- /**
- * Get a Container Apps Build resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Build is associated.
- * @param buildName The name of a build.
- * @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 a Container Apps Build resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ContainerAppsBuildResourceInner get(String resourceGroupName, String containerAppName, String buildName);
-
- /**
- * Delete a Container Apps Build resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Build is associated.
- * @param buildName The name of a build.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String buildName);
-
- /**
- * Delete a Container Apps Build resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Build is associated.
- * @param buildName The name of a build.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String buildName,
- Context context);
-
- /**
- * Delete a Container Apps Build resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Build is associated.
- * @param buildName The name of a build.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String containerAppName, String buildName);
-
- /**
- * Delete a Container Apps Build resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Build is associated.
- * @param buildName The name of a build.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String containerAppName, String buildName, Context context);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsPatchesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsPatchesClient.java
deleted file mode 100644
index 12ce9706f0b7..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsPatchesClient.java
+++ /dev/null
@@ -1,263 +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;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsPatchResourceInner;
-import com.azure.resourcemanager.appcontainers.models.PatchSkipConfig;
-
-/**
- * An instance of this class provides access to all the operations defined in ContainerAppsPatchesClient.
- */
-public interface ContainerAppsPatchesClient {
- /**
- * List Container Apps Patch resources by ContainerApp.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @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 container App patch collection as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByContainerApp(String resourceGroupName,
- String containerAppName);
-
- /**
- * List Container Apps Patch resources by ContainerApp.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param filter The filter to apply on the operation. For example, $filter=properties/patchApplyStatus eq
- * 'Succeeded'.
- * @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 container App patch collection as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByContainerApp(String resourceGroupName, String containerAppName,
- String filter, Context context);
-
- /**
- * Get details for specific Container Apps Patch by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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 details for specific Container Apps Patch by patch name along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String containerAppName,
- String patchName, Context context);
-
- /**
- * Get details for specific Container Apps Patch by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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 details for specific Container Apps Patch by patch name.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ContainerAppsPatchResourceInner get(String resourceGroupName, String containerAppName, String patchName);
-
- /**
- * Delete specific Container Apps Patch by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String patchName);
-
- /**
- * Delete specific Container Apps Patch by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String patchName,
- Context context);
-
- /**
- * Delete specific Container Apps Patch by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String containerAppName, String patchName);
-
- /**
- * Delete specific Container Apps Patch by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String containerAppName, String patchName, Context context);
-
- /**
- * Configure the Container Apps Patch skip option by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @param patchSkipConfig Configure patcher to skip a patch or not.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginSkipConfigure(String resourceGroupName, String containerAppName,
- String patchName, PatchSkipConfig patchSkipConfig);
-
- /**
- * Configure the Container Apps Patch skip option by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @param patchSkipConfig Configure patcher to skip a patch or not.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginSkipConfigure(String resourceGroupName, String containerAppName,
- String patchName, PatchSkipConfig patchSkipConfig, Context context);
-
- /**
- * Configure the Container Apps Patch skip option by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @param patchSkipConfig Configure patcher to skip a patch or not.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void skipConfigure(String resourceGroupName, String containerAppName, String patchName,
- PatchSkipConfig patchSkipConfig);
-
- /**
- * Configure the Container Apps Patch skip option by patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @param patchSkipConfig Configure patcher to skip a patch or not.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void skipConfigure(String resourceGroupName, String containerAppName, String patchName,
- PatchSkipConfig patchSkipConfig, Context context);
-
- /**
- * Apply a Container Apps Patch resource with patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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 {@link SyncPoller} for polling of container App Patch.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ContainerAppsPatchResourceInner>
- beginApply(String resourceGroupName, String containerAppName, String patchName);
-
- /**
- * Apply a Container Apps Patch resource with patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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 {@link SyncPoller} for polling of container App Patch.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ContainerAppsPatchResourceInner>
- beginApply(String resourceGroupName, String containerAppName, String patchName, Context context);
-
- /**
- * Apply a Container Apps Patch resource with patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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 container App Patch.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ContainerAppsPatchResourceInner apply(String resourceGroupName, String containerAppName, String patchName);
-
- /**
- * Apply a Container Apps Patch resource with patch name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App the Patch is associated.
- * @param patchName The name of the patch.
- * @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 container App Patch.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ContainerAppsPatchResourceInner apply(String resourceGroupName, String containerAppName, String patchName,
- 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 a0cd2b836d37..1d972a062004 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
@@ -105,7 +105,6 @@ SyncPoller, SourceControlInner> beginCreateOrUpda
* @param containerAppName Name of the Container App.
* @param sourceControlName Name of the Container App SourceControl.
* @param sourceControlEnvelope Properties used to create a Container App SourceControl.
- * @param xMsGithubAuxiliary Github personal access token used for 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
@@ -115,8 +114,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SourceControlInner> beginCreateOrUpdate(String resourceGroupName,
- String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope,
- String xMsGithubAuxiliary, Context context);
+ String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope, Context context);
/**
* Create or update the SourceControl for a Container App.
@@ -142,7 +140,6 @@ SourceControlInner createOrUpdate(String resourceGroupName, String containerAppN
* @param containerAppName Name of the Container App.
* @param sourceControlName Name of the Container App SourceControl.
* @param sourceControlEnvelope Properties used to create a Container App SourceControl.
- * @param xMsGithubAuxiliary Github personal access token used for 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
@@ -152,7 +149,7 @@ SourceControlInner createOrUpdate(String resourceGroupName, String containerAppN
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SourceControlInner createOrUpdate(String resourceGroupName, String containerAppName, String sourceControlName,
- SourceControlInner sourceControlEnvelope, String xMsGithubAuxiliary, Context context);
+ SourceControlInner sourceControlEnvelope, Context context);
/**
* Delete a Container App SourceControl.
@@ -176,9 +173,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @param sourceControlName Name of the Container App SourceControl.
- * @param xMsGithubAuxiliary Github personal access token used for SourceControl.
- * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure.
- * @param deleteWorkflow Delete workflow.
* @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
@@ -188,8 +182,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName,
- String sourceControlName, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure,
- Boolean deleteWorkflow, Context context);
+ String sourceControlName, Context context);
/**
* Delete a Container App SourceControl.
@@ -211,9 +204,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerAppName Name of the Container App.
* @param sourceControlName Name of the Container App SourceControl.
- * @param xMsGithubAuxiliary Github personal access token used for SourceControl.
- * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure.
- * @param deleteWorkflow Delete workflow.
* @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
@@ -221,6 +211,5 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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 sourceControlName, String xMsGithubAuxiliary,
- Boolean ignoreWorkflowDeletionFailure, Boolean deleteWorkflow, 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/DaprComponentResiliencyPoliciesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentResiliencyPoliciesClient.java
deleted file mode 100644
index c057e69e3e88..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentResiliencyPoliciesClient.java
+++ /dev/null
@@ -1,164 +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;
-
-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.DaprComponentResiliencyPolicyInner;
-
-/**
- * An instance of this class provides access to all the operations defined in DaprComponentResiliencyPoliciesClient.
- */
-public interface DaprComponentResiliencyPoliciesClient {
- /**
- * Get the resiliency policies 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 componentName Name of the Dapr Component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the resiliency policies for a Dapr component as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String environmentName,
- String componentName);
-
- /**
- * Get the resiliency policies 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 componentName Name of the Dapr Component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the resiliency policies for a Dapr component as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String environmentName,
- String componentName, Context context);
-
- /**
- * Get a Dapr component resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param environmentName Name of the Managed Environment.
- * @param componentName Name of the Dapr Component.
- * @param name Name of the Dapr Component Resiliency Policy.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Dapr component resiliency policy along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String environmentName,
- String componentName, String name, Context context);
-
- /**
- * Get a Dapr component resiliency policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param environmentName Name of the Managed Environment.
- * @param componentName Name of the Dapr Component.
- * @param name Name of the Dapr Component Resiliency Policy.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Dapr component resiliency policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DaprComponentResiliencyPolicyInner get(String resourceGroupName, String environmentName, String componentName,
- String name);
-
- /**
- * Creates or updates a Dapr component resiliency policy.
- *
- * Creates or updates a resiliency policy 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 componentName Name of the Dapr Component.
- * @param name Name of the Dapr Component Resiliency Policy.
- * @param daprComponentResiliencyPolicyEnvelope Configuration details of the Dapr Component Resiliency Policy.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dapr Component Resiliency Policy along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName,
- String environmentName, String componentName, String name,
- DaprComponentResiliencyPolicyInner daprComponentResiliencyPolicyEnvelope, Context context);
-
- /**
- * Creates or updates a Dapr component resiliency policy.
- *
- * Creates or updates a resiliency policy 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 componentName Name of the Dapr Component.
- * @param name Name of the Dapr Component Resiliency Policy.
- * @param daprComponentResiliencyPolicyEnvelope Configuration details of the Dapr Component Resiliency Policy.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dapr Component Resiliency Policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DaprComponentResiliencyPolicyInner createOrUpdate(String resourceGroupName, String environmentName,
- String componentName, String name, DaprComponentResiliencyPolicyInner daprComponentResiliencyPolicyEnvelope);
-
- /**
- * Delete a Dapr component resiliency policy.
- *
- * Delete a resiliency policy 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 componentName Name of the Dapr Component.
- * @param name Name of the Dapr Component Resiliency Policy.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String environmentName, String componentName,
- String name, Context context);
-
- /**
- * Delete a Dapr component resiliency policy.
- *
- * Delete a resiliency policy 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 componentName Name of the Dapr Component.
- * @param name Name of the Dapr Component Resiliency Policy.
- * @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 componentName, String name);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprSubscriptionsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprSubscriptionsClient.java
deleted file mode 100644
index 363e068ef7e3..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprSubscriptionsClient.java
+++ /dev/null
@@ -1,151 +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;
-
-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.DaprSubscriptionInner;
-
-/**
- * An instance of this class provides access to all the operations defined in DaprSubscriptionsClient.
- */
-public interface DaprSubscriptionsClient {
- /**
- * Get the Dapr subscriptions for a managed environment.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param environmentName Name of the Managed Environment.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Dapr subscriptions for a managed environment as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String environmentName);
-
- /**
- * Get the Dapr subscriptions for a managed environment.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param environmentName Name of the Managed Environment.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Dapr subscriptions for a managed environment as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String environmentName, Context context);
-
- /**
- * Get a dapr subscription.
- *
- * @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 subscription.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a dapr subscription along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String environmentName, String name,
- Context context);
-
- /**
- * Get a dapr subscription.
- *
- * @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 subscription.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a dapr subscription.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DaprSubscriptionInner get(String resourceGroupName, String environmentName, String name);
-
- /**
- * Creates or updates a Dapr subscription.
- *
- * Creates or updates a Dapr subscription 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 subscription.
- * @param daprSubscriptionEnvelope Configuration details of the Dapr subscription.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dapr PubSub Event Subscription along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String environmentName,
- String name, DaprSubscriptionInner daprSubscriptionEnvelope, Context context);
-
- /**
- * Creates or updates a Dapr subscription.
- *
- * Creates or updates a Dapr subscription 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 subscription.
- * @param daprSubscriptionEnvelope Configuration details of the Dapr subscription.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dapr PubSub Event Subscription.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DaprSubscriptionInner createOrUpdate(String resourceGroupName, String environmentName, String name,
- DaprSubscriptionInner daprSubscriptionEnvelope);
-
- /**
- * Delete a Dapr subscription.
- *
- * Delete a Dapr subscription 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 subscription.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String environmentName, String name, Context context);
-
- /**
- * Delete a Dapr subscription.
- *
- * Delete a Dapr subscription 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 subscription.
- * @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);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DotNetComponentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DotNetComponentsClient.java
deleted file mode 100644
index f321e882b169..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DotNetComponentsClient.java
+++ /dev/null
@@ -1,281 +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;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.appcontainers.fluent.models.DotNetComponentInner;
-
-/**
- * An instance of this class provides access to all the operations defined in DotNetComponentsClient.
- */
-public interface DotNetComponentsClient {
- /**
- * Get the .NET Components for a managed environment.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param environmentName Name of the Managed Environment.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.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 .NET Components for a managed environment as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String environmentName);
-
- /**
- * Get the .NET Components for a managed environment.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param environmentName Name of the Managed Environment.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.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 .NET Components for a managed environment as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String environmentName, Context context);
-
- /**
- * Get a .NET 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 .NET Component.
- * @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 a .NET Component along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String environmentName, String name,
- Context context);
-
- /**
- * Get a .NET 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 .NET Component.
- * @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 a .NET Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DotNetComponentInner get(String resourceGroupName, String environmentName, String name);
-
- /**
- * Creates or updates a .NET Component.
- *
- * Creates or updates a .NET 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 .NET Component.
- * @param dotNetComponentEnvelope Configuration details of the .NET Component.
- * @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 {@link SyncPoller} for polling of .NET Component.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DotNetComponentInner> beginCreateOrUpdate(String resourceGroupName,
- String environmentName, String name, DotNetComponentInner dotNetComponentEnvelope);
-
- /**
- * Creates or updates a .NET Component.
- *
- * Creates or updates a .NET 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 .NET Component.
- * @param dotNetComponentEnvelope Configuration details of the .NET Component.
- * @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 {@link SyncPoller} for polling of .NET Component.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DotNetComponentInner> beginCreateOrUpdate(String resourceGroupName,
- String environmentName, String name, DotNetComponentInner dotNetComponentEnvelope, Context context);
-
- /**
- * Creates or updates a .NET Component.
- *
- * Creates or updates a .NET 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 .NET Component.
- * @param dotNetComponentEnvelope Configuration details of the .NET Component.
- * @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 .NET Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DotNetComponentInner createOrUpdate(String resourceGroupName, String environmentName, String name,
- DotNetComponentInner dotNetComponentEnvelope);
-
- /**
- * Creates or updates a .NET Component.
- *
- * Creates or updates a .NET 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 .NET Component.
- * @param dotNetComponentEnvelope Configuration details of the .NET Component.
- * @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 .NET Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DotNetComponentInner createOrUpdate(String resourceGroupName, String environmentName, String name,
- DotNetComponentInner dotNetComponentEnvelope, Context context);
-
- /**
- * Update properties of a .NET Component
- *
- * Patches a .NET Component using JSON Merge Patch.
- *
- * @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 .NET Component.
- * @param dotNetComponentEnvelope Configuration details of the .NET Component.
- * @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 {@link SyncPoller} for polling of .NET Component.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DotNetComponentInner> beginUpdate(String resourceGroupName,
- String environmentName, String name, DotNetComponentInner dotNetComponentEnvelope);
-
- /**
- * Update properties of a .NET Component
- *
- * Patches a .NET Component using JSON Merge Patch.
- *
- * @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 .NET Component.
- * @param dotNetComponentEnvelope Configuration details of the .NET Component.
- * @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 {@link SyncPoller} for polling of .NET Component.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DotNetComponentInner> beginUpdate(String resourceGroupName,
- String environmentName, String name, DotNetComponentInner dotNetComponentEnvelope, Context context);
-
- /**
- * Update properties of a .NET Component
- *
- * Patches a .NET Component using JSON Merge Patch.
- *
- * @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 .NET Component.
- * @param dotNetComponentEnvelope Configuration details of the .NET Component.
- * @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 .NET Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DotNetComponentInner update(String resourceGroupName, String environmentName, String name,
- DotNetComponentInner dotNetComponentEnvelope);
-
- /**
- * Update properties of a .NET Component
- *
- * Patches a .NET Component using JSON Merge Patch.
- *
- * @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 .NET Component.
- * @param dotNetComponentEnvelope Configuration details of the .NET Component.
- * @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 .NET Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DotNetComponentInner update(String resourceGroupName, String environmentName, String name,
- DotNetComponentInner dotNetComponentEnvelope, Context context);
-
- /**
- * Delete a .NET 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 .NET Component.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName, String name);
-
- /**
- * Delete a .NET 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 .NET Component.
- * @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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName, String name,
- Context context);
-
- /**
- * Delete a .NET 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 .NET Component.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String environmentName, String name);
-
- /**
- * Delete a .NET 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 .NET Component.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String environmentName, String name, Context context);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/FunctionsExtensionsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/FunctionsExtensionsClient.java
deleted file mode 100644
index 45732c3aac77..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/FunctionsExtensionsClient.java
+++ /dev/null
@@ -1,50 +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;
-
-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;
-
-/**
- * An instance of this class provides access to all the operations defined in FunctionsExtensionsClient.
- */
-public interface FunctionsExtensionsClient {
- /**
- * Proxies a Functions host call to the function app backed by the 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, the parent resource.
- * @param functionAppName Name of the Function App, the extension resource.
- * @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 response body along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response invokeFunctionsHostWithResponse(String resourceGroupName, String containerAppName,
- String revisionName, String functionAppName, Context context);
-
- /**
- * Proxies a Functions host call to the function app backed by the 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, the parent resource.
- * @param functionAppName Name of the Function App, the extension resource.
- * @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 response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- String invokeFunctionsHost(String resourceGroupName, String containerAppName, String revisionName,
- String functionAppName);
-}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JavaComponentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JavaComponentsClient.java
index 160ff1772826..5b033c37f9e8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JavaComponentsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JavaComponentsClient.java
@@ -223,6 +223,8 @@ JavaComponentInner update(String resourceGroupName, String environmentName, Stri
JavaComponentInner javaComponentEnvelope, Context context);
/**
+ * Delete.
+ *
* Delete a Java Component.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -237,6 +239,8 @@ JavaComponentInner update(String resourceGroupName, String environmentName, Stri
SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName, String name);
/**
+ * Delete.
+ *
* Delete a Java Component.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -253,6 +257,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
Context context);
/**
+ * Delete.
+ *
* Delete a Java Component.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -266,6 +272,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String environmentName, String name);
/**
+ * Delete.
+ *
* Delete a Java Component.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java
index 929ace5c0ef5..e7a0a11a7835 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java
@@ -93,8 +93,6 @@ Response getDetectorWithResponse(String resourceGroupName, Str
DiagnosticsInner getDetector(String resourceGroupName, String jobName, String detectorName);
/**
- * Get the properties for a given Container App Job.
- *
* Get the properties of a Container App Job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -111,8 +109,6 @@ Response getDetectorWithResponse(String resourceGroupName, Str
Response proxyGetWithResponse(String resourceGroupName, String jobName, String apiName, Context context);
/**
- * Get the properties for a given Container App Job.
- *
* Get the properties of a Container App Job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -613,112 +609,4 @@ Response listSecretsWithResponse(String resourceGroup
*/
@ServiceMethod(returns = ReturnType.SINGLE)
JobSecretsCollectionInner listSecrets(String resourceGroupName, String jobName);
-
- /**
- * Resumes a suspended job.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param jobName Name of the Job.
- * @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 {@link SyncPoller} for polling of container App Job.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, JobInner> beginResume(String resourceGroupName, String jobName);
-
- /**
- * Resumes a suspended job.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param jobName Name of the Job.
- * @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 {@link SyncPoller} for polling of container App Job.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, JobInner> beginResume(String resourceGroupName, String jobName, Context context);
-
- /**
- * Resumes a suspended job.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param jobName Name of the Job.
- * @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 container App Job.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- JobInner resume(String resourceGroupName, String jobName);
-
- /**
- * Resumes a suspended job.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param jobName Name of the Job.
- * @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 container App Job.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- JobInner resume(String resourceGroupName, String jobName, Context context);
-
- /**
- * Suspends a job.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param jobName Name of the Job.
- * @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 {@link SyncPoller} for polling of container App Job.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, JobInner> beginSuspend(String resourceGroupName, String jobName);
-
- /**
- * Suspends a job.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param jobName Name of the Job.
- * @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 {@link SyncPoller} for polling of container App Job.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, JobInner> beginSuspend(String resourceGroupName, String jobName, Context context);
-
- /**
- * Suspends a job.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param jobName Name of the Job.
- * @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 container App Job.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- JobInner suspend(String resourceGroupName, String jobName);
-
- /**
- * Suspends a job.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param jobName Name of the Job.
- * @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 container App Job.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- JobInner suspend(String resourceGroupName, String jobName, Context context);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/LogicAppsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/LogicAppsClient.java
deleted file mode 100644
index 1ee60bcd1b3c..000000000000
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/LogicAppsClient.java
+++ /dev/null
@@ -1,288 +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;
-
-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.LogicAppInner;
-import com.azure.resourcemanager.appcontainers.fluent.models.WorkflowEnvelopeInner;
-import com.azure.resourcemanager.appcontainers.models.LogicAppsProxyMethod;
-import com.azure.resourcemanager.appcontainers.models.WorkflowArtifacts;
-
-/**
- * An instance of this class provides access to all the operations defined in LogicAppsClient.
- */
-public interface LogicAppsClient {
- /**
- * Gets a logic app extension resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @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 logic app extension resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String containerAppName, String logicAppName,
- Context context);
-
- /**
- * Gets a logic app extension resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @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 logic app extension resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- LogicAppInner get(String resourceGroupName, String containerAppName, String logicAppName);
-
- /**
- * Create or update a Logic App extension resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @param resource Logic app resource properties.
- * @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 logic app extension resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String containerAppName,
- String logicAppName, LogicAppInner resource, Context context);
-
- /**
- * Create or update a Logic App extension resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @param resource Logic app resource properties.
- * @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 logic app extension resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- LogicAppInner createOrUpdate(String resourceGroupName, String containerAppName, String logicAppName,
- LogicAppInner resource);
-
- /**
- * Deletes a Logic App extension resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String containerAppName, String logicAppName,
- Context context);
-
- /**
- * Deletes a Logic App extension resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @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 logicAppName);
-
- /**
- * List the workflows for a logic app.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return collection of workflow information elements as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listWorkflows(String resourceGroupName, String containerAppName,
- String logicAppName);
-
- /**
- * List the workflows for a logic app.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return collection of workflow information elements as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listWorkflows(String resourceGroupName, String containerAppName,
- String logicAppName, Context context);
-
- /**
- * Get workflow information by its name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @param workflowName Workflow name.
- * @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 workflow information by its name along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWorkflowWithResponse(String resourceGroupName, String containerAppName,
- String logicAppName, String workflowName, Context context);
-
- /**
- * Get workflow information by its name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @param workflowName Workflow name.
- * @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 workflow information by its name.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkflowEnvelopeInner getWorkflow(String resourceGroupName, String containerAppName, String logicAppName,
- String workflowName);
-
- /**
- * Creates or updates the artifacts for the logic app.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @param workflowArtifacts Application settings and files of the workflow.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deployWorkflowArtifactsWithResponse(String resourceGroupName, String containerAppName,
- String logicAppName, WorkflowArtifacts workflowArtifacts, Context context);
-
- /**
- * Creates or updates the artifacts for the logic app.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @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 deployWorkflowArtifacts(String resourceGroupName, String containerAppName, String logicAppName);
-
- /**
- * Gets logic app's connections.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @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 logic app's connections along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWorkflowsConnectionsWithResponse(String resourceGroupName,
- String containerAppName, String logicAppName, Context context);
-
- /**
- * Gets logic app's connections.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the Logic App, the extension resource.
- * @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 logic app's connections.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkflowEnvelopeInner listWorkflowsConnections(String resourceGroupName, String containerAppName,
- String logicAppName);
-
- /**
- * Proxies a the API call to the logic app backed by the container app.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param containerAppName Name of the Container App.
- * @param logicAppName Name of the LogicApp App, the extension resource.
- * @param xMsLogicAppsProxyPath The proxy path for the API call.
- * @param xMsLogicAppsProxyMethod The proxy method for the API call.
- * @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 any object along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response