diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
index 40903a947a78f..c3057eae27f9e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
@@ -1,14 +1,649 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2024-09-18)
-### Features Added
+- 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).
### Breaking Changes
-### Bugs Fixed
+#### `models.ContainerAppsSourceControls` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.Jobs` was modified
+
+* `proxyGetWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `proxyGet(java.lang.String,java.lang.String,java.lang.String)` was removed
+
+#### `models.BillingMeter` was modified
+
+* `systemData()` was removed
+
+### Features Added
+
+* `models.SessionContainer` was added
+
+* `models.ContainerAppsBuilds` was added
+
+* `models.DotNetComponent$UpdateStages` was added
+
+* `models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration` was added
+
+* `models.HttpConnectionPool` was added
+
+* `models.LogicApp$Definition` was added
+
+* `models.Runtime` was added
+
+* `models.SessionPoolUpdatableProperties` was added
+
+* `models.LoggerSetting` was added
+
+* `models.JavaComponentPropertiesScale` was added
+
+* `models.BuildResource$UpdateStages` was added
+
+* `models.ScaleConfiguration` was added
+
+* `models.ManagedEnvironmentPrivateEndpointConnections` was added
+
+* `models.DotNetComponents` was added
+
+* `models.RuntimeJavaAgentLogging` was added
+
+* `models.BuildProvisioningState` was added
+
+* `models.WorkflowState` was added
+
+* `models.PrivateEndpointConnectionListResult` was added
+
+* `models.AppResiliency` was added
+
+* `models.DaprSubscriptions` was added
+
+* `models.BuilderResource$Update` was added
+
+* `models.BuildConfiguration` was added
+
+* `models.PoolManagementType` was added
+
+* `models.PatchType` was added
+
+* `models.BuildResource$Update` was added
+
+* `models.SmbStorage` was added
+
+* `models.CertificateKeyVaultProperties` was added
+
+* `models.IdentitySettingsLifeCycle` was added
+
+* `models.EnvironmentVariable` was added
+
+* `models.SessionPoolProvisioningState` was added
+
+* `models.DotNetComponentServiceBind` was added
+
+* `models.SpringBootAdminComponent` was added
+
+* `models.AppResiliencies` was added
+
+* `models.PrivateEndpoint` was added
+
+* `models.PatchDetailsOldLayer` was added
+
+* `models.JavaComponentServiceBind` was added
+
+* `models.LogsConfiguration` was added
+
+* `models.DotNetComponent$Update` was added
+
+* `models.PatchApplyStatus` was added
+
+* `models.DaprSubscription$UpdateStages` was added
+
+* `models.DotNetComponent$DefinitionStages` was added
+
+* `models.HttpGet` was added
+
+* `models.ContainerAppsPatches` was added
+
+* `models.LogicApps` was added
+
+* `models.PrivateEndpointConnection$Definition` was added
+
+* `models.SessionPool$UpdateStages` was added
+
+* `models.JavaComponentConfigurationProperty` was added
+
+* `models.DotNetComponentProvisioningState` was added
+
+* `models.DotNetComponentType` was added
+
+* `models.SpringCloudConfigComponent` was added
+
+* `models.PrivateEndpointConnection` was added
+
+* `models.BuilderResourceUpdate` was added
+
+* `models.FunctionsExtensions` was added
+
+* `models.SessionPool$Definition` was added
+
+* `models.AppResiliency$DefinitionStages` was added
+
+* `models.DaprComponentResiliencyPoliciesCollection` was added
+
+* `models.ImageType` was added
+
+* `models.BuildAuthTokens` was added
+
+* `models.PatchCollection` was added
+
+* `models.ContainerRegistry` was added
+
+* `models.IngressTargetPortHttpScheme` was added
+
+* `models.AppResiliency$Definition` was added
+
+* `models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration` was added
+
+* `models.WorkflowEnvelopeProperties` was added
+
+* `models.WorkflowHealthState` was added
+
+* `models.ContainerAppsPatchResource` was added
+
+* `models.DaprSubscription$DefinitionStages` was added
+
+* `models.OtlpConfiguration` was added
+
+* `models.MetricsConfiguration` was added
+
+* `models.DaprServiceBindMetadata` was added
+
+* `models.ScgRoute` was added
+
+* `models.TracesConfiguration` was added
+
+* `models.DaprSubscriptionBulkSubscribeOptions` was added
+
+* `models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration` was added
+
+* `models.JavaComponent$Definition` was added
+
+* `models.SessionPool$DefinitionStages` was added
+
+* `models.PrivateEndpointServiceConnectionStatus` was added
+
+* `models.SessionIngress` was added
+
+* `models.BuildsByBuilderResources` was added
+
+* `models.BuildResource` was added
+
+* `models.ContainerAppsBuildConfiguration` was added
+
+* `models.WorkflowEnvelopeCollection` was added
+
+* `models.TimeoutPolicy` was added
+
+* `models.PrivateEndpointConnection$Update` was added
+
+* `models.DotNetComponentConfigurationProperty` was added
+
+* `models.ContainerAppsBuildCollection` was added
+
+* `models.DaprSubscriptionsCollection` was added
+
+* `models.ErrorEntity` was added
+
+* `models.LogicApp$UpdateStages` was added
+
+* `models.PrivateLinkServiceConnectionState` was added
+
+* `models.AppInsightsConfiguration` was added
+
+* `models.WorkflowHealth` was added
+
+* `models.DaprSubscriptionRoutes` was added
+
+* `models.DaprComponentResiliencyPolicy$Definition` was added
+
+* `models.PatchProperties` was added
+
+* `models.HttpRetryPolicy` was added
+
+* `models.PatchDetails` was added
+
+* `models.PrivateEndpointConnectionProvisioningState` was added
+
+* `models.SessionPool` was added
+
+* `models.NfsAzureFileProperties` was added
+
+* `models.PrivateLinkResource` was added
+
+* `models.CircuitBreakerPolicy` was added
+
+* `models.DaprComponentResiliencyPolicy$DefinitionStages` was added
+
+* `models.SessionContainerResources` was added
+
+* `models.TcpRetryPolicy` was added
+
+* `models.SessionPoolSecret` was added
+
+* `models.PatchSkipConfig` was added
+
+* `models.DaprComponentResiliencyPolicies` was added
+
+* `models.HeaderMatch` was added
+
+* `models.AppResiliencyCollection` was added
+
+* `models.DotNetComponent` was added
+
+* `models.BuilderCollection` was added
+
+* `models.BuildStatus` was added
+
+* `models.DaprSubscription` was added
+
+* `models.SessionPool$Update` was added
+
+* `models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration` was added
+
+* `models.BuildToken` was added
+
+* `models.DaprComponentResiliencyPolicyConfiguration` was added
+
+* `models.WorkflowEnvelope` was added
+
+* `models.BuilderResource$DefinitionStages` was added
+
+* `models.JavaComponentsCollection` was added
+
+* `models.OpenTelemetryConfiguration` was added
+
+* `models.PrivateLinkResourceListResult` was added
-### Other Changes
+* `models.Builders` was added
+
+* `models.Level` was added
+
+* `models.DaprComponentResiliencyPolicy$Update` was added
+
+* `models.BuildResource$DefinitionStages` was added
+
+* `models.JavaComponent` was added
+
+* `models.AppResiliency$Update` was added
+
+* `models.SessionNetworkStatus` was added
+
+* `models.LogicAppsProxyMethod` was added
+
+* `models.DaprSubscription$Update` was added
+
+* `models.DestinationsConfiguration` was added
+
+* `models.CertificateType` was added
+
+* `models.DataDogConfiguration` was added
+
+* `models.DotNetComponentsCollection` was added
+
+* `models.ManagedEnvironmentPrivateLinkResources` was added
+
+* `models.RuntimeJava` was added
+
+* `models.DotNetComponent$Definition` was added
+
+* `models.DaprComponentResiliencyPolicy$UpdateStages` was added
+
+* `models.BuildCollection` was added
+
+* `models.ExecutionType` was added
+
+* `models.JavaComponent$UpdateStages` was added
+
+* `models.LogicApp` was added
+
+* `models.JavaComponentProvisioningState` was added
+
+* `models.PatchDetailsNewLayer` was added
+
+* `models.DetectionStatus` was added
+
+* `models.ReplicaExecutionStatus` was added
+
+* `models.PreBuildStep` was added
+
+* `models.ContainerExecutionStatus` was added
+
+* `models.DaprComponentServiceBinding` was added
+
+* `models.ContainerAppsBuildsByContainerApps` was added
+
+* `models.CustomContainerTemplate` was added
+
+* `models.WorkflowArtifacts` was added
+
+* `models.SessionNetworkConfiguration` was added
+
+* `models.BuilderResource$UpdateStages` was added
+
+* `models.RuntimeJavaAgent` was added
+
+* `models.DynamicPoolConfiguration` was added
+
+* `models.PatchingMode` was added
+
+* `models.ContainerAppsBuildResource` was added
+
+* `models.PrivateEndpointConnection$UpdateStages` was added
+
+* `models.IdentitySettings` was added
+
+* `models.JavaComponent$DefinitionStages` was added
+
+* `models.ExecutionStatus` was added
+
+* `models.DaprComponentResiliencyPolicy` was added
+
+* `models.JobRunningState` was added
+
+* `models.ContainerRegistryWithCustomImage` was added
+
+* `models.ContainerType` was added
+
+* `models.SessionRegistryCredentials` was added
+
+* `models.JavaComponentType` was added
+
+* `models.RuntimeDotnet` was added
+
+* `models.AppResiliency$UpdateStages` was added
+
+* `models.JavaComponentProperties` was added
+
+* `models.BuilderResource` was added
+
+* `models.SpringCloudGatewayComponent` was added
+
+* `models.BuildResource$Definition` was added
+
+* `models.Kind` was added
+
+* `models.Builds` was added
+
+* `models.ContainerAppsSessionPools` was added
+
+* `models.SessionPoolCollection` was added
+
+* `models.ContainerAppPropertiesPatchingConfiguration` was added
+
+* `models.BuilderResource$Definition` was added
+
+* `models.LogicApp$Update` was added
+
+* `models.NacosComponent` was added
+
+* `models.LogicApp$DefinitionStages` was added
+
+* `models.JavaComponent$Update` was added
+
+* `models.JavaComponentIngress` was added
+
+* `models.Header` was added
+
+* `models.TcpConnectionPool` was added
+
+* `models.PublicNetworkAccess` was added
+
+* `models.JavaComponents` was added
+
+* `models.DaprSubscriptionRouteRule` was added
+
+* `models.DaprSubscription$Definition` was added
+
+* `models.PrivateEndpointConnection$DefinitionStages` was added
+
+* `models.BuilderProvisioningState` was added
+
+* `models.SpringCloudEurekaComponent` was added
+
+#### `models.ContainerAppsSourceControls` was modified
+
+* `delete(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,com.azure.core.util.Context)` was added
+* `deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,com.azure.core.util.Context)` was added
+
+#### `models.ServiceBind` was modified
+
+* `withClientType(java.lang.String)` was added
+* `clientType()` was added
+* `customizedKeys()` was added
+* `withCustomizedKeys(java.util.Map)` was added
+
+#### `models.Job` was modified
+
+* `suspend(com.azure.core.util.Context)` was added
+* `resume(com.azure.core.util.Context)` was added
+* `extendedLocation()` was added
+* `suspend()` was added
+* `resume()` was added
+* `runningState()` was added
+
+#### `models.DaprComponent$Definition` was modified
+
+* `withServiceComponentBind(java.util.List)` was added
+
+#### `models.ManagedEnvironment$Update` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was added
+* `withOpenTelemetryConfiguration(models.OpenTelemetryConfiguration)` was added
+* `withAppInsightsConfiguration(models.AppInsightsConfiguration)` was added
+* `withIdentity(models.ManagedServiceIdentity)` was added
+
+#### `models.SourceControl$Definition` was modified
+
+* `withXMsGithubAuxiliary(java.lang.String)` was added
+
+#### `models.WorkloadProfile` was modified
+
+* `withEnableFips(java.lang.Boolean)` was added
+* `enableFips()` was added
+
+#### `models.InitContainer` was modified
+
+* `withImageType(models.ImageType)` was added
+
+#### `models.Job$Definition` was modified
+
+* `withExtendedLocation(models.ExtendedLocation)` was added
+
+#### `models.QueueScaleRule` was modified
+
+* `withAccountName(java.lang.String)` was added
+* `identity()` was added
+* `withIdentity(java.lang.String)` was added
+* `accountName()` was added
+
+#### `models.Jobs` was modified
+
+* `suspend(java.lang.String,java.lang.String)` was added
+* `resume(java.lang.String,java.lang.String)` was added
+* `proxyGetWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `proxyGet(java.lang.String,java.lang.String)` was added
+* `suspend(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `resume(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.ConnectedEnvironmentStorageProperties` was modified
+
+* `smb()` was added
+* `withSmb(models.SmbStorage)` was added
+
+#### `models.DaprComponent$Update` was modified
+
+* `withServiceComponentBind(java.util.List)` was added
+
+#### `models.ManagedEnvironment$Definition` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was added
+* `withAppInsightsConfiguration(models.AppInsightsConfiguration)` was added
+* `withIdentity(models.ManagedServiceIdentity)` was added
+* `withOpenTelemetryConfiguration(models.OpenTelemetryConfiguration)` was added
+
+#### `models.ContainerApp$Update` was modified
+
+* `withPatchingConfiguration(models.ContainerAppPropertiesPatchingConfiguration)` was added
+
+#### `models.ManagedEnvironmentStorageProperties` was modified
+
+* `withNfsAzureFile(models.NfsAzureFileProperties)` was added
+* `nfsAzureFile()` was added
+
+#### `models.GithubActionConfiguration` was modified
+
+* `buildEnvironmentVariables()` was added
+* `withBuildEnvironmentVariables(java.util.List)` was added
+* `withDockerfilePath(java.lang.String)` was added
+* `dockerfilePath()` was added
+
+#### `models.DaprComponent` was modified
+
+* `serviceComponentBind()` was added
+
+#### `models.JobConfiguration` was modified
+
+* `identitySettings()` was added
+* `withIdentitySettings(java.util.List)` was added
+
+#### `models.TcpScaleRule` was modified
+
+* `identity()` was added
+* `withIdentity(java.lang.String)` was added
+
+#### `models.Scale` was modified
+
+* `withCooldownPeriod(java.lang.Integer)` was added
+* `withPollingInterval(java.lang.Integer)` was added
+* `cooldownPeriod()` was added
+* `pollingInterval()` was added
+
+#### `models.SourceControl$Update` was modified
+
+* `withXMsGithubAuxiliary(java.lang.String)` was added
+
+#### `models.LogAnalyticsConfiguration` was modified
+
+* `withDynamicJsonColumns(java.lang.Boolean)` was added
+* `dynamicJsonColumns()` was added
+
+#### `models.Job$Update` was modified
+
+* `withExtendedLocation(models.ExtendedLocation)` was added
+
+#### `models.ManagedEnvironment` was modified
+
+* `identity()` was added
+* `openTelemetryConfiguration()` was added
+* `appInsightsConfiguration()` was added
+* `publicNetworkAccess()` was added
+* `privateEndpointConnections()` was added
+
+#### `models.HttpScaleRule` was modified
+
+* `identity()` was added
+* `withIdentity(java.lang.String)` was added
+
+#### `models.JobExecution` was modified
+
+* `detailedStatus()` was added
+
+#### `models.JobPatchProperties` was modified
+
+* `withExtendedLocation(models.ExtendedLocation)` was added
+* `extendedLocation()` was added
+
+#### `models.Container` was modified
+
+* `withImageType(models.ImageType)` was added
+
+#### `models.CertificateProperties` was modified
+
+* `certificateKeyVaultProperties()` was added
+* `withCertificateKeyVaultProperties(models.CertificateKeyVaultProperties)` was added
+* `withCertificateType(models.CertificateType)` was added
+* `certificateType()` was added
+
+#### `models.ContainerApp` was modified
+
+* `patchingConfiguration()` was added
+* `deploymentErrors()` was added
+* `kind()` was added
+
+#### `models.JobScaleRule` was modified
+
+* `withIdentity(java.lang.String)` was added
+* `identity()` was added
+
+#### `ContainerAppsApiManager` was modified
+
+* `dotNetComponents()` was added
+* `logicApps()` was added
+* `managedEnvironmentPrivateLinkResources()` was added
+* `containerAppsPatches()` was added
+* `functionsExtensions()` was added
+* `containerAppsSessionPools()` was added
+* `builds()` was added
+* `daprComponentResiliencyPolicies()` was added
+* `daprSubscriptions()` was added
+* `appResiliencies()` was added
+* `containerAppsBuildsByContainerApps()` was added
+* `containerAppsBuilds()` was added
+* `managedEnvironmentPrivateEndpointConnections()` was added
+* `buildAuthTokens()` was added
+* `javaComponents()` was added
+* `buildsByBuilderResources()` was added
+* `builders()` was added
+
+#### `models.ReplicaContainer` was modified
+
+* `debugEndpoint()` was added
+
+#### `models.BaseContainer` was modified
+
+* `imageType()` was added
+* `withImageType(models.ImageType)` was added
+
+#### `models.CustomScaleRule` was modified
+
+* `identity()` was added
+* `withIdentity(java.lang.String)` was added
+
+#### `models.ContainerApp$Definition` was modified
+
+* `withKind(models.Kind)` was added
+* `withPatchingConfiguration(models.ContainerAppPropertiesPatchingConfiguration)` was added
+
+#### `models.Ingress` was modified
+
+* `targetPortHttpScheme()` was added
+* `withTargetPortHttpScheme(models.IngressTargetPortHttpScheme)` was added
+
+#### `models.CustomDomainConfiguration` was modified
+
+* `withCertificateKeyVaultProperties(models.CertificateKeyVaultProperties)` was added
+* `certificateKeyVaultProperties()` was added
+
+#### `models.Configuration` was modified
+
+* `identitySettings()` was added
+* `withRuntime(models.Runtime)` was added
+* `withIdentitySettings(java.util.List)` was added
+* `runtime()` was added
## 1.0.0 (2024-08-07)
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
index 95f400479497e..9d05f22b61283 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ContainerAppsApi client library for Java.
-This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2024-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. 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).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-appcontainers
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
index 16d11dbaacae3..243232cd094ea 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
@@ -1,6 +1,14 @@
# Code snippets and samples
+## AppResiliency
+
+- [CreateOrUpdate](#appresiliency_createorupdate)
+- [Delete](#appresiliency_delete)
+- [Get](#appresiliency_get)
+- [List](#appresiliency_list)
+- [Update](#appresiliency_update)
+
## AvailableWorkloadProfiles
- [Get](#availableworkloadprofiles_get)
@@ -9,6 +17,29 @@
- [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)
@@ -71,6 +102,15 @@
- [Get](#containerappsauthconfigs_get)
- [ListByContainerApp](#containerappsauthconfigs_listbycontainerapp)
+## ContainerAppsBuilds
+
+- [Delete](#containerappsbuilds_delete)
+- [Get](#containerappsbuilds_get)
+
+## ContainerAppsBuildsByContainerApp
+
+- [List](#containerappsbuildsbycontainerapp_list)
+
## ContainerAppsDiagnostics
- [GetDetector](#containerappsdiagnostics_getdetector)
@@ -79,6 +119,14 @@
- [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)
@@ -92,6 +140,15 @@
- [ListRevisions](#containerappsrevisions_listrevisions)
- [RestartRevision](#containerappsrevisions_restartrevision)
+## ContainerAppsSessionPools
+
+- [CreateOrUpdate](#containerappssessionpools_createorupdate)
+- [Delete](#containerappssessionpools_delete)
+- [GetByResourceGroup](#containerappssessionpools_getbyresourcegroup)
+- [List](#containerappssessionpools_list)
+- [ListByResourceGroup](#containerappssessionpools_listbyresourcegroup)
+- [Update](#containerappssessionpools_update)
+
## ContainerAppsSourceControls
- [CreateOrUpdate](#containerappssourcecontrols_createorupdate)
@@ -99,6 +156,13 @@
- [Get](#containerappssourcecontrols_get)
- [ListByContainerApp](#containerappssourcecontrols_listbycontainerapp)
+## DaprComponentResiliencyPolicies
+
+- [CreateOrUpdate](#daprcomponentresiliencypolicies_createorupdate)
+- [Delete](#daprcomponentresiliencypolicies_delete)
+- [Get](#daprcomponentresiliencypolicies_get)
+- [List](#daprcomponentresiliencypolicies_list)
+
## DaprComponents
- [CreateOrUpdate](#daprcomponents_createorupdate)
@@ -107,6 +171,33 @@
- [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)
+- [Delete](#javacomponents_delete)
+- [Get](#javacomponents_get)
+- [List](#javacomponents_list)
+- [Update](#javacomponents_update)
+
## Jobs
- [CreateOrUpdate](#jobs_createorupdate)
@@ -118,15 +209,28 @@
- [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)
@@ -140,6 +244,17 @@
- [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)
@@ -182,178 +297,269 @@
## Usages
- [List](#usages_list)
-### AvailableWorkloadProfiles_Get
+### AppResiliency_CreateOrUpdate
```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 AvailableWorkloadProfiles Get.
+ * Samples for AppResiliency CreateOrUpdate.
*/
-public final class AvailableWorkloadProfilesGetSamples {
+public final class AppResiliencyCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/AvailableWorkloadProfiles_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_CreateOrUpdate
+ * .json
*/
/**
- * Sample code: BillingMeters_Get.
+ * Sample code: Create or Update App Resiliency.
*
* @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
+ 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();
}
}
```
-### BillingMeters_Get
+### AppResiliency_Delete
```java
/**
- * Samples for BillingMeters Get.
+ * Samples for AppResiliency Delete.
*/
-public final class BillingMetersGetSamples {
+public final class AppResiliencyDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/BillingMeters_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Delete.json
*/
/**
- * Sample code: BillingMeters_Get.
+ * Sample code: Delete App Resiliency.
*
* @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 deleteAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.appResiliencies()
+ .deleteWithResponse("rg", "testcontainerApp0", "resiliency-policy-1", com.azure.core.util.Context.NONE);
}
}
```
-### Certificates_CreateOrUpdate
+### AppResiliency_Get
```java
-import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
-import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
+/**
+ * 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
+
+```java
/**
- * Samples for Certificates CreateOrUpdate.
+ * Samples for AppResiliency List.
*/
-public final class CertificatesCreateOrUpdateSamples {
+public final class AppResiliencyListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Certificate_CreateOrUpdate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_List.json
*/
/**
- * Sample code: Create or Update Certificate.
+ * Sample code: List App Resiliency.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- 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);
+ public static void listAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.appResiliencies().list("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
}
}
```
-### Certificates_Delete
+### AppResiliency_Update
```java
+import com.azure.resourcemanager.appcontainers.models.AppResiliency;
+import com.azure.resourcemanager.appcontainers.models.TimeoutPolicy;
+
/**
- * Samples for Certificates Delete.
+ * Samples for AppResiliency Update.
*/
-public final class CertificatesDeleteSamples {
+public final class AppResiliencyUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Certificate_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Patch.json
*/
/**
- * Sample code: Delete Certificate.
+ * Sample code: Update App Resiliency.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates()
- .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- com.azure.core.util.Context.NONE);
+ 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();
}
}
```
-### Certificates_Get
+### AvailableWorkloadProfiles_Get
```java
/**
- * Samples for Certificates Get.
+ * Samples for AvailableWorkloadProfiles Get.
*/
-public final class CertificatesGetSamples {
+public final class AvailableWorkloadProfilesGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * AvailableWorkloadProfiles_Get.json
+ */
+ /**
+ * Sample code: BillingMeters_Get.
+ *
+ * @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);
+ }
+}
+```
+
+### BillingMeters_Get
+
+```java
+/**
+ * Samples for BillingMeters Get.
+ */
+public final class BillingMetersGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Certificate_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/BillingMeters_Get.json
*/
/**
- * Sample code: Get Certificate.
+ * Sample code: BillingMeters_Get.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates()
- .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- 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);
}
}
```
-### Certificates_List
+### BuildAuthToken_List
```java
/**
- * Samples for Certificates List.
+ * Samples for BuildAuthToken List.
*/
-public final class CertificatesListSamples {
+public final class BuildAuthTokenListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Certificates_ListByManagedEnvironment
- * .json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListAuthToken.json
*/
/**
- * Sample code: List Certificates by Managed Environment.
+ * Sample code: Get Build Auth Token.
*
* @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 getBuildAuthToken(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.buildAuthTokens().listWithResponse("rg", "testBuilder", "testBuild", com.azure.core.util.Context.NONE);
}
}
```
-### Certificates_Update
+### Builders_CreateOrUpdate
```java
-import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
+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 java.util.HashMap;
import java.util.Map;
/**
- * Samples for Certificates Update.
+ * Samples for Builders CreateOrUpdate.
*/
-public final class CertificatesUpdateSamples {
+public final class BuildersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Certificates_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_CreateOrUpdate.json
*/
/**
- * Sample code: Patch Certificate.
+ * Sample code: Builders_CreateOrUpdate_0.
*
* @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);
+ 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();
}
// Use "Map.of" if available
@@ -370,198 +576,310 @@ public final class CertificatesUpdateSamples {
}
```
-### ConnectedEnvironments_CheckNameAvailability
+### Builders_Delete
```java
-import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
-
/**
- * Samples for ConnectedEnvironments CheckNameAvailability.
+ * Samples for Builders Delete.
*/
-public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
+public final class BuildersDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsCertificates_CheckNameAvailability.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Delete.json
*/
/**
- * Sample code: Certificates_CheckNameAvailability.
+ * Sample code: Builders_Delete_0.
*
* @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);
+ public static void buildersDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builders().delete("rg", "testBuilder", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironments_CreateOrUpdate
+### Builders_GetByResourceGroup
```java
-import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
-
/**
- * Samples for ConnectedEnvironments CreateOrUpdate.
+ * Samples for Builders GetByResourceGroup.
*/
-public final class ConnectedEnvironmentsCreateOrUpdateSamples {
+public final class BuildersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ConnectedEnvironments_CreateOrUpdate.
- * json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Get.json
*/
/**
- * Sample code: Create kube environments.
+ * Sample code: Builders_Get_0.
*
* @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 buildersGet0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builders().getByResourceGroupWithResponse("rg", "testBuilder", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironments_Delete
+### Builders_List
```java
/**
- * Samples for ConnectedEnvironments Delete.
+ * Samples for Builders List.
*/
-public final class ConnectedEnvironmentsDeleteSamples {
+public final class BuildersListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ConnectedEnvironments_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListBySubscription.
+ * json
*/
/**
- * Sample code: Delete connected environment by connectedEnvironmentName.
+ * Sample code: Builders_ListBySubscription_0.
*
* @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
+ buildersListBySubscription0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builders().list(com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironments_GetByResourceGroup
+### Builders_ListByResourceGroup
```java
/**
- * Samples for ConnectedEnvironments GetByResourceGroup.
+ * Samples for Builders ListByResourceGroup.
*/
-public final class ConnectedEnvironmentsGetByResourceGroupSamples {
+public final class BuildersListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ConnectedEnvironments_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListByResourceGroup
+ * .json
*/
/**
- * Sample code: Get connected environment by connectedEnvironmentName.
+ * Sample code: Builders_ListByResourceGroup_0.
*
* @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
+ buildersListByResourceGroup0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builders().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironments_List
+### Builders_Update
```java
+import com.azure.resourcemanager.appcontainers.models.BuilderResource;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for ConnectedEnvironments List.
+ * Samples for Builders Update.
*/
-public final class ConnectedEnvironmentsListSamples {
+public final class BuildersUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironments_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Update.json
*/
/**
- * Sample code: List connected environments by subscription.
+ * Sample code: Builders_Update_0.
*
* @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 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;
}
}
```
-### ConnectedEnvironments_ListByResourceGroup
+### Builds_CreateOrUpdate
```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 ConnectedEnvironments ListByResourceGroup.
+ * Samples for Builds CreateOrUpdate.
*/
-public final class ConnectedEnvironmentsListByResourceGroupSamples {
+public final class BuildsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_CreateOrUpdate.json
*/
/**
- * Sample code: List environments by resource group.
+ * Sample code: Builds_CreateOrUpdate_WithConfig.
*
* @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);
+ 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();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * Builds_CreateOrUpdate_NoConfig.json
+ */
+ /**
+ * Sample code: Builds_CreateOrUpdate_NoConfig.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ buildsCreateOrUpdateNoConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builds().define("testBuild").withExistingBuilder("rg", "testBuilder").create();
}
}
```
-### ConnectedEnvironments_Update
+### Builds_Delete
```java
/**
- * Samples for ConnectedEnvironments Update.
+ * Samples for Builds Delete.
*/
-public final class ConnectedEnvironmentsUpdateSamples {
+public final class BuildsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ConnectedEnvironments_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Delete.json
*/
/**
- * Sample code: Patch Managed Environment.
+ * Sample code: Builds_Delete_0.
*
* @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);
+ public static void buildsDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.builds().delete("rg", "testBuilder", "testBuild", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsCertificates_CreateOrUpdate
+### Builds_Get
```java
-import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
-
/**
- * Samples for ConnectedEnvironmentsCertificates CreateOrUpdate.
+ * Samples for Builds Get.
*/
-public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
+public final class BuildsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsCertificate_CreateOrUpdate.json
+ * 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.
+ *
+ * @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);
+ }
+}
+```
+
+### Certificates_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.
+ */
+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);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_CreateOrUpdate.
+ * json
*/
/**
* Sample code: Create or Update Certificate.
@@ -570,27 +888,27 @@ public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
*/
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();
+ 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);
}
}
```
-### ConnectedEnvironmentsCertificates_Delete
+### Certificates_Delete
```java
/**
- * Samples for ConnectedEnvironmentsCertificates Delete.
+ * Samples for Certificates Delete.
*/
-public final class ConnectedEnvironmentsCertificatesDeleteSamples {
+public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsCertificate_Delete.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -598,24 +916,23 @@ public final class ConnectedEnvironmentsCertificatesDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates()
+ manager.certificates()
.deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsCertificates_Get
+### Certificates_Get
```java
/**
- * Samples for ConnectedEnvironmentsCertificates Get.
+ * Samples for Certificates Get.
*/
-public final class ConnectedEnvironmentsCertificatesGetSamples {
+public final class CertificatesGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ConnectedEnvironmentsCertificate_Get.
- * json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -623,51 +940,50 @@ public final class ConnectedEnvironmentsCertificatesGetSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates()
+ manager.certificates()
.getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsCertificates_List
+### Certificates_List
```java
/**
- * Samples for ConnectedEnvironmentsCertificates List.
+ * Samples for Certificates List.
*/
-public final class ConnectedEnvironmentsCertificatesListSamples {
+public final class CertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * Certificates_ListByManagedEnvironment.json
*/
/**
- * Sample code: List Certificates by Connected Environment.
+ * Sample code: List Certificates by Managed Environment.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void listCertificatesByConnectedEnvironment(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates()
- .list("examplerg", "testcontainerenv", 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);
}
}
```
-### ConnectedEnvironmentsCertificates_Update
+### Certificates_Update
```java
-import com.azure.resourcemanager.appcontainers.models.Certificate;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for ConnectedEnvironmentsCertificates Update.
+ * Samples for Certificates Update.
*/
-public final class ConnectedEnvironmentsCertificatesUpdateSamples {
+public final class CertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsCertificates_Patch.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -675,11 +991,10 @@ public final class ConnectedEnvironmentsCertificatesUpdateSamples {
* @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();
+ 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
@@ -696,803 +1011,2873 @@ public final class ConnectedEnvironmentsCertificatesUpdateSamples {
}
```
-### ConnectedEnvironmentsDaprComponents_CreateOrUpdate
+### ConnectedEnvironments_CheckNameAvailability
```java
-import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
-import com.azure.resourcemanager.appcontainers.models.Secret;
-import java.util.Arrays;
+import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest;
/**
- * Samples for ConnectedEnvironmentsDaprComponents CreateOrUpdate.
+ * Samples for ConnectedEnvironments CheckNameAvailability.
*/
-public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
+public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ConnectedEnvironmentsCertificates_CheckNameAvailability.json
*/
/**
- * Sample code: Create or update dapr component.
+ * Sample code: Certificates_CheckNameAvailability.
*
* @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"))
- .create();
+ 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);
}
}
```
-### ConnectedEnvironmentsDaprComponents_Delete
+### ConnectedEnvironments_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
+
/**
- * Samples for ConnectedEnvironmentsDaprComponents Delete.
+ * Samples for ConnectedEnvironments CreateOrUpdate.
*/
-public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
+public final class ConnectedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsDaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ConnectedEnvironments_CreateOrUpdate.json
*/
/**
- * Sample code: Delete dapr component.
+ * Sample code: Create kube environments.
*
* @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);
+ 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();
}
}
```
-### ConnectedEnvironmentsDaprComponents_Get
+### ConnectedEnvironments_Delete
```java
/**
- * Samples for ConnectedEnvironmentsDaprComponents Get.
+ * Samples for ConnectedEnvironments Delete.
*/
-public final class ConnectedEnvironmentsDaprComponentsGetSamples {
+public final class ConnectedEnvironmentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsDaprComponents_Get.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Delete
+ * .json
*/
/**
- * Sample code: Get Dapr Component.
+ * Sample code: Delete connected environment by connectedEnvironmentName.
*
* @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);
+ public static void deleteConnectedEnvironmentByConnectedEnvironmentName(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().delete("examplerg", "examplekenv", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsDaprComponents_List
+### ConnectedEnvironments_GetByResourceGroup
```java
/**
- * Samples for ConnectedEnvironmentsDaprComponents List.
+ * Samples for ConnectedEnvironments GetByResourceGroup.
*/
-public final class ConnectedEnvironmentsDaprComponentsListSamples {
+public final class ConnectedEnvironmentsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsDaprComponents_List.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Get.
+ * json
*/
/**
- * Sample code: List Dapr Components.
+ * Sample code: Get connected environment by connectedEnvironmentName.
*
* @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);
+ public static void getConnectedEnvironmentByConnectedEnvironmentName(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments()
+ .getByResourceGroupWithResponse("examplerg", "examplekenv", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsDaprComponents_ListSecrets
+### ConnectedEnvironments_List
```java
/**
- * Samples for ConnectedEnvironmentsDaprComponents ListSecrets.
+ * Samples for ConnectedEnvironments List.
*/
-public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples {
+public final class ConnectedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsDaprComponents_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ConnectedEnvironments_ListBySubscription.json
*/
/**
- * Sample code: List Container Apps Secrets.
+ * Sample code: List connected environments by subscription.
*
* @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);
+ public static void listConnectedEnvironmentsBySubscription(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().list(com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsStorages_CreateOrUpdate
+### ConnectedEnvironments_ListByResourceGroup
```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.
+ * Samples for ConnectedEnvironments ListByResourceGroup.
*/
-public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
+public final class ConnectedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ConnectedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ConnectedEnvironments_ListByResourceGroup.json
*/
/**
- * Sample code: Create or update environments storage.
+ * Sample code: List environments by resource group.
*
* @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)
+ listEnvironmentsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().listByResourceGroup("examplerg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironments_Update
+
+```java
+/**
+ * Samples for ConnectedEnvironments Update.
+ */
+public final class ConnectedEnvironmentsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Patch.
+ * json
+ */
+ /**
+ * Sample code: Patch Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ patchManagedEnvironment(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironments().updateWithResponse("examplerg", "testenv", 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.
+ *
+ * @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);
+ }
+}
+```
+
+### ConnectedEnvironmentsCertificates_Get
+
+```java
+/**
+ * Samples for ConnectedEnvironmentsCertificates Get.
+ */
+public final class ConnectedEnvironmentsCertificatesGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ConnectedEnvironmentsCertificate_Get.json
+ */
+ /**
+ * Sample code: Get Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsCertificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsCertificates_List
+
+```java
+/**
+ * Samples for ConnectedEnvironmentsCertificates List.
+ */
+public final class ConnectedEnvironmentsCertificatesListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
+ */
+ /**
+ * Sample code: List Certificates by Connected Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listCertificatesByConnectedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsCertificates()
+ .list("examplerg", "testcontainerenv", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectedEnvironmentsCertificates_Update
+
+```java
+import com.azure.resourcemanager.appcontainers.models.Certificate;
+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.
+ */
+public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or update dapr component.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ createOrUpdateDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.connectedEnvironmentsDaprComponents()
+ .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
+### 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.LoggerSetting;
+import com.azure.resourcemanager.appcontainers.models.LogLevel;
+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) {
+ manager.containerApps()
+ .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")
+ .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))
+ .withMaxInactiveRevisions(10)
+ .withService(new Service().withType("redis")))
+ .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("")
+ .withImageType(ImageType.CLOUD_BUILD)
+ .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"))))))
+ .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.LoggerSetting;
+import com.azure.resourcemanager.appcontainers.models.LogLevel;
+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();
+ }
+}
+```
+
+### 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
+ */
+ /**
+ * Sample code: Create or Update Container App SourceControl.
+ *
+ * @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")
+ .create();
+ }
+}
+```
+
+### ContainerAppsSourceControls_Delete
```java
/**
- * Samples for ConnectedEnvironmentsStorages Delete.
+ * Samples for ContainerAppsSourceControls Delete.
*/
-public final class ConnectedEnvironmentsStoragesDeleteSamples {
+public final class ContainerAppsSourceControlsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ConnectedEnvironmentsStorages_Delete.
- * json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Delete.json
*/
/**
- * Sample code: List environments storages by subscription.
+ * Sample code: Delete Container App SourceControl.
*
* @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);
+ 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);
}
}
```
-### ConnectedEnvironmentsStorages_Get
+### ContainerAppsSourceControls_Get
```java
/**
- * Samples for ConnectedEnvironmentsStorages Get.
+ * Samples for ContainerAppsSourceControls Get.
*/
-public final class ConnectedEnvironmentsStoragesGetSamples {
+public final class ContainerAppsSourceControlsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ConnectedEnvironmentsStorages_Get.
- * json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Get.json
*/
/**
- * Sample code: get a environments storage properties by subscription.
+ * Sample code: Get Container App's SourceControl.
*
* @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);
+ public static void
+ getContainerAppSSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSourceControls()
+ .getWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
}
}
```
-### ConnectedEnvironmentsStorages_List
+### ContainerAppsSourceControls_ListByContainerApp
```java
/**
- * Samples for ConnectedEnvironmentsStorages List.
+ * Samples for ContainerAppsSourceControls ListByContainerApp.
*/
-public final class ConnectedEnvironmentsStoragesListSamples {
+public final class ContainerAppsSourceControlsListByContainerAppSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ConnectedEnvironmentsStorages_List.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * SourceControls_ListByContainer.json
*/
/**
- * Sample code: List environments storages by subscription.
+ * Sample code: List App's Source Controls.
*
* @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);
+ public static void listAppSSourceControls(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSourceControls()
+ .listByContainerApp("workerapps-rg-xj", "testcanadacentral", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerApps_CreateOrUpdate
+### DaprComponentResiliencyPolicies_CreateOrUpdate
```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.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.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.TcpScaleRule;
-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;
+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 ContainerApps CreateOrUpdate.
+ * Samples for DaprComponentResiliencyPolicies CreateOrUpdate.
*/
-public final class ContainerAppsCreateOrUpdateSamples {
+public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json
*/
/**
- * Sample code: Create or Update Container App.
+ * Sample code: Create or update dapr component resiliency policy with outbound policy only.
*
* @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")
- .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))
- .withMaxInactiveRevisions(10)
- .withService(new Service().withType("redis")))
- .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.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)
- .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/redisService")
- .withName("redisService"))))
+ 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();
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_TcpApp_CreateOrUpdate.
- * json
+ * 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 Tcp App.
+ * Sample code: Create or update dapr component resiliency policy with all options.
*
* @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)
- .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
- .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
+ 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();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ContainerApps_ManagedBy_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json
*/
/**
- * Sample code: Create or Update ManagedBy App.
+ * Sample code: Create or update dapr component resiliency policy with sparse options.
*
* @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)
- .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
- .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
+ 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();
}
+}
+```
- // 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;
+### DaprComponentResiliencyPolicies_Delete
+
+```java
+/**
+ * Samples for DaprComponentResiliencyPolicies Delete.
+ */
+public final class DaprComponentResiliencyPoliciesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprComponentResiliencyPolicies_Delete.json
+ */
+ /**
+ * Sample code: Delete dapr component resiliency policy.
+ *
+ * @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);
}
}
```
-### ContainerApps_Delete
+### DaprComponentResiliencyPolicies_Get
```java
/**
- * Samples for ContainerApps Delete.
+ * Samples for DaprComponentResiliencyPolicies Get.
*/
-public final class ContainerAppsDeleteSamples {
+public final class DaprComponentResiliencyPoliciesGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprComponentResiliencyPolicies_Get.json
*/
/**
- * Sample code: Delete Container App.
+ * Sample code: Get Dapr component resiliency policy.
*
* @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);
+ public static void
+ getDaprComponentResiliencyPolicy(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponentResiliencyPolicies()
+ .getWithResponse("examplerg", "myenvironment", "mydaprcomponent", "myresiliencypolicy",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ContainerApps_GetAuthToken
+### DaprComponentResiliencyPolicies_List
```java
/**
- * Samples for ContainerApps GetAuthToken.
+ * Samples for DaprComponentResiliencyPolicies List.
*/
-public final class ContainerAppsGetAuthTokenSamples {
+public final class DaprComponentResiliencyPoliciesListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_GetAuthToken.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprComponentResiliencyPolicies_List.json
*/
/**
- * Sample code: Get Container App Auth Token.
+ * Sample code: List Dapr component resiliency policies.
*
* @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);
+ listDaprComponentResiliencyPolicies(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponentResiliencyPolicies()
+ .list("examplerg", "myenvironment", "mydaprcomponent", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerApps_GetByResourceGroup
+### DaprComponents_CreateOrUpdate
```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 ContainerApps GetByResourceGroup.
+ * Samples for DaprComponents CreateOrUpdate.
*/
-public final class ContainerAppsGetByResourceGroupSamples {
+public final class DaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprComponents_CreateOrUpdate_Secrets.json
*/
/**
- * Sample code: Get Container App.
+ * Sample code: Create or update dapr component with secrets.
*
* @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);
+ 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);
}
-}
-```
-
-### ContainerApps_List
-```java
-/**
- * Samples for ContainerApps List.
- */
-public final class ContainerAppsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprComponents_CreateOrUpdate_SecretStoreComponent.json
*/
/**
- * Sample code: List Container Apps by subscription.
+ * Sample code: Create or update dapr component with secret store component.
*
* @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);
+ 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);
}
}
```
-### ContainerApps_ListByResourceGroup
+### DaprComponents_Delete
```java
/**
- * Samples for ContainerApps ListByResourceGroup.
+ * Samples for DaprComponents Delete.
*/
-public final class ContainerAppsListByResourceGroupSamples {
+public final class DaprComponentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_ListByResourceGroup.
- * json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Delete.json
*/
/**
- * Sample code: List Container Apps by resource group.
+ * Sample code: Delete dapr component.
*
* @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);
+ public static void deleteDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .deleteWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerApps_ListCustomHostnameAnalysis
+### DaprComponents_Get
```java
/**
- * Samples for ContainerApps ListCustomHostnameAnalysis.
+ * Samples for DaprComponents Get.
*/
-public final class ContainerAppsListCustomHostnameAnalysisSamples {
+public final class DaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * ContainerApps_ListCustomHostNameAnalysis.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprComponents_Get_SecretStoreComponent.json
*/
/**
- * Sample code: Analyze Custom Hostname.
+ * Sample code: Get Dapr Component with secret store component.
*
* @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);
+ public static void getDaprComponentWithSecretStoreComponent(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .getWithResponse("examplerg", "myenvironment", "reddog", 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/stable/2024-03-01/examples/ContainerApps_ListSecrets.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Get_Secrets.
+ * json
*/
/**
- * Sample code: List Container Apps Secrets.
+ * Sample code: Get Dapr Component with 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);
+ getDaprComponentWithSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerApps_Start
+### DaprComponents_List
```java
/**
- * Samples for ContainerApps Start.
+ * Samples for DaprComponents List.
*/
-public final class ContainerAppsStartSamples {
+public final class DaprComponentsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_Start.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_List.json
*/
/**
- * Sample code: Start Container App.
+ * Sample code: List Dapr Components.
*
* @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);
+ public static void listDaprComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerApps_Stop
+### DaprComponents_ListSecrets
```java
/**
- * Samples for ContainerApps Stop.
+ * Samples for DaprComponents ListSecrets.
*/
-public final class ContainerAppsStopSamples {
+public final class DaprComponentsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_Stop.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_ListSecrets.
+ * json
*/
/**
- * Sample code: Stop Container App.
+ * Sample code: List Container Apps Secrets.
*
* @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);
+ public static void
+ listContainerAppsSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprComponents()
+ .listSecretsWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerApps_Update
+### DaprSubscriptions_CreateOrUpdate
```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.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 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 ContainerApps Update.
+ * Samples for DaprSubscriptions CreateOrUpdate.
*/
-public final class ContainerAppsUpdateSamples {
+public final class DaprSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json
*/
/**
- * Sample code: Patch Container App.
+ * Sample code: Create or update dapr subscription with route rules and metadata.
*
* @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))
- .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)
- .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();
+ 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();
+ }
+
+ /*
+ * 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();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json
+ */
+ /**
+ * Sample code: Create or update dapr subscription with bulk subscribe configuration and scopes.
+ *
+ * @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
@@ -1509,1160 +3894,1407 @@ public final class ContainerAppsUpdateSamples {
}
```
-### ContainerAppsAuthConfigs_CreateOrUpdate
+### DaprSubscriptions_Delete
```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.
+ * Samples for DaprSubscriptions Delete.
*/
-public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
+public final class DaprSubscriptionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/AuthConfigs_CreateOrUpdate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_Delete.
+ * json
*/
/**
- * Sample code: Create or Update Container App AuthConfig.
+ * Sample code: Delete dapr subscription.
*
* @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();
+ public static void deleteDaprSubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprSubscriptions()
+ .deleteWithResponse("examplerg", "myenvironment", "mysubscription", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsAuthConfigs_Delete
+### DaprSubscriptions_Get
```java
/**
- * Samples for ContainerAppsAuthConfigs Delete.
+ * Samples for DaprSubscriptions Get.
*/
-public final class ContainerAppsAuthConfigsDeleteSamples {
+public final class DaprSubscriptionsGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/AuthConfigs_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprSubscriptions_Get_DefaultRoute.json
*/
/**
- * Sample code: Delete Container App AuthConfig.
+ * Sample code: Get Dapr subscription with bulk subscribe configuration and scopes.
*
* @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);
+ public static void getDaprSubscriptionWithBulkSubscribeConfigurationAndScopes(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprSubscriptions()
+ .getWithResponse("examplerg", "myenvironment", "mypubsubcomponent", com.azure.core.util.Context.NONE);
}
-}
-```
-### ContainerAppsAuthConfigs_Get
+ /*
+ * 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);
+ }
-```java
-/**
- * Samples for ContainerAppsAuthConfigs Get.
- */
-public final class ContainerAppsAuthConfigsGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/AuthConfigs_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DaprSubscriptions_Get_RouteRulesAndMetadata.json
*/
/**
- * Sample code: Get Container App's AuthConfig.
+ * Sample code: GetDapr subscription with route rules and metadata.
*
* @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);
+ public static void getDaprSubscriptionWithRouteRulesAndMetadata(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprSubscriptions()
+ .getWithResponse("examplerg", "myenvironment", "mypubsubcomponent", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsAuthConfigs_ListByContainerApp
+### DaprSubscriptions_List
```java
/**
- * Samples for ContainerAppsAuthConfigs ListByContainerApp.
+ * Samples for DaprSubscriptions List.
*/
-public final class ContainerAppsAuthConfigsListByContainerAppSamples {
+public final class DaprSubscriptionsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/AuthConfigs_ListByContainer.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_List.json
*/
/**
- * Sample code: List Auth Configs by Container Apps.
+ * Sample code: List Dapr subscriptions.
*
* @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);
+ public static void listDaprSubscriptions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.daprSubscriptions().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsDiagnostics_GetDetector
+### DotNetComponents_CreateOrUpdate
```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 ContainerAppsDiagnostics GetDetector.
+ * Samples for DotNetComponents CreateOrUpdate.
*/
-public final class ContainerAppsDiagnosticsGetDetectorSamples {
+public final class DotNetComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerAppsDiagnostics_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DotNetComponents_CreateOrUpdate.json
*/
/**
- * Sample code: Get Container App's diagnostics info.
+ * Sample code: Create or Update .NET Component.
*
* @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);
+ 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();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DotNetComponents_CreateOrUpdate_ServiceBind.json
+ */
+ /**
+ * Sample code: Create or Update .NET Component with ServiceBinds.
+ *
+ * @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();
}
}
```
-### ContainerAppsDiagnostics_GetRevision
+### DotNetComponents_Delete
```java
/**
- * Samples for ContainerAppsDiagnostics GetRevision.
+ * Samples for DotNetComponents Delete.
*/
-public final class ContainerAppsDiagnosticsGetRevisionSamples {
+public final class DotNetComponentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Revisions_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Delete.json
*/
/**
- * Sample code: Get Container App's revision.
+ * Sample code: Delete .NET Component.
*
* @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);
+ public static void deleteNETComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.dotNetComponents()
+ .delete("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsDiagnostics_GetRoot
+### DotNetComponents_Get
```java
/**
- * Samples for ContainerAppsDiagnostics GetRoot.
+ * Samples for DotNetComponents Get.
*/
-public final class ContainerAppsDiagnosticsGetRootSamples {
+public final class DotNetComponentsGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DotNetComponents_Get_ServiceBind.json
+ */
+ /**
+ * Sample code: Get .NET Component with ServiceBinds.
+ *
+ * @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);
+ }
+
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Get.json
*/
/**
- * Sample code: Get Container App.
+ * Sample code: Get .NET Component.
*
* @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);
+ public static void getNETComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.dotNetComponents()
+ .getWithResponse("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsDiagnostics_ListDetectors
+### DotNetComponents_List
```java
/**
- * Samples for ContainerAppsDiagnostics ListDetectors.
+ * Samples for DotNetComponents List.
*/
-public final class ContainerAppsDiagnosticsListDetectorsSamples {
+public final class DotNetComponentsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerAppsDiagnostics_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_List.json
*/
/**
- * Sample code: Get the list of available diagnostics for a given Container App.
+ * Sample code: List .NET Components.
*
* @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);
+ public static void listNETComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.dotNetComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DotNetComponents_List_ServiceBind.json
+ */
+ /**
+ * Sample code: List .NET Components with ServiceBinds.
+ *
+ * @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);
}
}
```
-### ContainerAppsDiagnostics_ListRevisions
+### DotNetComponents_Update
```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 java.util.Arrays;
+
/**
- * Samples for ContainerAppsDiagnostics ListRevisions.
+ * Samples for DotNetComponents Update.
*/
-public final class ContainerAppsDiagnosticsListRevisionsSamples {
+public final class DotNetComponentsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * DotNetComponents_Patch_ServiceBind.json
*/
/**
- * Sample code: List Container App's revisions.
+ * Sample code: Patch .NET Component with ServiceBinds.
*
* @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);
+ 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();
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Patch.json
+ */
+ /**
+ * Sample code: Patch .NET Component.
+ *
+ * @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();
}
}
```
-### ContainerAppsRevisionReplicas_GetReplica
+### FunctionsExtension_InvokeFunctionsHost
```java
/**
- * Samples for ContainerAppsRevisionReplicas GetReplica.
+ * Samples for FunctionsExtension InvokeFunctionsHost.
*/
-public final class ContainerAppsRevisionReplicasGetReplicaSamples {
+public final class FunctionsExtensionInvokeFunctionsHostSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Replicas_Get.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/FunctionsExtension_Post.json
*/
/**
- * Sample code: Get Container App's revision replica.
+ * Sample code: Invoke Functions host using Functions Extension API.
*
* @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);
+ public static void invokeFunctionsHostUsingFunctionsExtensionAPI(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.functionsExtensions()
+ .invokeFunctionsHostWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ "testcontainerApp0", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisionReplicas_ListReplicas
+### 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 ContainerAppsRevisionReplicas ListReplicas.
+ * Samples for JavaComponents CreateOrUpdate.
*/
-public final class ContainerAppsRevisionReplicasListReplicasSamples {
+public final class JavaComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Replicas_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * JavaComponents_CreateOrUpdate_ServiceBind.json
*/
/**
- * Sample code: List Container App's replicas.
+ * 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/
+ * JavaComponents_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Java Component.
*
* @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);
+ 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();
}
}
```
-### ContainerAppsRevisions_ActivateRevision
+### JavaComponents_Delete
```java
/**
- * Samples for ContainerAppsRevisions ActivateRevision.
+ * Samples for JavaComponents Delete.
*/
-public final class ContainerAppsRevisionsActivateRevisionSamples {
+public final class JavaComponentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Revisions_Activate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Delete.json
*/
/**
- * Sample code: Activate Container App's revision.
+ * Sample code: Delete Java Component.
*
* @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);
+ public static void deleteJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents()
+ .delete("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisions_DeactivateRevision
+### JavaComponents_Get
```java
/**
- * Samples for ContainerAppsRevisions DeactivateRevision.
+ * Samples for JavaComponents Get.
*/
-public final class ContainerAppsRevisionsDeactivateRevisionSamples {
+public final class JavaComponentsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Revisions_Deactivate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Get.json
*/
/**
- * Sample code: Deactivate Container App's revision.
+ * 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/preview/2024-08-02-preview/examples/
+ * JavaComponents_Get_ServiceBind.json
+ */
+ /**
+ * Sample code: Get Java Component with ServiceBinds.
*
* @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);
+ getJavaComponentWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents()
+ .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisions_GetRevision
+### JavaComponents_List
```java
/**
- * Samples for ContainerAppsRevisions GetRevision.
+ * Samples for JavaComponents List.
*/
-public final class ContainerAppsRevisionsGetRevisionSamples {
+public final class JavaComponentsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Revisions_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_List.json
*/
/**
- * Sample code: Get Container App's revision.
+ * Sample code: List Java Components.
+ *
+ * @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);
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * JavaComponents_List_ServiceBind.json
+ */
+ /**
+ * Sample code: List Java Components with ServiceBinds.
*
* @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);
+ listJavaComponentsWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.javaComponents().list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisions_ListRevisions
+### 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 ContainerAppsRevisions ListRevisions.
+ * Samples for JavaComponents Update.
*/
-public final class ContainerAppsRevisionsListRevisionsSamples {
+public final class JavaComponentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Revisions_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Patch.json
*/
/**
- * Sample code: List Container App's revisions.
+ * Sample code: Patch Java Component.
*
* @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
+ 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();
+ }
-```java
-/**
- * Samples for ContainerAppsRevisions RestartRevision.
- */
-public final class ContainerAppsRevisionsRestartRevisionSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Revisions_Restart.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * JavaComponents_Patch_ServiceBind.json
*/
/**
- * Sample code: Restart Container App's revision.
+ * Sample code: Patch Java Component with ServiceBinds.
*
* @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);
+ 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();
}
}
```
-### ContainerAppsSourceControls_CreateOrUpdate
+### Jobs_CreateOrUpdate
```java
-import com.azure.resourcemanager.appcontainers.models.AzureCredentials;
-import com.azure.resourcemanager.appcontainers.models.GithubActionConfiguration;
-import com.azure.resourcemanager.appcontainers.models.RegistryInfo;
+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;
/**
- * Samples for ContainerAppsSourceControls CreateOrUpdate.
+ * Samples for Jobs CreateOrUpdate.
*/
-public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
+public final class JobsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/SourceControls_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * Job_CreateorUpdate_ConnectedEnvironment.json
*/
/**
- * Sample code: Create or Update Container App SourceControl.
+ * Sample code: Create or Update Container Apps Job On A Connected Environment.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void createOrUpdateContainerAppSourceControl(
+ public static void createOrUpdateContainerAppsJobOnAConnectedEnvironment(
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"))
+ 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();
}
-}
-```
-### ContainerAppsSourceControls_Delete
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * Job_CreateorUpdate_EventTrigger.json
+ */
+ /**
+ * Sample code: Create or Update Container Apps Job With Event Driven Trigger.
+ *
+ * @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();
+ }
-```java
-/**
- * Samples for ContainerAppsSourceControls Delete.
- */
-public final class ContainerAppsSourceControlsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/SourceControls_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_CreateorUpdate.json
*/
/**
- * Sample code: Delete Container App SourceControl.
+ * Sample code: Create or Update Container Apps Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- deleteContainerAppSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSourceControls()
- .delete("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
+ 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;
}
}
```
-### ContainerAppsSourceControls_Get
+### Jobs_Delete
```java
/**
- * Samples for ContainerAppsSourceControls Get.
+ * Samples for Jobs Delete.
*/
-public final class ContainerAppsSourceControlsGetSamples {
+public final class JobsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/SourceControls_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Delete.json
*/
/**
- * Sample code: Get Container App's SourceControl.
+ * Sample code: Delete Container Apps Job.
*
* @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 deleteContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().delete("rg", "testWorkerContainerAppsJob0", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsSourceControls_ListByContainerApp
+### Jobs_GetByResourceGroup
```java
/**
- * Samples for ContainerAppsSourceControls ListByContainerApp.
+ * Samples for Jobs GetByResourceGroup.
*/
-public final class ContainerAppsSourceControlsListByContainerAppSamples {
+public final class JobsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/SourceControls_ListByContainer.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Get.json
*/
/**
- * Sample code: List App's Source Controls.
+ * Sample code: Get Container Apps Job.
*
* @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 getContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().getByResourceGroupWithResponse("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponents_CreateOrUpdate
+### Jobs_GetDetector
```java
-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 DaprComponents CreateOrUpdate.
+ * Samples for Jobs GetDetector.
*/
-public final class DaprComponentsCreateOrUpdateSamples {
+public final class JobsGetDetectorSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/DaprComponents_CreateOrUpdate_Secrets
- * .json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_GetDetector.json
*/
/**
- * Sample code: Create or update dapr component with secrets.
+ * Sample code: Get diagnostic data for a Container App Job.
*
* @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")),
+ 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);
}
+}
+```
+### Jobs_List
+
+```java
+/**
+ * Samples for Jobs List.
+ */
+public final class JobsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * DaprComponents_CreateOrUpdate_SecretStoreComponent.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListBySubscription.json
*/
/**
- * Sample code: Create or update dapr component with secret store component.
+ * Sample code: List Container Apps Jobs by subscription.
*
* @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")),
- com.azure.core.util.Context.NONE);
+ public static void
+ listContainerAppsJobsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().list(com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponents_Delete
+### Jobs_ListByResourceGroup
```java
/**
- * Samples for DaprComponents Delete.
+ * Samples for Jobs ListByResourceGroup.
*/
-public final class DaprComponentsDeleteSamples {
+public final class JobsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/DaprComponents_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListByResourceGroup.
+ * json
*/
/**
- * Sample code: Delete dapr component.
+ * Sample code: List Container Apps Jobs by resource group.
*
* @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
+ listContainerAppsJobsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponents_Get
+### Jobs_ListDetectors
```java
/**
- * Samples for DaprComponents Get.
+ * Samples for Jobs ListDetectors.
*/
-public final class DaprComponentsGetSamples {
+public final class JobsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
- * DaprComponents_Get_SecretStoreComponent.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListDetectors.json
*/
/**
- * Sample code: Get Dapr Component with secret store component.
+ * Sample code: Get the list of available diagnostic data for a Container App Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getDaprComponentWithSecretStoreComponent(
+ public static void getTheListOfAvailableDiagnosticDataForAContainerAppJob(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents()
- .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
+ manager.jobs().listDetectors("mikono-workerapp-test-rg", "mikonojob1", com.azure.core.util.Context.NONE);
}
+}
+```
+### Jobs_ListSecrets
+
+```java
+/**
+ * Samples for Jobs ListSecrets.
+ */
+public final class JobsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/DaprComponents_Get_Secrets.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListSecrets.json
*/
/**
- * Sample code: Get Dapr Component with secrets.
+ * Sample code: List Container Apps Job Secrets.
*
* @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);
+ listContainerAppsJobSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().listSecretsWithResponse("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponents_List
+### Jobs_ProxyGet
```java
/**
- * Samples for DaprComponents List.
+ * Samples for Jobs ProxyGet.
*/
-public final class DaprComponentsListSamples {
+public final class JobsProxyGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/DaprComponents_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ProxyGet.json
*/
/**
- * Sample code: List Dapr Components.
+ * Sample code: Get Container App Job by name.
*
* @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
+ getContainerAppJobByName(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().proxyGetWithResponse("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
}
}
```
-### DaprComponents_ListSecrets
+### Jobs_Resume
```java
/**
- * Samples for DaprComponents ListSecrets.
+ * Samples for Jobs Resume.
*/
-public final class DaprComponentsListSecretsSamples {
+public final class JobsResumeSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/DaprComponents_ListSecrets.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Resume.json
*/
/**
- * Sample code: List Container Apps Secrets.
+ * Sample code: Resume Job.
*
* @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);
+ public static void resumeJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().resume("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_CreateOrUpdate
+### Jobs_Start
```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.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.TriggerType;
-import com.azure.resourcemanager.appcontainers.models.Type;
-import java.io.IOException;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionContainer;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate;
import java.util.Arrays;
/**
- * Samples for Jobs CreateOrUpdate.
+ * Samples for Jobs Start.
*/
-public final class JobsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_CreateorUpdate_EventTrigger.json
- */
- /**
- * Sample code: Create or Update Container Apps Job With Event Driven Trigger.
- *
- * @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")
- .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)))))))
- .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"))))
- .create();
- }
-
+public final class JobsStartSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_CreateorUpdate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Start.json
*/
/**
- * Sample code: Create or Update Container Apps Job.
+ * Sample code: Run a Container Apps Job.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- createOrUpdateContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ public static void runAContainerAppsJob(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")
+ .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")
.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(5)
- .withPeriodSeconds(3)
- .withType(Type.LIVENESS))))))
- .create();
+ .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi")))),
+ com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_Delete
+### Jobs_StopExecution
```java
/**
- * Samples for Jobs Delete.
+ * Samples for Jobs StopExecution.
*/
-public final class JobsDeleteSamples {
+public final class JobsStopExecutionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_Delete.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Execution.json
*/
/**
- * Sample code: Delete Container Apps Job.
+ * Sample code: Terminate a Container Apps Job.
*
* @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
+ terminateAContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().stopExecution("rg", "testcontainerAppsJob0", "jobExecution1", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_GetByResourceGroup
+### Jobs_StopMultipleExecutions
```java
/**
- * Samples for Jobs GetByResourceGroup.
+ * Samples for Jobs StopMultipleExecutions.
*/
-public final class JobsGetByResourceGroupSamples {
+public final class JobsStopMultipleExecutionsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_Get.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Multiple.json
*/
/**
- * Sample code: Get Container Apps Job.
+ * Sample code: Terminate Multiple Container Apps Job.
*
* @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
+ terminateMultipleContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().stopMultipleExecutions("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_GetDetector
+### Jobs_Suspend
```java
/**
- * Samples for Jobs GetDetector.
+ * Samples for Jobs Suspend.
*/
-public final class JobsGetDetectorSamples {
+public final class JobsSuspendSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_GetDetector.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Suspend.json
*/
/**
- * Sample code: Get diagnostic data for a Container App Job.
+ * Sample code: Suspend 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);
+ public static void suspendJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobs().suspend("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_List
+### 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 Jobs List.
+ * Samples for Jobs Update.
*/
-public final class JobsListSamples {
+public final class JobsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Jobs_ListBySubscription.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Patch.json
*/
/**
- * Sample code: List Container Apps Jobs by subscription.
+ * Sample code: Patch Container Apps Job.
*
* @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 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();
}
}
```
-### Jobs_ListByResourceGroup
+### JobsExecutions_List
```java
/**
- * Samples for Jobs ListByResourceGroup.
+ * Samples for JobsExecutions List.
*/
-public final class JobsListByResourceGroupSamples {
+public final class JobsExecutionsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Jobs_ListByResourceGroup.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Executions_Get.json
*/
/**
- * Sample code: List Container Apps Jobs by resource group.
+ * Sample code: Get a Container Apps Job Executions.
*
* @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);
+ getAContainerAppsJobExecutions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.jobsExecutions().list("rg", "testcontainerAppsJob0", null, com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_ListDetectors
+### LogicApps_CreateOrUpdate
```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import java.io.IOException;
+
/**
- * Samples for Jobs ListDetectors.
+ * Samples for LogicApps CreateOrUpdate.
*/
-public final class JobsListDetectorsSamples {
+public final class LogicAppsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_ListDetectors.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Create.json
*/
/**
- * Sample code: Get the list of available diagnostic data for a Container App Job.
+ * Sample code: Create logic app extension.
*
* @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);
+ 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();
}
}
```
-### Jobs_ListSecrets
+### LogicApps_Delete
```java
/**
- * Samples for Jobs ListSecrets.
+ * Samples for LogicApps Delete.
*/
-public final class JobsListSecretsSamples {
+public final class LogicAppsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_ListSecrets.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Delete.json
*/
/**
- * Sample code: List Container Apps Job Secrets.
+ * Sample code: Create logic app extension.
*
* @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);
+ createLogicAppExtension(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .deleteWithResponse("examplerg", "testcontainerApp0", "testcontainerApp0",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_ProxyGet
+### LogicApps_DeployWorkflowArtifacts
```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 Jobs ProxyGet.
+ * Samples for LogicApps DeployWorkflowArtifacts.
*/
-public final class JobsProxyGetSamples {
+public final class LogicAppsDeployWorkflowArtifactsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_ProxyGet.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * LogicApps_PostDeployWorkflowArtifacts.json
*/
/**
- * Sample code: Get Container App Job by name.
+ * Sample code: Deploys workflow artifacts.
+ *
+ * @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);
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * LogicApps_DeleteDeployWorkflowArtifacts.json
+ */
+ /**
+ * Sample code: Delete workflow artifacts.
*
* @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);
+ 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);
}
}
```
-### Jobs_Start
+### LogicApps_Get
```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 Jobs Start.
+ * Samples for LogicApps Get.
*/
-public final class JobsStartSamples {
+public final class LogicAppsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_Start.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Get.json
*/
/**
- * Sample code: Run a Container Apps Job.
+ * Sample code: Get logic app extension by name.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- 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);
+ public static void
+ getLogicAppExtensionByName(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .getWithResponse("examplerg", "testcontainerApp0", "testcontainerApp0", com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_StopExecution
+### LogicApps_GetWorkflow
```java
/**
- * Samples for Jobs StopExecution.
+ * Samples for LogicApps GetWorkflow.
*/
-public final class JobsStopExecutionSamples {
+public final class LogicAppsGetWorkflowSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_Stop_Execution.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_GetWorkflow.json
*/
/**
- * Sample code: Terminate a Container Apps Job.
+ * Sample code: GET a workflow.
*
* @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);
+ public static void gETAWorkflow(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .getWorkflowWithResponse("examplerg", "testcontainerApp0", "testcontainerApp0", "stateful1",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Jobs_StopMultipleExecutions
+### LogicApps_Invoke
```java
+import com.azure.resourcemanager.appcontainers.models.LogicAppsProxyMethod;
+
/**
- * Samples for Jobs StopMultipleExecutions.
+ * Samples for LogicApps Invoke.
*/
-public final class JobsStopMultipleExecutionsSamples {
+public final class LogicAppsInvokeSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_Stop_Multiple.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListCallbackURL.
+ * json
*/
/**
- * Sample code: Terminate Multiple Container Apps Job.
+ * Sample code: Get workflow list call back URL.
*
* @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);
+ 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);
}
}
```
-### Jobs_Update
+### LogicApps_ListWorkflows
```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 LogicApps ListWorkflows.
*/
-public final class JobsUpdateSamples {
+public final class LogicAppsListWorkflowsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_Patch.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListWorkflows.json
*/
/**
- * Sample code: Patch Container Apps Job.
+ * Sample code: List the workflows.
*
* @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.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();
+ public static void listTheWorkflows(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .listWorkflows("examplerg", "testcontainerApp0", "testcontainerApp0", com.azure.core.util.Context.NONE);
}
}
```
-### JobsExecutions_List
+### LogicApps_ListWorkflowsConnections
```java
/**
- * Samples for JobsExecutions List.
+ * Samples for LogicApps ListWorkflowsConnections.
*/
-public final class JobsExecutionsListSamples {
+public final class LogicAppsListWorkflowsConnectionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_Executions_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListConnections.
+ * json
*/
/**
- * Sample code: Get a Container Apps Job Executions.
+ * Sample code: List the Workflows Configuration Connections.
*
* @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);
+ public static void listTheWorkflowsConfigurationConnections(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .listWorkflowsConnectionsWithResponse("testrg123", "testapp2", "testapp2",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2678,9 +5310,8 @@ import com.azure.resourcemanager.appcontainers.models.ManagedCertificateProperti
*/
public final class ManagedCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedCertificate_CreateOrUpdate.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedCertificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
@@ -2709,7 +5340,8 @@ public final class ManagedCertificatesCreateOrUpdateSamples {
public final class ManagedCertificatesDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedCertificate_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Delete.
+ * json
*/
/**
* Sample code: Delete Certificate.
@@ -2733,7 +5365,7 @@ public final class ManagedCertificatesDeleteSamples {
public final class ManagedCertificatesGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedCertificate_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -2756,7 +5388,7 @@ public final class ManagedCertificatesGetSamples {
*/
public final class ManagedCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
* ManagedCertificates_ListByManagedEnvironment.json
*/
/**
@@ -2784,7 +5416,8 @@ import java.util.Map;
public final class ManagedCertificatesUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedCertificates_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificates_Patch.
+ * json
*/
/**
* Sample code: Patch Managed Certificate.
@@ -2822,9 +5455,8 @@ public final class ManagedCertificatesUpdateSamples {
*/
public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironmentDiagnostics_Get.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironmentDiagnostics_Get.json
*/
/**
* Sample code: Get diagnostic data for a managed environments.
@@ -2848,9 +5480,8 @@ public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
*/
public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironmentDiagnostics_List.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironmentDiagnostics_List.json
*/
/**
* Sample code: Get the list of available diagnostic data for a managed environments.
@@ -2865,6 +5496,136 @@ 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
@@ -2873,8 +5634,8 @@ public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
*/
public final class ManagedEnvironmentUsagesListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironmentUsages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironmentUsages_List.json
*/
/**
* Sample code: List managed environment usages.
@@ -2891,23 +5652,37 @@ 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;
import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
/**
* Samples for ManagedEnvironments CreateOrUpdate.
*/
public final class ManagedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
* ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
*/
/**
@@ -2933,6 +5708,7 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
.withCertificatePassword("fakeTokenPlaceholder"))
.withWorkloadProfiles(Arrays.asList(
new WorkloadProfile().withName("My-GP-01")
+ .withEnableFips(true)
.withWorkloadProfileType("GeneralPurpose")
.withMinimumCount(3)
.withMaximumCount(12),
@@ -2950,9 +5726,8 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironments_CreateOrUpdate.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create environments.
@@ -2964,18 +5739,44 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
.define("testcontainerenv")
.withRegion("East US")
.withExistingResourceGroup("examplerg")
+ .withIdentity(new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.fromString("SystemAssigned, UserAssigned"))
+ .withUserAssignedIdentities(mapOf(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity",
+ new UserAssignedIdentity())))
.withDaprAIConnectionString(
"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")))
+ .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"))))
.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),
@@ -2994,6 +5795,18 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
.withEncryption(new ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption().withEnabled(true)))
.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;
+ }
}
```
@@ -3006,7 +5819,8 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
public final class ManagedEnvironmentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironments_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Delete.
+ * json
*/
/**
* Sample code: Delete environment by name.
@@ -3028,8 +5842,8 @@ public final class ManagedEnvironmentsDeleteSamples {
*/
public final class ManagedEnvironmentsGetAuthTokenSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironments_GetAuthToken.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironments_GetAuthToken.json
*/
/**
* Sample code: Get Managed Environment Auth Token.
@@ -3052,7 +5866,7 @@ public final class ManagedEnvironmentsGetAuthTokenSamples {
public final class ManagedEnvironmentsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironments_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -3074,7 +5888,7 @@ public final class ManagedEnvironmentsGetByResourceGroupSamples {
*/
public final class ManagedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
* ManagedEnvironments_ListBySubscription.json
*/
/**
@@ -3097,7 +5911,7 @@ public final class ManagedEnvironmentsListSamples {
*/
public final class ManagedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
* ManagedEnvironments_ListByResourceGroup.json
*/
/**
@@ -3120,7 +5934,7 @@ public final class ManagedEnvironmentsListByResourceGroupSamples {
*/
public final class ManagedEnvironmentsListWorkloadProfileStatesSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
* ManagedEnvironments_ListWorkloadProfileStates.json
*/
/**
@@ -3149,7 +5963,8 @@ import java.util.Map;
public final class ManagedEnvironmentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironments_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Patch.
+ * json
*/
/**
* Sample code: Patch Managed Environment.
@@ -3187,7 +6002,7 @@ public final class ManagedEnvironmentsUpdateSamples {
public final class ManagedEnvironmentsDiagnosticsGetRootSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironments_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -3207,13 +6022,35 @@ public final class ManagedEnvironmentsDiagnosticsGetRootSamples {
import com.azure.resourcemanager.appcontainers.models.AccessMode;
import com.azure.resourcemanager.appcontainers.models.AzureFileProperties;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentStorageProperties;
+import com.azure.resourcemanager.appcontainers.models.NfsAzureFileProperties;
/**
* Samples for ManagedEnvironmentsStorages CreateOrUpdate.
*/
public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json
+ */
+ /**
+ * Sample code: Create or update environments storage for NFS Azure file.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateEnvironmentsStorageForNFSAzureFile(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentsStorages()
+ .define("jlaw-demo1")
+ .withExistingManagedEnvironment("examplerg", "managedEnv")
+ .withProperties(new ManagedEnvironmentStorageProperties()
+ .withNfsAzureFile(new NfsAzureFileProperties().withServer("server1")
+ .withAccessMode(AccessMode.READ_ONLY)
+ .withShareName("share1")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
* ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
@@ -3244,9 +6081,8 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
*/
public final class ManagedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironmentsStorages_Delete.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironmentsStorages_Delete.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -3269,15 +6105,30 @@ public final class ManagedEnvironmentsStoragesDeleteSamples {
*/
public final class ManagedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironmentsStorages_Get.json
*/
/**
- * Sample code: get a environments storage properties by subscription.
+ * Sample code: get a environments storage.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getAEnvironmentsStoragePropertiesBySubscription(
+ public static void
+ getAEnvironmentsStorage(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentsStorages()
+ .getWithResponse("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironmentsStorages_Get_NfsAzureFile.json
+ */
+ /**
+ * Sample code: get a environments storage for NFS Azure file.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getAEnvironmentsStorageForNFSAzureFile(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager.managedEnvironmentsStorages()
.getWithResponse("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE);
@@ -3293,8 +6144,8 @@ public final class ManagedEnvironmentsStoragesGetSamples {
*/
public final class ManagedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ManagedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ManagedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -3319,9 +6170,8 @@ import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReque
*/
public final class NamespacesCheckNameAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Certificates_CheckNameAvailability.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * Certificates_CheckNameAvailability.json
*/
/**
* Sample code: Certificates_CheckNameAvailability.
@@ -3338,9 +6188,8 @@ public final class NamespacesCheckNameAvailabilitySamples {
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/ContainerApps_CheckNameAvailability.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * ContainerApps_CheckNameAvailability.json
*/
/**
* Sample code: ContainerApps_CheckNameAvailability.
@@ -3366,7 +6215,7 @@ public final class NamespacesCheckNameAvailabilitySamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Operations_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Operations_List.json
*/
/**
* Sample code: List all operations.
@@ -3387,7 +6236,7 @@ public final class OperationsListSamples {
*/
public final class ResourceProviderGetCustomDomainVerificationIdSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
* Subscriptions_GetCustomDomainVerificationId.json
*/
/**
@@ -3410,7 +6259,7 @@ public final class ResourceProviderGetCustomDomainVerificationIdSamples {
public final class ResourceProviderJobExecutionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Job_Execution_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Execution_Get.json
*/
/**
* Sample code: Get a single Job Execution.
@@ -3419,7 +6268,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);
}
}
```
@@ -3432,7 +6281,8 @@ public final class ResourceProviderJobExecutionSamples {
*/
public final class UsagesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2024-03-01/examples/Usages_List.json
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/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 06f028b47308f..f847eeb69db04 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. Package tag package-2024-03.
+ This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. 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.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
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 3adad59609349..8685cca50b407 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
@@ -24,8 +24,13 @@
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;
@@ -33,16 +38,28 @@
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.ManagedEnvironmentsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsStoragesImpl;
@@ -51,8 +68,13 @@
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;
@@ -60,15 +82,27 @@
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.ManagedEnvironments;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsStorages;
@@ -86,14 +120,27 @@
/**
* 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;
@@ -104,6 +151,12 @@ public final class ContainerAppsApiManager {
private ContainerApps containerApps;
+ private ContainerAppsBuildsByContainerApps containerAppsBuildsByContainerApps;
+
+ private ContainerAppsBuilds containerAppsBuilds;
+
+ private ContainerAppsPatches containerAppsPatches;
+
private ContainerAppsRevisions containerAppsRevisions;
private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;
@@ -116,12 +169,20 @@ public final class ContainerAppsApiManager {
private Jobs jobs;
+ private DotNetComponents dotNetComponents;
+
+ private FunctionsExtensions functionsExtensions;
+
private Operations operations;
+ private JavaComponents javaComponents;
+
private JobsExecutions jobsExecutions;
private ResourceProviders resourceProviders;
+ private LogicApps logicApps;
+
private ManagedEnvironments managedEnvironments;
private Certificates certificates;
@@ -130,10 +191,20 @@ 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;
+
private ContainerAppsSourceControls containerAppsSourceControls;
private Usages usages;
@@ -304,7 +375,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -350,6 +421,18 @@ 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.
*
@@ -388,6 +471,55 @@ 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.
*
@@ -451,6 +583,43 @@ 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.
*
@@ -528,6 +697,30 @@ 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.
*
@@ -540,6 +733,18 @@ public Operations operations() {
return operations;
}
+ /**
+ * Gets the resource collection API of JavaComponents. It manages JavaComponent.
+ *
+ * @return Resource collection API of JavaComponents.
+ */
+ public JavaComponents javaComponents() {
+ if (this.javaComponents == null) {
+ this.javaComponents = new JavaComponentsImpl(clientObject.getJavaComponents(), this);
+ }
+ return javaComponents;
+ }
+
/**
* Gets the resource collection API of JobsExecutions.
*
@@ -564,6 +769,18 @@ 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.
*
@@ -612,6 +829,46 @@ 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.
*
@@ -624,6 +881,18 @@ 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.
*
@@ -637,6 +906,19 @@ public ManagedEnvironmentsStorages managedEnvironmentsStorages() {
return managedEnvironmentsStorages;
}
+ /**
+ * Gets the resource collection API of ContainerAppsSessionPools. It manages SessionPool.
+ *
+ * @return Resource collection API of ContainerAppsSessionPools.
+ */
+ public ContainerAppsSessionPools containerAppsSessionPools() {
+ if (this.containerAppsSessionPools == null) {
+ this.containerAppsSessionPools
+ = new ContainerAppsSessionPoolsImpl(clientObject.getContainerAppsSessionPools(), this);
+ }
+ return containerAppsSessionPools;
+ }
+
/**
* Gets the resource collection API of ContainerAppsSourceControls. It manages SourceControl.
*
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
new file mode 100644
index 0000000000000..1a40d64209978
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/AppResilienciesClient.java
@@ -0,0 +1,198 @@
+// 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
new file mode 100644
index 0000000000000..c794c5f7277a6
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildAuthTokensClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.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
new file mode 100644
index 0000000000000..65cd73fe23a40
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildersClient.java
@@ -0,0 +1,270 @@
+// 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
new file mode 100644
index 0000000000000..a957f2df2405a
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildsByBuilderResourcesClient.java
@@ -0,0 +1,43 @@
+// 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
new file mode 100644
index 0000000000000..5cce1f950e181
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/BuildsClient.java
@@ -0,0 +1,171 @@
+// 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 fffffeb4ae3c4..dafb90840eb0b 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.
+ * Gets The ID of the target subscription. The value must be an UUID.
*
* @return the subscriptionId value.
*/
@@ -46,6 +46,13 @@ 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.
*
@@ -67,6 +74,34 @@ 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.
*
@@ -102,6 +137,27 @@ 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.
*
@@ -144,6 +200,20 @@ 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.
*
@@ -151,6 +221,13 @@ public interface ContainerAppsApiClient {
*/
OperationsClient getOperations();
+ /**
+ * Gets the JavaComponentsClient object to access its operations.
+ *
+ * @return the JavaComponentsClient object.
+ */
+ JavaComponentsClient getJavaComponents();
+
/**
* Gets the JobsExecutionsClient object to access its operations.
*
@@ -165,6 +242,13 @@ 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.
*
@@ -193,6 +277,27 @@ 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.
*
@@ -200,6 +305,13 @@ 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.
*
@@ -207,6 +319,13 @@ public interface ContainerAppsApiClient {
*/
ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages();
+ /**
+ * Gets the ContainerAppsSessionPoolsClient object to access its operations.
+ *
+ * @return the ContainerAppsSessionPoolsClient object.
+ */
+ ContainerAppsSessionPoolsClient getContainerAppsSessionPools();
+
/**
* Gets the ContainerAppsSourceControlsClient 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
new file mode 100644
index 0000000000000..258e621ecb996
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsByContainerAppsClient.java
@@ -0,0 +1,46 @@
+// 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
new file mode 100644
index 0000000000000..7d3c288df126d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsClient.java
@@ -0,0 +1,105 @@
+// 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
new file mode 100644
index 0000000000000..12ce9706f0b7f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsPatchesClient.java
@@ -0,0 +1,263 @@
+// 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/ContainerAppsSessionPoolsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSessionPoolsClient.java
new file mode 100644
index 0000000000000..78e691488e7d3
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSessionPoolsClient.java
@@ -0,0 +1,315 @@
+// 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.SessionPoolInner;
+import com.azure.resourcemanager.appcontainers.models.SessionPoolUpdatableProperties;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsSessionPoolsClient.
+ */
+public interface ContainerAppsSessionPoolsClient {
+ /**
+ * Get the session pools in a given subscription.
+ *
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get the session pools in a given 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 session pools in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the properties of a session pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a session pool along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String sessionPoolName,
+ Context context);
+
+ /**
+ * Get the properties of a session pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner getByResourceGroup(String resourceGroupName, String sessionPoolName);
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SessionPoolInner> beginCreateOrUpdate(String resourceGroupName,
+ String sessionPoolName, SessionPoolInner sessionPoolEnvelope);
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SessionPoolInner> beginCreateOrUpdate(String resourceGroupName,
+ String sessionPoolName, SessionPoolInner sessionPoolEnvelope, Context context);
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @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 session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner createOrUpdate(String resourceGroupName, String sessionPoolName,
+ SessionPoolInner sessionPoolEnvelope);
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @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 session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner createOrUpdate(String resourceGroupName, String sessionPoolName,
+ SessionPoolInner sessionPoolEnvelope, Context context);
+
+ /**
+ * Update properties of a session pool
+ *
+ * Patches a session pool using JSON merge patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SessionPoolInner> beginUpdate(String resourceGroupName,
+ String sessionPoolName, SessionPoolUpdatableProperties sessionPoolEnvelope);
+
+ /**
+ * Update properties of a session pool
+ *
+ * Patches a session pool using JSON merge patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SessionPoolInner> beginUpdate(String resourceGroupName,
+ String sessionPoolName, SessionPoolUpdatableProperties sessionPoolEnvelope, Context context);
+
+ /**
+ * Update properties of a session pool
+ *
+ * Patches a session pool using JSON merge patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @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 session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner update(String resourceGroupName, String sessionPoolName,
+ SessionPoolUpdatableProperties sessionPoolEnvelope);
+
+ /**
+ * Update properties of a session pool
+ *
+ * Patches a session pool using JSON merge patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @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 session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner update(String resourceGroupName, String sessionPoolName,
+ SessionPoolUpdatableProperties sessionPoolEnvelope, Context context);
+
+ /**
+ * Delete a session pool.
+ *
+ * Delete the session pool with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sessionPoolName);
+
+ /**
+ * Delete a session pool.
+ *
+ * Delete the session pool with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sessionPoolName, Context context);
+
+ /**
+ * Delete a session pool.
+ *
+ * Delete the session pool with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @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 sessionPoolName);
+
+ /**
+ * Delete a session pool.
+ *
+ * Delete the session pool with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sessionPoolName, 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 1d972a0620042..a0cd2b836d370 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,6 +105,7 @@ 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
@@ -114,7 +115,8 @@ SyncPoller, SourceControlInner> beginCreateOrUpda
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SourceControlInner> beginCreateOrUpdate(String resourceGroupName,
- String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope, Context context);
+ String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope,
+ String xMsGithubAuxiliary, Context context);
/**
* Create or update the SourceControl for a Container App.
@@ -140,6 +142,7 @@ 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
@@ -149,7 +152,7 @@ SourceControlInner createOrUpdate(String resourceGroupName, String containerAppN
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SourceControlInner createOrUpdate(String resourceGroupName, String containerAppName, String sourceControlName,
- SourceControlInner sourceControlEnvelope, Context context);
+ SourceControlInner sourceControlEnvelope, String xMsGithubAuxiliary, Context context);
/**
* Delete a Container App SourceControl.
@@ -173,6 +176,9 @@ 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
@@ -182,7 +188,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName,
- String sourceControlName, Context context);
+ String sourceControlName, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure,
+ Boolean deleteWorkflow, Context context);
/**
* Delete a Container App SourceControl.
@@ -204,6 +211,9 @@ 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
@@ -211,5 +221,6 @@ 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, Context context);
+ void delete(String resourceGroupName, String containerAppName, String sourceControlName, String xMsGithubAuxiliary,
+ Boolean ignoreWorkflowDeletionFailure, Boolean deleteWorkflow, 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
new file mode 100644
index 0000000000000..c057e69e3e88f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprComponentResiliencyPoliciesClient.java
@@ -0,0 +1,164 @@
+// 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
new file mode 100644
index 0000000000000..363e068ef7e3e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprSubscriptionsClient.java
@@ -0,0 +1,151 @@
+// 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
new file mode 100644
index 0000000000000..f321e882b169b
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DotNetComponentsClient.java
@@ -0,0 +1,281 @@
+// 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
new file mode 100644
index 0000000000000..45732c3aac77e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/FunctionsExtensionsClient.java
@@ -0,0 +1,50 @@
+// 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
new file mode 100644
index 0000000000000..160ff1772826e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JavaComponentsClient.java
@@ -0,0 +1,281 @@
+// 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.JavaComponentInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in JavaComponentsClient.
+ */
+public interface JavaComponentsClient {
+ /**
+ * Get the Java 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 Java Components for a managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the Java 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 Java 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 Java 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 Java 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 Java Component along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String environmentName, String name,
+ Context context);
+
+ /**
+ * Get a Java 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 Java 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 Java Component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JavaComponentInner get(String resourceGroupName, String environmentName, String name);
+
+ /**
+ * Creates or updates a Java Component.
+ *
+ * Creates or updates a Java 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 Java Component.
+ * @param javaComponentEnvelope Configuration details of the Java 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 java Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, JavaComponentInner> beginCreateOrUpdate(String resourceGroupName,
+ String environmentName, String name, JavaComponentInner javaComponentEnvelope);
+
+ /**
+ * Creates or updates a Java Component.
+ *
+ * Creates or updates a Java 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 Java Component.
+ * @param javaComponentEnvelope Configuration details of the Java 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 java Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, JavaComponentInner> beginCreateOrUpdate(String resourceGroupName,
+ String environmentName, String name, JavaComponentInner javaComponentEnvelope, Context context);
+
+ /**
+ * Creates or updates a Java Component.
+ *
+ * Creates or updates a Java 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 Java Component.
+ * @param javaComponentEnvelope Configuration details of the Java 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 java Component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JavaComponentInner createOrUpdate(String resourceGroupName, String environmentName, String name,
+ JavaComponentInner javaComponentEnvelope);
+
+ /**
+ * Creates or updates a Java Component.
+ *
+ * Creates or updates a Java 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 Java Component.
+ * @param javaComponentEnvelope Configuration details of the Java 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 java Component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JavaComponentInner createOrUpdate(String resourceGroupName, String environmentName, String name,
+ JavaComponentInner javaComponentEnvelope, Context context);
+
+ /**
+ * Update properties of a Java Component
+ *
+ * Patches a Java 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 Java Component.
+ * @param javaComponentEnvelope Configuration details of the Java 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 java Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, JavaComponentInner> beginUpdate(String resourceGroupName,
+ String environmentName, String name, JavaComponentInner javaComponentEnvelope);
+
+ /**
+ * Update properties of a Java Component
+ *
+ * Patches a Java 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 Java Component.
+ * @param javaComponentEnvelope Configuration details of the Java 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 java Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, JavaComponentInner> beginUpdate(String resourceGroupName,
+ String environmentName, String name, JavaComponentInner javaComponentEnvelope, Context context);
+
+ /**
+ * Update properties of a Java Component
+ *
+ * Patches a Java 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 Java Component.
+ * @param javaComponentEnvelope Configuration details of the Java 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 java Component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JavaComponentInner update(String resourceGroupName, String environmentName, String name,
+ JavaComponentInner javaComponentEnvelope);
+
+ /**
+ * Update properties of a Java Component
+ *
+ * Patches a Java 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 Java Component.
+ * @param javaComponentEnvelope Configuration details of the Java 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 java Component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JavaComponentInner update(String resourceGroupName, String environmentName, String name,
+ JavaComponentInner javaComponentEnvelope, Context context);
+
+ /**
+ * Delete a Java 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 Java 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 Java 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 Java 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 Java 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 Java 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 Java 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 Java 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/JobsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java
index e7a0a11a78356..4961c7603b1de 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,11 +93,12 @@ 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.
* @param jobName Job Name.
- * @param apiName Proxy API Name for Container App Job.
* @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
@@ -106,14 +107,15 @@ Response getDetectorWithResponse(String resourceGroupName, Str
* @return the properties of a Container App Job along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response proxyGetWithResponse(String resourceGroupName, String jobName, String apiName, Context context);
+ Response proxyGetWithResponse(String resourceGroupName, String jobName, 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.
* @param jobName Job Name.
- * @param apiName Proxy API Name for Container App Job.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
@@ -121,7 +123,7 @@ Response getDetectorWithResponse(String resourceGroupName, Str
* @return the properties of a Container App Job.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- JobInner proxyGet(String resourceGroupName, String jobName, String apiName);
+ JobInner proxyGet(String resourceGroupName, String jobName);
/**
* Get the Container Apps Jobs in a given subscription.
@@ -609,4 +611,112 @@ 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
new file mode 100644
index 0000000000000..1ee60bcd1b3c8
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/LogicAppsClient.java
@@ -0,0 +1,288 @@
+// 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