diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
index 9996bed8c3eb8..45ab1275ecc11 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
@@ -1,14 +1,801 @@
# Release History
-## 1.1.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2024-10-22)
-### 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-10. 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.DaprComponent$DefinitionStages` was modified
+
+* `withExistingConnectedEnvironment(java.lang.String,java.lang.String)` was removed in stage 1
+
+#### `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.ConnectedEnvironmentsDaprComponents` was modified
+
+* `models.DaprComponent get(java.lang.String,java.lang.String,java.lang.String)` -> `models.ConnectedEnvironmentDaprComponent get(java.lang.String,java.lang.String,java.lang.String)`
+* `models.DaprComponent$DefinitionStages$Blank define(java.lang.String)` -> `models.ConnectedEnvironmentDaprComponent$DefinitionStages$Blank define(java.lang.String)`
+* `deleteWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `models.DaprComponent getById(java.lang.String)` -> `models.ConnectedEnvironmentDaprComponent getById(java.lang.String)`
+* `com.azure.core.http.rest.Response deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)`
+
+#### `models.ConnectedEnvironmentsCertificates` was modified
+
+* `deleteWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `com.azure.core.http.rest.Response deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)`
+
+#### `models.DaprComponents` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.DaprComponentInner,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.DaprComponentInner)` was removed
+
+#### `models.DaprComponent$Definition` was modified
+
+* `withExistingConnectedEnvironment(java.lang.String,java.lang.String)` was removed
+
+#### `models.ConnectedEnvironmentsStorages` was modified
+
+* `com.azure.core.http.rest.Response deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)`
+* `deleteWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+
+### Features Added
+
+* `models.SessionContainer` was added
+
+* `models.ContainerAppsBuilds` was added
+
+* `models.HttpConnectionPool` was added
+
+* `models.SessionPoolUpdatableProperties` was added
+
+* `models.LoggerSetting` was added
+
+* `models.ScaleConfiguration` was added
+
+* `models.RuntimeJavaAgentLogging` was added
+
+* `models.LabelHistoryRecordItem` was added
+
+* `models.BuildProvisioningState` was added
+
+* `models.DaprSubscriptions` was added
+
+* `models.PatchType` was added
+
+* `models.HttpRouteConfigProperties` was added
+
+* `models.SmbStorage` was added
+
+* `models.CertificateKeyVaultProperties` was added
+
+* `models.EnvironmentVariable` was added
+
+* `models.DotNetComponentServiceBind` was added
+
+* `models.AppResiliencies` was added
+
+* `models.PrivateEndpoint` was added
+
+* `models.JavaComponentServiceBind` was added
+
+* `models.LogsConfiguration` was added
+
+* `models.PatchApplyStatus` was added
+
+* `models.DaprSubscription$UpdateStages` was added
+
+* `models.ConnectedEnvironmentDaprComponent` 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.MaintenanceConfigurationResource` was added
+
+* `models.DotNetComponentProvisioningState` was added
+
+* `models.DotNetComponentType` was added
+
+* `models.FunctionsExtensions` was added
+
+* `models.DaprComponentResiliencyPoliciesCollection` was added
+
+* `models.ConnectedEnvironmentDaprComponent$DefinitionStages` was added
+
+* `models.PatchCollection` was added
+
+* `models.AppResiliency$Definition` was added
+
+* `models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration` was added
+
+* `models.HttpRouteConfigs` was added
+
+* `models.ContainerAppsPatchResource` was added
+
+* `models.DaprSubscription$DefinitionStages` was added
+
+* `models.OtlpConfiguration` was added
+
+* `models.MetricsConfiguration` was added
+
+* `models.ScgRoute` was added
+
+* `models.MaintenanceConfigurationResource$UpdateStages` was added
+
+* `models.DaprSubscriptionBulkSubscribeOptions` was added
+
+* `models.JavaComponent$Definition` was added
+
+* `models.PrivateEndpointServiceConnectionStatus` was added
+
+* `models.LabelHistoryCollection` 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.DotNetComponentConfigurationProperty` was added
+
+* `models.ContainerAppsBuildCollection` was added
+
+* `models.DaprSubscriptionsCollection` was added
+
+* `models.ErrorEntity` was added
+
+* `models.PrivateLinkServiceConnectionState` was added
+
+* `models.DaprSubscriptionRoutes` was added
+
+* `models.PatchProperties` was added
+
+* `models.HttpRetryPolicy` was added
+
+* `models.PatchDetails` was added
+
+* `models.PrivateEndpointConnectionProvisioningState` was added
+
+* `models.CircuitBreakerPolicy` was added
+
+* `models.TcpRetryPolicy` was added
+
+* `models.SessionPoolSecret` was added
+
+* `models.HeaderMatch` was added
+
+* `models.BuilderCollection` was added
+
+* `models.BuildStatus` was added
+
+* `models.DaprSubscription` was added
+
+* `models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration` was added
+
+* `models.BuildToken` was added
+
+* `models.DaprComponentResiliencyPolicyConfiguration` was added
+
+* `models.WorkflowEnvelope` was added
+
+* `models.OpenTelemetryConfiguration` was added
+
+* `models.PrivateLinkResourceListResult` was added
+
+* `models.DaprComponentResiliencyPolicy$Update` was added
+
+* `models.LogicAppsProxyMethod` was added
+
+* `models.HttpRouteAction` was added
+
+* `models.ConnectedEnvironmentDaprComponentsCollection` was added
+
+* `models.DestinationsConfiguration` was added
+
+* `models.CertificateType` was added
+
+* `models.ConnectedEnvironmentDaprComponentProperties` was added
+
+* `models.BuildCollection` was added
+
+* `models.ScheduledEntry` was added
+
+* `models.ExecutionType` was added
+
+* `models.ManagedIdentitySetting` was added
+
+* `models.ContainerExecutionStatus` was added
+
+* `models.DaprComponentServiceBinding` was added
+
+* `models.MaintenanceConfigurationCollection` was added
+
+* `models.ContainerAppsBuildsByContainerApps` was added
+
+* `models.CustomContainerTemplate` was added
+
+* `models.WorkflowArtifacts` was added
+
+* `models.LabelHistoryProperties` was added
+
+* `models.SessionNetworkConfiguration` was added
+
+* `models.PatchingMode` was added
+
+* `models.ContainerAppsBuildResource` was added
+
+* `models.PrivateEndpointConnection$UpdateStages` was added
+
+* `models.JavaComponent$DefinitionStages` was added
+
+* `models.ConnectedEnvironmentDaprComponent$UpdateStages` was added
+
+* `models.HttpRouteProvisioningState` was added
+
+* `models.ManagedServiceIdentityAutoGenerated` was added
+
+* `models.ExecutionStatus` was added
+
+* `models.ConnectedEnvironmentDaprComponent$Definition` was added
+
+* `models.ContainerRegistryWithCustomImage` was added
+
+* `models.JavaComponentType` was added
+
+* `models.RuntimeDotnet` was added
+
+* `models.AppResiliency$UpdateStages` was added
+
+* `models.SpringCloudGatewayComponent` was added
+
+* `models.ConnectedEnvironmentDaprComponentProvisioningState` was added
+
+* `models.Kind` was added
+
+* `models.ContainerAppsSessionPools` was added
+
+* `models.ContainerAppPropertiesPatchingConfiguration` was added
+
+* `models.BuilderResource$Definition` was added
+
+* `models.Header` was added
+
+* `models.TcpConnectionPool` was added
+
+* `models.JavaComponents` was added
+
+* `models.DaprSubscription$Definition` was added
+
+* `models.BuilderProvisioningState` was added
+
+* `models.DotNetComponent$UpdateStages` was added
+
+* `models.LabelHistory` was added
+
+* `models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration` was added
+
+* `models.LogicApp$Definition` was added
+
+* `models.HttpRouteProvisioningErrors` was added
-### Other Changes
+* `models.Runtime` was added
+
+* `models.JavaComponentPropertiesScale` was added
+
+* `models.BuildResource$UpdateStages` was added
+
+* `models.ManagedEnvironmentPrivateEndpointConnections` was added
+
+* `models.DotNetComponents` was added
+
+* `models.WorkflowState` was added
+
+* `models.PrivateEndpointConnectionListResult` was added
+
+* `models.AppResiliency` was added
+
+* `models.BuilderResource$Update` was added
+
+* `models.BuildConfiguration` was added
+
+* `models.PoolManagementType` was added
+
+* `models.BuildResource$Update` was added
+
+* `models.IdentitySettingsLifeCycle` was added
+
+* `models.HttpRouteConfig$Definition` was added
+
+* `models.SessionPoolProvisioningState` was added
+
+* `models.SpringBootAdminComponent` was added
+
+* `models.PatchDetailsOldLayer` was added
+
+* `models.ConnectedEnvironmentDaprComponent$Update` was added
+
+* `models.DotNetComponent$Update` was added
+
+* `models.JavaComponentConfigurationProperty` was added
+
+* `models.HttpRouteConfig$DefinitionStages` was added
+
+* `models.SpringCloudConfigComponent` was added
+
+* `models.ConnectedEnvironmentStorageProvisioningState` was added
+
+* `models.MaintenanceConfigurations` was added
+
+* `models.PrivateEndpointConnection` was added
+
+* `models.BuilderResourceUpdate` was added
+
+* `models.SessionPool$Definition` was added
+
+* `models.AppResiliency$DefinitionStages` was added
+
+* `models.ImageType` was added
+
+* `models.BuildAuthTokens` was added
+
+* `models.ContainerRegistry` was added
+
+* `models.IngressTargetPortHttpScheme` was added
+
+* `models.WorkflowEnvelopeProperties` was added
+
+* `models.WorkflowHealthState` was added
+
+* `models.HttpRouteConfig` was added
+
+* `models.DaprServiceBindMetadata` was added
+
+* `models.MaintenanceConfigurationResource$DefinitionStages` was added
+
+* `models.TracesConfiguration` was added
+
+* `models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration` was added
+
+* `models.SessionPool$DefinitionStages` was added
+
+* `models.PrivateEndpointConnection$Update` was added
+
+* `models.LogicApp$UpdateStages` was added
+
+* `models.MaintenanceConfigurationResource$Update` was added
+
+* `models.AppInsightsConfiguration` was added
+
+* `models.WorkflowHealth` was added
+
+* `models.DaprComponentResiliencyPolicy$Definition` was added
+
+* `models.SessionPool` was added
+
+* `models.NfsAzureFileProperties` was added
+
+* `models.PrivateLinkResource` was added
+
+* `models.DaprComponentResiliencyPolicy$DefinitionStages` was added
+
+* `models.SessionContainerResources` was added
+
+* `models.PatchSkipConfig` was added
+
+* `models.HttpRouteConfig$Update` was added
+
+* `models.DaprComponentResiliencyPolicies` was added
+
+* `models.AppResiliencyCollection` was added
+
+* `models.DotNetComponent` was added
+
+* `models.ContainerAppsLabelHistories` was added
+
+* `models.SessionPool$Update` was added
+
+* `models.HttpRouteMatch` was added
+
+* `models.BuilderResource$DefinitionStages` was added
+
+* `models.JavaComponentsCollection` was added
+
+* `models.Builders` was added
+
+* `models.Level` was added
+
+* `models.BuildResource$DefinitionStages` was added
+
+* `models.JavaComponent` was added
+
+* `models.AppResiliency$Update` was added
+
+* `models.SessionNetworkStatus` was added
+
+* `models.DaprSubscription$Update` was added
+
+* `models.WeekDay` was added
+
+* `models.DataDogConfiguration` was added
+
+* `models.DotNetComponentsCollection` was added
+
+* `models.ManagedEnvironmentPrivateLinkResources` was added
+
+* `models.RuntimeJava` was added
+
+* `models.MaintenanceConfigurationResource$Definition` was added
+
+* `models.DotNetComponent$Definition` was added
+
+* `models.HttpRouteConfig$UpdateStages` was added
+
+* `models.DaprComponentResiliencyPolicy$UpdateStages` was added
+
+* `models.JavaComponent$UpdateStages` was added
+
+* `models.LogicApp` was added
+
+* `models.JavaComponentProvisioningState` was added
+
+* `models.PatchDetailsNewLayer` was added
+
+* `models.HttpRouteConfigCollection` was added
+
+* `models.DetectionStatus` was added
+
+* `models.ReplicaExecutionStatus` was added
+
+* `models.PreBuildStep` was added
+
+* `models.BuilderResource$UpdateStages` was added
+
+* `models.RuntimeJavaAgent` was added
+
+* `models.DynamicPoolConfiguration` was added
+
+* `models.IdentitySettings` was added
+
+* `models.HttpRouteTarget` was added
+
+* `models.DaprComponentResiliencyPolicy` was added
+
+* `models.JobRunningState` was added
+
+* `models.ContainerType` was added
+
+* `models.SessionRegistryCredentials` was added
+
+* `models.HttpRouteRule` was added
+
+* `models.JavaComponentProperties` was added
+
+* `models.BuilderResource` was added
+
+* `models.BuildResource$Definition` was added
+
+* `models.Builds` was added
+
+* `models.SessionPoolCollection` was added
+
+* `models.HttpRoute` 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.PublicNetworkAccess` was added
+
+* `models.DaprSubscriptionRouteRule` was added
+
+* `models.PrivateEndpointConnection$DefinitionStages` was added
+
+* `models.SpringCloudEurekaComponent` was added
+
+#### `models.ContainerAppsSourceControls` was modified
+
+* `deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,com.azure.core.util.Context)` was added
+* `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
+
+#### `models.ServiceBind` was modified
+
+* `clientType()` was added
+* `customizedKeys()` was added
+* `withClientType(java.lang.String)` was added
+* `withCustomizedKeys(java.util.Map)` was added
+
+#### `models.Job` was modified
+
+* `runningState()` was added
+* `suspend()` was added
+* `suspend(com.azure.core.util.Context)` was added
+* `extendedLocation()` was added
+* `resume()` was added
+* `resume(com.azure.core.util.Context)` was added
+
+#### `models.Revision` was modified
+
+* `labels()` was added
+
+#### `models.WorkloadProfile` was modified
+
+* `enableFips()` was added
+* `withEnableFips(java.lang.Boolean)` was added
+
+#### `models.InitContainer` was modified
+
+* `withImageType(models.ImageType)` was added
+
+#### `models.QueueScaleRule` was modified
+
+* `accountName()` was added
+* `identity()` was added
+* `withIdentity(java.lang.String)` was added
+* `withAccountName(java.lang.String)` was added
+
+#### `models.ConnectedEnvironmentsDaprComponents` was modified
+
+* `delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.ConnectedEnvironmentStorageProperties` was modified
+
+* `deploymentErrors()` was added
+* `smb()` was added
+* `provisioningState()` was added
+* `withSmb(models.SmbStorage)` was added
+
+#### `models.ManagedEnvironmentStorageProperties` was modified
+
+* `nfsAzureFile()` was added
+* `withNfsAzureFile(models.NfsAzureFileProperties)` was added
+
+#### `models.GithubActionConfiguration` was modified
+
+* `withBuildEnvironmentVariables(java.util.List)` was added
+* `buildEnvironmentVariables()` was added
+* `withDockerfilePath(java.lang.String)` was added
+* `dockerfilePath()` was added
+
+#### `models.DaprComponent` was modified
+
+* `serviceComponentBind()` was added
+
+#### `models.TcpScaleRule` was modified
+
+* `withIdentity(java.lang.String)` was added
+* `identity()` was added
+
+#### `models.Scale` was modified
+
+* `withPollingInterval(java.lang.Integer)` was added
+* `withCooldownPeriod(java.lang.Integer)` was added
+* `pollingInterval()` was added
+* `cooldownPeriod()` was added
+
+#### `models.LogAnalyticsConfiguration` was modified
+
+* `dynamicJsonColumns()` was added
+* `withDynamicJsonColumns(java.lang.Boolean)` was added
+
+#### `models.ManagedEnvironment` was modified
+
+* `appInsightsConfiguration()` was added
+* `publicNetworkAccess()` was added
+* `identity()` was added
+* `availabilityZones()` was added
+* `openTelemetryConfiguration()` was added
+* `privateEndpointConnections()` was added
+
+#### `models.ConnectedEnvironmentsCertificates` was modified
+
+* `delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.HttpScaleRule` was modified
+
+* `withIdentity(java.lang.String)` was added
+* `identity()` was added
+
+#### `models.DaprComponents` was modified
+
+* `define(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getById(java.lang.String)` was added
+* `deleteById(java.lang.String)` was added
+
+#### `models.Container` was modified
+
+* `withImageType(models.ImageType)` was added
+
+#### `models.CertificateProperties` was modified
+
+* `withCertificateKeyVaultProperties(models.CertificateKeyVaultProperties)` was added
+* `deploymentErrors()` was added
+* `certificateType()` was added
+* `certificateKeyVaultProperties()` was added
+* `withCertificateType(models.CertificateType)` was added
+
+#### `models.ContainerApp` was modified
+
+* `kind()` was added
+* `patchingConfiguration()` was added
+* `deploymentErrors()` was added
+
+#### `models.JobScaleRule` was modified
+
+* `identity()` was added
+* `withIdentity(java.lang.String)` was added
+
+#### `models.ReplicaContainer` was modified
+
+* `debugEndpoint()` was added
+
+#### `models.ContainerApp$Definition` was modified
+
+* `withPatchingConfiguration(models.ContainerAppPropertiesPatchingConfiguration)` was added
+* `withKind(models.Kind)` was added
+
+#### `models.CustomDomainConfiguration` was modified
+
+* `withCertificateKeyVaultProperties(models.CertificateKeyVaultProperties)` was added
+* `certificateKeyVaultProperties()` was added
+
+#### `models.Configuration` was modified
+
+* `withRevisionTransitionThreshold(java.lang.Integer)` was added
+* `withRuntime(models.Runtime)` was added
+* `identitySettings()` was added
+* `targetLabel()` was added
+* `revisionTransitionThreshold()` was added
+* `runtime()` was added
+* `withTargetLabel(java.lang.String)` was added
+* `withIdentitySettings(java.util.List)` was added
+
+#### `models.DaprComponent$Definition` was modified
+
+* `withServiceComponentBind(java.util.List)` was added
+* `withExistingManagedEnvironment(java.lang.String,java.lang.String)` was added
+
+#### `models.ManagedEnvironment$Update` was modified
+
+* `withAppInsightsConfiguration(models.AppInsightsConfiguration)` was added
+* `withAvailabilityZones(java.util.List)` was added
+* `withIdentity(models.ManagedServiceIdentity)` was added
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was added
+* `withOpenTelemetryConfiguration(models.OpenTelemetryConfiguration)` was added
+
+#### `models.SourceControl$Definition` was modified
+
+* `withXMsGithubAuxiliary(java.lang.String)` was added
+
+#### `models.ConnectedEnvironmentsStorages` was modified
+
+* `delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.Job$Definition` was modified
+
+* `withExtendedLocation(models.ExtendedLocation)` was added
+
+#### `models.Jobs` was modified
+
+* `resume(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
+* `suspend(java.lang.String,java.lang.String)` was added
+
+#### `models.DaprComponent$Update` was modified
+
+* `withServiceComponentBind(java.util.List)` was added
+
+#### `models.ManagedEnvironment$Definition` was modified
+
+* `withAppInsightsConfiguration(models.AppInsightsConfiguration)` was added
+* `withOpenTelemetryConfiguration(models.OpenTelemetryConfiguration)` was added
+* `withAvailabilityZones(java.util.List)` was added
+* `withIdentity(models.ManagedServiceIdentity)` was added
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was added
+
+#### `models.ContainerApp$Update` was modified
+
+* `withPatchingConfiguration(models.ContainerAppPropertiesPatchingConfiguration)` was added
+
+#### `models.JobConfiguration` was modified
+
+* `withIdentitySettings(java.util.List)` was added
+* `identitySettings()` was added
+
+#### `models.SourceControl$Update` was modified
+
+* `withXMsGithubAuxiliary(java.lang.String)` was added
+
+#### `models.Job$Update` was modified
+
+* `withExtendedLocation(models.ExtendedLocation)` was added
+
+#### `models.JobExecution` was modified
+
+* `detailedStatus()` was added
+
+#### `models.JobPatchProperties` was modified
+
+* `extendedLocation()` was added
+* `withExtendedLocation(models.ExtendedLocation)` was added
+
+#### `ContainerAppsApiManager` was modified
+
+* `containerAppsBuildsByContainerApps()` was added
+* `containerAppsBuilds()` was added
+* `daprComponentResiliencyPolicies()` was added
+* `managedEnvironmentPrivateLinkResources()` was added
+* `buildAuthTokens()` was added
+* `maintenanceConfigurations()` was added
+* `javaComponents()` was added
+* `functionsExtensions()` was added
+* `containerAppsPatches()` was added
+* `containerAppsLabelHistories()` was added
+* `builds()` was added
+* `dotNetComponents()` was added
+* `appResiliencies()` was added
+* `daprSubscriptions()` was added
+* `buildsByBuilderResources()` was added
+* `logicApps()` was added
+* `builders()` was added
+* `httpRouteConfigs()` was added
+* `containerAppsSessionPools()` was added
+* `managedEnvironmentPrivateEndpointConnections()` was added
+
+#### `models.BaseContainer` was modified
+
+* `imageType()` was added
+* `withImageType(models.ImageType)` was added
+
+#### `models.BlobStorageTokenStore` was modified
+
+* `withManagedIdentityResourceId(java.lang.String)` was added
+* `blobContainerUri()` was added
+* `clientId()` was added
+* `withClientId(java.lang.String)` was added
+* `managedIdentityResourceId()` was added
+* `withBlobContainerUri(java.lang.String)` was added
+
+#### `models.CustomScaleRule` was modified
+
+* `withIdentity(java.lang.String)` was added
+* `identity()` was added
+
+#### `models.ContainerResources` was modified
+
+* `gpu()` was added
+* `withGpu(java.lang.Double)` was added
+
+#### `models.Ingress` was modified
+
+* `targetPortHttpScheme()` was added
+* `withTargetPortHttpScheme(models.IngressTargetPortHttpScheme)` was added
## 1.1.0-beta.1 (2024-10-17)
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
index 9d05f22b61283..bfa3a441a99c7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ContainerAppsApi client library for Java.
-This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions extension resource. Package tag package-preview-2024-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. 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-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-appcontainers
- 1.1.0-beta.1
+ 1.1.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
index 7eeafade7da34..7770f3bada5e9 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
@@ -119,6 +119,11 @@
- [ListDetectors](#containerappsdiagnostics_listdetectors)
- [ListRevisions](#containerappsdiagnostics_listrevisions)
+## ContainerAppsLabelHistory
+
+- [GetLabelHistory](#containerappslabelhistory_getlabelhistory)
+- [ListLabelHistory](#containerappslabelhistory_listlabelhistory)
+
## ContainerAppsPatches
- [Apply](#containerappspatches_apply)
@@ -190,6 +195,14 @@
- [InvokeFunctionsHost](#functionsextension_invokefunctionshost)
+## HttpRouteConfig
+
+- [CreateOrUpdate](#httprouteconfig_createorupdate)
+- [Delete](#httprouteconfig_delete)
+- [Get](#httprouteconfig_get)
+- [List](#httprouteconfig_list)
+- [Update](#httprouteconfig_update)
+
## JavaComponents
- [CreateOrUpdate](#javacomponents_createorupdate)
@@ -231,6 +244,13 @@
- [ListWorkflows](#logicapps_listworkflows)
- [ListWorkflowsConnections](#logicapps_listworkflowsconnections)
+## MaintenanceConfigurations
+
+- [CreateOrUpdate](#maintenanceconfigurations_createorupdate)
+- [Delete](#maintenanceconfigurations_delete)
+- [Get](#maintenanceconfigurations_get)
+- [List](#maintenanceconfigurations_list)
+
## ManagedCertificates
- [CreateOrUpdate](#managedcertificates_createorupdate)
@@ -315,7 +335,7 @@ import java.util.Arrays;
public final class AppResiliencyCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_CreateOrUpdate
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/AppResiliency_CreateOrUpdate
* .json
*/
/**
@@ -359,7 +379,7 @@ public final class AppResiliencyCreateOrUpdateSamples {
public final class AppResiliencyDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/AppResiliency_Delete.json
*/
/**
* Sample code: Delete App Resiliency.
@@ -382,7 +402,7 @@ public final class AppResiliencyDeleteSamples {
public final class AppResiliencyGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/AppResiliency_Get.json
*/
/**
* Sample code: Get App Resiliency.
@@ -405,7 +425,7 @@ public final class AppResiliencyGetSamples {
public final class AppResiliencyListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/AppResiliency_List.json
*/
/**
* Sample code: List App Resiliency.
@@ -430,7 +450,7 @@ import com.azure.resourcemanager.appcontainers.models.TimeoutPolicy;
public final class AppResiliencyUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/AppResiliency_Patch.json
*/
/**
* Sample code: Update App Resiliency.
@@ -456,7 +476,7 @@ public final class AppResiliencyUpdateSamples {
*/
public final class AvailableWorkloadProfilesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* AvailableWorkloadProfiles_Get.json
*/
/**
@@ -479,7 +499,7 @@ public final class AvailableWorkloadProfilesGetSamples {
public final class BillingMetersGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/BillingMeters_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/BillingMeters_Get.json
*/
/**
* Sample code: BillingMeters_Get.
@@ -501,7 +521,7 @@ public final class BillingMetersGetSamples {
public final class BuildAuthTokenListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListAuthToken.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builds_ListAuthToken.json
*/
/**
* Sample code: Get Build Auth Token.
@@ -531,7 +551,7 @@ import java.util.Map;
public final class BuildersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_CreateOrUpdate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builders_CreateOrUpdate.json
*/
/**
* Sample code: Builders_CreateOrUpdate_0.
@@ -585,7 +605,7 @@ public final class BuildersCreateOrUpdateSamples {
public final class BuildersDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builders_Delete.json
*/
/**
* Sample code: Builders_Delete_0.
@@ -607,7 +627,7 @@ public final class BuildersDeleteSamples {
public final class BuildersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builders_Get.json
*/
/**
* Sample code: Builders_Get_0.
@@ -629,7 +649,7 @@ public final class BuildersGetByResourceGroupSamples {
public final class BuildersListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListBySubscription.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builders_ListBySubscription.
* json
*/
/**
@@ -653,7 +673,7 @@ public final class BuildersListSamples {
public final class BuildersListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListByResourceGroup
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builders_ListByResourceGroup
* .json
*/
/**
@@ -681,7 +701,7 @@ import java.util.Map;
public final class BuildersUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Update.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builders_Update.json
*/
/**
* Sample code: Builders_Update_0.
@@ -725,7 +745,7 @@ import java.util.Arrays;
public final class BuildsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_CreateOrUpdate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builds_CreateOrUpdate.json
*/
/**
* Sample code: Builds_CreateOrUpdate_WithConfig.
@@ -759,7 +779,7 @@ public final class BuildsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* Builds_CreateOrUpdate_NoConfig.json
*/
/**
@@ -783,7 +803,7 @@ public final class BuildsCreateOrUpdateSamples {
public final class BuildsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builds_Delete.json
*/
/**
* Sample code: Builds_Delete_0.
@@ -805,7 +825,7 @@ public final class BuildsDeleteSamples {
public final class BuildsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builds_Get.json
*/
/**
* Sample code: Builds_Get_0.
@@ -827,7 +847,7 @@ public final class BuildsGetSamples {
public final class BuildsByBuilderResourceListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListByBuilderResource
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builds_ListByBuilderResource
* .json
*/
/**
@@ -855,7 +875,7 @@ import com.azure.resourcemanager.appcontainers.models.CertificateType;
*/
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* Certificate_CreateOrUpdate_FromKeyVault.json
*/
/**
@@ -878,7 +898,7 @@ public final class CertificatesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_CreateOrUpdate.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Certificate_CreateOrUpdate.
* json
*/
/**
@@ -908,7 +928,7 @@ public final class CertificatesCreateOrUpdateSamples {
public final class CertificatesDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Certificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -932,7 +952,7 @@ public final class CertificatesDeleteSamples {
public final class CertificatesGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Certificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -955,7 +975,7 @@ public final class CertificatesGetSamples {
*/
public final class CertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* Certificates_ListByManagedEnvironment.json
*/
/**
@@ -983,7 +1003,7 @@ import java.util.Map;
public final class CertificatesUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificates_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Certificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -1021,7 +1041,7 @@ import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReque
*/
public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsCertificates_CheckNameAvailability.json
*/
/**
@@ -1050,7 +1070,7 @@ import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
*/
public final class ConnectedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironments_CreateOrUpdate.json
*/
/**
@@ -1083,7 +1103,7 @@ public final class ConnectedEnvironmentsCreateOrUpdateSamples {
public final class ConnectedEnvironmentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Delete
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ConnectedEnvironments_Delete
* .json
*/
/**
@@ -1107,7 +1127,7 @@ public final class ConnectedEnvironmentsDeleteSamples {
public final class ConnectedEnvironmentsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Get.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ConnectedEnvironments_Get.
* json
*/
/**
@@ -1131,7 +1151,7 @@ public final class ConnectedEnvironmentsGetByResourceGroupSamples {
*/
public final class ConnectedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironments_ListBySubscription.json
*/
/**
@@ -1154,7 +1174,7 @@ public final class ConnectedEnvironmentsListSamples {
*/
public final class ConnectedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironments_ListByResourceGroup.json
*/
/**
@@ -1178,7 +1198,7 @@ public final class ConnectedEnvironmentsListByResourceGroupSamples {
public final class ConnectedEnvironmentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Patch.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ConnectedEnvironments_Patch.
* json
*/
/**
@@ -1203,7 +1223,7 @@ import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
*/
public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsCertificate_CreateOrUpdate.json
*/
/**
@@ -1232,7 +1252,7 @@ public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
*/
public final class ConnectedEnvironmentsCertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsCertificate_Delete.json
*/
/**
@@ -1242,8 +1262,7 @@ public final class ConnectedEnvironmentsCertificatesDeleteSamples {
*/
public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager.connectedEnvironmentsCertificates()
- .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- com.azure.core.util.Context.NONE);
+ .delete("examplerg", "testcontainerenv", "certificate-firendly-name", com.azure.core.util.Context.NONE);
}
}
```
@@ -1256,7 +1275,7 @@ public final class ConnectedEnvironmentsCertificatesDeleteSamples {
*/
public final class ConnectedEnvironmentsCertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsCertificate_Get.json
*/
/**
@@ -1280,7 +1299,7 @@ public final class ConnectedEnvironmentsCertificatesGetSamples {
*/
public final class ConnectedEnvironmentsCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
*/
/**
@@ -1308,7 +1327,7 @@ import java.util.Map;
*/
public final class ConnectedEnvironmentsCertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsCertificates_Patch.json
*/
/**
@@ -1341,6 +1360,7 @@ public final class ConnectedEnvironmentsCertificatesUpdateSamples {
### ConnectedEnvironmentsDaprComponents_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentDaprComponentProperties;
import com.azure.resourcemanager.appcontainers.models.DaprComponentServiceBinding;
import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
import com.azure.resourcemanager.appcontainers.models.DaprServiceBindMetadata;
@@ -1352,7 +1372,7 @@ import java.util.Arrays;
*/
public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
*/
/**
@@ -1365,20 +1385,21 @@ public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
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"))))
+ .withProperties(new ConnectedEnvironmentDaprComponentProperties().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();
}
}
@@ -1392,7 +1413,7 @@ public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
*/
public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_Delete.json
*/
/**
@@ -1402,7 +1423,7 @@ public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
*/
public static void deleteDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager.connectedEnvironmentsDaprComponents()
- .deleteWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
+ .delete("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
@@ -1415,7 +1436,7 @@ public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
*/
public final class ConnectedEnvironmentsDaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_Get.json
*/
/**
@@ -1438,7 +1459,7 @@ public final class ConnectedEnvironmentsDaprComponentsGetSamples {
*/
public final class ConnectedEnvironmentsDaprComponentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_List.json
*/
/**
@@ -1461,7 +1482,7 @@ public final class ConnectedEnvironmentsDaprComponentsListSamples {
*/
public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_ListSecrets.json
*/
/**
@@ -1489,7 +1510,7 @@ import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorag
*/
public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
@@ -1520,7 +1541,7 @@ public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
*/
public final class ConnectedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsStorages_Delete.json
*/
/**
@@ -1531,7 +1552,7 @@ public final class ConnectedEnvironmentsStoragesDeleteSamples {
public static void listEnvironmentsStoragesBySubscription(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager.connectedEnvironmentsStorages()
- .deleteWithResponse("examplerg", "env", "jlaw-demo1", com.azure.core.util.Context.NONE);
+ .delete("examplerg", "env", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
@@ -1544,7 +1565,7 @@ public final class ConnectedEnvironmentsStoragesDeleteSamples {
*/
public final class ConnectedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsStorages_Get.json
*/
/**
@@ -1568,7 +1589,7 @@ public final class ConnectedEnvironmentsStoragesGetSamples {
*/
public final class ConnectedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ConnectedEnvironmentsStorages_List.json
*/
/**
@@ -1650,7 +1671,7 @@ import java.util.Map;
*/
public final class ContainerAppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerApps_SourceToCloudApp_CreateOrUpdate.json
*/
/**
@@ -1719,6 +1740,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
.withLogLevel(LogLevel.DEBUG)
.withEnableApiLogging(true))
.withMaxInactiveRevisions(10)
+ .withRevisionTransitionThreshold(100)
.withService(new Service().withType("redis")))
.withTemplate(new Template()
.withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
@@ -1770,7 +1792,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerApps_CreateOrUpdate_ConnectedEnvironment.json
*/
/**
@@ -1844,7 +1866,8 @@ public final class ContainerAppsCreateOrUpdateSamples {
.withLogging(new RuntimeJavaAgentLogging().withLoggerSettings(Arrays.asList(
new LoggerSetting().withLogger("org.springframework.boot").withLevel(Level.DEBUG))))))
.withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(true)))
- .withMaxInactiveRevisions(10))
+ .withMaxInactiveRevisions(10)
+ .withRevisionTransitionThreshold(100))
.withTemplate(new Template()
.withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
.withName("testinitcontainerApp0")
@@ -1874,7 +1897,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_CreateOrUpdate
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_CreateOrUpdate
* .json
*/
/**
@@ -1955,6 +1978,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
.withLevel(Level.DEBUG))))))
.withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(true)))
.withMaxInactiveRevisions(10)
+ .withRevisionTransitionThreshold(100)
.withService(new Service().withType("redis"))
.withIdentitySettings(Arrays.asList(new IdentitySettings().withIdentity(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")
@@ -1965,7 +1989,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
.withName("testinitcontainerApp0")
.withCommand(Arrays.asList("/bin/sh"))
.withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
+ .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi").withGpu(1.0D))))
.withContainers(Arrays.asList(new Container()
.withImage("repo/testcontainerApp0:v1")
.withName("testcontainerApp0")
@@ -2020,7 +2044,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerApps_TcpApp_CreateOrUpdate.json
*/
/**
@@ -2059,7 +2083,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerApps_Kind_CreateOrUpdate.json
*/
/**
@@ -2089,7 +2113,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerApps_ManagedBy_CreateOrUpdate.json
*/
/**
@@ -2152,7 +2176,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
public final class ContainerAppsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_Delete.json
*/
/**
* Sample code: Delete Container App.
@@ -2174,7 +2198,7 @@ public final class ContainerAppsDeleteSamples {
public final class ContainerAppsGetAuthTokenSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_GetAuthToken.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_GetAuthToken.
* json
*/
/**
@@ -2198,7 +2222,7 @@ public final class ContainerAppsGetAuthTokenSamples {
public final class ContainerAppsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
@@ -2220,7 +2244,7 @@ public final class ContainerAppsGetByResourceGroupSamples {
*/
public final class ContainerAppsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerApps_ListBySubscription.json
*/
/**
@@ -2243,7 +2267,7 @@ public final class ContainerAppsListSamples {
*/
public final class ContainerAppsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerApps_ListByResourceGroup.json
*/
/**
@@ -2266,7 +2290,7 @@ public final class ContainerAppsListByResourceGroupSamples {
*/
public final class ContainerAppsListCustomHostnameAnalysisSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerApps_ListCustomHostNameAnalysis.json
*/
/**
@@ -2291,7 +2315,7 @@ public final class ContainerAppsListCustomHostnameAnalysisSamples {
public final class ContainerAppsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_ListSecrets.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_ListSecrets.
* json
*/
/**
@@ -2315,7 +2339,7 @@ public final class ContainerAppsListSecretsSamples {
public final class ContainerAppsStartSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Start.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_Start.json
*/
/**
* Sample code: Start Container App.
@@ -2337,7 +2361,7 @@ public final class ContainerAppsStartSamples {
public final class ContainerAppsStopSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Stop.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_Stop.json
*/
/**
* Sample code: Stop Container App.
@@ -2396,7 +2420,7 @@ import java.util.Map;
public final class ContainerAppsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_Patch.json
*/
/**
* Sample code: Patch Container App.
@@ -2454,6 +2478,7 @@ public final class ContainerAppsUpdateSamples {
new LoggerSetting().withLogger("org.springframework.boot").withLevel(Level.DEBUG))))))
.withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(true)))
.withMaxInactiveRevisions(10)
+ .withRevisionTransitionThreshold(100)
.withService(new Service().withType("redis")))
.withTemplate(new Template()
.withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
@@ -2505,10 +2530,13 @@ public final class ContainerAppsUpdateSamples {
```java
import com.azure.resourcemanager.appcontainers.models.AppRegistration;
import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
+import com.azure.resourcemanager.appcontainers.models.BlobStorageTokenStore;
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.Login;
+import com.azure.resourcemanager.appcontainers.models.TokenStore;
import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActionV2;
/**
@@ -2517,7 +2545,7 @@ import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActio
public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_CreateOrUpdate.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/AuthConfigs_CreateOrUpdate.
* json
*/
/**
@@ -2540,6 +2568,64 @@ public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
.withContainerAppAuthSigningSecretName("fakeTokenPlaceholder"))
.create();
}
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * AuthConfigs_BlobStorageTokenStore_ClientId_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Container App AuthConfig with msi clientID blob storage token store.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateContainerAppAuthConfigWithMsiClientIDBlobStorageTokenStore(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsAuthConfigs()
+ .define("current")
+ .withExistingContainerApp("rg1", "myapp")
+ .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"))))
+ .withLogin(new Login().withTokenStore(new TokenStore().withAzureBlobStorage(
+ new BlobStorageTokenStore().withBlobContainerUri("https://test.blob.core.windows.net/container1")
+ .withClientId("00000000-0000-0000-0000-000000000000"))))
+ .withEncryptionSettings(
+ new EncryptionSettings().withContainerAppAuthEncryptionSecretName("fakeTokenPlaceholder")
+ .withContainerAppAuthSigningSecretName("fakeTokenPlaceholder"))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * AuthConfigs_BlobStorageTokenStore_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Container App AuthConfig with msi managedIdentityResourceId blob storage token
+ * store.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateContainerAppAuthConfigWithMsiManagedIdentityResourceIdBlobStorageTokenStore(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsAuthConfigs()
+ .define("current")
+ .withExistingContainerApp("rg1", "myapp")
+ .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"))))
+ .withLogin(new Login().withTokenStore(new TokenStore().withAzureBlobStorage(new BlobStorageTokenStore()
+ .withBlobContainerUri("https://test.blob.core.windows.net/container1")
+ .withManagedIdentityResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"))))
+ .withEncryptionSettings(
+ new EncryptionSettings().withContainerAppAuthEncryptionSecretName("fakeTokenPlaceholder")
+ .withContainerAppAuthSigningSecretName("fakeTokenPlaceholder"))
+ .create();
+ }
}
```
@@ -2552,7 +2638,7 @@ public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
public final class ContainerAppsAuthConfigsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/AuthConfigs_Delete.json
*/
/**
* Sample code: Delete Container App AuthConfig.
@@ -2576,7 +2662,7 @@ public final class ContainerAppsAuthConfigsDeleteSamples {
public final class ContainerAppsAuthConfigsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/AuthConfigs_Get.json
*/
/**
* Sample code: Get Container App's AuthConfig.
@@ -2600,7 +2686,7 @@ public final class ContainerAppsAuthConfigsGetSamples {
public final class ContainerAppsAuthConfigsListByContainerAppSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_ListByContainer.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/AuthConfigs_ListByContainer.
* json
*/
/**
@@ -2625,7 +2711,7 @@ public final class ContainerAppsAuthConfigsListByContainerAppSamples {
public final class ContainerAppsBuildsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Delete.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerAppsBuilds_Delete.
* json
*/
/**
@@ -2649,7 +2735,7 @@ public final class ContainerAppsBuildsDeleteSamples {
public final class ContainerAppsBuildsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerAppsBuilds_Get.json
*/
/**
* Sample code: ContainerAppsBuilds_Get_0.
@@ -2671,7 +2757,7 @@ public final class ContainerAppsBuildsGetSamples {
*/
public final class ContainerAppsBuildsByContainerAppListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerAppsBuilds_ListByContainerApp.json
*/
/**
@@ -2695,7 +2781,7 @@ public final class ContainerAppsBuildsByContainerAppListSamples {
public final class ContainerAppsDiagnosticsGetDetectorSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsDiagnostics_Get
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerAppsDiagnostics_Get
* .json
*/
/**
@@ -2721,7 +2807,7 @@ public final class ContainerAppsDiagnosticsGetDetectorSamples {
public final class ContainerAppsDiagnosticsGetRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
@@ -2746,7 +2832,7 @@ public final class ContainerAppsDiagnosticsGetRevisionSamples {
public final class ContainerAppsDiagnosticsGetRootSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
@@ -2768,7 +2854,7 @@ public final class ContainerAppsDiagnosticsGetRootSamples {
*/
public final class ContainerAppsDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerAppsDiagnostics_List.json
*/
/**
@@ -2793,7 +2879,7 @@ public final class ContainerAppsDiagnosticsListDetectorsSamples {
public final class ContainerAppsDiagnosticsListRevisionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
@@ -2808,6 +2894,54 @@ public final class ContainerAppsDiagnosticsListRevisionsSamples {
}
```
+### ContainerAppsLabelHistory_GetLabelHistory
+
+```java
+/**
+ * Samples for ContainerAppsLabelHistory GetLabelHistory.
+ */
+public final class ContainerAppsLabelHistoryGetLabelHistorySamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/LabelHistory_Get.json
+ */
+ /**
+ * Sample code: Get Container App's single label history.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ getContainerAppSSingleLabelHistory(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsLabelHistories()
+ .getLabelHistoryWithResponse("rg", "testContainerApp", "dev", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsLabelHistory_ListLabelHistory
+
+```java
+/**
+ * Samples for ContainerAppsLabelHistory ListLabelHistory.
+ */
+public final class ContainerAppsLabelHistoryListLabelHistorySamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/LabelHistory_List.json
+ */
+ /**
+ * Sample code: List Container App's all label history.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ listContainerAppSAllLabelHistory(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsLabelHistories()
+ .listLabelHistory("rg", "testContainerApp", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### ContainerAppsPatches_Apply
```java
@@ -2817,7 +2951,7 @@ public final class ContainerAppsDiagnosticsListRevisionsSamples {
public final class ContainerAppsPatchesApplySamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Apply.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerAppsPatches_Apply.
* json
*/
/**
@@ -2841,7 +2975,7 @@ public final class ContainerAppsPatchesApplySamples {
public final class ContainerAppsPatchesDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Delete.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerAppsPatches_Delete.
* json
*/
/**
@@ -2865,7 +2999,7 @@ public final class ContainerAppsPatchesDeleteSamples {
public final class ContainerAppsPatchesGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Get.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerAppsPatches_Get.
* json
*/
/**
@@ -2889,7 +3023,7 @@ public final class ContainerAppsPatchesGetSamples {
*/
public final class ContainerAppsPatchesListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerAppsPatches_ListByContainerApp.json
*/
/**
@@ -2914,7 +3048,7 @@ import com.azure.resourcemanager.appcontainers.models.PatchSkipConfig;
*/
public final class ContainerAppsPatchesSkipConfigureSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerAppsPatches_Skip_Configure.json
*/
/**
@@ -2940,7 +3074,7 @@ public final class ContainerAppsPatchesSkipConfigureSamples {
public final class ContainerAppsRevisionReplicasGetReplicaSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Replicas_Get.json
*/
/**
* Sample code: Get Container App's revision replica.
@@ -2965,7 +3099,7 @@ public final class ContainerAppsRevisionReplicasGetReplicaSamples {
public final class ContainerAppsRevisionReplicasListReplicasSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Replicas_List.json
*/
/**
* Sample code: List Container App's replicas.
@@ -2989,7 +3123,7 @@ public final class ContainerAppsRevisionReplicasListReplicasSamples {
public final class ContainerAppsRevisionsActivateRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Activate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Revisions_Activate.json
*/
/**
* Sample code: Activate Container App's revision.
@@ -3014,7 +3148,7 @@ public final class ContainerAppsRevisionsActivateRevisionSamples {
public final class ContainerAppsRevisionsDeactivateRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Deactivate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Revisions_Deactivate.json
*/
/**
* Sample code: Deactivate Container App's revision.
@@ -3039,7 +3173,7 @@ public final class ContainerAppsRevisionsDeactivateRevisionSamples {
public final class ContainerAppsRevisionsGetRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
@@ -3064,7 +3198,7 @@ public final class ContainerAppsRevisionsGetRevisionSamples {
public final class ContainerAppsRevisionsListRevisionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
@@ -3088,7 +3222,7 @@ public final class ContainerAppsRevisionsListRevisionsSamples {
public final class ContainerAppsRevisionsRestartRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Restart.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Revisions_Restart.json
*/
/**
* Sample code: Restart Container App's revision.
@@ -3111,6 +3245,10 @@ 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.IdentitySettingsLifeCycle;
+import com.azure.resourcemanager.appcontainers.models.ManagedIdentitySetting;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityAutoGenerated;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.appcontainers.models.PoolManagementType;
import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
import com.azure.resourcemanager.appcontainers.models.SessionContainer;
@@ -3118,6 +3256,7 @@ import com.azure.resourcemanager.appcontainers.models.SessionContainerResources;
import com.azure.resourcemanager.appcontainers.models.SessionIngress;
import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
import com.azure.resourcemanager.appcontainers.models.SessionNetworkStatus;
+import com.azure.resourcemanager.appcontainers.models.SessionRegistryCredentials;
import java.util.Arrays;
/**
@@ -3126,7 +3265,7 @@ import java.util.Arrays;
public final class ContainerAppsSessionPoolsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_CreateOrUpdate.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/SessionPools_CreateOrUpdate.
* json
*/
/**
@@ -3140,6 +3279,8 @@ public final class ContainerAppsSessionPoolsCreateOrUpdateSamples {
.define("testsessionpool")
.withRegion("East US")
.withExistingResourceGroup("rg")
+ .withIdentity(
+ new ManagedServiceIdentityAutoGenerated().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
.withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
.withContainerType(ContainerType.CUSTOM_CONTAINER)
@@ -3149,6 +3290,9 @@ public final class ContainerAppsSessionPoolsCreateOrUpdateSamples {
.withDynamicPoolConfiguration(
new DynamicPoolConfiguration().withExecutionType(ExecutionType.TIMED).withCooldownPeriodInSeconds(600))
.withCustomContainerTemplate(new CustomContainerTemplate()
+ .withRegistryCredentials(new SessionRegistryCredentials().withServer("test.azurecr.io")
+ .withIdentity(
+ "/subscriptions/7a497526-bb8d-4816-9795-db1418a1f977/resourcegroups/test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testSP"))
.withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
.withName("testinitcontainer")
.withCommand(Arrays.asList("/bin/sh"))
@@ -3157,6 +3301,8 @@ public final class ContainerAppsSessionPoolsCreateOrUpdateSamples {
.withIngress(new SessionIngress().withTargetPort(80)))
.withSessionNetworkConfiguration(
new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
+ .withManagedIdentitySettings(Arrays.asList(
+ new ManagedIdentitySetting().withIdentity("system").withLifecycle(IdentitySettingsLifeCycle.MAIN)))
.create();
}
}
@@ -3171,7 +3317,7 @@ public final class ContainerAppsSessionPoolsCreateOrUpdateSamples {
public final class ContainerAppsSessionPoolsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/SessionPools_Delete.json
*/
/**
* Sample code: Delete Session Pool.
@@ -3193,7 +3339,7 @@ public final class ContainerAppsSessionPoolsDeleteSamples {
public final class ContainerAppsSessionPoolsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/SessionPools_Get.json
*/
/**
* Sample code: Get Session Pool.
@@ -3215,7 +3361,7 @@ public final class ContainerAppsSessionPoolsGetByResourceGroupSamples {
*/
public final class ContainerAppsSessionPoolsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* SessionPools_ListBySubscription.json
*/
/**
@@ -3238,7 +3384,7 @@ public final class ContainerAppsSessionPoolsListSamples {
*/
public final class ContainerAppsSessionPoolsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* SessionPools_ListByResourceGroup.json
*/
/**
@@ -3274,7 +3420,7 @@ import java.util.Arrays;
public final class ContainerAppsSessionPoolsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/SessionPools_Patch.json
*/
/**
* Sample code: Update Session Pool.
@@ -3318,7 +3464,7 @@ import java.util.Arrays;
*/
public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* SourceControls_CreateOrUpdate.json
*/
/**
@@ -3363,7 +3509,7 @@ public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
public final class ContainerAppsSourceControlsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/SourceControls_Delete.json
*/
/**
* Sample code: Delete Container App SourceControl.
@@ -3388,7 +3534,7 @@ public final class ContainerAppsSourceControlsDeleteSamples {
public final class ContainerAppsSourceControlsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/SourceControls_Get.json
*/
/**
* Sample code: Get Container App's SourceControl.
@@ -3411,7 +3557,7 @@ public final class ContainerAppsSourceControlsGetSamples {
*/
public final class ContainerAppsSourceControlsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* SourceControls_ListByContainer.json
*/
/**
@@ -3440,7 +3586,7 @@ import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPol
*/
public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json
*/
/**
@@ -3468,7 +3614,7 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprComponentResiliencyPolicy_CreateOrUpdate_AllOptions.json
*/
/**
@@ -3507,7 +3653,7 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json
*/
/**
@@ -3543,7 +3689,7 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
*/
public final class DaprComponentResiliencyPoliciesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprComponentResiliencyPolicies_Delete.json
*/
/**
@@ -3568,7 +3714,7 @@ public final class DaprComponentResiliencyPoliciesDeleteSamples {
*/
public final class DaprComponentResiliencyPoliciesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprComponentResiliencyPolicies_Get.json
*/
/**
@@ -3593,7 +3739,7 @@ public final class DaprComponentResiliencyPoliciesGetSamples {
*/
public final class DaprComponentResiliencyPoliciesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprComponentResiliencyPolicies_List.json
*/
/**
@@ -3612,7 +3758,6 @@ public final class DaprComponentResiliencyPoliciesListSamples {
### 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;
@@ -3624,7 +3769,7 @@ import java.util.Arrays;
*/
public final class DaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprComponents_CreateOrUpdate_Secrets.json
*/
/**
@@ -3635,27 +3780,27 @@ public final class DaprComponentsCreateOrUpdateSamples {
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);
+ .define("reddog")
+ .withExistingManagedEnvironment("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();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprComponents_CreateOrUpdate_SecretStoreComponent.json
*/
/**
@@ -3666,23 +3811,23 @@ public final class DaprComponentsCreateOrUpdateSamples {
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);
+ .define("reddog")
+ .withExistingManagedEnvironment("examplerg", "myenvironment")
+ .withComponentType("state.azure.cosmosdb")
+ .withVersion("v1")
+ .withIgnoreErrors(false)
+ .withInitTimeout("50s")
+ .withSecretStoreComponent("my-secret-store")
+ .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();
}
}
```
@@ -3696,7 +3841,7 @@ public final class DaprComponentsCreateOrUpdateSamples {
public final class DaprComponentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
@@ -3718,7 +3863,7 @@ public final class DaprComponentsDeleteSamples {
*/
public final class DaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprComponents_Get_SecretStoreComponent.json
*/
/**
@@ -3734,7 +3879,7 @@ public final class DaprComponentsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Get_Secrets.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DaprComponents_Get_Secrets.
* json
*/
/**
@@ -3759,7 +3904,7 @@ public final class DaprComponentsGetSamples {
public final class DaprComponentsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
@@ -3781,7 +3926,7 @@ public final class DaprComponentsListSamples {
public final class DaprComponentsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_ListSecrets.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DaprComponents_ListSecrets.
* json
*/
/**
@@ -3812,7 +3957,7 @@ import java.util.Map;
*/
public final class DaprSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json
*/
/**
@@ -3837,7 +3982,7 @@ public final class DaprSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprSubscriptions_CreateOrUpdate_DefaultRoute.json
*/
/**
@@ -3857,7 +4002,7 @@ public final class DaprSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json
*/
/**
@@ -3903,7 +4048,7 @@ public final class DaprSubscriptionsCreateOrUpdateSamples {
public final class DaprSubscriptionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_Delete.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DaprSubscriptions_Delete.
* json
*/
/**
@@ -3926,7 +4071,7 @@ public final class DaprSubscriptionsDeleteSamples {
*/
public final class DaprSubscriptionsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprSubscriptions_Get_DefaultRoute.json
*/
/**
@@ -3941,7 +4086,7 @@ public final class DaprSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprSubscriptions_Get_BulkSubscribeAndScopes.json
*/
/**
@@ -3956,7 +4101,7 @@ public final class DaprSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DaprSubscriptions_Get_RouteRulesAndMetadata.json
*/
/**
@@ -3981,7 +4126,7 @@ public final class DaprSubscriptionsGetSamples {
public final class DaprSubscriptionsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DaprSubscriptions_List.json
*/
/**
* Sample code: List Dapr subscriptions.
@@ -4007,7 +4152,7 @@ import java.util.Arrays;
*/
public final class DotNetComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DotNetComponents_CreateOrUpdate.json
*/
/**
@@ -4027,7 +4172,7 @@ public final class DotNetComponentsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DotNetComponents_CreateOrUpdate_ServiceBind.json
*/
/**
@@ -4060,7 +4205,7 @@ public final class DotNetComponentsCreateOrUpdateSamples {
public final class DotNetComponentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DotNetComponents_Delete.json
*/
/**
* Sample code: Delete .NET Component.
@@ -4082,7 +4227,7 @@ public final class DotNetComponentsDeleteSamples {
*/
public final class DotNetComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DotNetComponents_Get_ServiceBind.json
*/
/**
@@ -4098,7 +4243,7 @@ public final class DotNetComponentsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DotNetComponents_Get.json
*/
/**
* Sample code: Get .NET Component.
@@ -4121,7 +4266,7 @@ public final class DotNetComponentsGetSamples {
public final class DotNetComponentsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DotNetComponents_List.json
*/
/**
* Sample code: List .NET Components.
@@ -4133,7 +4278,7 @@ public final class DotNetComponentsListSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DotNetComponents_List_ServiceBind.json
*/
/**
@@ -4162,7 +4307,7 @@ import java.util.Arrays;
*/
public final class DotNetComponentsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* DotNetComponents_Patch_ServiceBind.json
*/
/**
@@ -4187,7 +4332,7 @@ public final class DotNetComponentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/DotNetComponents_Patch.json
*/
/**
* Sample code: Patch .NET Component.
@@ -4216,7 +4361,7 @@ public final class DotNetComponentsUpdateSamples {
public final class FunctionsExtensionInvokeFunctionsHostSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/FunctionsExtension_Post.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/FunctionsExtension_Post.json
*/
/**
* Sample code: Invoke Functions host using Functions Extension API.
@@ -4232,6 +4377,230 @@ public final class FunctionsExtensionInvokeFunctionsHostSamples {
}
```
+### HttpRouteConfig_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appcontainers.models.BindingType;
+import com.azure.resourcemanager.appcontainers.models.CustomDomain;
+import com.azure.resourcemanager.appcontainers.models.HttpRoute;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteAction;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteConfigProperties;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteMatch;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteRule;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteTarget;
+import java.util.Arrays;
+
+/**
+ * Samples for HttpRouteConfig CreateOrUpdate.
+ */
+public final class HttpRouteConfigCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * HttpRouteConfig_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update Http Route.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ createOrUpdateHttpRoute(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.httpRouteConfigs()
+ .define("httproutefriendlyname")
+ .withExistingManagedEnvironment("examplerg", "testcontainerenv")
+ .withProperties(new HttpRouteConfigProperties().withCustomDomains(Arrays.asList(new CustomDomain()
+ .withName("example.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-1")))
+ .withRules(Arrays.asList(new HttpRouteRule()
+ .withTargets(Arrays
+ .asList(new HttpRouteTarget().withContainerApp("capp-1").withRevision("rev-1").withWeight(100)))
+ .withRoutes(Arrays
+ .asList(new HttpRoute().withMatch(new HttpRouteMatch().withPath("/v1").withCaseSensitive(true))
+ .withAction(new HttpRouteAction().withPrefixRewrite("/v1/api"))))
+ .withDescription("random-description"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * HttpRouteConfig_CreateOrUpdate_PathSepPrefix.json
+ */
+ /**
+ * Sample code: Create or Update Http Route Path Separated Prefix Rule.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateHttpRoutePathSeparatedPrefixRule(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.httpRouteConfigs()
+ .define("httproutefriendlyname")
+ .withExistingManagedEnvironment("examplerg", "testcontainerenv")
+ .withProperties(new HttpRouteConfigProperties().withCustomDomains(Arrays.asList(new CustomDomain()
+ .withName("example.com")
+ .withBindingType(BindingType.DISABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-1")))
+ .withRules(Arrays.asList(new HttpRouteRule()
+ .withTargets(Arrays.asList(new HttpRouteTarget().withContainerApp("capp-1").withLabel("label-1")))
+ .withRoutes(Arrays.asList(new HttpRoute()
+ .withMatch(new HttpRouteMatch().withPathSeparatedPrefix("/v1").withCaseSensitive(true))
+ .withAction(new HttpRouteAction().withPrefixRewrite("/v1/api"))))
+ .withDescription("random-description"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * HttpRouteConfig_CreateOrUpdatePrefix.json
+ */
+ /**
+ * Sample code: Create or Update Http Route Prefix Rule.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ createOrUpdateHttpRoutePrefixRule(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.httpRouteConfigs()
+ .define("httproutefriendlyname")
+ .withExistingManagedEnvironment("examplerg", "testcontainerenv")
+ .withProperties(new HttpRouteConfigProperties().withCustomDomains(Arrays.asList(new CustomDomain()
+ .withName("example.com")
+ .withBindingType(BindingType.DISABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-1")))
+ .withRules(Arrays.asList(new HttpRouteRule()
+ .withTargets(Arrays.asList(new HttpRouteTarget().withContainerApp("capp-1").withLabel("label-1")))
+ .withRoutes(Arrays.asList(
+ new HttpRoute().withMatch(new HttpRouteMatch().withPrefix("/v1").withCaseSensitive(true))
+ .withAction(new HttpRouteAction().withPrefixRewrite("/v1/api"))))
+ .withDescription("random-description"))))
+ .create();
+ }
+}
+```
+
+### HttpRouteConfig_Delete
+
+```java
+/**
+ * Samples for HttpRouteConfig Delete.
+ */
+public final class HttpRouteConfigDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/HttpRouteConfig_Delete.json
+ */
+ /**
+ * Sample code: Delete Certificate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.httpRouteConfigs()
+ .deleteWithResponse("examplerg", "testcontainerenv", "httproutefriendlyname",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### HttpRouteConfig_Get
+
+```java
+/**
+ * Samples for HttpRouteConfig Get.
+ */
+public final class HttpRouteConfigGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/HttpRouteConfig_Get.json
+ */
+ /**
+ * Sample code: Get HttpRoute.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getHttpRoute(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.httpRouteConfigs()
+ .getWithResponse("examplerg", "testcontainerenv", "httproutefriendlyname",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### HttpRouteConfig_List
+
+```java
+/**
+ * Samples for HttpRouteConfig List.
+ */
+public final class HttpRouteConfigListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * HttpRouteConfig_ListByManagedEnvironment.json
+ */
+ /**
+ * Sample code: List Managed Http Routes by Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listManagedHttpRoutesByManagedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.httpRouteConfigs().list("examplerg", "testcontainerenv", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### HttpRouteConfig_Update
+
+```java
+import com.azure.resourcemanager.appcontainers.models.BindingType;
+import com.azure.resourcemanager.appcontainers.models.CustomDomain;
+import com.azure.resourcemanager.appcontainers.models.HttpRoute;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteAction;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteConfig;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteConfigProperties;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteMatch;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteRule;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteTarget;
+import java.util.Arrays;
+
+/**
+ * Samples for HttpRouteConfig Update.
+ */
+public final class HttpRouteConfigUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/HttpRouteConfig_Patch.json
+ */
+ /**
+ * Sample code: Patch Managed Http Route.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void patchManagedHttpRoute(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ HttpRouteConfig resource = manager.httpRouteConfigs()
+ .getWithResponse("examplerg", "testcontainerenv", "httproutefriendlyname", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new HttpRouteConfigProperties().withCustomDomains(Arrays.asList(new CustomDomain()
+ .withName("example.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-1")))
+ .withRules(Arrays.asList(new HttpRouteRule()
+ .withTargets(Arrays
+ .asList(new HttpRouteTarget().withContainerApp("capp-1").withRevision("rev-1").withWeight(100)))
+ .withRoutes(Arrays
+ .asList(new HttpRoute().withMatch(new HttpRouteMatch().withPath("/v1").withCaseSensitive(true))
+ .withAction(new HttpRouteAction().withPrefixRewrite("/v1/api"))))
+ .withDescription("random-description"))))
+ .apply();
+ }
+}
+```
+
### JavaComponents_CreateOrUpdate
```java
@@ -4246,7 +4615,7 @@ import java.util.Arrays;
*/
public final class JavaComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* JavaComponents_CreateOrUpdate_ServiceBind.json
*/
/**
@@ -4272,7 +4641,7 @@ public final class JavaComponentsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* JavaComponents_CreateOrUpdate.json
*/
/**
@@ -4305,7 +4674,7 @@ public final class JavaComponentsCreateOrUpdateSamples {
public final class JavaComponentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/JavaComponents_Delete.json
*/
/**
* Sample code: Delete Java Component.
@@ -4328,7 +4697,7 @@ public final class JavaComponentsDeleteSamples {
public final class JavaComponentsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/JavaComponents_Get.json
*/
/**
* Sample code: Get Java Component.
@@ -4341,7 +4710,7 @@ public final class JavaComponentsGetSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* JavaComponents_Get_ServiceBind.json
*/
/**
@@ -4366,7 +4735,7 @@ public final class JavaComponentsGetSamples {
public final class JavaComponentsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/JavaComponents_List.json
*/
/**
* Sample code: List Java Components.
@@ -4378,7 +4747,7 @@ public final class JavaComponentsListSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* JavaComponents_List_ServiceBind.json
*/
/**
@@ -4409,7 +4778,7 @@ import java.util.Arrays;
public final class JavaComponentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/JavaComponents_Patch.json
*/
/**
* Sample code: Patch Java Component.
@@ -4431,7 +4800,7 @@ public final class JavaComponentsUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* JavaComponents_Patch_ServiceBind.json
*/
/**
@@ -4496,7 +4865,7 @@ import java.util.Map;
*/
public final class JobsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* Job_CreateorUpdate_ConnectedEnvironment.json
*/
/**
@@ -4542,7 +4911,7 @@ public final class JobsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* Job_CreateorUpdate_EventTrigger.json
*/
/**
@@ -4589,7 +4958,7 @@ public final class JobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_CreateorUpdate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_CreateorUpdate.json
*/
/**
* Sample code: Create or Update Container Apps Job.
@@ -4623,7 +4992,7 @@ public final class JobsCreateOrUpdateSamples {
.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"))))
+ .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi").withGpu(1.0D))))
.withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppsJob0:v1")
.withName("testcontainerAppsJob0")
.withVolumeMounts(Arrays.asList(
@@ -4669,7 +5038,7 @@ public final class JobsCreateOrUpdateSamples {
public final class JobsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_Delete.json
*/
/**
* Sample code: Delete Container Apps Job.
@@ -4691,7 +5060,7 @@ public final class JobsDeleteSamples {
public final class JobsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_Get.json
*/
/**
* Sample code: Get Container Apps Job.
@@ -4713,7 +5082,7 @@ public final class JobsGetByResourceGroupSamples {
public final class JobsGetDetectorSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_GetDetector.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_GetDetector.json
*/
/**
* Sample code: Get diagnostic data for a Container App Job.
@@ -4738,7 +5107,7 @@ public final class JobsGetDetectorSamples {
public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListBySubscription.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Jobs_ListBySubscription.json
*/
/**
* Sample code: List Container Apps Jobs by subscription.
@@ -4761,7 +5130,7 @@ public final class JobsListSamples {
public final class JobsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListByResourceGroup.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Jobs_ListByResourceGroup.
* json
*/
/**
@@ -4785,7 +5154,7 @@ public final class JobsListByResourceGroupSamples {
public final class JobsListDetectorsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListDetectors.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_ListDetectors.json
*/
/**
* Sample code: Get the list of available diagnostic data for a Container App Job.
@@ -4808,7 +5177,7 @@ public final class JobsListDetectorsSamples {
public final class JobsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListSecrets.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_ListSecrets.json
*/
/**
* Sample code: List Container Apps Job Secrets.
@@ -4831,7 +5200,7 @@ public final class JobsListSecretsSamples {
public final class JobsProxyGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ProxyGet.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_ProxyGet.json
*/
/**
* Sample code: Get Container App Job by name.
@@ -4854,7 +5223,7 @@ public final class JobsProxyGetSamples {
public final class JobsResumeSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Resume.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Jobs_Resume.json
*/
/**
* Sample code: Resume Job.
@@ -4881,7 +5250,7 @@ import java.util.Arrays;
public final class JobsStartSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Start.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_Start.json
*/
/**
* Sample code: Run a Container Apps Job.
@@ -4913,7 +5282,7 @@ public final class JobsStartSamples {
public final class JobsStopExecutionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Execution.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_Stop_Execution.json
*/
/**
* Sample code: Terminate a Container Apps Job.
@@ -4936,7 +5305,7 @@ public final class JobsStopExecutionSamples {
public final class JobsStopMultipleExecutionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Multiple.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_Stop_Multiple.json
*/
/**
* Sample code: Terminate Multiple Container Apps Job.
@@ -4959,7 +5328,7 @@ public final class JobsStopMultipleExecutionsSamples {
public final class JobsSuspendSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Suspend.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Jobs_Suspend.json
*/
/**
* Sample code: Suspend Job.
@@ -4996,7 +5365,7 @@ import java.util.Arrays;
public final class JobsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Patch.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_Patch.json
*/
/**
* Sample code: Patch Container Apps Job.
@@ -5046,7 +5415,7 @@ public final class JobsUpdateSamples {
public final class JobsExecutionsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Executions_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_Executions_Get.json
*/
/**
* Sample code: Get a Container Apps Job Executions.
@@ -5073,7 +5442,7 @@ import java.io.IOException;
public final class LogicAppsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Create.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/LogicApps_Create.json
*/
/**
* Sample code: Create logic app extension.
@@ -5101,7 +5470,7 @@ public final class LogicAppsCreateOrUpdateSamples {
public final class LogicAppsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Delete.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/LogicApps_Delete.json
*/
/**
* Sample code: Create logic app extension.
@@ -5131,7 +5500,7 @@ import java.util.Arrays;
*/
public final class LogicAppsDeployWorkflowArtifactsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* LogicApps_PostDeployWorkflowArtifacts.json
*/
/**
@@ -5155,7 +5524,7 @@ public final class LogicAppsDeployWorkflowArtifactsSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* LogicApps_DeleteDeployWorkflowArtifacts.json
*/
/**
@@ -5182,7 +5551,7 @@ public final class LogicAppsDeployWorkflowArtifactsSamples {
public final class LogicAppsGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/LogicApps_Get.json
*/
/**
* Sample code: Get logic app extension by name.
@@ -5206,7 +5575,7 @@ public final class LogicAppsGetSamples {
public final class LogicAppsGetWorkflowSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_GetWorkflow.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/LogicApps_GetWorkflow.json
*/
/**
* Sample code: GET a workflow.
@@ -5232,7 +5601,7 @@ import com.azure.resourcemanager.appcontainers.models.LogicAppsProxyMethod;
public final class LogicAppsInvokeSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListCallbackURL.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/LogicApps_ListCallbackURL.
* json
*/
/**
@@ -5259,7 +5628,7 @@ public final class LogicAppsInvokeSamples {
public final class LogicAppsListWorkflowsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListWorkflows.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/LogicApps_ListWorkflows.json
*/
/**
* Sample code: List the workflows.
@@ -5282,7 +5651,7 @@ public final class LogicAppsListWorkflowsSamples {
public final class LogicAppsListWorkflowsConnectionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListConnections.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/LogicApps_ListConnections.
* json
*/
/**
@@ -5299,6 +5668,109 @@ public final class LogicAppsListWorkflowsConnectionsSamples {
}
```
+### MaintenanceConfigurations_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appcontainers.models.ScheduledEntry;
+import com.azure.resourcemanager.appcontainers.models.WeekDay;
+import java.util.Arrays;
+
+/**
+ * Samples for MaintenanceConfigurations CreateOrUpdate.
+ */
+public final class MaintenanceConfigurationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * ManagedEnvironment_MaintenanceConfigurations_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: ManagedEnvironmentMaintenanceConfigurationsCreateOrUpdate.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void managedEnvironmentMaintenanceConfigurationsCreateOrUpdate(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.maintenanceConfigurations()
+ .define("default")
+ .withExistingManagedEnvironment("rg1", "managedEnv")
+ .withScheduledEntries(Arrays
+ .asList(new ScheduledEntry().withWeekDay(WeekDay.SUNDAY).withStartHourUtc(12).withDurationHours(9)))
+ .create();
+ }
+}
+```
+
+### MaintenanceConfigurations_Delete
+
+```java
+/**
+ * Samples for MaintenanceConfigurations Delete.
+ */
+public final class MaintenanceConfigurationsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * ManagedEnvironment_MaintenanceConfigurations_Delete.json
+ */
+ /**
+ * Sample code: ManagedEnvironmentMaintenanceConfigurationsDelete.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void managedEnvironmentMaintenanceConfigurationsDelete(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.maintenanceConfigurations()
+ .deleteWithResponse("rg1", "managedEnv", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### MaintenanceConfigurations_Get
+
+```java
+/**
+ * Samples for MaintenanceConfigurations Get.
+ */
+public final class MaintenanceConfigurationsGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * ManagedEnvironment_MaintenanceConfigurations_Get.json
+ */
+ /**
+ * Sample code: ManagedEnvironmentMaintenanceConfigurationsGet.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void managedEnvironmentMaintenanceConfigurationsGet(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.maintenanceConfigurations()
+ .getWithResponse("rg1", "managedEnv", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### MaintenanceConfigurations_List
+
+```java
+/**
+ * Samples for MaintenanceConfigurations List.
+ */
+public final class MaintenanceConfigurationsListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
+ * ManagedEnvironment_MaintenanceConfigurations_List.json
+ */
+ /**
+ * Sample code: ManagedEnvironmentMaintenanceConfigurationsList.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void managedEnvironmentMaintenanceConfigurationsList(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.maintenanceConfigurations().list("rg1", "managedEnv", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### ManagedCertificates_CreateOrUpdate
```java
@@ -5310,7 +5782,7 @@ import com.azure.resourcemanager.appcontainers.models.ManagedCertificateProperti
*/
public final class ManagedCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedCertificate_CreateOrUpdate.json
*/
/**
@@ -5340,7 +5812,7 @@ public final class ManagedCertificatesCreateOrUpdateSamples {
public final class ManagedCertificatesDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Delete.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ManagedCertificate_Delete.
* json
*/
/**
@@ -5365,7 +5837,7 @@ public final class ManagedCertificatesDeleteSamples {
public final class ManagedCertificatesGetSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ManagedCertificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -5388,7 +5860,7 @@ public final class ManagedCertificatesGetSamples {
*/
public final class ManagedCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedCertificates_ListByManagedEnvironment.json
*/
/**
@@ -5416,7 +5888,7 @@ import java.util.Map;
public final class ManagedCertificatesUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificates_Patch.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ManagedCertificates_Patch.
* json
*/
/**
@@ -5455,7 +5927,7 @@ public final class ManagedCertificatesUpdateSamples {
*/
public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentDiagnostics_Get.json
*/
/**
@@ -5480,7 +5952,7 @@ public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
*/
public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentDiagnostics_List.json
*/
/**
@@ -5508,7 +5980,7 @@ import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnecti
*/
public final class ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json
*/
/**
@@ -5538,7 +6010,7 @@ public final class ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSam
*/
public final class ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentPrivateEndpointConnections_Delete.json
*/
/**
@@ -5562,7 +6034,7 @@ public final class ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples {
*/
public final class ManagedEnvironmentPrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentPrivateEndpointConnections_Get.json
*/
/**
@@ -5586,7 +6058,7 @@ public final class ManagedEnvironmentPrivateEndpointConnectionsGetSamples {
*/
public final class ManagedEnvironmentPrivateEndpointConnectionsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentPrivateEndpointConnections_List.json
*/
/**
@@ -5610,7 +6082,7 @@ public final class ManagedEnvironmentPrivateEndpointConnectionsListSamples {
*/
public final class ManagedEnvironmentPrivateLinkResourcesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentPrivateLinkResources_List.json
*/
/**
@@ -5634,7 +6106,7 @@ public final class ManagedEnvironmentPrivateLinkResourcesListSamples {
*/
public final class ManagedEnvironmentUsagesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentUsages_List.json
*/
/**
@@ -5682,7 +6154,7 @@ import java.util.Map;
*/
public final class ManagedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
*/
/**
@@ -5703,6 +6175,7 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
.withAppLogsConfiguration(new AppLogsConfiguration().withLogAnalyticsConfiguration(
new LogAnalyticsConfiguration().withCustomerId("string").withSharedKey("fakeTokenPlaceholder")))
.withZoneRedundant(true)
+ .withAvailabilityZones(Arrays.asList("1", "2", "3"))
.withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("www.my-name.com")
.withCertificateValue("Y2VydA==".getBytes())
.withCertificatePassword("fakeTokenPlaceholder"))
@@ -5726,7 +6199,7 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironments_CreateOrUpdate.json
*/
/**
@@ -5771,6 +6244,7 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
.withMetricsConfiguration(
new MetricsConfiguration().withIncludeKeda(true).withDestinations(Arrays.asList("dataDog"))))
.withZoneRedundant(true)
+ .withAvailabilityZones(Arrays.asList("1", "2", "3"))
.withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("www.my-name.com")
.withCertificateValue("Y2VydA==".getBytes())
.withCertificatePassword("fakeTokenPlaceholder"))
@@ -5819,7 +6293,7 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
public final class ManagedEnvironmentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Delete.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ManagedEnvironments_Delete.
* json
*/
/**
@@ -5842,7 +6316,7 @@ public final class ManagedEnvironmentsDeleteSamples {
*/
public final class ManagedEnvironmentsGetAuthTokenSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironments_GetAuthToken.json
*/
/**
@@ -5866,7 +6340,7 @@ public final class ManagedEnvironmentsGetAuthTokenSamples {
public final class ManagedEnvironmentsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -5888,7 +6362,7 @@ public final class ManagedEnvironmentsGetByResourceGroupSamples {
*/
public final class ManagedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironments_ListBySubscription.json
*/
/**
@@ -5911,7 +6385,7 @@ public final class ManagedEnvironmentsListSamples {
*/
public final class ManagedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironments_ListByResourceGroup.json
*/
/**
@@ -5934,7 +6408,7 @@ public final class ManagedEnvironmentsListByResourceGroupSamples {
*/
public final class ManagedEnvironmentsListWorkloadProfileStatesSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironments_ListWorkloadProfileStates.json
*/
/**
@@ -5963,7 +6437,7 @@ import java.util.Map;
public final class ManagedEnvironmentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Patch.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ManagedEnvironments_Patch.
* json
*/
/**
@@ -6002,7 +6476,7 @@ public final class ManagedEnvironmentsUpdateSamples {
public final class ManagedEnvironmentsDiagnosticsGetRootSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -6029,7 +6503,7 @@ import com.azure.resourcemanager.appcontainers.models.NfsAzureFileProperties;
*/
public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json
*/
/**
@@ -6050,7 +6524,7 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
@@ -6081,7 +6555,7 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
*/
public final class ManagedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentsStorages_Delete.json
*/
/**
@@ -6105,7 +6579,7 @@ public final class ManagedEnvironmentsStoragesDeleteSamples {
*/
public final class ManagedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentsStorages_Get.json
*/
/**
@@ -6120,7 +6594,7 @@ public final class ManagedEnvironmentsStoragesGetSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentsStorages_Get_NfsAzureFile.json
*/
/**
@@ -6144,7 +6618,7 @@ public final class ManagedEnvironmentsStoragesGetSamples {
*/
public final class ManagedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ManagedEnvironmentsStorages_List.json
*/
/**
@@ -6170,7 +6644,7 @@ import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReque
*/
public final class NamespacesCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* Certificates_CheckNameAvailability.json
*/
/**
@@ -6188,7 +6662,7 @@ public final class NamespacesCheckNameAvailabilitySamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* ContainerApps_CheckNameAvailability.json
*/
/**
@@ -6215,7 +6689,7 @@ public final class NamespacesCheckNameAvailabilitySamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Operations_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Operations_List.json
*/
/**
* Sample code: List all operations.
@@ -6236,7 +6710,7 @@ public final class OperationsListSamples {
*/
public final class ResourceProviderGetCustomDomainVerificationIdSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/
* Subscriptions_GetCustomDomainVerificationId.json
*/
/**
@@ -6259,7 +6733,7 @@ public final class ResourceProviderGetCustomDomainVerificationIdSamples {
public final class ResourceProviderJobExecutionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Execution_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_Execution_Get.json
*/
/**
* Sample code: Get a single Job Execution.
@@ -6282,7 +6756,7 @@ public final class ResourceProviderJobExecutionSamples {
public final class UsagesListSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Usages_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-10-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 51b0c047ec4f4..e5252c5f804af 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for ContainerAppsApi Management
- This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions extension resource. Package tag package-preview-2024-08.
+ This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. 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-10.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java
index 37ba910139649..1bc0dbab01ba9 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
@@ -42,6 +42,7 @@
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.ContainerAppsLabelHistoriesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsPatchesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionReplicasImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionsImpl;
@@ -52,10 +53,12 @@
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.HttpRouteConfigsImpl;
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.MaintenanceConfigurationsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedCertificatesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentPrivateEndpointConnectionsImpl;
@@ -85,6 +88,7 @@
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.ContainerAppsLabelHistories;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatches;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisionReplicas;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisions;
@@ -95,10 +99,12 @@
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.HttpRouteConfigs;
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.MaintenanceConfigurations;
import com.azure.resourcemanager.appcontainers.models.ManagedCertificates;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPrivateEndpointConnections;
@@ -157,6 +163,8 @@ public final class ContainerAppsApiManager {
private ContainerAppsPatches containerAppsPatches;
+ private ContainerAppsLabelHistories containerAppsLabelHistories;
+
private ContainerAppsRevisions containerAppsRevisions;
private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;
@@ -201,6 +209,10 @@ public final class ContainerAppsApiManager {
private DaprSubscriptions daprSubscriptions;
+ private HttpRouteConfigs httpRouteConfigs;
+
+ private MaintenanceConfigurations maintenanceConfigurations;
+
private ManagedEnvironmentsStorages managedEnvironmentsStorages;
private ContainerAppsSessionPools containerAppsSessionPools;
@@ -375,7 +387,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
- .append("1.1.0-beta.1");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -546,7 +558,8 @@ public ConnectedEnvironmentsCertificates connectedEnvironmentsCertificates() {
}
/**
- * Gets the resource collection API of ConnectedEnvironmentsDaprComponents. It manages DaprComponent.
+ * Gets the resource collection API of ConnectedEnvironmentsDaprComponents. It manages
+ * ConnectedEnvironmentDaprComponent.
*
* @return Resource collection API of ConnectedEnvironmentsDaprComponents.
*/
@@ -620,6 +633,19 @@ public ContainerAppsPatches containerAppsPatches() {
return containerAppsPatches;
}
+ /**
+ * Gets the resource collection API of ContainerAppsLabelHistories.
+ *
+ * @return Resource collection API of ContainerAppsLabelHistories.
+ */
+ public ContainerAppsLabelHistories containerAppsLabelHistories() {
+ if (this.containerAppsLabelHistories == null) {
+ this.containerAppsLabelHistories
+ = new ContainerAppsLabelHistoriesImpl(clientObject.getContainerAppsLabelHistories(), this);
+ }
+ return containerAppsLabelHistories;
+ }
+
/**
* Gets the resource collection API of ContainerAppsRevisions.
*
@@ -870,7 +896,7 @@ public DaprComponentResiliencyPolicies daprComponentResiliencyPolicies() {
}
/**
- * Gets the resource collection API of DaprComponents.
+ * Gets the resource collection API of DaprComponents. It manages DaprComponent.
*
* @return Resource collection API of DaprComponents.
*/
@@ -893,6 +919,31 @@ public DaprSubscriptions daprSubscriptions() {
return daprSubscriptions;
}
+ /**
+ * Gets the resource collection API of HttpRouteConfigs. It manages HttpRouteConfig.
+ *
+ * @return Resource collection API of HttpRouteConfigs.
+ */
+ public HttpRouteConfigs httpRouteConfigs() {
+ if (this.httpRouteConfigs == null) {
+ this.httpRouteConfigs = new HttpRouteConfigsImpl(clientObject.getHttpRouteConfigs(), this);
+ }
+ return httpRouteConfigs;
+ }
+
+ /**
+ * Gets the resource collection API of MaintenanceConfigurations. It manages MaintenanceConfigurationResource.
+ *
+ * @return Resource collection API of MaintenanceConfigurations.
+ */
+ public MaintenanceConfigurations maintenanceConfigurations() {
+ if (this.maintenanceConfigurations == null) {
+ this.maintenanceConfigurations
+ = new MaintenanceConfigurationsImpl(clientObject.getMaintenanceConfigurations(), this);
+ }
+ return maintenanceConfigurations;
+ }
+
/**
* Gets the resource collection API of ManagedEnvironmentsStorages. It manages ManagedEnvironmentStorage.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsCertificatesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsCertificatesClient.java
index b40e6779b5018..518158b45c203 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsCertificatesClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsCertificatesClient.java
@@ -8,7 +8,9 @@
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.CertificateInner;
import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
@@ -77,6 +79,22 @@ Response getWithResponse(String resourceGroupName, String conn
@ServiceMethod(returns = ReturnType.SINGLE)
CertificateInner get(String resourceGroupName, String connectedEnvironmentName, String certificateName);
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @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 certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CertificateInner> beginCreateOrUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName);
+
/**
* Create or Update a Certificate.
*
@@ -86,15 +104,14 @@ Response getWithResponse(String resourceGroupName, String conn
* @param certificateEnvelope Certificate to be created or updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with
- * {@link Response}.
+ * @return the {@link SyncPoller} for polling of certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String connectedEnvironmentName,
- String certificateName, CertificateInner certificateEnvelope, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CertificateInner> beginCreateOrUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, CertificateInner certificateEnvelope, Context context);
/**
* Create or Update a Certificate.
@@ -103,8 +120,7 @@ Response createOrUpdateWithResponse(String resourceGroupName,
* @param connectedEnvironmentName Name of the Connected Environment.
* @param certificateName Name of the Certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
*/
@@ -112,21 +128,21 @@ Response createOrUpdateWithResponse(String resourceGroupName,
CertificateInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName, String certificateName);
/**
- * Deletes the specified Certificate.
+ * Create or Update a Certificate.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param connectedEnvironmentName Name of the Connected Environment.
* @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 Response}.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String connectedEnvironmentName, String certificateName,
- Context context);
+ CertificateInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName, String certificateName,
+ CertificateInner certificateEnvelope, Context context);
/**
* Deletes the specified Certificate.
@@ -135,13 +151,76 @@ Response deleteWithResponse(String resourceGroupName, String connectedEnvi
* @param connectedEnvironmentName Name of the Connected Environment.
* @param certificateName Name of the Certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 connectedEnvironmentName,
+ String certificateName);
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironmentName,
+ String certificateName, Context context);
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironmentName, String certificateName);
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironmentName, String certificateName, Context context);
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CertificateInner> beginUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, CertificatePatch certificateEnvelope);
+
/**
* Update properties of a certificate
*
@@ -153,15 +232,14 @@ Response deleteWithResponse(String resourceGroupName, String connectedEnvi
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with
- * {@link Response}.
+ * @return the {@link SyncPoller} for polling of certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String connectedEnvironmentName,
- String certificateName, CertificatePatch certificateEnvelope, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CertificateInner> beginUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, CertificatePatch certificateEnvelope, Context context);
/**
* Update properties of a certificate
@@ -173,12 +251,30 @@ Response updateWithResponse(String resourceGroupName, String c
* @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CertificateInner update(String resourceGroupName, String connectedEnvironmentName, String certificateName,
CertificatePatch certificateEnvelope);
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CertificateInner update(String resourceGroupName, String connectedEnvironmentName, String certificateName,
+ CertificatePatch certificateEnvelope, Context context);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java
index f0d390ee1103e..08d2793cb5335 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsDaprComponentsClient.java
@@ -8,8 +8,10 @@
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.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentDaprComponentInner;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
/**
@@ -28,7 +30,8 @@ public interface ConnectedEnvironmentsDaprComponentsClient {
* @return the Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String connectedEnvironmentName);
+ PagedIterable list(String resourceGroupName,
+ String connectedEnvironmentName);
/**
* Get the Dapr Components for a connected environment.
@@ -43,7 +46,8 @@ public interface ConnectedEnvironmentsDaprComponentsClient {
* @return the Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String connectedEnvironmentName, Context context);
+ PagedIterable list(String resourceGroupName,
+ String connectedEnvironmentName, Context context);
/**
* Get a dapr component.
@@ -59,8 +63,8 @@ public interface ConnectedEnvironmentsDaprComponentsClient {
* @return a dapr component along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String connectedEnvironmentName,
- String componentName, Context context);
+ Response getWithResponse(String resourceGroupName,
+ String connectedEnvironmentName, String componentName, Context context);
/**
* Get a dapr component.
@@ -75,7 +79,27 @@ Response getWithResponse(String resourceGroupName, String co
* @return a dapr component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DaprComponentInner get(String resourceGroupName, String connectedEnvironmentName, String componentName);
+ ConnectedEnvironmentDaprComponentInner get(String resourceGroupName, String connectedEnvironmentName,
+ String componentName);
+
+ /**
+ * Creates or updates a Dapr Component.
+ *
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 dapr Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConnectedEnvironmentDaprComponentInner>
+ beginCreateOrUpdate(String resourceGroupName, String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope);
/**
* Creates or updates a Dapr Component.
@@ -88,14 +112,32 @@ Response getWithResponse(String resourceGroupName, String co
* @param daprComponentEnvelope Configuration details of the Dapr Component.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 dapr Component along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of dapr Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConnectedEnvironmentDaprComponentInner>
+ beginCreateOrUpdate(String resourceGroupName, String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope, Context context);
+
+ /**
+ * Creates or updates a Dapr Component.
+ *
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 dapr Component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String connectedEnvironmentName,
- String componentName, DaprComponentInner daprComponentEnvelope, Context context);
+ ConnectedEnvironmentDaprComponentInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName,
+ String componentName, ConnectedEnvironmentDaprComponentInner daprComponentEnvelope);
/**
* Creates or updates a Dapr Component.
@@ -106,15 +148,32 @@ Response createOrUpdateWithResponse(String resourceGroupName
* @param connectedEnvironmentName Name of the connected environment.
* @param componentName Name of the Dapr Component.
* @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 dapr Component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DaprComponentInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName, String componentName,
- DaprComponentInner daprComponentEnvelope);
+ ConnectedEnvironmentDaprComponentInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName,
+ String componentName, ConnectedEnvironmentDaprComponentInner daprComponentEnvelope, Context context);
+
+ /**
+ * Delete a Dapr Component.
+ *
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironmentName,
+ String componentName);
/**
* Delete a Dapr Component.
@@ -126,14 +185,13 @@ DaprComponentInner createOrUpdate(String resourceGroupName, String connectedEnvi
* @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 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 Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String connectedEnvironmentName, String componentName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String connectedEnvironmentName,
+ String componentName, Context context);
/**
* Delete a Dapr Component.
@@ -144,13 +202,28 @@ Response deleteWithResponse(String resourceGroupName, String connectedEnvi
* @param connectedEnvironmentName Name of the connected environment.
* @param componentName Name of the Dapr Component.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 connectedEnvironmentName, String componentName);
+ /**
+ * Delete a Dapr Component.
+ *
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironmentName, String componentName, Context context);
+
/**
* List secrets for a dapr component.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java
index 877de407b477f..f90afb1cd96e8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ConnectedEnvironmentsStoragesClient.java
@@ -7,7 +7,9 @@
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.ConnectedEnvironmentStorageInner;
import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStoragesCollectionInner;
@@ -77,6 +79,23 @@ Response getWithResponse(String resourceGroupN
@ServiceMethod(returns = ReturnType.SINGLE)
ConnectedEnvironmentStorageInner get(String resourceGroupName, String connectedEnvironmentName, String storageName);
+ /**
+ * Create or update storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @param storageEnvelope Configuration details of storage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 storage resource for connectedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConnectedEnvironmentStorageInner> beginCreateOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, String storageName,
+ ConnectedEnvironmentStorageInner storageEnvelope);
+
/**
* Create or update storage for a connectedEnvironment.
*
@@ -86,15 +105,14 @@ Response getWithResponse(String resourceGroupN
* @param storageEnvelope Configuration details of storage.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 storage resource for connectedEnvironment along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of storage resource for connectedEnvironment.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName,
- String connectedEnvironmentName, String storageName, ConnectedEnvironmentStorageInner storageEnvelope,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConnectedEnvironmentStorageInner> beginCreateOrUpdate(
+ String resourceGroupName, String connectedEnvironmentName, String storageName,
+ ConnectedEnvironmentStorageInner storageEnvelope, Context context);
/**
* Create or update storage for a connectedEnvironment.
@@ -104,8 +122,7 @@ Response createOrUpdateWithResponse(String res
* @param storageName Name of the storage.
* @param storageEnvelope Configuration details of storage.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 storage resource for connectedEnvironment.
*/
@@ -114,21 +131,21 @@ ConnectedEnvironmentStorageInner createOrUpdate(String resourceGroupName, String
String storageName, ConnectedEnvironmentStorageInner storageEnvelope);
/**
- * Delete storage for a connectedEnvironment.
+ * Create or update storage for a connectedEnvironment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param connectedEnvironmentName Name of the Environment.
* @param storageName Name of the storage.
+ * @param storageEnvelope Configuration details of storage.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 Response}.
+ * @return storage resource for connectedEnvironment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String connectedEnvironmentName, String storageName,
- Context context);
+ ConnectedEnvironmentStorageInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName,
+ String storageName, ConnectedEnvironmentStorageInner storageEnvelope, Context context);
/**
* Delete storage for a connectedEnvironment.
@@ -137,10 +154,54 @@ Response deleteWithResponse(String resourceGroupName, String connectedEnvi
* @param connectedEnvironmentName Name of the Environment.
* @param storageName Name of the storage.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
- * is rejected by server.
+ * @throws 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 connectedEnvironmentName,
+ String storageName);
+
+ /**
+ * Delete storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironmentName,
+ String storageName, Context context);
+
+ /**
+ * Delete storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironmentName, String storageName);
+
+ /**
+ * Delete storage for a connectedEnvironment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Environment.
+ * @param storageName Name of the storage.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 connectedEnvironmentName, String storageName, Context context);
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java
index dafb90840eb0b..984ce0567fcd8 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
@@ -158,6 +158,13 @@ public interface ContainerAppsApiClient {
*/
ContainerAppsPatchesClient getContainerAppsPatches();
+ /**
+ * Gets the ContainerAppsLabelHistoriesClient object to access its operations.
+ *
+ * @return the ContainerAppsLabelHistoriesClient object.
+ */
+ ContainerAppsLabelHistoriesClient getContainerAppsLabelHistories();
+
/**
* Gets the ContainerAppsRevisionsClient object to access its operations.
*
@@ -312,6 +319,20 @@ public interface ContainerAppsApiClient {
*/
DaprSubscriptionsClient getDaprSubscriptions();
+ /**
+ * Gets the HttpRouteConfigsClient object to access its operations.
+ *
+ * @return the HttpRouteConfigsClient object.
+ */
+ HttpRouteConfigsClient getHttpRouteConfigs();
+
+ /**
+ * Gets the MaintenanceConfigurationsClient object to access its operations.
+ *
+ * @return the MaintenanceConfigurationsClient object.
+ */
+ MaintenanceConfigurationsClient getMaintenanceConfigurations();
+
/**
* Gets the ManagedEnvironmentsStoragesClient object to access its operations.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsLabelHistoriesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsLabelHistoriesClient.java
new file mode 100644
index 0000000000000..9c0d3851bafdc
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsLabelHistoriesClient.java
@@ -0,0 +1,80 @@
+// 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.LabelHistoryInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsLabelHistoriesClient.
+ */
+public interface ContainerAppsLabelHistoriesClient {
+ /**
+ * Get the Label History for a given Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @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 Label History for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listLabelHistory(String resourceGroupName, String containerAppName);
+
+ /**
+ * Get the Label History for a given Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param filter The filter to apply on the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Label History for a given Container App as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listLabelHistory(String resourceGroupName, String containerAppName, String filter,
+ Context context);
+
+ /**
+ * Get the history of a label.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param labelName Name of the Container App label.
+ * @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 history of a label along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getLabelHistoryWithResponse(String resourceGroupName, String containerAppName,
+ String labelName, Context context);
+
+ /**
+ * Get the history of a label.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param labelName Name of the Container App label.
+ * @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 history of a label.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabelHistoryInner getLabelHistory(String resourceGroupName, String containerAppName, String labelName);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/HttpRouteConfigsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/HttpRouteConfigsClient.java
new file mode 100644
index 0000000000000..3f81ce2436e9c
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/HttpRouteConfigsClient.java
@@ -0,0 +1,183 @@
+// 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.HttpRouteConfigInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in HttpRouteConfigsClient.
+ */
+public interface HttpRouteConfigsClient {
+ /**
+ * Get the specified Managed Http Route Config.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param httpRouteName Name of the Http Route Config 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 specified Managed Http Route Config along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String environmentName,
+ String httpRouteName, Context context);
+
+ /**
+ * Get the specified Managed Http Route Config.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param httpRouteName Name of the Http Route Config 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 specified Managed Http Route Config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HttpRouteConfigInner get(String resourceGroupName, String environmentName, String httpRouteName);
+
+ /**
+ * Create or Update a Http Route Config.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param httpRouteName Name of the Http Route Config Resource.
+ * @param httpRouteConfigEnvelope Http Route config to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return advanced Ingress routing for path/header based routing for a Container App Environment along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName, String environmentName,
+ String httpRouteName, HttpRouteConfigInner httpRouteConfigEnvelope, Context context);
+
+ /**
+ * Create or Update a Http Route Config.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param httpRouteName Name of the Http Route Config 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 advanced Ingress routing for path/header based routing for a Container App Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HttpRouteConfigInner createOrUpdate(String resourceGroupName, String environmentName, String httpRouteName);
+
+ /**
+ * Update tags of a manged http route object
+ *
+ * Patches an http route config resource. Only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param httpRouteName Name of the Http Route Config Resource.
+ * @param httpRouteConfigEnvelope Properties of http route config that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return advanced Ingress routing for path/header based routing for a Container App Environment along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String environmentName,
+ String httpRouteName, HttpRouteConfigInner httpRouteConfigEnvelope, Context context);
+
+ /**
+ * Update tags of a manged http route object
+ *
+ * Patches an http route config resource. Only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param httpRouteName Name of the Http Route Config Resource.
+ * @param httpRouteConfigEnvelope Properties of http route config that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return advanced Ingress routing for path/header based routing for a Container App Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HttpRouteConfigInner update(String resourceGroupName, String environmentName, String httpRouteName,
+ HttpRouteConfigInner httpRouteConfigEnvelope);
+
+ /**
+ * Deletes the specified Managed Http Route.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param httpRouteName Name of the Http Route Config 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 environmentName, String httpRouteName,
+ Context context);
+
+ /**
+ * Deletes the specified Managed Http Route.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param httpRouteName Name of the Http Route Config 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 environmentName, String httpRouteName);
+
+ /**
+ * Get the Managed Http Routes in a given 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 Managed Http Routes in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the Managed Http Routes in a given 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 Managed Http Routes in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/MaintenanceConfigurationsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/MaintenanceConfigurationsClient.java
new file mode 100644
index 0000000000000..88f74e0e979bf
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/MaintenanceConfigurationsClient.java
@@ -0,0 +1,148 @@
+// 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.MaintenanceConfigurationResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in MaintenanceConfigurationsClient.
+ */
+public interface MaintenanceConfigurationsClient {
+ /**
+ * Gets all maintenance configurations in the specified Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName The 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 all maintenance configurations in the specified Managed Environment as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * Gets all maintenance configurations in the specified Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName The 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 all maintenance configurations in the specified Managed Environment as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName,
+ Context context);
+
+ /**
+ * Create or update the maintenance configuration for Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName The name of the Managed Environment.
+ * @param configName The name of the maintenance configuration.
+ * @param maintenanceConfigurationEnvelope Parameters to set the maintenance configuration for ManagedEnvironment .
+ * @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 information about the Maintenance Configuration resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName,
+ String environmentName, String configName,
+ MaintenanceConfigurationResourceInner maintenanceConfigurationEnvelope, Context context);
+
+ /**
+ * Create or update the maintenance configuration for Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName The name of the Managed Environment.
+ * @param configName The name of the maintenance configuration.
+ * @param maintenanceConfigurationEnvelope Parameters to set the maintenance configuration for ManagedEnvironment .
+ * @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 information about the Maintenance Configuration resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MaintenanceConfigurationResourceInner createOrUpdate(String resourceGroupName, String environmentName,
+ String configName, MaintenanceConfigurationResourceInner maintenanceConfigurationEnvelope);
+
+ /**
+ * Deletes the maintenance configuration of a ManagedEnvironment .
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName The name of the Managed Environment.
+ * @param configName The name of the maintenance configuration.
+ * @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 configName,
+ Context context);
+
+ /**
+ * Deletes the maintenance configuration of a ManagedEnvironment .
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName The name of the Managed Environment.
+ * @param configName The name of the maintenance configuration.
+ * @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 configName);
+
+ /**
+ * Gets the maintenance configuration of a ManagedEnvironment .
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName The name of the Managed Environment.
+ * @param configName The name of the maintenance configuration.
+ * @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 maintenance configuration of a ManagedEnvironment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String environmentName,
+ String configName, Context context);
+
+ /**
+ * Gets the maintenance configuration of a ManagedEnvironment .
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName The name of the Managed Environment.
+ * @param configName The name of the maintenance configuration.
+ * @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 maintenance configuration of a ManagedEnvironment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MaintenanceConfigurationResourceInner get(String resourceGroupName, String environmentName, String configName);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentDaprComponentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentDaprComponentInner.java
new file mode 100644
index 0000000000000..3a08632192dd6
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentDaprComponentInner.java
@@ -0,0 +1,169 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentDaprComponentProperties;
+import java.io.IOException;
+
+/**
+ * Dapr Component.
+ */
+@Fluent
+public final class ConnectedEnvironmentDaprComponentInner extends ProxyResource {
+ /*
+ * Dapr component properties
+ */
+ private ConnectedEnvironmentDaprComponentProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ConnectedEnvironmentDaprComponentInner class.
+ */
+ public ConnectedEnvironmentDaprComponentInner() {
+ }
+
+ /**
+ * Get the properties property: Dapr component properties.
+ *
+ * @return the properties value.
+ */
+ public ConnectedEnvironmentDaprComponentProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Dapr component properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ConnectedEnvironmentDaprComponentInner object itself.
+ */
+ public ConnectedEnvironmentDaprComponentInner
+ withProperties(ConnectedEnvironmentDaprComponentProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ConnectedEnvironmentDaprComponentInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ConnectedEnvironmentDaprComponentInner if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ConnectedEnvironmentDaprComponentInner.
+ */
+ public static ConnectedEnvironmentDaprComponentInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ConnectedEnvironmentDaprComponentInner deserializedConnectedEnvironmentDaprComponentInner
+ = new ConnectedEnvironmentDaprComponentInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedConnectedEnvironmentDaprComponentInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedConnectedEnvironmentDaprComponentInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedConnectedEnvironmentDaprComponentInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedConnectedEnvironmentDaprComponentInner.properties
+ = ConnectedEnvironmentDaprComponentProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedConnectedEnvironmentDaprComponentInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedConnectedEnvironmentDaprComponentInner;
+ });
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java
index 2ea651f923a45..b2cd8c33f72eb 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java
@@ -19,7 +19,7 @@
* Dapr Component resource specific properties.
*/
@Fluent
-public final class DaprComponentProperties implements JsonSerializable {
+public class DaprComponentProperties implements JsonSerializable {
/*
* Component type
*/
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/HttpRouteConfigInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/HttpRouteConfigInner.java
new file mode 100644
index 0000000000000..b3efd28244858
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/HttpRouteConfigInner.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.appcontainers.models.HttpRouteConfigProperties;
+import java.io.IOException;
+
+/**
+ * Advanced Ingress routing for path/header based routing for a Container App Environment.
+ */
+@Fluent
+public final class HttpRouteConfigInner extends ProxyResource {
+ /*
+ * Http Route Config properties
+ */
+ private HttpRouteConfigProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of HttpRouteConfigInner class.
+ */
+ public HttpRouteConfigInner() {
+ }
+
+ /**
+ * Get the properties property: Http Route Config properties.
+ *
+ * @return the properties value.
+ */
+ public HttpRouteConfigProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Http Route Config properties.
+ *
+ * @param properties the properties value to set.
+ * @return the HttpRouteConfigInner object itself.
+ */
+ public HttpRouteConfigInner withProperties(HttpRouteConfigProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of HttpRouteConfigInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of HttpRouteConfigInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the HttpRouteConfigInner.
+ */
+ public static HttpRouteConfigInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ HttpRouteConfigInner deserializedHttpRouteConfigInner = new HttpRouteConfigInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedHttpRouteConfigInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedHttpRouteConfigInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedHttpRouteConfigInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedHttpRouteConfigInner.properties = HttpRouteConfigProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedHttpRouteConfigInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedHttpRouteConfigInner;
+ });
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/LabelHistoryInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/LabelHistoryInner.java
new file mode 100644
index 0000000000000..ded9b09209dff
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/LabelHistoryInner.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.appcontainers.models.LabelHistoryProperties;
+import java.io.IOException;
+
+/**
+ * Container App Label History.
+ */
+@Fluent
+public final class LabelHistoryInner extends ProxyResource {
+ /*
+ * Container App Label History resource specific properties
+ */
+ private LabelHistoryProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of LabelHistoryInner class.
+ */
+ public LabelHistoryInner() {
+ }
+
+ /**
+ * Get the properties property: Container App Label History resource specific properties.
+ *
+ * @return the properties value.
+ */
+ public LabelHistoryProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Container App Label History resource specific properties.
+ *
+ * @param properties the properties value to set.
+ * @return the LabelHistoryInner object itself.
+ */
+ public LabelHistoryInner withProperties(LabelHistoryProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LabelHistoryInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LabelHistoryInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the LabelHistoryInner.
+ */
+ public static LabelHistoryInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LabelHistoryInner deserializedLabelHistoryInner = new LabelHistoryInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedLabelHistoryInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedLabelHistoryInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedLabelHistoryInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedLabelHistoryInner.properties = LabelHistoryProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedLabelHistoryInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLabelHistoryInner;
+ });
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/MaintenanceConfigurationResourceInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/MaintenanceConfigurationResourceInner.java
new file mode 100644
index 0000000000000..38c3546098cea
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/MaintenanceConfigurationResourceInner.java
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.appcontainers.models.ScheduledEntry;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Information about the Maintenance Configuration resource.
+ */
+@Fluent
+public final class MaintenanceConfigurationResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ScheduledEntries innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of MaintenanceConfigurationResourceInner class.
+ */
+ public MaintenanceConfigurationResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The resource-specific properties for this resource.
+ *
+ * @return the innerProperties value.
+ */
+ private ScheduledEntries innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the scheduledEntries property: List of maintenance schedules for a managed environment.
+ *
+ * @return the scheduledEntries value.
+ */
+ public List scheduledEntries() {
+ return this.innerProperties() == null ? null : this.innerProperties().scheduledEntries();
+ }
+
+ /**
+ * Set the scheduledEntries property: List of maintenance schedules for a managed environment.
+ *
+ * @param scheduledEntries the scheduledEntries value to set.
+ * @return the MaintenanceConfigurationResourceInner object itself.
+ */
+ public MaintenanceConfigurationResourceInner withScheduledEntries(List scheduledEntries) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScheduledEntries();
+ }
+ this.innerProperties().withScheduledEntries(scheduledEntries);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MaintenanceConfigurationResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MaintenanceConfigurationResourceInner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the MaintenanceConfigurationResourceInner.
+ */
+ public static MaintenanceConfigurationResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MaintenanceConfigurationResourceInner deserializedMaintenanceConfigurationResourceInner
+ = new MaintenanceConfigurationResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedMaintenanceConfigurationResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedMaintenanceConfigurationResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedMaintenanceConfigurationResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedMaintenanceConfigurationResourceInner.innerProperties
+ = ScheduledEntries.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedMaintenanceConfigurationResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMaintenanceConfigurationResourceInner;
+ });
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
index 3bee1a560a9a3..7f21564700a98 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
@@ -388,6 +388,29 @@ public ManagedEnvironmentInner withZoneRedundant(Boolean zoneRedundant) {
return this;
}
+ /**
+ * Get the availabilityZones property: The list of availability zones to use for managed environment.
+ *
+ * @return the availabilityZones value.
+ */
+ public List availabilityZones() {
+ return this.innerProperties() == null ? null : this.innerProperties().availabilityZones();
+ }
+
+ /**
+ * Set the availabilityZones property: The list of availability zones to use for managed environment.
+ *
+ * @param availabilityZones the availabilityZones value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withAvailabilityZones(List availabilityZones) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withAvailabilityZones(availabilityZones);
+ return this;
+ }
+
/**
* Get the customDomainConfiguration property: Custom domain configuration for the environment.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
index a2f8451b0f7f4..1de528cb39724 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
@@ -86,6 +86,11 @@ public final class ManagedEnvironmentProperties implements JsonSerializable availabilityZones;
+
/*
* Custom domain configuration for the environment
*/
@@ -329,6 +334,26 @@ public ManagedEnvironmentProperties withZoneRedundant(Boolean zoneRedundant) {
return this;
}
+ /**
+ * Get the availabilityZones property: The list of availability zones to use for managed environment.
+ *
+ * @return the availabilityZones value.
+ */
+ public List availabilityZones() {
+ return this.availabilityZones;
+ }
+
+ /**
+ * Set the availabilityZones property: The list of availability zones to use for managed environment.
+ *
+ * @param availabilityZones the availabilityZones value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withAvailabilityZones(List availabilityZones) {
+ this.availabilityZones = availabilityZones;
+ return this;
+ }
+
/**
* Get the customDomainConfiguration property: Custom domain configuration for the environment.
*
@@ -570,6 +595,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("appInsightsConfiguration", this.appInsightsConfiguration);
jsonWriter.writeJsonField("openTelemetryConfiguration", this.openTelemetryConfiguration);
jsonWriter.writeBooleanField("zoneRedundant", this.zoneRedundant);
+ jsonWriter.writeArrayField("availabilityZones", this.availabilityZones,
+ (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("customDomainConfiguration", this.customDomainConfiguration);
jsonWriter.writeArrayField("workloadProfiles", this.workloadProfiles,
(writer, element) -> writer.writeJson(element));
@@ -624,6 +651,9 @@ public static ManagedEnvironmentProperties fromJson(JsonReader jsonReader) throw
= OpenTelemetryConfiguration.fromJson(reader);
} else if ("zoneRedundant".equals(fieldName)) {
deserializedManagedEnvironmentProperties.zoneRedundant = reader.getNullable(JsonReader::getBoolean);
+ } else if ("availabilityZones".equals(fieldName)) {
+ List availabilityZones = reader.readArray(reader1 -> reader1.getString());
+ deserializedManagedEnvironmentProperties.availabilityZones = availabilityZones;
} else if ("customDomainConfiguration".equals(fieldName)) {
deserializedManagedEnvironmentProperties.customDomainConfiguration
= CustomDomainConfiguration.fromJson(reader);
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
index 7e1d14ba2e140..ea08945a4b08c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
@@ -16,6 +16,7 @@
import com.azure.resourcemanager.appcontainers.models.Template;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.util.List;
/**
* Container App Revision.
@@ -168,6 +169,15 @@ public Integer trafficWeight() {
return this.innerProperties() == null ? null : this.innerProperties().trafficWeight();
}
+ /**
+ * Get the labels property: List of labels assigned to this revision.
+ *
+ * @return the labels value.
+ */
+ public List labels() {
+ return this.innerProperties() == null ? null : this.innerProperties().labels();
+ }
+
/**
* Get the provisioningError property: Optional Field - Platform Error Message.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java
index 29f8e0525ebb7..355ef71deb210 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionProperties.java
@@ -16,6 +16,7 @@
import com.azure.resourcemanager.appcontainers.models.Template;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.util.List;
/**
* Revision resource specific properties.
@@ -60,6 +61,11 @@ public final class RevisionProperties implements JsonSerializable labels;
+
/*
* Optional Field - Platform Error Message
*/
@@ -153,6 +159,15 @@ public Integer trafficWeight() {
return this.trafficWeight;
}
+ /**
+ * Get the labels property: List of labels assigned to this revision.
+ *
+ * @return the labels value.
+ */
+ public List labels() {
+ return this.labels;
+ }
+
/**
* Get the provisioningError property: Optional Field - Platform Error Message.
*
@@ -240,6 +255,9 @@ public static RevisionProperties fromJson(JsonReader jsonReader) throws IOExcept
deserializedRevisionProperties.replicas = reader.getNullable(JsonReader::getInt);
} else if ("trafficWeight".equals(fieldName)) {
deserializedRevisionProperties.trafficWeight = reader.getNullable(JsonReader::getInt);
+ } else if ("labels".equals(fieldName)) {
+ List labels = reader.readArray(reader1 -> reader1.getString());
+ deserializedRevisionProperties.labels = labels;
} else if ("provisioningError".equals(fieldName)) {
deserializedRevisionProperties.provisioningError = reader.getString();
} else if ("healthState".equals(fieldName)) {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ScheduledEntries.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ScheduledEntries.java
new file mode 100644
index 0000000000000..1eaf540e78fbd
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ScheduledEntries.java
@@ -0,0 +1,109 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.appcontainers.models.ScheduledEntry;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * List of maintenance schedules for a managed environment.
+ */
+@Fluent
+public final class ScheduledEntries implements JsonSerializable {
+ /*
+ * List of maintenance schedules for a managed environment.
+ */
+ private List scheduledEntries;
+
+ /**
+ * Creates an instance of ScheduledEntries class.
+ */
+ public ScheduledEntries() {
+ }
+
+ /**
+ * Get the scheduledEntries property: List of maintenance schedules for a managed environment.
+ *
+ * @return the scheduledEntries value.
+ */
+ public List scheduledEntries() {
+ return this.scheduledEntries;
+ }
+
+ /**
+ * Set the scheduledEntries property: List of maintenance schedules for a managed environment.
+ *
+ * @param scheduledEntries the scheduledEntries value to set.
+ * @return the ScheduledEntries object itself.
+ */
+ public ScheduledEntries withScheduledEntries(List scheduledEntries) {
+ this.scheduledEntries = scheduledEntries;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (scheduledEntries() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property scheduledEntries in model ScheduledEntries"));
+ } else {
+ scheduledEntries().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ScheduledEntries.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("scheduledEntries", this.scheduledEntries,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ScheduledEntries from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ScheduledEntries if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ScheduledEntries.
+ */
+ public static ScheduledEntries fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ScheduledEntries deserializedScheduledEntries = new ScheduledEntries();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("scheduledEntries".equals(fieldName)) {
+ List scheduledEntries
+ = reader.readArray(reader1 -> ScheduledEntry.fromJson(reader1));
+ deserializedScheduledEntries.scheduledEntries = scheduledEntries;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedScheduledEntries;
+ });
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolInner.java
index a75e266bb165c..776eb3e25bcd1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolInner.java
@@ -13,6 +13,8 @@
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.ManagedIdentitySetting;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityAutoGenerated;
import com.azure.resourcemanager.appcontainers.models.PoolManagementType;
import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
@@ -27,6 +29,12 @@
*/
@Fluent
public final class SessionPoolInner extends Resource {
+ /*
+ * Managed identities needed by a session pool to interact with other Azure services to not maintain any secrets or
+ * credentials in code.
+ */
+ private ManagedServiceIdentityAutoGenerated identity;
+
/*
* Container App session pool resource specific properties
*/
@@ -58,6 +66,28 @@ public final class SessionPoolInner extends Resource {
public SessionPoolInner() {
}
+ /**
+ * Get the identity property: Managed identities needed by a session pool to interact with other Azure services to
+ * not maintain any secrets or credentials in code.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentityAutoGenerated identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Managed identities needed by a session pool to interact with other Azure services to
+ * not maintain any secrets or credentials in code.
+ *
+ * @param identity the identity value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withIdentity(ManagedServiceIdentityAutoGenerated identity) {
+ this.identity = identity;
+ return this;
+ }
+
/**
* Get the innerProperties property: Container App session pool resource specific properties.
*
@@ -337,12 +367,40 @@ public SessionPoolProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
+ /**
+ * Get the managedIdentitySettings property: Optional settings for a Managed Identity that is assigned to the
+ * Session pool.
+ *
+ * @return the managedIdentitySettings value.
+ */
+ public List managedIdentitySettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().managedIdentitySettings();
+ }
+
+ /**
+ * Set the managedIdentitySettings property: Optional settings for a Managed Identity that is assigned to the
+ * Session pool.
+ *
+ * @param managedIdentitySettings the managedIdentitySettings value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withManagedIdentitySettings(List managedIdentitySettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionPoolProperties();
+ }
+ this.innerProperties().withManagedIdentitySettings(managedIdentitySettings);
+ return this;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (innerProperties() != null) {
innerProperties().validate();
}
@@ -356,6 +414,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("identity", this.identity);
jsonWriter.writeJsonField("properties", this.innerProperties);
return jsonWriter.writeEndObject();
}
@@ -387,6 +446,8 @@ public static SessionPoolInner fromJson(JsonReader jsonReader) throws IOExceptio
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedSessionPoolInner.withTags(tags);
+ } else if ("identity".equals(fieldName)) {
+ deserializedSessionPoolInner.identity = ManagedServiceIdentityAutoGenerated.fromJson(reader);
} else if ("properties".equals(fieldName)) {
deserializedSessionPoolInner.innerProperties = SessionPoolProperties.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolProperties.java
index 02214a703a37b..b32bd41995dc4 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolProperties.java
@@ -12,6 +12,7 @@
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.ManagedIdentitySetting;
import com.azure.resourcemanager.appcontainers.models.PoolManagementType;
import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
@@ -80,6 +81,11 @@ public final class SessionPoolProperties implements JsonSerializable managedIdentitySettings;
+
/**
* Creates an instance of SessionPoolProperties class.
*/
@@ -276,6 +282,28 @@ public SessionPoolProvisioningState provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the managedIdentitySettings property: Optional settings for a Managed Identity that is assigned to the
+ * Session pool.
+ *
+ * @return the managedIdentitySettings value.
+ */
+ public List managedIdentitySettings() {
+ return this.managedIdentitySettings;
+ }
+
+ /**
+ * Set the managedIdentitySettings property: Optional settings for a Managed Identity that is assigned to the
+ * Session pool.
+ *
+ * @param managedIdentitySettings the managedIdentitySettings value to set.
+ * @return the SessionPoolProperties object itself.
+ */
+ public SessionPoolProperties withManagedIdentitySettings(List managedIdentitySettings) {
+ this.managedIdentitySettings = managedIdentitySettings;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -297,6 +325,9 @@ public void validate() {
if (sessionNetworkConfiguration() != null) {
sessionNetworkConfiguration().validate();
}
+ if (managedIdentitySettings() != null) {
+ managedIdentitySettings().forEach(e -> e.validate());
+ }
}
/**
@@ -314,6 +345,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("dynamicPoolConfiguration", this.dynamicPoolConfiguration);
jsonWriter.writeJsonField("customContainerTemplate", this.customContainerTemplate);
jsonWriter.writeJsonField("sessionNetworkConfiguration", this.sessionNetworkConfiguration);
+ jsonWriter.writeArrayField("managedIdentitySettings", this.managedIdentitySettings,
+ (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -360,6 +393,10 @@ public static SessionPoolProperties fromJson(JsonReader jsonReader) throws IOExc
} else if ("provisioningState".equals(fieldName)) {
deserializedSessionPoolProperties.provisioningState
= SessionPoolProvisioningState.fromString(reader.getString());
+ } else if ("managedIdentitySettings".equals(fieldName)) {
+ List managedIdentitySettings
+ = reader.readArray(reader1 -> ManagedIdentitySetting.fromJson(reader1));
+ deserializedSessionPoolProperties.managedIdentitySettings = managedIdentitySettings;
} else {
reader.skipChildren();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
index 7f84f8f2426b2..c82efd850e8f1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
@@ -89,18 +89,15 @@ public CertificateImpl withExistingConnectedEnvironment(String resourceGroupName
public Certificate create() {
this.innerObject = serviceManager.serviceClient()
.getConnectedEnvironmentsCertificates()
- .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(),
- Context.NONE)
- .getValue();
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(),
+ Context.NONE);
return this;
}
public Certificate create(Context context) {
this.innerObject = serviceManager.serviceClient()
.getConnectedEnvironmentsCertificates()
- .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(),
- context)
- .getValue();
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(), context);
return this;
}
@@ -118,18 +115,15 @@ public CertificateImpl update() {
public Certificate apply() {
this.innerObject = serviceManager.serviceClient()
.getConnectedEnvironmentsCertificates()
- .updateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, updateCertificateEnvelope,
- Context.NONE)
- .getValue();
+ .update(resourceGroupName, connectedEnvironmentName, certificateName, updateCertificateEnvelope,
+ Context.NONE);
return this;
}
public Certificate apply(Context context) {
this.innerObject = serviceManager.serviceClient()
.getConnectedEnvironmentsCertificates()
- .updateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, updateCertificateEnvelope,
- context)
- .getValue();
+ .update(resourceGroupName, connectedEnvironmentName, certificateName, updateCertificateEnvelope, context);
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentDaprComponentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentDaprComponentImpl.java
new file mode 100644
index 0000000000000..38280786752b7
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentDaprComponentImpl.java
@@ -0,0 +1,148 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentDaprComponentInner;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentDaprComponent;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentDaprComponentProperties;
+import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection;
+
+public final class ConnectedEnvironmentDaprComponentImpl implements ConnectedEnvironmentDaprComponent,
+ ConnectedEnvironmentDaprComponent.Definition, ConnectedEnvironmentDaprComponent.Update {
+ private ConnectedEnvironmentDaprComponentInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public ConnectedEnvironmentDaprComponentProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ConnectedEnvironmentDaprComponentInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String connectedEnvironmentName;
+
+ private String componentName;
+
+ public ConnectedEnvironmentDaprComponentImpl withExistingConnectedEnvironment(String resourceGroupName,
+ String connectedEnvironmentName) {
+ this.resourceGroupName = resourceGroupName;
+ this.connectedEnvironmentName = connectedEnvironmentName;
+ return this;
+ }
+
+ public ConnectedEnvironmentDaprComponent create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsDaprComponents()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(),
+ Context.NONE);
+ return this;
+ }
+
+ public ConnectedEnvironmentDaprComponent create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsDaprComponents()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), context);
+ return this;
+ }
+
+ ConnectedEnvironmentDaprComponentImpl(String name,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new ConnectedEnvironmentDaprComponentInner();
+ this.serviceManager = serviceManager;
+ this.componentName = name;
+ }
+
+ public ConnectedEnvironmentDaprComponentImpl update() {
+ return this;
+ }
+
+ public ConnectedEnvironmentDaprComponent apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsDaprComponents()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(),
+ Context.NONE);
+ return this;
+ }
+
+ public ConnectedEnvironmentDaprComponent apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsDaprComponents()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), context);
+ return this;
+ }
+
+ ConnectedEnvironmentDaprComponentImpl(ConnectedEnvironmentDaprComponentInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.connectedEnvironmentName
+ = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "connectedEnvironments");
+ this.componentName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "daprComponents");
+ }
+
+ public ConnectedEnvironmentDaprComponent refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsDaprComponents()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ConnectedEnvironmentDaprComponent refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsDaprComponents()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context)
+ .getValue();
+ return this;
+ }
+
+ public Response listSecretsWithResponse(Context context) {
+ return serviceManager.connectedEnvironmentsDaprComponents()
+ .listSecretsWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context);
+ }
+
+ public DaprSecretsCollection listSecrets() {
+ return serviceManager.connectedEnvironmentsDaprComponents()
+ .listSecrets(resourceGroupName, connectedEnvironmentName, componentName);
+ }
+
+ public ConnectedEnvironmentDaprComponentImpl
+ withProperties(ConnectedEnvironmentDaprComponentProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
index 9b485850e2741..4c60f0891fc0d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
@@ -64,18 +64,14 @@ public ConnectedEnvironmentStorageImpl withExistingConnectedEnvironment(String r
public ConnectedEnvironmentStorage create() {
this.innerObject = serviceManager.serviceClient()
.getConnectedEnvironmentsStorages()
- .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(),
- Context.NONE)
- .getValue();
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), Context.NONE);
return this;
}
public ConnectedEnvironmentStorage create(Context context) {
this.innerObject = serviceManager.serviceClient()
.getConnectedEnvironmentsStorages()
- .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(),
- context)
- .getValue();
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), context);
return this;
}
@@ -93,18 +89,14 @@ public ConnectedEnvironmentStorageImpl update() {
public ConnectedEnvironmentStorage apply() {
this.innerObject = serviceManager.serviceClient()
.getConnectedEnvironmentsStorages()
- .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(),
- Context.NONE)
- .getValue();
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), Context.NONE);
return this;
}
public ConnectedEnvironmentStorage apply(Context context) {
this.innerObject = serviceManager.serviceClient()
.getConnectedEnvironmentsStorages()
- .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(),
- context)
- .getValue();
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), context);
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
index 9e35fe01415c9..1d040b3bb1f79 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
@@ -26,13 +26,19 @@
import com.azure.core.http.rest.PagedResponseBase;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsCertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
import com.azure.resourcemanager.appcontainers.models.CertificateCollection;
import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
@@ -90,9 +96,9 @@ Mono> get(@HostParam("$host") String endpoint,
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> createOrUpdate(@HostParam("$host") String endpoint,
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("connectedEnvironmentName") String connectedEnvironmentName,
@@ -102,9 +108,9 @@ Mono> createOrUpdate(@HostParam("$host") String endpo
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
- @ExpectedResponses({ 200, 204 })
- @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> delete(@HostParam("$host") String endpoint,
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("connectedEnvironmentName") String connectedEnvironmentName,
@@ -113,9 +119,9 @@ Mono> delete(@HostParam("$host") String endpoint,
@Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> update(@HostParam("$host") String endpoint,
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("connectedEnvironmentName") String connectedEnvironmentName,
@@ -419,13 +425,13 @@ public CertificateInner get(String resourceGroupName, String connectedEnvironmen
* @param certificateName Name of the Certificate.
* @param certificateEnvelope Certificate to be created or updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with
* {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
String connectedEnvironmentName, String certificateName, CertificateInner certificateEnvelope) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -467,13 +473,13 @@ private Mono> createOrUpdateWithResponseAsync(String
* @param certificateEnvelope Certificate to be created or updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with
* {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
String connectedEnvironmentName, String certificateName, CertificateInner certificateEnvelope,
Context context) {
if (this.client.getEndpoint() == null) {
@@ -512,8 +518,143 @@ private Mono> createOrUpdateWithResponseAsync(String
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param connectedEnvironmentName Name of the Connected Environment.
* @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 PollerFlux} for polling of certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CertificateInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName,
+ CertificateInner certificateEnvelope) {
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
+ connectedEnvironmentName, certificateName, certificateEnvelope);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ CertificateInner.class, CertificateInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 PollerFlux} for polling of certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CertificateInner>
+ beginCreateOrUpdateAsync(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
+ final CertificateInner certificateEnvelope = null;
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
+ connectedEnvironmentName, certificateName, certificateEnvelope);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ CertificateInner.class, CertificateInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 PollerFlux} for polling of certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CertificateInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String connectedEnvironmentName, String certificateName,
+ CertificateInner certificateEnvelope, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
+ connectedEnvironmentName, certificateName, certificateEnvelope, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ CertificateInner.class, CertificateInner.class, context);
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CertificateInner> beginCreateOrUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName) {
+ final CertificateInner certificateEnvelope = null;
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CertificateInner> beginCreateOrUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, CertificateInner certificateEnvelope,
+ Context context) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope,
+ context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String connectedEnvironmentName,
+ String certificateName, CertificateInner certificateEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName,
+ certificateEnvelope).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment on successful
* completion of {@link Mono}.
@@ -522,8 +663,8 @@ private Mono> createOrUpdateWithResponseAsync(String
private Mono createOrUpdateAsync(String resourceGroupName, String connectedEnvironmentName,
String certificateName) {
final CertificateInner certificateEnvelope = null;
- return createOrUpdateWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName,
- certificateEnvelope).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName,
+ certificateEnvelope).last().flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -535,17 +676,16 @@ private Mono createOrUpdateAsync(String resourceGroupName, Str
* @param certificateEnvelope Certificate to be created or updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with
- * {@link Response}.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateWithResponse(String resourceGroupName,
- String connectedEnvironmentName, String certificateName, CertificateInner certificateEnvelope,
- Context context) {
- return createOrUpdateWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName,
- certificateEnvelope, context).block();
+ private Mono createOrUpdateAsync(String resourceGroupName, String connectedEnvironmentName,
+ String certificateName, CertificateInner certificateEnvelope, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName,
+ certificateEnvelope, context).last().flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -555,7 +695,7 @@ public Response createOrUpdateWithResponse(String resourceGrou
* @param connectedEnvironmentName Name of the Connected Environment.
* @param certificateName Name of the Certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
*/
@@ -563,8 +703,28 @@ public Response createOrUpdateWithResponse(String resourceGrou
public CertificateInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName,
String certificateName) {
final CertificateInner certificateEnvelope = null;
- return createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName,
- certificateEnvelope, Context.NONE).getValue();
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .block();
+ }
+
+ /**
+ * Create or Update a Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName,
+ String certificateName, CertificateInner certificateEnvelope, Context context) {
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope,
+ context).block();
}
/**
@@ -574,13 +734,13 @@ public CertificateInner createOrUpdate(String resourceGroupName, String connecte
* @param connectedEnvironmentName Name of the Connected Environment.
* @param certificateName Name of the Certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String connectedEnvironmentName,
- String certificateName) {
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -617,13 +777,13 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
* @param certificateName Name of the Certificate.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String connectedEnvironmentName,
- String certificateName, Context context) {
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -657,14 +817,92 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
* @param connectedEnvironmentName Name of the Connected Environment.
* @param certificateName Name of the Certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String connectedEnvironmentName,
+ String certificateName) {
+ return this.beginDeleteAsync(resourceGroupName, connectedEnvironmentName, certificateName).getSyncPoller();
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String connectedEnvironmentName,
+ String certificateName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, connectedEnvironmentName, certificateName, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
- return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName)
- .flatMap(ignored -> Mono.empty());
+ return beginDeleteAsync(resourceGroupName, connectedEnvironmentName, certificateName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -675,14 +913,15 @@ private Mono deleteAsync(String resourceGroupName, String connectedEnviron
* @param certificateName Name of the Certificate.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 Response}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(String resourceGroupName, String connectedEnvironmentName,
- String certificateName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName, context).block();
+ private Mono deleteAsync(String resourceGroupName, String connectedEnvironmentName, String certificateName,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, connectedEnvironmentName, certificateName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -692,12 +931,29 @@ public Response deleteWithResponse(String resourceGroupName, String connec
* @param connectedEnvironmentName Name of the Connected Environment.
* @param certificateName Name of the Certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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)
public void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
- deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE);
+ deleteAsync(resourceGroupName, connectedEnvironmentName, certificateName).block();
+ }
+
+ /**
+ * Deletes the specified Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName,
+ Context context) {
+ deleteAsync(resourceGroupName, connectedEnvironmentName, certificateName, context).block();
}
/**
@@ -710,13 +966,13 @@ public void delete(String resourceGroupName, String connectedEnvironmentName, St
* @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with
* {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(String resourceGroupName,
+ private Mono>> updateWithResponseAsync(String resourceGroupName,
String connectedEnvironmentName, String certificateName, CertificatePatch certificateEnvelope) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -763,13 +1019,13 @@ private Mono> updateWithResponseAsync(String resource
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with
* {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(String resourceGroupName,
+ private Mono>> updateWithResponseAsync(String resourceGroupName,
String connectedEnvironmentName, String certificateName, CertificatePatch certificateEnvelope,
Context context) {
if (this.client.getEndpoint() == null) {
@@ -815,7 +1071,106 @@ private Mono> updateWithResponseAsync(String resource
* @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 PollerFlux} for polling of certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CertificateInner> beginUpdateAsync(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, CertificatePatch certificateEnvelope) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, connectedEnvironmentName,
+ certificateName, certificateEnvelope);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ CertificateInner.class, CertificateInner.class, this.client.getContext());
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 PollerFlux} for polling of certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CertificateInner> beginUpdateAsync(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, CertificatePatch certificateEnvelope,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, connectedEnvironmentName,
+ certificateName, certificateEnvelope, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ CertificateInner.class, CertificateInner.class, context);
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CertificateInner> beginUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, CertificatePatch certificateEnvelope) {
+ return this.beginUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 certificate used for Custom Domain bindings of Container Apps in a
+ * Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CertificateInner> beginUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String certificateName, CertificatePatch certificateEnvelope,
+ Context context) {
+ return this
+ .beginUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope,
+ context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment on successful
* completion of {@link Mono}.
@@ -823,8 +1178,9 @@ private Mono> updateWithResponseAsync(String resource
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String connectedEnvironmentName,
String certificateName, CertificatePatch certificateEnvelope) {
- return updateWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName,
- certificateEnvelope).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ return beginUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -838,16 +1194,16 @@ private Mono updateAsync(String resourceGroupName, String conn
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment along with
- * {@link Response}.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(String resourceGroupName, String connectedEnvironmentName,
+ private Mono updateAsync(String resourceGroupName, String connectedEnvironmentName,
String certificateName, CertificatePatch certificateEnvelope, Context context) {
- return updateWithResponseAsync(resourceGroupName, connectedEnvironmentName, certificateName,
- certificateEnvelope, context).block();
+ return beginUpdateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope,
+ context).last().flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -860,15 +1216,36 @@ public Response updateWithResponse(String resourceGroupName, S
* @param certificateName Name of the Certificate.
* @param certificateEnvelope Properties of a certificate that need to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public CertificateInner update(String resourceGroupName, String connectedEnvironmentName, String certificateName,
CertificatePatch certificateEnvelope) {
- return updateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope,
- Context.NONE).getValue();
+ return updateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope).block();
+ }
+
+ /**
+ * Update properties of a certificate
+ *
+ * Patches a certificate. Currently only patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the Connected Environment.
+ * @param certificateName Name of the Certificate.
+ * @param certificateEnvelope Properties of a certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return certificate used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateInner update(String resourceGroupName, String connectedEnvironmentName, String certificateName,
+ CertificatePatch certificateEnvelope, Context context) {
+ return updateAsync(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context)
+ .block();
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
index bbe34b1865dd2..cb5215fbc180b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
@@ -59,16 +59,15 @@ public Certificate get(String resourceGroupName, String connectedEnvironmentName
}
}
- public Response deleteWithResponse(String resourceGroupName, String connectedEnvironmentName,
- String certificateName, Context context) {
- return this.serviceClient()
- .deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
- }
-
public void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
this.serviceClient().delete(resourceGroupName, connectedEnvironmentName, certificateName);
}
+ public void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName,
+ Context context) {
+ this.serviceClient().delete(resourceGroupName, connectedEnvironmentName, certificateName, context);
+ }
+
public Certificate getById(String id) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
@@ -124,10 +123,10 @@ public void deleteById(String id) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
}
- this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE);
+ this.delete(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
+ public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
@@ -143,7 +142,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
}
- return this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
+ this.delete(resourceGroupName, connectedEnvironmentName, certificateName, context);
}
private ConnectedEnvironmentsCertificatesClient serviceClient() {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
index 72cf1b79d7471..461f9d21f48ac 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
@@ -26,13 +26,19 @@
import com.azure.core.http.rest.PagedResponseBase;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsDaprComponentsClient;
-import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentDaprComponentInner;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
-import com.azure.resourcemanager.appcontainers.models.DaprComponentsCollection;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentDaprComponentsCollection;
import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
@@ -71,7 +77,7 @@ public interface ConnectedEnvironmentsDaprComponentsService {
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ Mono> list(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("connectedEnvironmentName") String connectedEnvironmentName,
@@ -81,7 +87,7 @@ Mono> list(@HostParam("$host") String endpoin
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("connectedEnvironmentName") String connectedEnvironmentName,
@@ -90,21 +96,21 @@ Mono> get(@HostParam("$host") String endpoint,
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> createOrUpdate(@HostParam("$host") String endpoint,
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("connectedEnvironmentName") String connectedEnvironmentName,
@PathParam("componentName") String componentName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DaprComponentInner daprComponentEnvelope,
+ @BodyParam("application/json") ConnectedEnvironmentDaprComponentInner daprComponentEnvelope,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}")
- @ExpectedResponses({ 200, 204 })
- @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> delete(@HostParam("$host") String endpoint,
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("connectedEnvironmentName") String connectedEnvironmentName,
@@ -126,7 +132,7 @@ Mono> listSecrets(@HostParam("$host") Strin
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
- Mono> listNext(
+ Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
@@ -143,7 +149,7 @@ Mono> listNext(
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
+ private Mono> listSinglePageAsync(String resourceGroupName,
String connectedEnvironmentName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -165,7 +171,7 @@ private Mono> listSinglePageAsync(String resou
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
resourceGroupName, connectedEnvironmentName, this.client.getApiVersion(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -183,7 +189,7 @@ private Mono> listSinglePageAsync(String resou
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
+ private Mono> listSinglePageAsync(String resourceGroupName,
String connectedEnvironmentName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -221,7 +227,8 @@ private Mono> listSinglePageAsync(String resou
* @return the Dapr Components for a connected environment as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String connectedEnvironmentName) {
+ private PagedFlux listAsync(String resourceGroupName,
+ String connectedEnvironmentName) {
return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, connectedEnvironmentName),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -238,8 +245,8 @@ private PagedFlux listAsync(String resourceGroupName, String
* @return the Dapr Components for a connected environment as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String connectedEnvironmentName,
- Context context) {
+ private PagedFlux listAsync(String resourceGroupName,
+ String connectedEnvironmentName, Context context) {
return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, connectedEnvironmentName, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
@@ -255,7 +262,8 @@ private PagedFlux listAsync(String resourceGroupName, String
* @return the Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String connectedEnvironmentName) {
+ public PagedIterable list(String resourceGroupName,
+ String connectedEnvironmentName) {
return new PagedIterable<>(listAsync(resourceGroupName, connectedEnvironmentName));
}
@@ -271,8 +279,8 @@ public PagedIterable list(String resourceGroupName, String c
* @return the Dapr Components for a connected environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String connectedEnvironmentName,
- Context context) {
+ public PagedIterable list(String resourceGroupName,
+ String connectedEnvironmentName, Context context) {
return new PagedIterable<>(listAsync(resourceGroupName, connectedEnvironmentName, context));
}
@@ -288,7 +296,7 @@ public PagedIterable list(String resourceGroupName, String c
* @return a dapr component along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
+ private Mono> getWithResponseAsync(String resourceGroupName,
String connectedEnvironmentName, String componentName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -330,7 +338,7 @@ private Mono> getWithResponseAsync(String resourceG
* @return a dapr component along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
+ private Mono> getWithResponseAsync(String resourceGroupName,
String connectedEnvironmentName, String componentName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -369,8 +377,8 @@ private Mono> getWithResponseAsync(String resourceG
* @return a dapr component on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String connectedEnvironmentName,
- String componentName) {
+ private Mono getAsync(String resourceGroupName,
+ String connectedEnvironmentName, String componentName) {
return getWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -388,8 +396,8 @@ private Mono getAsync(String resourceGroupName, String conne
* @return a dapr component along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String connectedEnvironmentName,
- String componentName, Context context) {
+ public Response getWithResponse(String resourceGroupName,
+ String connectedEnvironmentName, String componentName, Context context) {
return getWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName, context).block();
}
@@ -405,7 +413,8 @@ public Response getWithResponse(String resourceGroupName, St
* @return a dapr component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public DaprComponentInner get(String resourceGroupName, String connectedEnvironmentName, String componentName) {
+ public ConnectedEnvironmentDaprComponentInner get(String resourceGroupName, String connectedEnvironmentName,
+ String componentName) {
return getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, Context.NONE).getValue();
}
@@ -419,13 +428,14 @@ public DaprComponentInner get(String resourceGroupName, String connectedEnvironm
* @param componentName Name of the Dapr Component.
* @param daprComponentEnvelope Configuration details of the Dapr Component.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return dapr Component along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
- String connectedEnvironmentName, String componentName, DaprComponentInner daprComponentEnvelope) {
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -470,14 +480,14 @@ private Mono> createOrUpdateWithResponseAsync(Strin
* @param daprComponentEnvelope Configuration details of the Dapr Component.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return dapr Component along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
- String connectedEnvironmentName, String componentName, DaprComponentInner daprComponentEnvelope,
- Context context) {
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -520,15 +530,116 @@ private Mono> createOrUpdateWithResponseAsync(Strin
* @param componentName Name of the Dapr Component.
* @param daprComponentEnvelope Configuration details of the Dapr Component.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 PollerFlux} for polling of dapr Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ConnectedEnvironmentDaprComponentInner>
+ beginCreateOrUpdateAsync(String resourceGroupName, String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope) {
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
+ connectedEnvironmentName, componentName, daprComponentEnvelope);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), ConnectedEnvironmentDaprComponentInner.class,
+ ConnectedEnvironmentDaprComponentInner.class, this.client.getContext());
+ }
+
+ /**
+ * Creates or updates a Dapr Component.
+ *
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 PollerFlux} for polling of dapr Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ConnectedEnvironmentDaprComponentInner>
+ beginCreateOrUpdateAsync(String resourceGroupName, String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName,
+ connectedEnvironmentName, componentName, daprComponentEnvelope, context);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), ConnectedEnvironmentDaprComponentInner.class,
+ ConnectedEnvironmentDaprComponentInner.class, context);
+ }
+
+ /**
+ * Creates or updates a Dapr Component.
+ *
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 dapr Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ConnectedEnvironmentDaprComponentInner>
+ beginCreateOrUpdate(String resourceGroupName, String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope)
+ .getSyncPoller();
+ }
+
+ /**
+ * Creates or updates a Dapr Component.
+ *
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 dapr Component.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ConnectedEnvironmentDaprComponentInner>
+ beginCreateOrUpdate(String resourceGroupName, String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope, Context context) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope,
+ context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Creates or updates a Dapr Component.
+ *
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return dapr Component on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String connectedEnvironmentName,
- String componentName, DaprComponentInner daprComponentEnvelope) {
- return createOrUpdateWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName,
- daprComponentEnvelope).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ private Mono createOrUpdateAsync(String resourceGroupName,
+ String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, componentName,
+ daprComponentEnvelope).last().flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -542,16 +653,16 @@ private Mono createOrUpdateAsync(String resourceGroupName, S
* @param daprComponentEnvelope Configuration details of the Dapr Component.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dapr Component along with {@link Response}.
+ * @return dapr Component on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateWithResponse(String resourceGroupName,
- String connectedEnvironmentName, String componentName, DaprComponentInner daprComponentEnvelope,
- Context context) {
- return createOrUpdateWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName,
- daprComponentEnvelope, context).block();
+ private Mono createOrUpdateAsync(String resourceGroupName,
+ String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, componentName,
+ daprComponentEnvelope, context).last().flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -564,15 +675,39 @@ public Response createOrUpdateWithResponse(String resourceGr
* @param componentName Name of the Dapr Component.
* @param daprComponentEnvelope Configuration details of the Dapr Component.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr Component.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConnectedEnvironmentDaprComponentInner createOrUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope) {
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope)
+ .block();
+ }
+
+ /**
+ * Creates or updates a Dapr Component.
+ *
+ * Creates or updates a Dapr Component in a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param daprComponentEnvelope Configuration details of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return dapr Component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public DaprComponentInner createOrUpdate(String resourceGroupName, String connectedEnvironmentName,
- String componentName, DaprComponentInner daprComponentEnvelope) {
- return createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, componentName,
- daprComponentEnvelope, Context.NONE).getValue();
+ public ConnectedEnvironmentDaprComponentInner createOrUpdate(String resourceGroupName,
+ String connectedEnvironmentName, String componentName,
+ ConnectedEnvironmentDaprComponentInner daprComponentEnvelope, Context context) {
+ return createOrUpdateAsync(resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope,
+ context).block();
}
/**
@@ -584,13 +719,13 @@ public DaprComponentInner createOrUpdate(String resourceGroupName, String connec
* @param connectedEnvironmentName Name of the connected environment.
* @param componentName Name of the Dapr Component.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String connectedEnvironmentName,
- String componentName) {
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String connectedEnvironmentName, String componentName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -628,13 +763,13 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
* @param componentName Name of the Dapr Component.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String connectedEnvironmentName,
- String componentName, Context context) {
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String connectedEnvironmentName, String componentName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -669,14 +804,100 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
* @param connectedEnvironmentName Name of the connected environment.
* @param componentName Name of the Dapr Component.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
+ String connectedEnvironmentName, String componentName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a Dapr Component.
+ *
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
+ String connectedEnvironmentName, String componentName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Delete a Dapr Component.
+ *
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String connectedEnvironmentName,
+ String componentName) {
+ return this.beginDeleteAsync(resourceGroupName, connectedEnvironmentName, componentName).getSyncPoller();
+ }
+
+ /**
+ * Delete a Dapr Component.
+ *
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String connectedEnvironmentName,
+ String componentName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, connectedEnvironmentName, componentName, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Delete a Dapr Component.
+ *
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String connectedEnvironmentName, String componentName) {
- return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName)
- .flatMap(ignored -> Mono.empty());
+ return beginDeleteAsync(resourceGroupName, connectedEnvironmentName, componentName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -689,14 +910,15 @@ private Mono deleteAsync(String resourceGroupName, String connectedEnviron
* @param componentName Name of the Dapr Component.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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 Response}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(String resourceGroupName, String connectedEnvironmentName,
- String componentName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, connectedEnvironmentName, componentName, context).block();
+ private Mono deleteAsync(String resourceGroupName, String connectedEnvironmentName, String componentName,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, connectedEnvironmentName, componentName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -708,12 +930,31 @@ public Response deleteWithResponse(String resourceGroupName, String connec
* @param connectedEnvironmentName Name of the connected environment.
* @param componentName Name of the Dapr Component.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws 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)
public void delete(String resourceGroupName, String connectedEnvironmentName, String componentName) {
- deleteWithResponse(resourceGroupName, connectedEnvironmentName, componentName, Context.NONE);
+ deleteAsync(resourceGroupName, connectedEnvironmentName, componentName).block();
+ }
+
+ /**
+ * Delete a Dapr Component.
+ *
+ * Delete a Dapr Component from a connected environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param connectedEnvironmentName Name of the connected environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public void delete(String resourceGroupName, String connectedEnvironmentName, String componentName,
+ Context context) {
+ deleteAsync(resourceGroupName, connectedEnvironmentName, componentName, context).block();
}
/**
@@ -861,10 +1102,11 @@ public DaprSecretsCollectionInner listSecrets(String resourceGroupName, String c
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dapr Components ARM resource along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return collection of Dapr Components for Environments along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listNextSinglePageAsync(String nextLink) {
+ private Mono> listNextSinglePageAsync(String nextLink) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -874,7 +1116,7 @@ private Mono