diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
index 2d8837938fff..a8fe772df229 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.8 (Unreleased)
+## 1.0.0-beta.1 (2024-05-23)
+
+- 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-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
index 59a801fc4d04..7867a4afb7f2 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ContainerAppsApi client library for Java.
-This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-preview-2023-11. 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-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-appcontainers
- 1.0.0-beta.7
+ 1.0.0-beta.8
```
[//]: # ({x-version-update-end})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
index bb9e2e0bf3b2..9d55f7bc0e37 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
@@ -102,6 +102,15 @@
- [Get](#containerappsauthconfigs_get)
- [ListByContainerApp](#containerappsauthconfigs_listbycontainerapp)
+## ContainerAppsBuilds
+
+- [Delete](#containerappsbuilds_delete)
+- [Get](#containerappsbuilds_get)
+
+## ContainerAppsBuildsByContainerApp
+
+- [List](#containerappsbuildsbycontainerapp_list)
+
## ContainerAppsDiagnostics
- [GetDetector](#containerappsdiagnostics_getdetector)
@@ -110,6 +119,14 @@
- [ListDetectors](#containerappsdiagnostics_listdetectors)
- [ListRevisions](#containerappsdiagnostics_listrevisions)
+## ContainerAppsPatches
+
+- [Apply](#containerappspatches_apply)
+- [Delete](#containerappspatches_delete)
+- [Get](#containerappspatches_get)
+- [ListByContainerApp](#containerappspatches_listbycontainerapp)
+- [SkipConfigure](#containerappspatches_skipconfigure)
+
## ContainerAppsRevisionReplicas
- [GetReplica](#containerappsrevisionreplicas_getreplica)
@@ -123,6 +140,15 @@
- [ListRevisions](#containerappsrevisions_listrevisions)
- [RestartRevision](#containerappsrevisions_restartrevision)
+## ContainerAppsSessionPools
+
+- [CreateOrUpdate](#containerappssessionpools_createorupdate)
+- [Delete](#containerappssessionpools_delete)
+- [GetByResourceGroup](#containerappssessionpools_getbyresourcegroup)
+- [List](#containerappssessionpools_list)
+- [ListByResourceGroup](#containerappssessionpools_listbyresourcegroup)
+- [Update](#containerappssessionpools_update)
+
## ContainerAppsSourceControls
- [CreateOrUpdate](#containerappssourcecontrols_createorupdate)
@@ -160,6 +186,10 @@
- [List](#dotnetcomponents_list)
- [Update](#dotnetcomponents_update)
+## FunctionsExtension
+
+- [InvokeFunctionsHost](#functionsextension_invokefunctionshost)
+
## JavaComponents
- [CreateOrUpdate](#javacomponents_createorupdate)
@@ -201,6 +231,17 @@
- [GetDetector](#managedenvironmentdiagnostics_getdetector)
- [ListDetectors](#managedenvironmentdiagnostics_listdetectors)
+## ManagedEnvironmentPrivateEndpointConnections
+
+- [CreateOrUpdate](#managedenvironmentprivateendpointconnections_createorupdate)
+- [Delete](#managedenvironmentprivateendpointconnections_delete)
+- [Get](#managedenvironmentprivateendpointconnections_get)
+- [List](#managedenvironmentprivateendpointconnections_list)
+
+## ManagedEnvironmentPrivateLinkResources
+
+- [List](#managedenvironmentprivatelinkresources_list)
+
## ManagedEnvironmentUsages
- [List](#managedenvironmentusages_list)
@@ -260,9 +301,7 @@ import java.util.Arrays;
*/
public final class AppResiliencyCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/AppResiliency_CreateOrUpdate
- * .json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update App Resiliency.
@@ -271,20 +310,27 @@ public final class AppResiliencyCreateOrUpdateSamples {
*/
public static void
createOrUpdateAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.appResiliencies().define("resiliency-policy-1").withExistingContainerApp("rg", "testcontainerApp0")
+ manager.appResiliencies()
+ .define("resiliency-policy-1")
+ .withExistingContainerApp("rg", "testcontainerApp0")
.withTimeoutPolicy(new TimeoutPolicy().withResponseTimeoutInSeconds(15).withConnectionTimeoutInSeconds(5))
- .withHttpRetryPolicy(new HttpRetryPolicy().withMaxRetries(5).withInitialDelayInMilliseconds(1000L)
- .withMaxIntervalInMilliseconds(10000L)
- .withHeaders(
- Arrays.asList(new HeaderMatch().withHeaderProperty("X-Content-Type").withPrefixMatch("GOATS")))
- .withHttpStatusCodes(Arrays.asList(502, 503)).withErrors(
- Arrays.asList("5xx", "connect-failure", "reset", "retriable-headers", "retriable-status-codes")))
+ .withHttpRetryPolicy(
+ new HttpRetryPolicy().withMaxRetries(5)
+ .withInitialDelayInMilliseconds(1000L)
+ .withMaxIntervalInMilliseconds(10000L)
+ .withHeaders(
+ Arrays.asList(new HeaderMatch().withHeaderProperty("X-Content-Type").withPrefixMatch("GOATS")))
+ .withHttpStatusCodes(Arrays.asList(502, 503))
+ .withErrors(Arrays.asList("5xx", "connect-failure", "reset", "retriable-headers",
+ "retriable-status-codes")))
.withTcpRetryPolicy(new TcpRetryPolicy().withMaxConnectAttempts(3))
- .withCircuitBreakerPolicy(new CircuitBreakerPolicy().withConsecutiveErrors(5).withIntervalInSeconds(10)
+ .withCircuitBreakerPolicy(new CircuitBreakerPolicy().withConsecutiveErrors(5)
+ .withIntervalInSeconds(10)
.withMaxEjectionPercent(50))
.withHttpConnectionPool(
new HttpConnectionPool().withHttp1MaxPendingRequests(1024).withHttp2MaxRequests(1024))
- .withTcpConnectionPool(new TcpConnectionPool().withMaxConnections(100)).create();
+ .withTcpConnectionPool(new TcpConnectionPool().withMaxConnections(100))
+ .create();
}
}
```
@@ -297,8 +343,7 @@ public final class AppResiliencyCreateOrUpdateSamples {
*/
public final class AppResiliencyDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/AppResiliency_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Delete.json
*/
/**
* Sample code: Delete App Resiliency.
@@ -306,8 +351,8 @@ public final class AppResiliencyDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.appResiliencies().deleteWithResponse("rg", "testcontainerApp0", "resiliency-policy-1",
- com.azure.core.util.Context.NONE);
+ manager.appResiliencies()
+ .deleteWithResponse("rg", "testcontainerApp0", "resiliency-policy-1", com.azure.core.util.Context.NONE);
}
}
```
@@ -320,8 +365,7 @@ public final class AppResiliencyDeleteSamples {
*/
public final class AppResiliencyGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/AppResiliency_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Get.json
*/
/**
* Sample code: Get App Resiliency.
@@ -329,8 +373,8 @@ public final class AppResiliencyGetSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getAppResiliency(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.appResiliencies().getWithResponse("rg", "testcontainerApp0", "resiliency-policy-1",
- com.azure.core.util.Context.NONE);
+ manager.appResiliencies()
+ .getWithResponse("rg", "testcontainerApp0", "resiliency-policy-1", com.azure.core.util.Context.NONE);
}
}
```
@@ -343,8 +387,7 @@ public final class AppResiliencyGetSamples {
*/
public final class AppResiliencyListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/AppResiliency_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_List.json
*/
/**
* Sample code: List App Resiliency.
@@ -368,8 +411,7 @@ import com.azure.resourcemanager.appcontainers.models.TimeoutPolicy;
*/
public final class AppResiliencyUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/AppResiliency_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Patch.json
*/
/**
* Sample code: Update App Resiliency.
@@ -395,8 +437,7 @@ public final class AppResiliencyUpdateSamples {
*/
public final class AvailableWorkloadProfilesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * AvailableWorkloadProfiles_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AvailableWorkloadProfiles_Get.json
*/
/**
* Sample code: BillingMeters_Get.
@@ -417,8 +458,7 @@ public final class AvailableWorkloadProfilesGetSamples {
*/
public final class BillingMetersGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/BillingMeters_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/BillingMeters_Get.json
*/
/**
* Sample code: BillingMeters_Get.
@@ -439,8 +479,7 @@ public final class BillingMetersGetSamples {
*/
public final class BuildAuthTokenListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builds_ListAuthToken.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_ListAuthToken.json
*/
/**
* Sample code: Get Build Auth Token.
@@ -469,8 +508,7 @@ import java.util.Map;
*/
public final class BuildersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builders_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_CreateOrUpdate.json
*/
/**
* Sample code: Builders_CreateOrUpdate_0.
@@ -479,7 +517,10 @@ public final class BuildersCreateOrUpdateSamples {
*/
public static void
buildersCreateOrUpdate0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builders().define("testBuilder").withRegion("eastus").withExistingResourceGroup("rg")
+ manager.builders()
+ .define("testBuilder")
+ .withRegion("eastus")
+ .withExistingResourceGroup("rg")
.withTags(mapOf("company", "Microsoft"))
.withIdentity(new ManagedServiceIdentity()
.withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
@@ -488,11 +529,13 @@ public final class BuildersCreateOrUpdateSamples {
new UserAssignedIdentity())))
.withEnvironmentId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv")
- .withContainerRegistries(Arrays.asList(
- new ContainerRegistry().withContainerRegistryServer("test.azurecr.io").withIdentityResourceId(
+ .withContainerRegistries(Arrays.asList(new ContainerRegistry()
+ .withContainerRegistryServer("test.azurecr.io")
+ .withIdentityResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"),
- new ContainerRegistry().withContainerRegistryServer("test2.azurecr.io").withIdentityResourceId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")))
+ new ContainerRegistry().withContainerRegistryServer("test2.azurecr.io")
+ .withIdentityResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")))
.create();
}
@@ -518,8 +561,7 @@ public final class BuildersCreateOrUpdateSamples {
*/
public final class BuildersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builders_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Delete.json
*/
/**
* Sample code: Builders_Delete_0.
@@ -540,8 +582,7 @@ public final class BuildersDeleteSamples {
*/
public final class BuildersGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builders_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Get.json
*/
/**
* Sample code: Builders_Get_0.
@@ -562,9 +603,7 @@ public final class BuildersGetByResourceGroupSamples {
*/
public final class BuildersListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builders_ListBySubscription.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_ListBySubscription.json
*/
/**
* Sample code: Builders_ListBySubscription_0.
@@ -586,9 +625,7 @@ public final class BuildersListSamples {
*/
public final class BuildersListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builders_ListByResourceGroup
- * .json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_ListByResourceGroup.json
*/
/**
* Sample code: Builders_ListByResourceGroup_0.
@@ -614,8 +651,7 @@ import java.util.Map;
*/
public final class BuildersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builders_Update.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Update.json
*/
/**
* Sample code: Builders_Update_0.
@@ -624,7 +660,8 @@ public final class BuildersUpdateSamples {
*/
public static void buildersUpdate0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
BuilderResource resource = manager.builders()
- .getByResourceGroupWithResponse("rg", "testBuilder", com.azure.core.util.Context.NONE).getValue();
+ .getByResourceGroupWithResponse("rg", "testBuilder", com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withTags(mapOf("mytag1", "myvalue1")).apply();
}
@@ -657,8 +694,7 @@ import java.util.Arrays;
*/
public final class BuildsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builds_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_CreateOrUpdate.json
*/
/**
* Sample code: Builds_CreateOrUpdate_WithConfig.
@@ -667,30 +703,32 @@ public final class BuildsCreateOrUpdateSamples {
*/
public static void
buildsCreateOrUpdateWithConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.builds().define("testBuild-123456789az").withExistingBuilder("rg", "testBuilder")
+ manager.builds()
+ .define("testBuild-123456789az")
+ .withExistingBuilder("rg", "testBuilder")
.withDestinationContainerRegistry(new ContainerRegistryWithCustomImage().withServer("test.azurecr.io")
.withImage("test.azurecr.io/repo:tag"))
- .withConfiguration(
- new BuildConfiguration().withBaseOs("DebianBullseye").withPlatform("dotnetcore")
- .withPlatformVersion("7.0")
- .withEnvironmentVariables(
- Arrays.asList(new EnvironmentVariable().withName("foo1").withValue("bar1"),
- new EnvironmentVariable().withName("foo2").withValue("bar2")))
- .withPreBuildSteps(Arrays.asList(
- new PreBuildStep().withDescription("First pre build step.")
- .withScripts(Arrays.asList("echo 'hello'", "echo 'world'"))
- .withHttpGet(new HttpGet().withUrl("https://microsoft.com").withFileName("output.txt")
- .withHeaders(Arrays.asList("foo", "bar"))),
- new PreBuildStep().withDescription("Second pre build step.")
- .withScripts(Arrays.asList("echo 'hello'", "echo 'again'"))
- .withHttpGet(new HttpGet().withUrl("https://microsoft.com").withFileName("output.txt")
- .withHeaders(Arrays.asList("foo"))))))
+ .withConfiguration(new BuildConfiguration().withBaseOs("DebianBullseye")
+ .withPlatform("dotnetcore")
+ .withPlatformVersion("7.0")
+ .withEnvironmentVariables(Arrays.asList(new EnvironmentVariable().withName("foo1").withValue("bar1"),
+ new EnvironmentVariable().withName("foo2").withValue("bar2")))
+ .withPreBuildSteps(Arrays.asList(
+ new PreBuildStep().withDescription("First pre build step.")
+ .withScripts(Arrays.asList("echo 'hello'", "echo 'world'"))
+ .withHttpGet(new HttpGet().withUrl("https://microsoft.com")
+ .withFileName("output.txt")
+ .withHeaders(Arrays.asList("foo", "bar"))),
+ new PreBuildStep().withDescription("Second pre build step.")
+ .withScripts(Arrays.asList("echo 'hello'", "echo 'again'"))
+ .withHttpGet(new HttpGet().withUrl("https://microsoft.com")
+ .withFileName("output.txt")
+ .withHeaders(Arrays.asList("foo"))))))
.create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * Builds_CreateOrUpdate_NoConfig.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json
*/
/**
* Sample code: Builds_CreateOrUpdate_NoConfig.
@@ -712,8 +750,7 @@ public final class BuildsCreateOrUpdateSamples {
*/
public final class BuildsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builds_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_Delete.json
*/
/**
* Sample code: Builds_Delete_0.
@@ -734,8 +771,7 @@ public final class BuildsDeleteSamples {
*/
public final class BuildsGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builds_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_Get.json
*/
/**
* Sample code: Builds_Get_0.
@@ -756,9 +792,7 @@ public final class BuildsGetSamples {
*/
public final class BuildsByBuilderResourceListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Builds_ListByBuilderResource
- * .json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_ListByBuilderResource.json
*/
/**
* Sample code: Builds_ListByBuilderResource_0.
@@ -785,8 +819,7 @@ import com.azure.resourcemanager.appcontainers.models.CertificateType;
*/
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * Certificate_CreateOrUpdate_FromKeyVault.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_CreateOrUpdate_FromKeyVault.json
*/
/**
* Sample code: Create or Update Certificate using Managed Identity.
@@ -795,19 +828,19 @@ public final class CertificatesCreateOrUpdateSamples {
*/
public static void createOrUpdateCertificateUsingManagedIdentity(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates().createOrUpdateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- new CertificateInner().withLocation("East US").withProperties(new CertificateProperties()
- .withCertificateKeyVaultProperties(new CertificateKeyVaultProperties().withIdentity(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi")
- .withKeyVaultUrl("fakeTokenPlaceholder"))
- .withCertificateType(CertificateType.SERVER_SSLCERTIFICATE)),
- com.azure.core.util.Context.NONE);
+ manager.certificates()
+ .createOrUpdateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ new CertificateInner().withLocation("East US")
+ .withProperties(new CertificateProperties()
+ .withCertificateKeyVaultProperties(new CertificateKeyVaultProperties().withIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi")
+ .withKeyVaultUrl("fakeTokenPlaceholder"))
+ .withCertificateType(CertificateType.SERVER_SSLCERTIFICATE)),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Certificate_CreateOrUpdate.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
@@ -816,11 +849,13 @@ public final class CertificatesCreateOrUpdateSamples {
*/
public static void
createOrUpdateCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates().createOrUpdateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- new CertificateInner().withLocation("East US")
- .withProperties(new CertificateProperties().withPassword("fakeTokenPlaceholder")
- .withValue("Y2VydA==".getBytes()).withCertificateType(CertificateType.IMAGE_PULL_TRUSTED_CA)),
- com.azure.core.util.Context.NONE);
+ manager.certificates()
+ .createOrUpdateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ new CertificateInner().withLocation("East US")
+ .withProperties(new CertificateProperties().withPassword("fakeTokenPlaceholder")
+ .withValue("Y2VydA==".getBytes())
+ .withCertificateType(CertificateType.IMAGE_PULL_TRUSTED_CA)),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -833,8 +868,7 @@ public final class CertificatesCreateOrUpdateSamples {
*/
public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Certificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -842,8 +876,9 @@ public final class CertificatesDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates().deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- com.azure.core.util.Context.NONE);
+ manager.certificates()
+ .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -856,8 +891,7 @@ public final class CertificatesDeleteSamples {
*/
public final class CertificatesGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Certificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -865,8 +899,9 @@ public final class CertificatesGetSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates().getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- com.azure.core.util.Context.NONE);
+ manager.certificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -879,8 +914,7 @@ public final class CertificatesGetSamples {
*/
public final class CertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * Certificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificates_ListByManagedEnvironment.json
*/
/**
* Sample code: List Certificates by Managed Environment.
@@ -906,8 +940,7 @@ import java.util.Map;
*/
public final class CertificatesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Certificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -915,9 +948,10 @@ public final class CertificatesUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.certificates().updateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- new CertificatePatch().withTags(mapOf("tag1", "value1", "tag2", "value2")),
- com.azure.core.util.Context.NONE);
+ manager.certificates()
+ .updateWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ new CertificatePatch().withTags(mapOf("tag1", "value1", "tag2", "value2")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -944,8 +978,7 @@ import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReque
*/
public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsCertificates_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
*/
/**
* Sample code: Certificates_CheckNameAvailability.
@@ -955,8 +988,9 @@ public final class ConnectedEnvironmentsCheckNameAvailabilitySamples {
public static void
certificatesCheckNameAvailability(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager.connectedEnvironments()
- .checkNameAvailabilityWithResponse("examplerg", "testcontainerenv", new CheckNameAvailabilityRequest()
- .withName("testcertificatename").withType("Microsoft.App/connectedEnvironments/certificates"),
+ .checkNameAvailabilityWithResponse("examplerg", "testcontainerenv",
+ new CheckNameAvailabilityRequest().withName("testcertificatename")
+ .withType("Microsoft.App/connectedEnvironments/certificates"),
com.azure.core.util.Context.NONE);
}
}
@@ -972,8 +1006,7 @@ import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
*/
public final class ConnectedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create kube environments.
@@ -981,12 +1014,16 @@ public final class ConnectedEnvironmentsCreateOrUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void createKubeEnvironments(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironments().define("testenv").withRegion("East US").withExistingResourceGroup("examplerg")
+ manager.connectedEnvironments()
+ .define("testenv")
+ .withRegion("East US")
+ .withExistingResourceGroup("examplerg")
.withStaticIp("1.2.3.4")
.withDaprAIConnectionString(
"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
.withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("www.my-name.com")
- .withCertificateValue("Y2VydA==".getBytes()).withCertificatePassword("fakeTokenPlaceholder"))
+ .withCertificateValue("Y2VydA==".getBytes())
+ .withCertificatePassword("fakeTokenPlaceholder"))
.create();
}
}
@@ -1000,9 +1037,7 @@ public final class ConnectedEnvironmentsCreateOrUpdateSamples {
*/
public final class ConnectedEnvironmentsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ConnectedEnvironments_Delete
- * .json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Delete.json
*/
/**
* Sample code: Delete connected environment by connectedEnvironmentName.
@@ -1024,9 +1059,7 @@ public final class ConnectedEnvironmentsDeleteSamples {
*/
public final class ConnectedEnvironmentsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ConnectedEnvironments_Get.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Get.json
*/
/**
* Sample code: Get connected environment by connectedEnvironmentName.
@@ -1035,8 +1068,8 @@ public final class ConnectedEnvironmentsGetByResourceGroupSamples {
*/
public static void getConnectedEnvironmentByConnectedEnvironmentName(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironments().getByResourceGroupWithResponse("examplerg", "examplekenv",
- com.azure.core.util.Context.NONE);
+ manager.connectedEnvironments()
+ .getByResourceGroupWithResponse("examplerg", "examplekenv", com.azure.core.util.Context.NONE);
}
}
```
@@ -1049,8 +1082,7 @@ public final class ConnectedEnvironmentsGetByResourceGroupSamples {
*/
public final class ConnectedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_ListBySubscription.json
*/
/**
* Sample code: List connected environments by subscription.
@@ -1072,8 +1104,7 @@ public final class ConnectedEnvironmentsListSamples {
*/
public final class ConnectedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
*/
/**
* Sample code: List environments by resource group.
@@ -1095,9 +1126,7 @@ public final class ConnectedEnvironmentsListByResourceGroupSamples {
*/
public final class ConnectedEnvironmentsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ConnectedEnvironments_Patch.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
@@ -1121,8 +1150,7 @@ import com.azure.resourcemanager.appcontainers.models.CertificateProperties;
*/
public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsCertificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
@@ -1131,7 +1159,9 @@ public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
*/
public static void
createOrUpdateCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates().define("certificate-firendly-name").withRegion("East US")
+ manager.connectedEnvironmentsCertificates()
+ .define("certificate-firendly-name")
+ .withRegion("East US")
.withExistingConnectedEnvironment("examplerg", "testcontainerenv")
.withProperties(
new CertificateProperties().withPassword("fakeTokenPlaceholder").withValue("Y2VydA==".getBytes()))
@@ -1148,8 +1178,7 @@ public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples {
*/
public final class ConnectedEnvironmentsCertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsCertificate_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -1157,8 +1186,9 @@ public final class ConnectedEnvironmentsCertificatesDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates().deleteWithResponse("examplerg", "testcontainerenv",
- "certificate-firendly-name", com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsCertificates()
+ .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1171,8 +1201,7 @@ public final class ConnectedEnvironmentsCertificatesDeleteSamples {
*/
public final class ConnectedEnvironmentsCertificatesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsCertificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -1180,8 +1209,9 @@ public final class ConnectedEnvironmentsCertificatesGetSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates().getWithResponse("examplerg", "testcontainerenv",
- "certificate-firendly-name", com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsCertificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1194,8 +1224,7 @@ public final class ConnectedEnvironmentsCertificatesGetSamples {
*/
public final class ConnectedEnvironmentsCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
*/
/**
* Sample code: List Certificates by Connected Environment.
@@ -1204,8 +1233,8 @@ public final class ConnectedEnvironmentsCertificatesListSamples {
*/
public static void listCertificatesByConnectedEnvironment(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsCertificates().list("examplerg", "testcontainerenv",
- com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsCertificates()
+ .list("examplerg", "testcontainerenv", com.azure.core.util.Context.NONE);
}
}
```
@@ -1222,8 +1251,7 @@ import java.util.Map;
*/
public final class ConnectedEnvironmentsCertificatesUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsCertificates_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -1231,8 +1259,10 @@ public final class ConnectedEnvironmentsCertificatesUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void patchCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- Certificate resource = manager.connectedEnvironmentsCertificates().getWithResponse("examplerg",
- "testcontainerenv", "certificate-firendly-name", com.azure.core.util.Context.NONE).getValue();
+ Certificate resource = manager.connectedEnvironmentsCertificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
}
@@ -1264,8 +1294,7 @@ import java.util.Arrays;
*/
public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
*/
/**
* Sample code: Create or update dapr component.
@@ -1274,9 +1303,13 @@ public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
*/
public static void
createOrUpdateDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents().define("reddog")
- .withExistingConnectedEnvironment("examplerg", "myenvironment").withComponentType("state.azure.cosmosdb")
- .withVersion("v1").withIgnoreErrors(false).withInitTimeout("50s")
+ 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"),
@@ -1300,8 +1333,7 @@ public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples {
*/
public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
@@ -1309,8 +1341,8 @@ public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents().deleteWithResponse("examplerg", "myenvironment", "reddog",
- com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsDaprComponents()
+ .deleteWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
@@ -1323,8 +1355,7 @@ public final class ConnectedEnvironmentsDaprComponentsDeleteSamples {
*/
public final class ConnectedEnvironmentsDaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
*/
/**
* Sample code: Get Dapr Component.
@@ -1332,8 +1363,8 @@ public final class ConnectedEnvironmentsDaprComponentsGetSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents().getWithResponse("examplerg", "myenvironment", "reddog",
- com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsDaprComponents()
+ .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
@@ -1346,8 +1377,7 @@ public final class ConnectedEnvironmentsDaprComponentsGetSamples {
*/
public final class ConnectedEnvironmentsDaprComponentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
@@ -1355,8 +1385,8 @@ public final class ConnectedEnvironmentsDaprComponentsListSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void listDaprComponents(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents().list("examplerg", "myenvironment",
- com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsDaprComponents()
+ .list("examplerg", "myenvironment", com.azure.core.util.Context.NONE);
}
}
```
@@ -1369,8 +1399,7 @@ public final class ConnectedEnvironmentsDaprComponentsListSamples {
*/
public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsDaprComponents_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
@@ -1379,8 +1408,8 @@ public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples {
*/
public static void
listContainerAppsSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsDaprComponents().listSecretsWithResponse("examplerg", "myenvironment", "reddog",
- com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsDaprComponents()
+ .listSecretsWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
@@ -1397,8 +1426,7 @@ import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorag
*/
public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
@@ -1407,11 +1435,14 @@ public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
*/
public static void
createOrUpdateEnvironmentsStorage(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsStorages().define("jlaw-demo1")
+ manager.connectedEnvironmentsStorages()
+ .define("jlaw-demo1")
.withExistingConnectedEnvironment("examplerg", "env")
- .withProperties(new ConnectedEnvironmentStorageProperties().withAzureFile(
- new AzureFileProperties().withAccountName("account1").withAccountKey("fakeTokenPlaceholder")
- .withAccessMode(AccessMode.READ_ONLY).withShareName("share1")))
+ .withProperties(new ConnectedEnvironmentStorageProperties()
+ .withAzureFile(new AzureFileProperties().withAccountName("account1")
+ .withAccountKey("fakeTokenPlaceholder")
+ .withAccessMode(AccessMode.READ_ONLY)
+ .withShareName("share1")))
.create();
}
}
@@ -1425,8 +1456,7 @@ public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples {
*/
public final class ConnectedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsStorages_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -1435,8 +1465,8 @@ 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);
+ manager.connectedEnvironmentsStorages()
+ .deleteWithResponse("examplerg", "env", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
@@ -1449,8 +1479,7 @@ public final class ConnectedEnvironmentsStoragesDeleteSamples {
*/
public final class ConnectedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsStorages_Get.json
*/
/**
* Sample code: get a environments storage properties by subscription.
@@ -1459,8 +1488,8 @@ public final class ConnectedEnvironmentsStoragesGetSamples {
*/
public static void getAEnvironmentsStoragePropertiesBySubscription(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsStorages().getWithResponse("examplerg", "env", "jlaw-demo1",
- com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsStorages()
+ .getWithResponse("examplerg", "env", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
@@ -1473,8 +1502,7 @@ public final class ConnectedEnvironmentsStoragesGetSamples {
*/
public final class ConnectedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ConnectedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -1483,8 +1511,8 @@ public final class ConnectedEnvironmentsStoragesListSamples {
*/
public static void listEnvironmentsStoragesBySubscription(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.connectedEnvironmentsStorages().listWithResponse("examplerg", "managedEnv",
- com.azure.core.util.Context.NONE);
+ manager.connectedEnvironmentsStorages()
+ .listWithResponse("examplerg", "managedEnv", com.azure.core.util.Context.NONE);
}
}
```
@@ -1493,6 +1521,7 @@ public final class ConnectedEnvironmentsStoragesListSamples {
```java
import com.azure.resourcemanager.appcontainers.models.Action;
+import com.azure.resourcemanager.appcontainers.models.ActiveRevisionsMode;
import com.azure.resourcemanager.appcontainers.models.Affinity;
import com.azure.resourcemanager.appcontainers.models.AppProtocol;
import com.azure.resourcemanager.appcontainers.models.BindingType;
@@ -1502,6 +1531,7 @@ import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppPropertiesPatchingConfiguration;
import com.azure.resourcemanager.appcontainers.models.ContainerResources;
import com.azure.resourcemanager.appcontainers.models.CorsPolicy;
import com.azure.resourcemanager.appcontainers.models.CustomDomain;
@@ -1509,6 +1539,9 @@ import com.azure.resourcemanager.appcontainers.models.CustomScaleRule;
import com.azure.resourcemanager.appcontainers.models.Dapr;
import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
+import com.azure.resourcemanager.appcontainers.models.IdentitySettings;
+import com.azure.resourcemanager.appcontainers.models.IdentitySettingsLifeCycle;
+import com.azure.resourcemanager.appcontainers.models.ImageType;
import com.azure.resourcemanager.appcontainers.models.Ingress;
import com.azure.resourcemanager.appcontainers.models.IngressClientCertificateMode;
import com.azure.resourcemanager.appcontainers.models.IngressPortMapping;
@@ -1516,7 +1549,19 @@ import com.azure.resourcemanager.appcontainers.models.IngressStickySessions;
import com.azure.resourcemanager.appcontainers.models.IngressTransportMethod;
import com.azure.resourcemanager.appcontainers.models.InitContainer;
import com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule;
+import com.azure.resourcemanager.appcontainers.models.Kind;
+import com.azure.resourcemanager.appcontainers.models.Level;
+import com.azure.resourcemanager.appcontainers.models.LoggerSetting;
import com.azure.resourcemanager.appcontainers.models.LogLevel;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.appcontainers.models.PatchingMode;
+import com.azure.resourcemanager.appcontainers.models.QueueScaleRule;
+import com.azure.resourcemanager.appcontainers.models.Runtime;
+import com.azure.resourcemanager.appcontainers.models.RuntimeDotnet;
+import com.azure.resourcemanager.appcontainers.models.RuntimeJava;
+import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgent;
+import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgentLogging;
import com.azure.resourcemanager.appcontainers.models.Scale;
import com.azure.resourcemanager.appcontainers.models.ScaleRule;
import com.azure.resourcemanager.appcontainers.models.Service;
@@ -1526,6 +1571,7 @@ import com.azure.resourcemanager.appcontainers.models.TcpScaleRule;
import com.azure.resourcemanager.appcontainers.models.Template;
import com.azure.resourcemanager.appcontainers.models.TrafficWeight;
import com.azure.resourcemanager.appcontainers.models.Type;
+import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity;
import com.azure.resourcemanager.appcontainers.models.Volume;
import com.azure.resourcemanager.appcontainers.models.VolumeMount;
import java.util.Arrays;
@@ -1537,8 +1583,124 @@ import java.util.Map;
*/
public final class ContainerAppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ContainerApps_CreateOrUpdate_ConnectedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_SourceToCloudApp_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update SourceToCloud App.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ createOrUpdateSourceToCloudApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps()
+ .define("testcontainerApp0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withWorkloadProfileName("My-GP-01")
+ .withPatchingConfiguration(
+ new ContainerAppPropertiesPatchingConfiguration().withPatchingMode(PatchingMode.AUTOMATIC))
+ .withConfiguration(
+ new Configuration()
+ .withIngress(new Ingress().withExternal(true)
+ .withTargetPort(3000)
+ .withTraffic(Arrays.asList(new TrafficWeight()
+ .withRevisionName("testcontainerApp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
+ .withCustomDomains(Arrays.asList(new CustomDomain()
+ .withName("www.my-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
+ new CustomDomain().withName("www.my-other-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
+ .withIpSecurityRestrictions(
+ Arrays
+ .asList(
+ new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/32")
+ .withAction(Action.ALLOW),
+ new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/8")
+ .withAction(Action.ALLOW)))
+ .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY))
+ .withClientCertificateMode(IngressClientCertificateMode.ACCEPT)
+ .withCorsPolicy(new CorsPolicy()
+ .withAllowedOrigins(Arrays.asList("https://a.test.com", "https://b.test.com"))
+ .withAllowedMethods(Arrays.asList("GET", "POST"))
+ .withAllowedHeaders(Arrays.asList("HEADER1", "HEADER2"))
+ .withExposeHeaders(Arrays.asList("HEADER3", "HEADER4"))
+ .withMaxAge(1234)
+ .withAllowCredentials(true))
+ .withAdditionalPortMappings(Arrays.asList(
+ new IngressPortMapping().withExternal(true).withTargetPort(1234),
+ new IngressPortMapping().withExternal(false).withTargetPort(2345).withExposedPort(3456))))
+ .withDapr(new Dapr().withEnabled(true)
+ .withAppProtocol(AppProtocol.HTTP)
+ .withAppPort(3000)
+ .withHttpReadBufferSize(30)
+ .withHttpMaxRequestSize(10)
+ .withLogLevel(LogLevel.DEBUG)
+ .withEnableApiLogging(true))
+ .withMaxInactiveRevisions(10)
+ .withService(new Service().withType("redis")))
+ .withTemplate(new Template()
+ .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
+ .withName("testinitcontainerApp0")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
+ .withContainers(Arrays.asList(new Container()
+ .withImage("")
+ .withImageType(ImageType.CLOUD_BUILD)
+ .withName("testcontainerApp0")
+ .withVolumeMounts(
+ Arrays.asList(
+ new VolumeMount().withVolumeName("azurefile")
+ .withMountPath("/mnt/path1")
+ .withSubPath("subPath1"),
+ new VolumeMount()
+ .withVolumeName("nfsazurefile")
+ .withMountPath("/mnt/path2")
+ .withSubPath("subPath2")))
+ .withProbes(
+ Arrays.asList(new ContainerAppProbe().withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080)).withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
+ .withScale(
+ new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(Arrays.asList(new ScaleRule().withName("httpscalingrule")
+ .withCustom(new CustomScaleRule().withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50"))))))
+ .withVolumes(Arrays.asList(
+ new Volume().withName("azurefile")
+ .withStorageType(StorageType.AZURE_FILE)
+ .withStorageName("storage"),
+ new Volume().withName("nfsazurefile")
+ .withStorageType(StorageType.NFS_AZURE_FILE)
+ .withStorageName("nfsStorage")))
+ .withServiceBinds(Arrays.asList(new ServiceBind().withServiceId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService")
+ .withName("redisService")
+ .withClientType("dotnet")
+ .withCustomizedKeys(mapOf("DesiredKey", "fakeTokenPlaceholder")))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate_ConnectedEnvironment.json
*/
/**
* Sample code: Create or Update App On A Connected Environment.
@@ -1547,68 +1709,98 @@ public final class ContainerAppsCreateOrUpdateSamples {
*/
public static void createOrUpdateAppOnAConnectedEnvironment(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().define("testcontainerApp0").withRegion("East US").withExistingResourceGroup("rg")
+ manager.containerApps()
+ .define("testcontainerApp0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation")
.withType(ExtendedLocationTypes.CUSTOM_LOCATION))
.withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube")
- .withConfiguration(new Configuration().withIngress(new Ingress().withExternal(true).withTargetPort(3000)
- .withTraffic(Arrays.asList(new TrafficWeight().withRevisionName("testcontainerApp0-ab1234")
- .withWeight(100).withLabel("production")))
- .withCustomDomains(Arrays.asList(new CustomDomain().withName("www.my-name.com")
- .withBindingType(BindingType.SNI_ENABLED).withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
- new CustomDomain().withName("www.my-other-name.com").withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
- .withIpSecurityRestrictions(Arrays.asList(
- new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
- .withDescription("Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/32").withAction(Action.ALLOW),
- new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
- .withDescription("Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/8").withAction(Action.ALLOW)))
- .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY))
- .withClientCertificateMode(IngressClientCertificateMode.ACCEPT)
- .withCorsPolicy(new CorsPolicy()
- .withAllowedOrigins(Arrays.asList("https://a.test.com", "https://b.test.com"))
- .withAllowedMethods(Arrays.asList("GET", "POST"))
- .withAllowedHeaders(Arrays.asList("HEADER1", "HEADER2"))
- .withExposeHeaders(Arrays.asList("HEADER3", "HEADER4")).withMaxAge(1234).withAllowCredentials(true))
- .withAdditionalPortMappings(
- Arrays.asList(new IngressPortMapping().withExternal(true).withTargetPort(1234),
- new IngressPortMapping().withExternal(false).withTargetPort(2345).withExposedPort(3456))))
- .withDapr(
- new Dapr().withEnabled(true).withAppProtocol(AppProtocol.HTTP).withAppPort(3000)
- .withHttpReadBufferSize(30).withHttpMaxRequestSize(10).withLogLevel(
- LogLevel.DEBUG)
+ .withConfiguration(
+ new Configuration()
+ .withIngress(new Ingress().withExternal(true)
+ .withTargetPort(3000)
+ .withTraffic(Arrays.asList(new TrafficWeight()
+ .withRevisionName("testcontainerApp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
+ .withCustomDomains(Arrays.asList(new CustomDomain()
+ .withName("www.my-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
+ new CustomDomain().withName("www.my-other-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
+ .withIpSecurityRestrictions(
+ Arrays
+ .asList(
+ new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/32")
+ .withAction(Action.ALLOW),
+ new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/8")
+ .withAction(Action.ALLOW)))
+ .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY))
+ .withClientCertificateMode(IngressClientCertificateMode.ACCEPT)
+ .withCorsPolicy(new CorsPolicy()
+ .withAllowedOrigins(Arrays.asList("https://a.test.com", "https://b.test.com"))
+ .withAllowedMethods(Arrays.asList("GET", "POST"))
+ .withAllowedHeaders(Arrays.asList("HEADER1", "HEADER2"))
+ .withExposeHeaders(Arrays.asList("HEADER3", "HEADER4"))
+ .withMaxAge(1234)
+ .withAllowCredentials(true))
+ .withAdditionalPortMappings(Arrays.asList(
+ new IngressPortMapping().withExternal(true).withTargetPort(1234),
+ new IngressPortMapping().withExternal(false).withTargetPort(2345).withExposedPort(3456))))
+ .withDapr(new Dapr()
+ .withEnabled(true)
+ .withAppProtocol(AppProtocol.HTTP)
+ .withAppPort(3000)
+ .withHttpReadBufferSize(30)
+ .withHttpMaxRequestSize(10)
+ .withLogLevel(LogLevel.DEBUG)
.withEnableApiLogging(true))
- .withMaxInactiveRevisions(10))
+ .withRuntime(new Runtime().withJava(new RuntimeJava().withEnableMetrics(true)
+ .withJavaAgent(new RuntimeJavaAgent().withEnabled(true)
+ .withLogging(new RuntimeJavaAgentLogging().withLoggerSettings(Arrays.asList(
+ new LoggerSetting().withLogger("org.springframework.boot").withLevel(Level.DEBUG))))))
+ .withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(true)))
+ .withMaxInactiveRevisions(10))
.withTemplate(new Template()
.withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
- .withName("testinitcontainerApp0").withCommand(Arrays.asList("/bin/sh"))
+ .withName("testinitcontainerApp0")
+ .withCommand(Arrays.asList("/bin/sh"))
.withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
.withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(
- Arrays
- .asList(new Container().withImage("repo/testcontainerApp0:v1").withName("testcontainerApp0")
- .withProbes(Arrays.asList(new ContainerAppProbe()
- .withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("Custom-Header").withValue("Awesome")))
- .withPath("/health").withPort(8080))
- .withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
- .withScale(new Scale().withMinReplicas(1).withMaxReplicas(5)
- .withRules(Arrays.asList(new ScaleRule().withName("httpscalingrule").withCustom(
- new CustomScaleRule().withType("http").withMetadata(mapOf("concurrentRequests", "50")))))))
+ .withContainers(Arrays.asList(new Container()
+ .withImage("repo/testcontainerApp0:v1")
+ .withName("testcontainerApp0")
+ .withProbes(
+ Arrays.asList(new ContainerAppProbe().withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080)).withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
+ .withScale(
+ new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(Arrays.asList(new ScaleRule().withName("httpscalingrule")
+ .withCustom(new CustomScaleRule().withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50")))))))
.create();
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerApps_CreateOrUpdate
- * .json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App.
@@ -1617,77 +1809,141 @@ public final class ContainerAppsCreateOrUpdateSamples {
*/
public static void
createOrUpdateContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().define("testcontainerApp0").withRegion("East US").withExistingResourceGroup("rg")
+ manager.containerApps()
+ .define("testcontainerApp0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withIdentity(new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity",
+ new UserAssignedIdentity())))
.withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withWorkloadProfileName(
- "My-GP-01")
- .withConfiguration(new Configuration().withIngress(new Ingress().withExternal(true).withTargetPort(3000)
- .withTraffic(Arrays.asList(new TrafficWeight().withRevisionName("testcontainerApp0-ab1234")
- .withWeight(100).withLabel("production")))
- .withCustomDomains(Arrays.asList(new CustomDomain().withName("www.my-name.com")
- .withBindingType(BindingType.SNI_ENABLED).withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
- new CustomDomain().withName("www.my-other-name.com").withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
- .withIpSecurityRestrictions(Arrays.asList(
- new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
- .withDescription("Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/32").withAction(Action.ALLOW),
- new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
- .withDescription("Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/8").withAction(Action.ALLOW)))
- .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY))
- .withClientCertificateMode(IngressClientCertificateMode.ACCEPT)
- .withCorsPolicy(new CorsPolicy()
- .withAllowedOrigins(Arrays.asList("https://a.test.com", "https://b.test.com"))
- .withAllowedMethods(Arrays.asList("GET", "POST"))
- .withAllowedHeaders(Arrays.asList("HEADER1", "HEADER2"))
- .withExposeHeaders(Arrays.asList("HEADER3", "HEADER4")).withMaxAge(1234).withAllowCredentials(true))
- .withAdditionalPortMappings(
- Arrays.asList(new IngressPortMapping().withExternal(true).withTargetPort(1234),
- new IngressPortMapping().withExternal(false).withTargetPort(2345).withExposedPort(3456))))
- .withDapr(new Dapr().withEnabled(true).withAppProtocol(AppProtocol.HTTP).withAppPort(3000)
- .withHttpReadBufferSize(30).withHttpMaxRequestSize(10).withLogLevel(LogLevel.DEBUG)
- .withEnableApiLogging(true))
- .withMaxInactiveRevisions(10).withService(new Service().withType("redis")))
+ .withWorkloadProfileName("My-GP-01")
+ .withConfiguration(
+ new Configuration()
+ .withIngress(new Ingress().withExternal(true)
+ .withTargetPort(3000)
+ .withTraffic(Arrays.asList(new TrafficWeight()
+ .withRevisionName("testcontainerApp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
+ .withCustomDomains(Arrays.asList(new CustomDomain()
+ .withName("www.my-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
+ new CustomDomain().withName("www.my-other-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
+ .withIpSecurityRestrictions(
+ Arrays
+ .asList(
+ new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/32")
+ .withAction(Action.ALLOW),
+ new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/8")
+ .withAction(Action.ALLOW)))
+ .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY))
+ .withClientCertificateMode(IngressClientCertificateMode.ACCEPT)
+ .withCorsPolicy(new CorsPolicy()
+ .withAllowedOrigins(Arrays.asList("https://a.test.com", "https://b.test.com"))
+ .withAllowedMethods(Arrays.asList("GET", "POST"))
+ .withAllowedHeaders(Arrays.asList("HEADER1", "HEADER2"))
+ .withExposeHeaders(Arrays.asList("HEADER3", "HEADER4"))
+ .withMaxAge(1234)
+ .withAllowCredentials(true))
+ .withAdditionalPortMappings(Arrays.asList(
+ new IngressPortMapping().withExternal(true).withTargetPort(1234),
+ new IngressPortMapping().withExternal(false).withTargetPort(2345).withExposedPort(3456))))
+ .withDapr(new Dapr()
+ .withEnabled(true)
+ .withAppProtocol(AppProtocol.HTTP)
+ .withAppPort(3000)
+ .withHttpReadBufferSize(30)
+ .withHttpMaxRequestSize(10)
+ .withLogLevel(LogLevel.DEBUG)
+ .withEnableApiLogging(true))
+ .withRuntime(new Runtime().withJava(new RuntimeJava()
+ .withEnableMetrics(true)
+ .withJavaAgent(new RuntimeJavaAgent()
+ .withEnabled(true)
+ .withLogging(new RuntimeJavaAgentLogging().withLoggerSettings(
+ Arrays.asList(new LoggerSetting().withLogger("org.springframework.boot")
+ .withLevel(Level.DEBUG))))))
+ .withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(true)))
+ .withMaxInactiveRevisions(10)
+ .withService(new Service().withType("redis"))
+ .withIdentitySettings(Arrays.asList(new IdentitySettings().withIdentity(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")
+ .withLifecycle(IdentitySettingsLifeCycle.ALL),
+ new IdentitySettings().withIdentity("system").withLifecycle(IdentitySettingsLifeCycle.INIT))))
.withTemplate(new Template()
.withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
- .withName("testinitcontainerApp0").withCommand(Arrays.asList("/bin/sh"))
+ .withName("testinitcontainerApp0")
+ .withCommand(Arrays.asList("/bin/sh"))
.withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
.withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(
- Arrays.asList(new Container().withImage("repo/testcontainerApp0:v1").withName("testcontainerApp0")
- .withVolumeMounts(Arrays.asList(
- new VolumeMount().withVolumeName("azurefile").withMountPath("/mnt/path1")
+ .withContainers(Arrays.asList(new Container()
+ .withImage("repo/testcontainerApp0:v1")
+ .withName("testcontainerApp0")
+ .withVolumeMounts(
+ Arrays.asList(
+ new VolumeMount().withVolumeName("azurefile")
+ .withMountPath("/mnt/path1")
.withSubPath("subPath1"),
- new VolumeMount().withVolumeName("nfsazurefile").withMountPath("/mnt/path2")
+ new VolumeMount()
+ .withVolumeName("nfsazurefile")
+ .withMountPath("/mnt/path2")
.withSubPath("subPath2")))
- .withProbes(Arrays.asList(new ContainerAppProbe()
- .withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("Custom-Header").withValue("Awesome")))
- .withPath("/health").withPort(8080))
- .withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
- .withScale(new Scale().withMinReplicas(1).withMaxReplicas(5)
- .withRules(Arrays.asList(new ScaleRule().withName("httpscalingrule").withCustom(
- new CustomScaleRule().withType("http").withMetadata(mapOf("concurrentRequests", "50"))))))
+ .withProbes(
+ Arrays.asList(new ContainerAppProbe().withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080)).withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
+ .withScale(new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(Arrays.asList(
+ new ScaleRule().withName("httpscalingrule")
+ .withCustom(
+ new CustomScaleRule().withType("http").withMetadata(mapOf("concurrentRequests", "50"))),
+ new ScaleRule().withName("servicebus")
+ .withCustom(new CustomScaleRule().withType("azure-servicebus")
+ .withMetadata(
+ mapOf("messageCount", "5", "namespace", "mynamespace", "queueName", "myqueue"))
+ .withIdentity(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")),
+ new ScaleRule().withName("azure-queue")
+ .withAzureQueue(new QueueScaleRule().withAccountName("account1")
+ .withQueueName("queue1")
+ .withQueueLength(1)
+ .withIdentity("system")))))
.withVolumes(Arrays.asList(
- new Volume().withName("azurefile").withStorageType(StorageType.AZURE_FILE)
+ new Volume().withName("azurefile")
+ .withStorageType(StorageType.AZURE_FILE)
.withStorageName("storage"),
- new Volume().withName("nfsazurefile").withStorageType(StorageType.NFS_AZURE_FILE)
+ new Volume().withName("nfsazurefile")
+ .withStorageType(StorageType.NFS_AZURE_FILE)
.withStorageName("nfsStorage")))
.withServiceBinds(Arrays.asList(new ServiceBind().withServiceId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService")
- .withName("redisService").withClientType("dotnet")
+ .withName("redisService")
+ .withClientType("dotnet")
.withCustomizedKeys(mapOf("DesiredKey", "fakeTokenPlaceholder")))))
.create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ContainerApps_TcpApp_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Tcp App.
@@ -1695,36 +1951,63 @@ public final class ContainerAppsCreateOrUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void createOrUpdateTcpApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().define("testcontainerAppTcp").withRegion("East US").withExistingResourceGroup("rg")
+ manager.containerApps()
+ .define("testcontainerAppTcp")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
.withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
.withConfiguration(
- new Configuration()
- .withIngress(
- new Ingress().withExternal(true).withTargetPort(3000).withExposedPort(4000)
- .withTransport(
- IngressTransportMethod.TCP)
- .withTraffic(
- Arrays
- .asList(
- new TrafficWeight().withRevisionName(
- "testcontainerAppTcp-ab1234").withWeight(
- 100)))))
+ new Configuration().withIngress(new Ingress().withExternal(true)
+ .withTargetPort(3000)
+ .withExposedPort(4000)
+ .withTransport(IngressTransportMethod.TCP)
+ .withTraffic(Arrays
+ .asList(new TrafficWeight().withRevisionName("testcontainerAppTcp-ab1234").withWeight(100)))))
.withTemplate(new Template()
.withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppTcp:v1")
.withName("testcontainerAppTcp")
- .withProbes(Arrays.asList(new ContainerAppProbe().withInitialDelaySeconds(3).withPeriodSeconds(3)
- .withTcpSocket(new ContainerAppProbeTcpSocket().withPort(8080)).withType(Type.LIVENESS)))))
- .withScale(
- new Scale().withMinReplicas(1).withMaxReplicas(5)
- .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
- .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
+ .withProbes(Arrays.asList(new ContainerAppProbe().withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withTcpSocket(new ContainerAppProbeTcpSocket().withPort(8080))
+ .withType(Type.LIVENESS)))))
+ .withScale(new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
+ .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Kind_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or Update App Kind.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createOrUpdateAppKind(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerApps()
+ .define("testcontainerAppKind")
+ .withRegion("East Us")
+ .withExistingResourceGroup("rg")
+ .withManagedBy(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Web/sites/testcontainerAppKind")
+ .withKind(Kind.WORKFLOWAPP)
+ .withManagedEnvironmentId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/testmanagedenv3")
+ .withConfiguration(new Configuration().withActiveRevisionsMode(ActiveRevisionsMode.SINGLE)
+ .withIngress(new Ingress().withExternal(true).withTargetPort(80).withAllowInsecure(true)))
+ .withTemplate(new Template()
+ .withContainers(Arrays.asList(new Container().withImage("default/logicapps-base:latest")
+ .withName("logicapps-container")
+ .withResources(new ContainerResources().withCpu(1.0D).withMemory("2.0Gi"))))
+ .withScale(new Scale().withMinReplicas(1).withMaxReplicas(30)))
.create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ContainerApps_ManagedBy_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update ManagedBy App.
@@ -1733,30 +2016,31 @@ public final class ContainerAppsCreateOrUpdateSamples {
*/
public static void
createOrUpdateManagedByApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().define("testcontainerAppManagedBy").withRegion("East US")
+ manager.containerApps()
+ .define("testcontainerAppManagedBy")
+ .withRegion("East US")
.withExistingResourceGroup("rg")
.withManagedBy(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/springapp")
.withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withConfiguration(
- new Configuration()
- .withIngress(
- new Ingress().withExternal(true).withTargetPort(3000).withExposedPort(4000)
- .withTransport(IngressTransportMethod.TCP).withTraffic(
- Arrays
- .asList(
- new TrafficWeight().withRevisionName("testcontainerAppManagedBy-ab1234")
- .withWeight(100)))))
+ .withConfiguration(new Configuration().withIngress(new Ingress().withExternal(true)
+ .withTargetPort(3000)
+ .withExposedPort(4000)
+ .withTransport(IngressTransportMethod.TCP)
+ .withTraffic(Arrays
+ .asList(new TrafficWeight().withRevisionName("testcontainerAppManagedBy-ab1234").withWeight(100)))))
.withTemplate(new Template()
.withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppManagedBy:v1")
.withName("testcontainerAppManagedBy")
- .withProbes(Arrays.asList(new ContainerAppProbe().withInitialDelaySeconds(3).withPeriodSeconds(3)
- .withTcpSocket(new ContainerAppProbeTcpSocket().withPort(8080)).withType(Type.LIVENESS)))))
- .withScale(
- new Scale().withMinReplicas(1).withMaxReplicas(5)
- .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
- .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
+ .withProbes(Arrays.asList(new ContainerAppProbe().withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withTcpSocket(new ContainerAppProbeTcpSocket().withPort(8080))
+ .withType(Type.LIVENESS)))))
+ .withScale(new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(Arrays.asList(new ScaleRule().withName("tcpscalingrule")
+ .withTcp(new TcpScaleRule().withMetadata(mapOf("concurrentConnections", "50")))))))
.create();
}
@@ -1782,8 +2066,7 @@ public final class ContainerAppsCreateOrUpdateSamples {
*/
public final class ContainerAppsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerApps_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Delete.json
*/
/**
* Sample code: Delete Container App.
@@ -1804,9 +2087,7 @@ public final class ContainerAppsDeleteSamples {
*/
public final class ContainerAppsGetAuthTokenSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerApps_GetAuthToken.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_GetAuthToken.json
*/
/**
* Sample code: Get Container App Auth Token.
@@ -1828,8 +2109,7 @@ public final class ContainerAppsGetAuthTokenSamples {
*/
public final class ContainerAppsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
@@ -1837,8 +2117,8 @@ public final class ContainerAppsGetByResourceGroupSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().getByResourceGroupWithResponse("rg", "testcontainerApp0",
- com.azure.core.util.Context.NONE);
+ manager.containerApps()
+ .getByResourceGroupWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
}
}
```
@@ -1851,8 +2131,7 @@ public final class ContainerAppsGetByResourceGroupSamples {
*/
public final class ContainerAppsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ContainerApps_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListBySubscription.json
*/
/**
* Sample code: List Container Apps by subscription.
@@ -1874,8 +2153,7 @@ public final class ContainerAppsListSamples {
*/
public final class ContainerAppsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ContainerApps_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListByResourceGroup.json
*/
/**
* Sample code: List Container Apps by resource group.
@@ -1897,8 +2175,7 @@ public final class ContainerAppsListByResourceGroupSamples {
*/
public final class ContainerAppsListCustomHostnameAnalysisSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ContainerApps_ListCustomHostNameAnalysis.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
*/
/**
* Sample code: Analyze Custom Hostname.
@@ -1906,8 +2183,9 @@ public final class ContainerAppsListCustomHostnameAnalysisSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void analyzeCustomHostname(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerApps().listCustomHostnameAnalysisWithResponse("rg", "testcontainerApp0", "my.name.corp",
- com.azure.core.util.Context.NONE);
+ manager.containerApps()
+ .listCustomHostnameAnalysisWithResponse("rg", "testcontainerApp0", "my.name.corp",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1920,9 +2198,7 @@ public final class ContainerAppsListCustomHostnameAnalysisSamples {
*/
public final class ContainerAppsListSecretsSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerApps_ListSecrets.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
@@ -1944,8 +2220,7 @@ public final class ContainerAppsListSecretsSamples {
*/
public final class ContainerAppsStartSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerApps_Start.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Start.json
*/
/**
* Sample code: Start Container App.
@@ -1966,8 +2241,7 @@ public final class ContainerAppsStartSamples {
*/
public final class ContainerAppsStopSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerApps_Stop.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Stop.json
*/
/**
* Sample code: Stop Container App.
@@ -2001,7 +2275,14 @@ import com.azure.resourcemanager.appcontainers.models.Ingress;
import com.azure.resourcemanager.appcontainers.models.IngressStickySessions;
import com.azure.resourcemanager.appcontainers.models.InitContainer;
import com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule;
+import com.azure.resourcemanager.appcontainers.models.Level;
+import com.azure.resourcemanager.appcontainers.models.LoggerSetting;
import com.azure.resourcemanager.appcontainers.models.LogLevel;
+import com.azure.resourcemanager.appcontainers.models.Runtime;
+import com.azure.resourcemanager.appcontainers.models.RuntimeDotnet;
+import com.azure.resourcemanager.appcontainers.models.RuntimeJava;
+import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgent;
+import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgentLogging;
import com.azure.resourcemanager.appcontainers.models.Scale;
import com.azure.resourcemanager.appcontainers.models.ScaleRule;
import com.azure.resourcemanager.appcontainers.models.Service;
@@ -2018,8 +2299,7 @@ import java.util.Map;
*/
public final class ContainerAppsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerApps_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Patch.json
*/
/**
* Sample code: Patch Container App.
@@ -2028,50 +2308,82 @@ public final class ContainerAppsUpdateSamples {
*/
public static void patchContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
ContainerApp resource = manager.containerApps()
- .getByResourceGroupWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE).getValue();
- resource
- .update().withTags(
- mapOf("tag1", "value1", "tag2", "value2"))
- .withConfiguration(new Configuration().withIngress(new Ingress().withExternal(true).withTargetPort(3000)
- .withTraffic(Arrays.asList(new TrafficWeight().withRevisionName("testcontainerApp0-ab1234")
- .withWeight(100).withLabel("production")))
- .withCustomDomains(Arrays.asList(new CustomDomain().withName("www.my-name.com")
- .withBindingType(BindingType.SNI_ENABLED).withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
- new CustomDomain().withName("www.my-other-name.com").withBindingType(BindingType.SNI_ENABLED)
- .withCertificateId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
- .withIpSecurityRestrictions(Arrays.asList(
- new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
- .withDescription("Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/32").withAction(Action.ALLOW),
- new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
- .withDescription("Allowing all IP's within the subnet below to access containerapp")
- .withIpAddressRange("192.168.1.1/8").withAction(Action.ALLOW)))
- .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY)))
- .withDapr(new Dapr().withEnabled(true).withAppProtocol(AppProtocol.HTTP).withAppPort(3000)
- .withHttpReadBufferSize(30).withHttpMaxRequestSize(10).withLogLevel(LogLevel.DEBUG)
- .withEnableApiLogging(true))
- .withMaxInactiveRevisions(10).withService(new Service().withType("redis")))
- .withTemplate(
- new Template()
- .withInitContainers(Arrays.asList(
- new InitContainer().withImage("repo/testcontainerApp0:v4").withName("testinitcontainerApp0")
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerApp0:v1")
- .withName("testcontainerApp0").withProbes(Arrays.asList(new ContainerAppProbe()
- .withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("Custom-Header").withValue("Awesome")))
- .withPath("/health").withPort(8080))
- .withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
- .withScale(new Scale().withMinReplicas(1).withMaxReplicas(5)
- .withRules(Arrays.asList(new ScaleRule().withName("httpscalingrule").withCustom(
- new CustomScaleRule().withType("http").withMetadata(mapOf("concurrentRequests", "50"))))))
- .withServiceBinds(Arrays.asList(new ServiceBind().withServiceId(
- "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service")
- .withName("service").withClientType("dotnet")
- .withCustomizedKeys(mapOf("DesiredKey", "fakeTokenPlaceholder")))))
+ .getByResourceGroupWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withConfiguration(
+ new Configuration()
+ .withIngress(new Ingress().withExternal(true)
+ .withTargetPort(3000)
+ .withTraffic(Arrays.asList(new TrafficWeight()
+ .withRevisionName("testcontainerApp0-ab1234")
+ .withWeight(100)
+ .withLabel("production")))
+ .withCustomDomains(Arrays.asList(new CustomDomain()
+ .withName("www.my-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"),
+ new CustomDomain().withName("www.my-other-name.com")
+ .withBindingType(BindingType.SNI_ENABLED)
+ .withCertificateId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com")))
+ .withIpSecurityRestrictions(
+ Arrays
+ .asList(
+ new IpSecurityRestrictionRule().withName("Allow work IP A subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/32")
+ .withAction(Action.ALLOW),
+ new IpSecurityRestrictionRule().withName("Allow work IP B subnet")
+ .withDescription(
+ "Allowing all IP's within the subnet below to access containerapp")
+ .withIpAddressRange("192.168.1.1/8")
+ .withAction(Action.ALLOW)))
+ .withStickySessions(new IngressStickySessions().withAffinity(Affinity.STICKY)))
+ .withDapr(new Dapr()
+ .withEnabled(true)
+ .withAppProtocol(AppProtocol.HTTP)
+ .withAppPort(3000)
+ .withHttpReadBufferSize(30)
+ .withHttpMaxRequestSize(10)
+ .withLogLevel(LogLevel.DEBUG)
+ .withEnableApiLogging(true))
+ .withRuntime(new Runtime().withJava(new RuntimeJava().withEnableMetrics(true)
+ .withJavaAgent(new RuntimeJavaAgent().withEnabled(true)
+ .withLogging(new RuntimeJavaAgentLogging().withLoggerSettings(Arrays.asList(
+ new LoggerSetting().withLogger("org.springframework.boot").withLevel(Level.DEBUG))))))
+ .withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(true)))
+ .withMaxInactiveRevisions(10)
+ .withService(new Service().withType("redis")))
+ .withTemplate(new Template()
+ .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerApp0:v4")
+ .withName("testinitcontainerApp0")
+ .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
+ .withContainers(Arrays.asList(new Container()
+ .withImage("repo/testcontainerApp0:v1")
+ .withName("testcontainerApp0")
+ .withProbes(
+ Arrays.asList(new ContainerAppProbe().withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080)).withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))
+ .withScale(
+ new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(
+ Arrays.asList(new ScaleRule().withName("httpscalingrule")
+ .withCustom(new CustomScaleRule().withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50"))))))
+ .withServiceBinds(Arrays.asList(new ServiceBind().withServiceId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service")
+ .withName("service")
+ .withClientType("dotnet")
+ .withCustomizedKeys(mapOf("DesiredKey", "fakeTokenPlaceholder")))))
.apply();
}
@@ -2105,9 +2417,7 @@ import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActio
*/
public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/AuthConfigs_CreateOrUpdate.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App AuthConfig.
@@ -2116,7 +2426,8 @@ public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
*/
public static void
createOrUpdateContainerAppAuthConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsAuthConfigs().define("current")
+ manager.containerAppsAuthConfigs()
+ .define("current")
.withExistingContainerApp("workerapps-rg-xj", "testcanadacentral")
.withPlatform(new AuthPlatform().withEnabled(true))
.withGlobalValidation(
@@ -2139,8 +2450,7 @@ public final class ContainerAppsAuthConfigsCreateOrUpdateSamples {
*/
public final class ContainerAppsAuthConfigsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/AuthConfigs_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_Delete.json
*/
/**
* Sample code: Delete Container App AuthConfig.
@@ -2149,8 +2459,8 @@ public final class ContainerAppsAuthConfigsDeleteSamples {
*/
public static void
deleteContainerAppAuthConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsAuthConfigs().deleteWithResponse("workerapps-rg-xj", "testcanadacentral", "current",
- com.azure.core.util.Context.NONE);
+ manager.containerAppsAuthConfigs()
+ .deleteWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
}
}
```
@@ -2163,8 +2473,7 @@ public final class ContainerAppsAuthConfigsDeleteSamples {
*/
public final class ContainerAppsAuthConfigsGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/AuthConfigs_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_Get.json
*/
/**
* Sample code: Get Container App's AuthConfig.
@@ -2173,8 +2482,8 @@ public final class ContainerAppsAuthConfigsGetSamples {
*/
public static void
getContainerAppSAuthConfig(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsAuthConfigs().getWithResponse("workerapps-rg-xj", "testcanadacentral", "current",
- com.azure.core.util.Context.NONE);
+ manager.containerAppsAuthConfigs()
+ .getWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
}
}
```
@@ -2187,9 +2496,7 @@ public final class ContainerAppsAuthConfigsGetSamples {
*/
public final class ContainerAppsAuthConfigsListByContainerAppSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/AuthConfigs_ListByContainer.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_ListByContainer.json
*/
/**
* Sample code: List Auth Configs by Container Apps.
@@ -2198,8 +2505,74 @@ public final class ContainerAppsAuthConfigsListByContainerAppSamples {
*/
public static void
listAuthConfigsByContainerApps(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsAuthConfigs().listByContainerApp("workerapps-rg-xj", "testcanadacentral",
- com.azure.core.util.Context.NONE);
+ manager.containerAppsAuthConfigs()
+ .listByContainerApp("workerapps-rg-xj", "testcanadacentral", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsBuilds_Delete
+
+```java
+/**
+ * Samples for ContainerAppsBuilds Delete.
+ */
+public final class ContainerAppsBuildsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsBuilds_Delete.json
+ */
+ /**
+ * Sample code: ContainerAppsBuilds_Delete_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ containerAppsBuildsDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsBuilds().delete("rg", "testCapp", "testBuild", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsBuilds_Get
+
+```java
+/**
+ * Samples for ContainerAppsBuilds Get.
+ */
+public final class ContainerAppsBuildsGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsBuilds_Get.json
+ */
+ /**
+ * Sample code: ContainerAppsBuilds_Get_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ containerAppsBuildsGet0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsBuilds().getWithResponse("rg", "testCapp", "testBuild", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsBuildsByContainerApp_List
+
+```java
+/**
+ * Samples for ContainerAppsBuildsByContainerApp List.
+ */
+public final class ContainerAppsBuildsByContainerAppListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsBuilds_ListByContainerApp.json
+ */
+ /**
+ * Sample code: ContainerAppsBuilds_ListByContainerApp_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void containerAppsBuildsListByContainerApp0(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsBuildsByContainerApps().list("rg", "testCapp", com.azure.core.util.Context.NONE);
}
}
```
@@ -2212,9 +2585,7 @@ public final class ContainerAppsAuthConfigsListByContainerAppSamples {
*/
public final class ContainerAppsDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerAppsDiagnostics_Get
- * .json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsDiagnostics_Get.json
*/
/**
* Sample code: Get Container App's diagnostics info.
@@ -2223,8 +2594,9 @@ public final class ContainerAppsDiagnosticsGetDetectorSamples {
*/
public static void
getContainerAppSDiagnosticsInfo(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics().getDetectorWithResponse("mikono-workerapp-test-rg", "mikono-capp-stage1",
- "cappcontainerappnetworkIO", com.azure.core.util.Context.NONE);
+ manager.containerAppsDiagnostics()
+ .getDetectorWithResponse("mikono-workerapp-test-rg", "mikono-capp-stage1", "cappcontainerappnetworkIO",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2237,8 +2609,7 @@ public final class ContainerAppsDiagnosticsGetDetectorSamples {
*/
public final class ContainerAppsDiagnosticsGetRevisionSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
@@ -2247,8 +2618,9 @@ public final class ContainerAppsDiagnosticsGetRevisionSamples {
*/
public static void
getContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics().getRevisionWithResponse("rg", "testcontainerApp0",
- "testcontainerApp0-pjxhsye", com.azure.core.util.Context.NONE);
+ manager.containerAppsDiagnostics()
+ .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2261,8 +2633,7 @@ public final class ContainerAppsDiagnosticsGetRevisionSamples {
*/
public final class ContainerAppsDiagnosticsGetRootSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ContainerApps_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
@@ -2270,46 +2641,301 @@ public final class ContainerAppsDiagnosticsGetRootSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getContainerApp(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics().getRootWithResponse("rg", "testcontainerApp0",
- com.azure.core.util.Context.NONE);
+ manager.containerAppsDiagnostics()
+ .getRootWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsDiagnostics_ListDetectors
+
+```java
+/**
+ * Samples for ContainerAppsDiagnostics ListDetectors.
+ */
+public final class ContainerAppsDiagnosticsListDetectorsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsDiagnostics_List.json
+ */
+ /**
+ * Sample code: Get the list of available diagnostics for a given Container App.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getTheListOfAvailableDiagnosticsForAGivenContainerApp(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsDiagnostics()
+ .listDetectors("mikono-workerapp-test-rg", "mikono-capp-stage1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsDiagnostics_ListRevisions
+
+```java
+/**
+ * Samples for ContainerAppsDiagnostics ListRevisions.
+ */
+public final class ContainerAppsDiagnosticsListRevisionsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_List.json
+ */
+ /**
+ * Sample code: List Container App's revisions.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ listContainerAppSRevisions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsDiagnostics()
+ .listRevisions("rg", "testcontainerApp0", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsPatches_Apply
+
+```java
+/**
+ * Samples for ContainerAppsPatches Apply.
+ */
+public final class ContainerAppsPatchesApplySamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Apply.json
+ */
+ /**
+ * Sample code: ContainerAppsPatches_Apply_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ containerAppsPatchesApply0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsPatches().apply("rg", "test-app", "testPatch-25fe4b", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsPatches_Delete
+
+```java
+/**
+ * Samples for ContainerAppsPatches Delete.
+ */
+public final class ContainerAppsPatchesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Delete.json
+ */
+ /**
+ * Sample code: ContainerAppsPatches_Delete_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ containerAppsPatchesDelete0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsPatches().delete("rg", "test-app", "testPatch-25fe4b", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsPatches_Get
+
+```java
+/**
+ * Samples for ContainerAppsPatches Get.
+ */
+public final class ContainerAppsPatchesGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Get.json
+ */
+ /**
+ * Sample code: ContainerAppsPatches_Get_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ containerAppsPatchesGet0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsPatches()
+ .getWithResponse("rg", "test-app", "testPatch-25fe4b", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsPatches_ListByContainerApp
+
+```java
+/**
+ * Samples for ContainerAppsPatches ListByContainerApp.
+ */
+public final class ContainerAppsPatchesListByContainerAppSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_ListByContainerApp.json
+ */
+ /**
+ * Sample code: ContainerAppsPatches_ListByContainerApp_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void containerAppsPatchesListByContainerApp0(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsPatches().listByContainerApp("rg", "test-app", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsPatches_SkipConfigure
+
+```java
+import com.azure.resourcemanager.appcontainers.models.PatchSkipConfig;
+
+/**
+ * Samples for ContainerAppsPatches SkipConfigure.
+ */
+public final class ContainerAppsPatchesSkipConfigureSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Skip_Configure.json
+ */
+ /**
+ * Sample code: ContainerAppsPatches_Skip_Configure_0.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ containerAppsPatchesSkipConfigure0(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsPatches()
+ .skipConfigure("rg", "test-app", "testPatch-25fe4b", new PatchSkipConfig().withSkip(true),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisionReplicas_GetReplica
+
+```java
+/**
+ * Samples for ContainerAppsRevisionReplicas GetReplica.
+ */
+public final class ContainerAppsRevisionReplicasGetReplicaSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Replicas_Get.json
+ */
+ /**
+ * Sample code: Get Container App's revision replica.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ getContainerAppSRevisionReplica(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisionReplicas()
+ .getReplicaWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09", "myapp--0wlqy09-5d9774cff-5wnd8",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisionReplicas_ListReplicas
+
+```java
+/**
+ * Samples for ContainerAppsRevisionReplicas ListReplicas.
+ */
+public final class ContainerAppsRevisionReplicasListReplicasSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Replicas_List.json
+ */
+ /**
+ * Sample code: List Container App's replicas.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ listContainerAppSReplicas(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisionReplicas()
+ .listReplicasWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_ActivateRevision
+
+```java
+/**
+ * Samples for ContainerAppsRevisions ActivateRevision.
+ */
+public final class ContainerAppsRevisionsActivateRevisionSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Activate.json
+ */
+ /**
+ * Sample code: Activate Container App's revision.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ activateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions()
+ .activateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_DeactivateRevision
+
+```java
+/**
+ * Samples for ContainerAppsRevisions DeactivateRevision.
+ */
+public final class ContainerAppsRevisionsDeactivateRevisionSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Deactivate.json
+ */
+ /**
+ * Sample code: Deactivate Container App's revision.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ deactivateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions()
+ .deactivateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsDiagnostics_ListDetectors
+### ContainerAppsRevisions_GetRevision
```java
/**
- * Samples for ContainerAppsDiagnostics ListDetectors.
+ * Samples for ContainerAppsRevisions GetRevision.
*/
-public final class ContainerAppsDiagnosticsListDetectorsSamples {
+public final class ContainerAppsRevisionsGetRevisionSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ContainerAppsDiagnostics_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Get.json
*/
/**
- * Sample code: Get the list of available diagnostics for a given Container App.
+ * Sample code: Get Container App's revision.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void getTheListOfAvailableDiagnosticsForAGivenContainerApp(
- com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics().listDetectors("mikono-workerapp-test-rg", "mikono-capp-stage1",
- com.azure.core.util.Context.NONE);
+ public static void
+ getContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions()
+ .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsDiagnostics_ListRevisions
+### ContainerAppsRevisions_ListRevisions
```java
/**
- * Samples for ContainerAppsDiagnostics ListRevisions.
+ * Samples for ContainerAppsRevisions ListRevisions.
*/
-public final class ContainerAppsDiagnosticsListRevisionsSamples {
+public final class ContainerAppsRevisionsListRevisionsSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
@@ -2318,176 +2944,225 @@ public final class ContainerAppsDiagnosticsListRevisionsSamples {
*/
public static void
listContainerAppSRevisions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsDiagnostics().listRevisions("rg", "testcontainerApp0", null,
- com.azure.core.util.Context.NONE);
+ manager.containerAppsRevisions()
+ .listRevisions("rg", "testcontainerApp0", null, com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisionReplicas_GetReplica
+### ContainerAppsRevisions_RestartRevision
```java
/**
- * Samples for ContainerAppsRevisionReplicas GetReplica.
+ * Samples for ContainerAppsRevisions RestartRevision.
*/
-public final class ContainerAppsRevisionReplicasGetReplicaSamples {
+public final class ContainerAppsRevisionsRestartRevisionSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Replicas_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Restart.json
*/
/**
- * Sample code: Get Container App's revision replica.
+ * Sample code: Restart Container App's revision.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- getContainerAppSRevisionReplica(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisionReplicas().getReplicaWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09",
- "myapp--0wlqy09-5d9774cff-5wnd8", com.azure.core.util.Context.NONE);
+ restartContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsRevisions()
+ .restartRevisionWithResponse("rg", "testStaticSite0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisionReplicas_ListReplicas
+### ContainerAppsSessionPools_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcontainers.models.ContainerType;
+import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
+import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ExecutionType;
+import com.azure.resourcemanager.appcontainers.models.PoolManagementType;
+import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionContainer;
+import com.azure.resourcemanager.appcontainers.models.SessionContainerResources;
+import com.azure.resourcemanager.appcontainers.models.SessionIngress;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkStatus;
+import java.util.Arrays;
+
/**
- * Samples for ContainerAppsRevisionReplicas ListReplicas.
+ * Samples for ContainerAppsSessionPools CreateOrUpdate.
*/
-public final class ContainerAppsRevisionReplicasListReplicasSamples {
+public final class ContainerAppsSessionPoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Replicas_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_CreateOrUpdate.json
*/
/**
- * Sample code: List Container App's replicas.
+ * Sample code: Create or Update Session Pool.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- listContainerAppSReplicas(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisionReplicas().listReplicasWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09",
- com.azure.core.util.Context.NONE);
+ createOrUpdateSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools()
+ .define("testsessionpool")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withContainerType(ContainerType.CUSTOM_CONTAINER)
+ .withPoolManagementType(PoolManagementType.DYNAMIC)
+ .withScaleConfiguration(
+ new ScaleConfiguration().withMaxConcurrentSessions(500).withReadySessionInstances(100))
+ .withDynamicPoolConfiguration(
+ new DynamicPoolConfiguration().withExecutionType(ExecutionType.TIMED).withCooldownPeriodInSeconds(600))
+ .withCustomContainerTemplate(new CustomContainerTemplate()
+ .withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
+ .withName("testinitcontainer")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new SessionContainerResources().withCpu(0.25D).withMemory("0.5Gi"))))
+ .withIngress(new SessionIngress().withTargetPort(80)))
+ .withSessionNetworkConfiguration(
+ new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
+ .create();
}
}
```
-### ContainerAppsRevisions_ActivateRevision
+### ContainerAppsSessionPools_Delete
```java
/**
- * Samples for ContainerAppsRevisions ActivateRevision.
+ * Samples for ContainerAppsSessionPools Delete.
*/
-public final class ContainerAppsRevisionsActivateRevisionSamples {
+public final class ContainerAppsSessionPoolsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_Activate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Delete.json
*/
/**
- * Sample code: Activate Container App's revision.
+ * Sample code: Delete Session Pool.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- activateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().activateRevisionWithResponse("rg", "testcontainerApp0",
- "testcontainerApp0-pjxhsye", com.azure.core.util.Context.NONE);
+ public static void deleteSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools().delete("rg", "testsessionpool", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisions_DeactivateRevision
+### ContainerAppsSessionPools_GetByResourceGroup
```java
/**
- * Samples for ContainerAppsRevisions DeactivateRevision.
+ * Samples for ContainerAppsSessionPools GetByResourceGroup.
*/
-public final class ContainerAppsRevisionsDeactivateRevisionSamples {
+public final class ContainerAppsSessionPoolsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_Deactivate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Get.json
*/
/**
- * Sample code: Deactivate Container App's revision.
+ * Sample code: Get Session Pool.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- deactivateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().deactivateRevisionWithResponse("rg", "testcontainerApp0",
- "testcontainerApp0-pjxhsye", com.azure.core.util.Context.NONE);
+ public static void getSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools()
+ .getByResourceGroupWithResponse("rg", "testsessionpool", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisions_GetRevision
+### ContainerAppsSessionPools_List
```java
/**
- * Samples for ContainerAppsRevisions GetRevision.
+ * Samples for ContainerAppsSessionPools List.
*/
-public final class ContainerAppsRevisionsGetRevisionSamples {
+public final class ContainerAppsSessionPoolsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_ListBySubscription.json
*/
/**
- * Sample code: Get Container App's revision.
+ * Sample code: List Session Pools by subscription.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- getContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
- com.azure.core.util.Context.NONE);
+ listSessionPoolsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools().list(com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisions_ListRevisions
+### ContainerAppsSessionPools_ListByResourceGroup
```java
/**
- * Samples for ContainerAppsRevisions ListRevisions.
+ * Samples for ContainerAppsSessionPools ListByResourceGroup.
*/
-public final class ContainerAppsRevisionsListRevisionsSamples {
+public final class ContainerAppsSessionPoolsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_ListByResourceGroup.json
*/
/**
- * Sample code: List Container App's revisions.
+ * Sample code: List Session Pools by resource group.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void
- listContainerAppSRevisions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().listRevisions("rg", "testcontainerApp0", null,
- com.azure.core.util.Context.NONE);
+ listSessionPoolsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsRevisions_RestartRevision
+### ContainerAppsSessionPools_Update
```java
+import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
+import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ExecutionType;
+import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionContainer;
+import com.azure.resourcemanager.appcontainers.models.SessionContainerResources;
+import com.azure.resourcemanager.appcontainers.models.SessionIngress;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkStatus;
+import com.azure.resourcemanager.appcontainers.models.SessionPool;
+import java.util.Arrays;
+
/**
- * Samples for ContainerAppsRevisions RestartRevision.
+ * Samples for ContainerAppsSessionPools Update.
*/
-public final class ContainerAppsRevisionsRestartRevisionSamples {
+public final class ContainerAppsSessionPoolsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_Restart.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Patch.json
*/
/**
- * Sample code: Restart Container App's revision.
+ * Sample code: Update Session Pool.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
- public static void
- restartContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().restartRevisionWithResponse("rg", "testStaticSite0",
- "testcontainerApp0-pjxhsye", com.azure.core.util.Context.NONE);
+ public static void updateSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ SessionPool resource = manager.containerAppsSessionPools()
+ .getByResourceGroupWithResponse("rg", "testsessionpool", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withScaleConfiguration(
+ new ScaleConfiguration().withMaxConcurrentSessions(500).withReadySessionInstances(100))
+ .withDynamicPoolConfiguration(
+ new DynamicPoolConfiguration().withExecutionType(ExecutionType.TIMED).withCooldownPeriodInSeconds(600))
+ .withCustomContainerTemplate(new CustomContainerTemplate()
+ .withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
+ .withName("testinitcontainer")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new SessionContainerResources().withCpu(0.25D).withMemory("0.5Gi"))))
+ .withIngress(new SessionIngress().withTargetPort(80)))
+ .withSessionNetworkConfiguration(
+ new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
+ .apply();
}
}
```
@@ -2506,8 +3181,7 @@ import java.util.Arrays;
*/
public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * SourceControls_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App SourceControl.
@@ -2516,15 +3190,22 @@ public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
*/
public static void createOrUpdateContainerAppSourceControl(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSourceControls().define("current")
+ manager.containerAppsSourceControls()
+ .define("current")
.withExistingContainerApp("workerapps-rg-xj", "testcanadacentral")
- .withRepoUrl("https://github.com/xwang971/ghatest").withBranch("master")
+ .withRepoUrl("https://github.com/xwang971/ghatest")
+ .withBranch("master")
.withGithubActionConfiguration(new GithubActionConfiguration()
.withRegistryInfo(new RegistryInfo().withRegistryUrl("test-registry.azurecr.io")
- .withRegistryUsername("test-registry").withRegistryPassword("fakeTokenPlaceholder"))
+ .withRegistryUsername("test-registry")
+ .withRegistryPassword("fakeTokenPlaceholder"))
.withAzureCredentials(new AzureCredentials().withClientId("")
- .withClientSecret("fakeTokenPlaceholder").withTenantId("").withKind("feaderated"))
- .withContextPath("./").withGithubPersonalAccessToken("fakeTokenPlaceholder").withImage("image/tag")
+ .withClientSecret("fakeTokenPlaceholder")
+ .withTenantId("")
+ .withKind("feaderated"))
+ .withContextPath("./")
+ .withGithubPersonalAccessToken("fakeTokenPlaceholder")
+ .withImage("image/tag")
.withBuildEnvironmentVariables(
Arrays.asList(new EnvironmentVariable().withName("foo1").withValue("bar1"),
new EnvironmentVariable().withName("foo2").withValue("bar2"))))
@@ -2541,8 +3222,7 @@ public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
*/
public final class ContainerAppsSourceControlsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/SourceControls_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_Delete.json
*/
/**
* Sample code: Delete Container App SourceControl.
@@ -2551,8 +3231,8 @@ public final class ContainerAppsSourceControlsDeleteSamples {
*/
public static void
deleteContainerAppSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSourceControls().delete("workerapps-rg-xj", "testcanadacentral", "current",
- com.azure.core.util.Context.NONE);
+ manager.containerAppsSourceControls()
+ .delete("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
}
}
```
@@ -2565,8 +3245,7 @@ public final class ContainerAppsSourceControlsDeleteSamples {
*/
public final class ContainerAppsSourceControlsGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/SourceControls_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_Get.json
*/
/**
* Sample code: Get Container App's SourceControl.
@@ -2575,8 +3254,8 @@ public final class ContainerAppsSourceControlsGetSamples {
*/
public static void
getContainerAppSSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSourceControls().getWithResponse("workerapps-rg-xj", "testcanadacentral", "current",
- com.azure.core.util.Context.NONE);
+ manager.containerAppsSourceControls()
+ .getWithResponse("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE);
}
}
```
@@ -2589,8 +3268,7 @@ public final class ContainerAppsSourceControlsGetSamples {
*/
public final class ContainerAppsSourceControlsListByContainerAppSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * SourceControls_ListByContainer.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_ListByContainer.json
*/
/**
* Sample code: List App's Source Controls.
@@ -2598,8 +3276,8 @@ public final class ContainerAppsSourceControlsListByContainerAppSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void listAppSSourceControls(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsSourceControls().listByContainerApp("workerapps-rg-xj", "testcanadacentral",
- com.azure.core.util.Context.NONE);
+ manager.containerAppsSourceControls()
+ .listByContainerApp("workerapps-rg-xj", "testcanadacentral", com.azure.core.util.Context.NONE);
}
}
```
@@ -2618,8 +3296,7 @@ import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPol
*/
public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json
*/
/**
* Sample code: Create or update dapr component resiliency policy with outbound policy only.
@@ -2628,22 +3305,25 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
*/
public static void createOrUpdateDaprComponentResiliencyPolicyWithOutboundPolicyOnly(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies().define("myresiliencypolicy")
+ manager.daprComponentResiliencyPolicies()
+ .define("myresiliencypolicy")
.withExistingDaprComponent("examplerg", "myenvironment", "mydaprcomponent")
.withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration()
.withHttpRetryPolicy(new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(5)
.withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration()
- .withInitialDelayInMilliseconds(100).withMaxIntervalInMilliseconds(30000)))
+ .withInitialDelayInMilliseconds(100)
+ .withMaxIntervalInMilliseconds(30000)))
.withTimeoutPolicy(
new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(12))
- .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration()
- .withConsecutiveErrors(3).withTimeoutInSeconds(20).withIntervalInSeconds(60)))
+ .withCircuitBreakerPolicy(
+ new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(3)
+ .withTimeoutInSeconds(20)
+ .withIntervalInSeconds(60)))
.create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprComponentResiliencyPolicy_CreateOrUpdate_AllOptions.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponentResiliencyPolicy_CreateOrUpdate_AllOptions.json
*/
/**
* Sample code: Create or update dapr component resiliency policy with all options.
@@ -2652,30 +3332,36 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
*/
public static void createOrUpdateDaprComponentResiliencyPolicyWithAllOptions(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies().define("myresiliencypolicy")
+ manager.daprComponentResiliencyPolicies()
+ .define("myresiliencypolicy")
.withExistingDaprComponent("examplerg", "myenvironment", "mydaprcomponent")
.withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration()
.withHttpRetryPolicy(new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(15)
.withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration()
- .withInitialDelayInMilliseconds(2000).withMaxIntervalInMilliseconds(5500)))
+ .withInitialDelayInMilliseconds(2000)
+ .withMaxIntervalInMilliseconds(5500)))
.withTimeoutPolicy(
new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(30))
- .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration()
- .withConsecutiveErrors(5).withTimeoutInSeconds(10).withIntervalInSeconds(4)))
+ .withCircuitBreakerPolicy(
+ new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(5)
+ .withTimeoutInSeconds(10)
+ .withIntervalInSeconds(4)))
.withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration()
.withHttpRetryPolicy(new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(5)
.withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration()
- .withInitialDelayInMilliseconds(100).withMaxIntervalInMilliseconds(30000)))
+ .withInitialDelayInMilliseconds(100)
+ .withMaxIntervalInMilliseconds(30000)))
.withTimeoutPolicy(
new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(12))
- .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration()
- .withConsecutiveErrors(3).withTimeoutInSeconds(20).withIntervalInSeconds(60)))
+ .withCircuitBreakerPolicy(
+ new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(3)
+ .withTimeoutInSeconds(20)
+ .withIntervalInSeconds(60)))
.create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json
*/
/**
* Sample code: Create or update dapr component resiliency policy with sparse options.
@@ -2684,14 +3370,17 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
*/
public static void createOrUpdateDaprComponentResiliencyPolicyWithSparseOptions(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies().define("myresiliencypolicy")
+ manager.daprComponentResiliencyPolicies()
+ .define("myresiliencypolicy")
.withExistingDaprComponent("examplerg", "myenvironment", "mydaprcomponent")
.withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration()
.withHttpRetryPolicy(new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(5)
.withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration()
- .withInitialDelayInMilliseconds(2000).withMaxIntervalInMilliseconds(5500)))
- .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration()
- .withConsecutiveErrors(3).withTimeoutInSeconds(20)))
+ .withInitialDelayInMilliseconds(2000)
+ .withMaxIntervalInMilliseconds(5500)))
+ .withCircuitBreakerPolicy(
+ new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(3)
+ .withTimeoutInSeconds(20)))
.withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration().withTimeoutPolicy(
new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(12)))
.create();
@@ -2707,8 +3396,7 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples {
*/
public final class DaprComponentResiliencyPoliciesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprComponentResiliencyPolicies_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponentResiliencyPolicies_Delete.json
*/
/**
* Sample code: Delete dapr component resiliency policy.
@@ -2717,8 +3405,9 @@ public final class DaprComponentResiliencyPoliciesDeleteSamples {
*/
public static void
deleteDaprComponentResiliencyPolicy(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies().deleteWithResponse("examplerg", "myenvironment", "mydaprcomponent",
- "myresiliencypolicy", com.azure.core.util.Context.NONE);
+ manager.daprComponentResiliencyPolicies()
+ .deleteWithResponse("examplerg", "myenvironment", "mydaprcomponent", "myresiliencypolicy",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2731,8 +3420,7 @@ public final class DaprComponentResiliencyPoliciesDeleteSamples {
*/
public final class DaprComponentResiliencyPoliciesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprComponentResiliencyPolicies_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponentResiliencyPolicies_Get.json
*/
/**
* Sample code: Get Dapr component resiliency policy.
@@ -2741,8 +3429,9 @@ public final class DaprComponentResiliencyPoliciesGetSamples {
*/
public static void
getDaprComponentResiliencyPolicy(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies().getWithResponse("examplerg", "myenvironment", "mydaprcomponent",
- "myresiliencypolicy", com.azure.core.util.Context.NONE);
+ manager.daprComponentResiliencyPolicies()
+ .getWithResponse("examplerg", "myenvironment", "mydaprcomponent", "myresiliencypolicy",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2755,8 +3444,7 @@ public final class DaprComponentResiliencyPoliciesGetSamples {
*/
public final class DaprComponentResiliencyPoliciesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprComponentResiliencyPolicies_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponentResiliencyPolicies_List.json
*/
/**
* Sample code: List Dapr component resiliency policies.
@@ -2765,8 +3453,8 @@ public final class DaprComponentResiliencyPoliciesListSamples {
*/
public static void
listDaprComponentResiliencyPolicies(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponentResiliencyPolicies().list("examplerg", "myenvironment", "mydaprcomponent",
- com.azure.core.util.Context.NONE);
+ manager.daprComponentResiliencyPolicies()
+ .list("examplerg", "myenvironment", "mydaprcomponent", com.azure.core.util.Context.NONE);
}
}
```
@@ -2786,8 +3474,7 @@ import java.util.Arrays;
*/
public final class DaprComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprComponents_CreateOrUpdate_Secrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
*/
/**
* Sample code: Create or update dapr component with secrets.
@@ -2796,26 +3483,28 @@ 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);
+ 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);
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprComponents_CreateOrUpdate_SecretStoreComponent.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
*/
/**
* Sample code: Create or update dapr component with secret store component.
@@ -2824,20 +3513,24 @@ 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);
+ 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);
}
}
```
@@ -2850,8 +3543,7 @@ public final class DaprComponentsCreateOrUpdateSamples {
*/
public final class DaprComponentsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DaprComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
@@ -2859,8 +3551,8 @@ public final class DaprComponentsDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteDaprComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents().deleteWithResponse("examplerg", "myenvironment", "reddog",
- com.azure.core.util.Context.NONE);
+ manager.daprComponents()
+ .deleteWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
@@ -2873,8 +3565,7 @@ public final class DaprComponentsDeleteSamples {
*/
public final class DaprComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprComponents_Get_SecretStoreComponent.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json
*/
/**
* Sample code: Get Dapr Component with secret store component.
@@ -2883,14 +3574,12 @@ public final class DaprComponentsGetSamples {
*/
public static void getDaprComponentWithSecretStoreComponent(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents().getWithResponse("examplerg", "myenvironment", "reddog",
- com.azure.core.util.Context.NONE);
+ manager.daprComponents()
+ .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DaprComponents_Get_Secrets.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_Get_Secrets.json
*/
/**
* Sample code: Get Dapr Component with secrets.
@@ -2899,8 +3588,8 @@ public final class DaprComponentsGetSamples {
*/
public static void
getDaprComponentWithSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents().getWithResponse("examplerg", "myenvironment", "reddog",
- com.azure.core.util.Context.NONE);
+ manager.daprComponents()
+ .getWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
@@ -2913,8 +3602,7 @@ public final class DaprComponentsGetSamples {
*/
public final class DaprComponentsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DaprComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
@@ -2935,9 +3623,7 @@ public final class DaprComponentsListSamples {
*/
public final class DaprComponentsListSecretsSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DaprComponents_ListSecrets.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_ListSecrets.json
*/
/**
* Sample code: List Container Apps Secrets.
@@ -2946,8 +3632,8 @@ public final class DaprComponentsListSecretsSamples {
*/
public static void
listContainerAppsSecrets(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprComponents().listSecretsWithResponse("examplerg", "myenvironment", "reddog",
- com.azure.core.util.Context.NONE);
+ manager.daprComponents()
+ .listSecretsWithResponse("examplerg", "myenvironment", "reddog", com.azure.core.util.Context.NONE);
}
}
```
@@ -2967,8 +3653,7 @@ import java.util.Map;
*/
public final class DaprSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json
*/
/**
* Sample code: Create or update dapr subscription with route rules and metadata.
@@ -2977,20 +3662,22 @@ public final class DaprSubscriptionsCreateOrUpdateSamples {
*/
public static void createOrUpdateDaprSubscriptionWithRouteRulesAndMetadata(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions().define("mysubscription")
- .withExistingManagedEnvironment("examplerg", "myenvironment").withPubsubName("mypubsubcomponent")
+ manager.daprSubscriptions()
+ .define("mysubscription")
+ .withExistingManagedEnvironment("examplerg", "myenvironment")
+ .withPubsubName("mypubsubcomponent")
.withTopic("inventory")
.withRoutes(new DaprSubscriptionRoutes()
.withRules(Arrays.asList(
new DaprSubscriptionRouteRule().withMatch("event.type == 'widget'").withPath("/widgets"),
new DaprSubscriptionRouteRule().withMatch("event.type == 'gadget'").withPath("/gadgets")))
.withDefaultProperty("/products"))
- .withMetadata(mapOf("foo", "bar", "hello", "world")).create();
+ .withMetadata(mapOf("foo", "bar", "hello", "world"))
+ .create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprSubscriptions_CreateOrUpdate_DefaultRoute.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_CreateOrUpdate_DefaultRoute.json
*/
/**
* Sample code: Create or update dapr subscription with default route only.
@@ -2999,14 +3686,17 @@ public final class DaprSubscriptionsCreateOrUpdateSamples {
*/
public static void createOrUpdateDaprSubscriptionWithDefaultRouteOnly(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions().define("mysubscription")
- .withExistingManagedEnvironment("examplerg", "myenvironment").withPubsubName("mypubsubcomponent")
- .withTopic("inventory").withRoutes(new DaprSubscriptionRoutes().withDefaultProperty("/products")).create();
+ manager.daprSubscriptions()
+ .define("mysubscription")
+ .withExistingManagedEnvironment("examplerg", "myenvironment")
+ .withPubsubName("mypubsubcomponent")
+ .withTopic("inventory")
+ .withRoutes(new DaprSubscriptionRoutes().withDefaultProperty("/products"))
+ .create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json
*/
/**
* Sample code: Create or update dapr subscription with bulk subscribe configuration and scopes.
@@ -3015,11 +3705,15 @@ public final class DaprSubscriptionsCreateOrUpdateSamples {
*/
public static void createOrUpdateDaprSubscriptionWithBulkSubscribeConfigurationAndScopes(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions().define("mysubscription")
- .withExistingManagedEnvironment("examplerg", "myenvironment").withPubsubName("mypubsubcomponent")
- .withTopic("inventory").withRoutes(new DaprSubscriptionRoutes().withDefaultProperty("/products"))
+ manager.daprSubscriptions()
+ .define("mysubscription")
+ .withExistingManagedEnvironment("examplerg", "myenvironment")
+ .withPubsubName("mypubsubcomponent")
+ .withTopic("inventory")
+ .withRoutes(new DaprSubscriptionRoutes().withDefaultProperty("/products"))
.withScopes(Arrays.asList("warehouseapp", "customersupportapp"))
- .withBulkSubscribe(new DaprSubscriptionBulkSubscribeOptions().withEnabled(true).withMaxMessagesCount(123)
+ .withBulkSubscribe(new DaprSubscriptionBulkSubscribeOptions().withEnabled(true)
+ .withMaxMessagesCount(123)
.withMaxAwaitDurationMs(500))
.create();
}
@@ -3046,9 +3740,7 @@ public final class DaprSubscriptionsCreateOrUpdateSamples {
*/
public final class DaprSubscriptionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DaprSubscriptions_Delete.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_Delete.json
*/
/**
* Sample code: Delete dapr subscription.
@@ -3056,8 +3748,8 @@ public final class DaprSubscriptionsDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteDaprSubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions().deleteWithResponse("examplerg", "myenvironment", "mysubscription",
- com.azure.core.util.Context.NONE);
+ manager.daprSubscriptions()
+ .deleteWithResponse("examplerg", "myenvironment", "mysubscription", com.azure.core.util.Context.NONE);
}
}
```
@@ -3070,8 +3762,7 @@ public final class DaprSubscriptionsDeleteSamples {
*/
public final class DaprSubscriptionsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprSubscriptions_Get_DefaultRoute.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_Get_DefaultRoute.json
*/
/**
* Sample code: Get Dapr subscription with bulk subscribe configuration and scopes.
@@ -3080,13 +3771,12 @@ public final class DaprSubscriptionsGetSamples {
*/
public static void getDaprSubscriptionWithBulkSubscribeConfigurationAndScopes(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions().getWithResponse("examplerg", "myenvironment", "mypubsubcomponent",
- com.azure.core.util.Context.NONE);
+ manager.daprSubscriptions()
+ .getWithResponse("examplerg", "myenvironment", "mypubsubcomponent", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprSubscriptions_Get_BulkSubscribeAndScopes.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_Get_BulkSubscribeAndScopes.json
*/
/**
* Sample code: Get Dapr subscription with default route only.
@@ -3095,13 +3785,12 @@ public final class DaprSubscriptionsGetSamples {
*/
public static void getDaprSubscriptionWithDefaultRouteOnly(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions().getWithResponse("examplerg", "myenvironment", "mypubsubcomponent",
- com.azure.core.util.Context.NONE);
+ manager.daprSubscriptions()
+ .getWithResponse("examplerg", "myenvironment", "mypubsubcomponent", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DaprSubscriptions_Get_RouteRulesAndMetadata.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_Get_RouteRulesAndMetadata.json
*/
/**
* Sample code: GetDapr subscription with route rules and metadata.
@@ -3110,8 +3799,8 @@ public final class DaprSubscriptionsGetSamples {
*/
public static void getDaprSubscriptionWithRouteRulesAndMetadata(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.daprSubscriptions().getWithResponse("examplerg", "myenvironment", "mypubsubcomponent",
- com.azure.core.util.Context.NONE);
+ manager.daprSubscriptions()
+ .getWithResponse("examplerg", "myenvironment", "mypubsubcomponent", com.azure.core.util.Context.NONE);
}
}
```
@@ -3124,8 +3813,7 @@ public final class DaprSubscriptionsGetSamples {
*/
public final class DaprSubscriptionsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DaprSubscriptions_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_List.json
*/
/**
* Sample code: List Dapr subscriptions.
@@ -3151,8 +3839,7 @@ import java.util.Arrays;
*/
public final class DotNetComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DotNetComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update .NET Component.
@@ -3161,7 +3848,8 @@ public final class DotNetComponentsCreateOrUpdateSamples {
*/
public static void
createOrUpdateNETComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents().define("mydotnetcomponent")
+ manager.dotNetComponents()
+ .define("mydotnetcomponent")
.withExistingManagedEnvironment("examplerg", "myenvironment")
.withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
.withConfigurations(Arrays.asList(
@@ -3170,8 +3858,7 @@ public final class DotNetComponentsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DotNetComponents_CreateOrUpdate_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_CreateOrUpdate_ServiceBind.json
*/
/**
* Sample code: Create or Update .NET Component with ServiceBinds.
@@ -3180,13 +3867,15 @@ public final class DotNetComponentsCreateOrUpdateSamples {
*/
public static void createOrUpdateNETComponentWithServiceBinds(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents().define("mydotnetcomponent")
+ manager.dotNetComponents()
+ .define("mydotnetcomponent")
.withExistingManagedEnvironment("examplerg", "myenvironment")
.withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
.withConfigurations(Arrays.asList(
new DotNetComponentConfigurationProperty().withPropertyName("dashboard-theme").withValue("dark")))
- .withServiceBinds(Arrays.asList(new DotNetComponentServiceBind().withName("yellowcat").withServiceId(
- "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat")))
+ .withServiceBinds(Arrays.asList(new DotNetComponentServiceBind().withName("yellowcat")
+ .withServiceId(
+ "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat")))
.create();
}
}
@@ -3200,8 +3889,7 @@ public final class DotNetComponentsCreateOrUpdateSamples {
*/
public final class DotNetComponentsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DotNetComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Delete.json
*/
/**
* Sample code: Delete .NET Component.
@@ -3209,8 +3897,8 @@ public final class DotNetComponentsDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteNETComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents().delete("examplerg", "myenvironment", "mydotnetcomponent",
- com.azure.core.util.Context.NONE);
+ manager.dotNetComponents()
+ .delete("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE);
}
}
```
@@ -3223,8 +3911,7 @@ public final class DotNetComponentsDeleteSamples {
*/
public final class DotNetComponentsGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DotNetComponents_Get_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Get_ServiceBind.json
*/
/**
* Sample code: Get .NET Component with ServiceBinds.
@@ -3233,13 +3920,12 @@ public final class DotNetComponentsGetSamples {
*/
public static void
getNETComponentWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents().getWithResponse("examplerg", "myenvironment", "mydotnetcomponent",
- com.azure.core.util.Context.NONE);
+ manager.dotNetComponents()
+ .getWithResponse("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DotNetComponents_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Get.json
*/
/**
* Sample code: Get .NET Component.
@@ -3247,8 +3933,8 @@ public final class DotNetComponentsGetSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getNETComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.dotNetComponents().getWithResponse("examplerg", "myenvironment", "mydotnetcomponent",
- com.azure.core.util.Context.NONE);
+ manager.dotNetComponents()
+ .getWithResponse("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE);
}
}
```
@@ -3261,8 +3947,7 @@ public final class DotNetComponentsGetSamples {
*/
public final class DotNetComponentsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DotNetComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_List.json
*/
/**
* Sample code: List .NET Components.
@@ -3274,8 +3959,7 @@ public final class DotNetComponentsListSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DotNetComponents_List_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_List_ServiceBind.json
*/
/**
* Sample code: List .NET Components with ServiceBinds.
@@ -3303,8 +3987,7 @@ import java.util.Arrays;
*/
public final class DotNetComponentsUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * DotNetComponents_Patch_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Patch_ServiceBind.json
*/
/**
* Sample code: Patch .NET Component with ServiceBinds.
@@ -3316,17 +3999,18 @@ public final class DotNetComponentsUpdateSamples {
DotNetComponent resource = manager.dotNetComponents()
.getWithResponse("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
+ resource.update()
+ .withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
.withConfigurations(Arrays.asList(
new DotNetComponentConfigurationProperty().withPropertyName("dashboard-theme").withValue("dark")))
- .withServiceBinds(Arrays.asList(new DotNetComponentServiceBind().withName("yellowcat").withServiceId(
- "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat")))
+ .withServiceBinds(Arrays.asList(new DotNetComponentServiceBind().withName("yellowcat")
+ .withServiceId(
+ "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat")))
.apply();
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/DotNetComponents_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Patch.json
*/
/**
* Sample code: Patch .NET Component.
@@ -3337,7 +4021,8 @@ public final class DotNetComponentsUpdateSamples {
DotNetComponent resource = manager.dotNetComponents()
.getWithResponse("examplerg", "myenvironment", "mydotnetcomponent", com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
+ resource.update()
+ .withComponentType(DotNetComponentType.ASPIRE_DASHBOARD)
.withConfigurations(Arrays.asList(
new DotNetComponentConfigurationProperty().withPropertyName("dashboard-theme").withValue("dark")))
.apply();
@@ -3345,12 +4030,36 @@ public final class DotNetComponentsUpdateSamples {
}
```
+### FunctionsExtension_InvokeFunctionsHost
+
+```java
+/**
+ * Samples for FunctionsExtension InvokeFunctionsHost.
+ */
+public final class FunctionsExtensionInvokeFunctionsHostSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/FunctionsExtension_Post.json
+ */
+ /**
+ * Sample code: Invoke Functions host using Functions Extension API.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void invokeFunctionsHostUsingFunctionsExtensionAPI(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.functionsExtensions()
+ .invokeFunctionsHostWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ "testcontainerApp0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### JavaComponents_CreateOrUpdate
```java
import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty;
import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentType;
+import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent;
import java.util.Arrays;
/**
@@ -3358,8 +4067,7 @@ import java.util.Arrays;
*/
public final class JavaComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * JavaComponents_CreateOrUpdate_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_CreateOrUpdate_ServiceBind.json
*/
/**
* Sample code: Create or Update Java Component with ServiceBinds.
@@ -3368,21 +4076,22 @@ public final class JavaComponentsCreateOrUpdateSamples {
*/
public static void createOrUpdateJavaComponentWithServiceBinds(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents().define("myjavacomponent").withExistingManagedEnvironment("examplerg", "myenvironment")
- .withComponentType(JavaComponentType.SPRING_BOOT_ADMIN)
- .withConfigurations(Arrays.asList(
+ manager.javaComponents()
+ .define("myjavacomponent")
+ .withExistingManagedEnvironment("examplerg", "myenvironment")
+ .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
.withValue("true"),
new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
.withValue("10000ms")))
- .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat").withServiceId(
- "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat")))
+ .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat")
+ .withServiceId(
+ "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat"))))
.create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * JavaComponents_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Java Component.
@@ -3391,13 +4100,14 @@ public final class JavaComponentsCreateOrUpdateSamples {
*/
public static void
createOrUpdateJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents().define("myjavacomponent").withExistingManagedEnvironment("examplerg", "myenvironment")
- .withComponentType(JavaComponentType.SPRING_BOOT_ADMIN)
- .withConfigurations(Arrays.asList(
+ manager.javaComponents()
+ .define("myjavacomponent")
+ .withExistingManagedEnvironment("examplerg", "myenvironment")
+ .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
.withValue("true"),
new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
- .withValue("10000ms")))
+ .withValue("10000ms"))))
.create();
}
}
@@ -3411,8 +4121,7 @@ public final class JavaComponentsCreateOrUpdateSamples {
*/
public final class JavaComponentsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/JavaComponents_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Delete.json
*/
/**
* Sample code: Delete Java Component.
@@ -3420,8 +4129,8 @@ public final class JavaComponentsDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents().delete("examplerg", "myenvironment", "myjavacomponent",
- com.azure.core.util.Context.NONE);
+ manager.javaComponents()
+ .delete("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
}
}
```
@@ -3434,8 +4143,7 @@ public final class JavaComponentsDeleteSamples {
*/
public final class JavaComponentsGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/JavaComponents_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Get.json
*/
/**
* Sample code: Get Java Component.
@@ -3443,13 +4151,12 @@ public final class JavaComponentsGetSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getJavaComponent(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents().getWithResponse("examplerg", "myenvironment", "myjavacomponent",
- com.azure.core.util.Context.NONE);
+ manager.javaComponents()
+ .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * JavaComponents_Get_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Get_ServiceBind.json
*/
/**
* Sample code: Get Java Component with ServiceBinds.
@@ -3458,8 +4165,8 @@ public final class JavaComponentsGetSamples {
*/
public static void
getJavaComponentWithServiceBinds(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.javaComponents().getWithResponse("examplerg", "myenvironment", "myjavacomponent",
- com.azure.core.util.Context.NONE);
+ manager.javaComponents()
+ .getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE);
}
}
```
@@ -3472,8 +4179,7 @@ public final class JavaComponentsGetSamples {
*/
public final class JavaComponentsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/JavaComponents_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_List.json
*/
/**
* Sample code: List Java Components.
@@ -3485,8 +4191,7 @@ public final class JavaComponentsListSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * JavaComponents_List_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_List_ServiceBind.json
*/
/**
* Sample code: List Java Components with ServiceBinds.
@@ -3506,7 +4211,7 @@ public final class JavaComponentsListSamples {
import com.azure.resourcemanager.appcontainers.models.JavaComponent;
import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty;
import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentType;
+import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent;
import java.util.Arrays;
/**
@@ -3514,8 +4219,7 @@ import java.util.Arrays;
*/
public final class JavaComponentsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/JavaComponents_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Patch.json
*/
/**
* Sample code: Patch Java Component.
@@ -3526,18 +4230,17 @@ public final class JavaComponentsUpdateSamples {
JavaComponent resource = manager.javaComponents()
.getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withComponentType(JavaComponentType.SPRING_BOOT_ADMIN)
- .withConfigurations(Arrays.asList(
+ resource.update()
+ .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
.withValue("true"),
new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
- .withValue("10000ms")))
+ .withValue("10000ms"))))
.apply();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * JavaComponents_Patch_ServiceBind.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Patch_ServiceBind.json
*/
/**
* Sample code: Patch Java Component with ServiceBinds.
@@ -3549,14 +4252,15 @@ public final class JavaComponentsUpdateSamples {
JavaComponent resource = manager.javaComponents()
.getWithResponse("examplerg", "myenvironment", "myjavacomponent", com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withComponentType(JavaComponentType.SPRING_BOOT_ADMIN)
- .withConfigurations(Arrays.asList(
+ resource.update()
+ .withProperties(new SpringBootAdminComponent().withConfigurations(Arrays.asList(
new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts")
.withValue("true"),
new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval")
.withValue("10000ms")))
- .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat").withServiceId(
- "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat")))
+ .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat")
+ .withServiceId(
+ "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat"))))
.apply();
}
}
@@ -3574,6 +4278,8 @@ import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHt
import com.azure.resourcemanager.appcontainers.models.ContainerResources;
import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes;
+import com.azure.resourcemanager.appcontainers.models.IdentitySettings;
+import com.azure.resourcemanager.appcontainers.models.IdentitySettingsLifeCycle;
import com.azure.resourcemanager.appcontainers.models.InitContainer;
import com.azure.resourcemanager.appcontainers.models.JobConfiguration;
import com.azure.resourcemanager.appcontainers.models.JobConfigurationEventTriggerConfig;
@@ -3581,19 +4287,23 @@ import com.azure.resourcemanager.appcontainers.models.JobConfigurationManualTrig
import com.azure.resourcemanager.appcontainers.models.JobScale;
import com.azure.resourcemanager.appcontainers.models.JobScaleRule;
import com.azure.resourcemanager.appcontainers.models.JobTemplate;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.appcontainers.models.TriggerType;
import com.azure.resourcemanager.appcontainers.models.Type;
+import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity;
import com.azure.resourcemanager.appcontainers.models.VolumeMount;
import java.io.IOException;
import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
/**
* Samples for Jobs CreateOrUpdate.
*/
public final class JobsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * Job_CreateorUpdate_ConnectedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_CreateorUpdate_ConnectedEnvironment.json
*/
/**
* Sample code: Create or Update Container Apps Job On A Connected Environment.
@@ -3602,34 +4312,43 @@ public final class JobsCreateOrUpdateSamples {
*/
public static void createOrUpdateContainerAppsJobOnAConnectedEnvironment(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().define("testcontainerAppsJob0").withRegion("East US").withExistingResourceGroup("rg")
+ manager.jobs()
+ .define("testcontainerAppsJob0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation")
.withType(ExtendedLocationTypes.CUSTOM_LOCATION))
.withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube")
- .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL).withReplicaTimeout(10)
- .withReplicaRetryLimit(10).withManualTriggerConfig(
+ .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL)
+ .withReplicaTimeout(10)
+ .withReplicaRetryLimit(10)
+ .withManualTriggerConfig(
new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1).withParallelism(4)))
.withTemplate(new JobTemplate()
.withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testinitcontainerAppsJob0").withCommand(Arrays.asList("/bin/sh"))
+ .withName("testinitcontainerAppsJob0")
+ .withCommand(Arrays.asList("/bin/sh"))
.withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
.withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays
- .asList(new Container().withImage("repo/testcontainerAppsJob0:v1").withName("testcontainerAppsJob0")
- .withProbes(Arrays.asList(new ContainerAppProbe()
- .withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("Custom-Header").withValue("Awesome")))
- .withPath("/health").withPort(8080))
- .withInitialDelaySeconds(5).withPeriodSeconds(3).withType(Type.LIVENESS))))))
+ .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppsJob0:v1")
+ .withName("testcontainerAppsJob0")
+ .withProbes(Arrays.asList(new ContainerAppProbe()
+ .withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080))
+ .withInitialDelaySeconds(5)
+ .withPeriodSeconds(3)
+ .withType(Type.LIVENESS))))))
.create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * Job_CreateorUpdate_EventTrigger.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_CreateorUpdate_EventTrigger.json
*/
/**
* Sample code: Create or Update Container Apps Job With Event Driven Trigger.
@@ -3638,20 +4357,34 @@ public final class JobsCreateOrUpdateSamples {
*/
public static void createOrUpdateContainerAppsJobWithEventDrivenTrigger(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) throws IOException {
- manager.jobs().define("testcontainerAppsJob0").withRegion("East US").withExistingResourceGroup("rg")
+ manager.jobs()
+ .define("testcontainerAppsJob0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity",
+ new UserAssignedIdentity())))
.withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.EVENT).withReplicaTimeout(10)
- .withReplicaRetryLimit(10).withEventTriggerConfig(
- new JobConfigurationEventTriggerConfig().withReplicaCompletionCount(1).withParallelism(4)
- .withScale(new JobScale().withPollingInterval(40).withMinExecutions(1).withMaxExecutions(5)
- .withRules(Arrays.asList(new JobScaleRule().withName("servicebuscalingrule")
- .withType("azure-servicebus")
- .withMetadata(SerializerFactory.createDefaultManagementSerializerAdapter().deserialize(
- "{\"topicName\":\"my-topic\"}", Object.class, SerializerEncoding.JSON)))))))
+ .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.EVENT)
+ .withReplicaTimeout(10)
+ .withReplicaRetryLimit(10)
+ .withEventTriggerConfig(new JobConfigurationEventTriggerConfig().withReplicaCompletionCount(1)
+ .withParallelism(4)
+ .withScale(new JobScale().withPollingInterval(40)
+ .withMinExecutions(1)
+ .withMaxExecutions(5)
+ .withRules(Arrays.asList(new JobScaleRule().withName("servicebuscalingrule")
+ .withType("azure-servicebus")
+ .withMetadata(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"topicName\":\"my-topic\"}", Object.class, SerializerEncoding.JSON))
+ .withIdentity(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity"))))))
.withTemplate(new JobTemplate()
.withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testinitcontainerAppsJob0").withCommand(Arrays.asList("/bin/sh"))
+ .withName("testinitcontainerAppsJob0")
+ .withCommand(Arrays.asList("/bin/sh"))
.withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
.withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
.withContainers(Arrays.asList(
@@ -3660,8 +4393,7 @@ public final class JobsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_CreateorUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_CreateorUpdate.json
*/
/**
* Sample code: Create or Update Container Apps Job.
@@ -3670,33 +4402,65 @@ public final class JobsCreateOrUpdateSamples {
*/
public static void
createOrUpdateContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().define("testcontainerAppsJob0").withRegion("East US").withExistingResourceGroup("rg")
+ manager.jobs()
+ .define("testcontainerAppsJob0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withIdentity(new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity",
+ new UserAssignedIdentity())))
.withEnvironmentId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
- .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL).withReplicaTimeout(10)
- .withReplicaRetryLimit(10).withManualTriggerConfig(
- new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1).withParallelism(4)))
- .withTemplate(
- new JobTemplate()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testinitcontainerAppsJob0").withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(
- new Container().withImage("repo/testcontainerAppsJob0:v1").withName("testcontainerAppsJob0")
- .withVolumeMounts(Arrays.asList(
- new VolumeMount().withVolumeName("azurefile").withMountPath("/mnt/path1")
- .withSubPath("subPath1"),
- new VolumeMount().withVolumeName("nfsazurefile").withMountPath("/mnt/path2")
- .withSubPath("subPath2")))
- .withProbes(Arrays.asList(new ContainerAppProbe()
- .withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("Custom-Header").withValue("Awesome")))
- .withPath("/health").withPort(8080))
- .withInitialDelaySeconds(5).withPeriodSeconds(3).withType(Type.LIVENESS))))))
+ .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL)
+ .withReplicaTimeout(10)
+ .withReplicaRetryLimit(10)
+ .withManualTriggerConfig(
+ new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1).withParallelism(4))
+ .withIdentitySettings(Arrays.asList(new IdentitySettings().withIdentity(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")
+ .withLifecycle(IdentitySettingsLifeCycle.ALL),
+ new IdentitySettings().withIdentity("system").withLifecycle(IdentitySettingsLifeCycle.INIT))))
+ .withTemplate(new JobTemplate()
+ .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
+ .withName("testinitcontainerAppsJob0")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
+ .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppsJob0:v1")
+ .withName("testcontainerAppsJob0")
+ .withVolumeMounts(Arrays.asList(
+ new VolumeMount().withVolumeName("azurefile")
+ .withMountPath("/mnt/path1")
+ .withSubPath("subPath1"),
+ new VolumeMount().withVolumeName("nfsazurefile")
+ .withMountPath("/mnt/path2")
+ .withSubPath("subPath2")))
+ .withProbes(Arrays.asList(new ContainerAppProbe()
+ .withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(
+ Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080))
+ .withInitialDelaySeconds(5)
+ .withPeriodSeconds(3)
+ .withType(Type.LIVENESS))))))
.create();
}
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
}
```
@@ -3708,8 +4472,7 @@ public final class JobsCreateOrUpdateSamples {
*/
public final class JobsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Delete.json
*/
/**
* Sample code: Delete Container Apps Job.
@@ -3730,8 +4493,7 @@ public final class JobsDeleteSamples {
*/
public final class JobsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Get.json
*/
/**
* Sample code: Get Container Apps Job.
@@ -3752,8 +4514,7 @@ public final class JobsGetByResourceGroupSamples {
*/
public final class JobsGetDetectorSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_GetDetector.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_GetDetector.json
*/
/**
* Sample code: Get diagnostic data for a Container App Job.
@@ -3762,8 +4523,9 @@ public final class JobsGetDetectorSamples {
*/
public static void
getDiagnosticDataForAContainerAppJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().getDetectorWithResponse("mikono-workerapp-test-rg", "mikonojob1", "containerappjobnetworkIO",
- com.azure.core.util.Context.NONE);
+ manager.jobs()
+ .getDetectorWithResponse("mikono-workerapp-test-rg", "mikonojob1", "containerappjobnetworkIO",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3776,8 +4538,7 @@ public final class JobsGetDetectorSamples {
*/
public final class JobsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Jobs_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Jobs_ListBySubscription.json
*/
/**
* Sample code: List Container Apps Jobs by subscription.
@@ -3799,9 +4560,7 @@ public final class JobsListSamples {
*/
public final class JobsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Jobs_ListByResourceGroup.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Jobs_ListByResourceGroup.json
*/
/**
* Sample code: List Container Apps Jobs by resource group.
@@ -3823,8 +4582,7 @@ public final class JobsListByResourceGroupSamples {
*/
public final class JobsListDetectorsSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_ListDetectors.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ListDetectors.json
*/
/**
* Sample code: Get the list of available diagnostic data for a Container App Job.
@@ -3833,8 +4591,8 @@ public final class JobsListDetectorsSamples {
*/
public static void getTheListOfAvailableDiagnosticDataForAContainerAppJob(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().listDetectorsWithResponse("mikono-workerapp-test-rg", "mikonojob1",
- com.azure.core.util.Context.NONE);
+ manager.jobs()
+ .listDetectorsWithResponse("mikono-workerapp-test-rg", "mikonojob1", com.azure.core.util.Context.NONE);
}
}
```
@@ -3847,8 +4605,7 @@ public final class JobsListDetectorsSamples {
*/
public final class JobsListSecretsSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_ListSecrets.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ListSecrets.json
*/
/**
* Sample code: List Container Apps Job Secrets.
@@ -3870,8 +4627,7 @@ public final class JobsListSecretsSamples {
*/
public final class JobsProxyGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_ProxyGet.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ProxyGet.json
*/
/**
* Sample code: Get Container App Job by name.
@@ -3898,8 +4654,7 @@ import java.util.Arrays;
*/
public final class JobsStartSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_Start.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Start.json
*/
/**
* Sample code: Run a Container Apps Job.
@@ -3907,16 +4662,17 @@ public final class JobsStartSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void runAContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.jobs().start("rg", "testcontainerAppsJob0",
- new JobExecutionTemplate()
+ manager.jobs()
+ .start("rg", "testcontainerAppsJob0", new JobExecutionTemplate()
.withContainers(Arrays.asList(new JobExecutionContainer().withImage("repo/testcontainerAppsJob0:v4")
.withName("testcontainerAppsJob0")
.withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
.withInitContainers(Arrays.asList(new JobExecutionContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testinitcontainerAppsJob0").withCommand(Arrays.asList("/bin/sh"))
+ .withName("testinitcontainerAppsJob0")
+ .withCommand(Arrays.asList("/bin/sh"))
.withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
.withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi")))),
- com.azure.core.util.Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3929,8 +4685,7 @@ public final class JobsStartSamples {
*/
public final class JobsStopExecutionSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_Stop_Execution.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Stop_Execution.json
*/
/**
* Sample code: Terminate a Container Apps Job.
@@ -3952,8 +4707,7 @@ public final class JobsStopExecutionSamples {
*/
public final class JobsStopMultipleExecutionsSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_Stop_Multiple.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Stop_Multiple.json
*/
/**
* Sample code: Terminate Multiple Container Apps Job.
@@ -3990,8 +4744,7 @@ import java.util.Arrays;
*/
public final class JobsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_Patch.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Patch.json
*/
/**
* Sample code: Patch Container Apps Job.
@@ -4000,28 +4753,33 @@ public final class JobsUpdateSamples {
*/
public static void patchContainerAppsJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
Job resource = manager.jobs()
- .getByResourceGroupWithResponse("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE).getValue();
+ .getByResourceGroupWithResponse("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE)
+ .getValue();
resource.update()
- .withProperties(
- new JobPatchPropertiesProperties()
- .withConfiguration(
- new JobConfiguration().withTriggerType(TriggerType.MANUAL).withReplicaTimeout(10)
- .withReplicaRetryLimit(10)
- .withManualTriggerConfig(new JobConfigurationManualTriggerConfig()
- .withReplicaCompletionCount(1).withParallelism(4)))
- .withTemplate(new JobTemplate()
- .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
- .withName("testinitcontainerAppsJob0").withCommand(Arrays.asList("/bin/sh"))
- .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
- .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
- .withContainers(Arrays.asList(
- new Container().withImage("repo/testcontainerAppsJob0:v1").withName("testcontainerAppsJob0")
- .withProbes(Arrays.asList(new ContainerAppProbe()
- .withHttpGet(new ContainerAppProbeHttpGet()
- .withHttpHeaders(Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem()
- .withName("Custom-Header").withValue("Awesome")))
- .withPath("/health").withPort(8080))
- .withInitialDelaySeconds(3).withPeriodSeconds(3).withType(Type.LIVENESS)))))))
+ .withProperties(new JobPatchPropertiesProperties()
+ .withConfiguration(new JobConfiguration().withTriggerType(TriggerType.MANUAL)
+ .withReplicaTimeout(10)
+ .withReplicaRetryLimit(10)
+ .withManualTriggerConfig(
+ new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1).withParallelism(4)))
+ .withTemplate(new JobTemplate()
+ .withInitContainers(Arrays.asList(new InitContainer().withImage("repo/testcontainerAppsJob0:v4")
+ .withName("testinitcontainerAppsJob0")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new ContainerResources().withCpu(0.2D).withMemory("100Mi"))))
+ .withContainers(Arrays.asList(new Container().withImage("repo/testcontainerAppsJob0:v1")
+ .withName("testcontainerAppsJob0")
+ .withProbes(Arrays.asList(new ContainerAppProbe()
+ .withHttpGet(new ContainerAppProbeHttpGet()
+ .withHttpHeaders(Arrays
+ .asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("Custom-Header")
+ .withValue("Awesome")))
+ .withPath("/health")
+ .withPort(8080))
+ .withInitialDelaySeconds(3)
+ .withPeriodSeconds(3)
+ .withType(Type.LIVENESS)))))))
.apply();
}
}
@@ -4035,8 +4793,7 @@ public final class JobsUpdateSamples {
*/
public final class JobsExecutionsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_Executions_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Executions_Get.json
*/
/**
* Sample code: Get a Container Apps Job Executions.
@@ -4061,8 +4818,7 @@ import com.azure.resourcemanager.appcontainers.models.ManagedCertificateProperti
*/
public final class ManagedCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedCertificate_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificate_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Certificate.
@@ -4071,7 +4827,9 @@ public final class ManagedCertificatesCreateOrUpdateSamples {
*/
public static void
createOrUpdateCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedCertificates().define("certificate-firendly-name").withRegion("East US")
+ manager.managedCertificates()
+ .define("certificate-firendly-name")
+ .withRegion("East US")
.withExistingManagedEnvironment("examplerg", "testcontainerenv")
.withProperties(new ManagedCertificateProperties().withSubjectName("my-subject-name.company.country.net")
.withDomainControlValidation(ManagedCertificateDomainControlValidation.CNAME))
@@ -4088,9 +4846,7 @@ public final class ManagedCertificatesCreateOrUpdateSamples {
*/
public final class ManagedCertificatesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ManagedCertificate_Delete.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -4098,8 +4854,9 @@ public final class ManagedCertificatesDeleteSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void deleteCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedCertificates().deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- com.azure.core.util.Context.NONE);
+ manager.managedCertificates()
+ .deleteWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4112,8 +4869,7 @@ public final class ManagedCertificatesDeleteSamples {
*/
public final class ManagedCertificatesGetSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ManagedCertificate_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -4121,8 +4877,9 @@ public final class ManagedCertificatesGetSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedCertificates().getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
- com.azure.core.util.Context.NONE);
+ manager.managedCertificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4135,8 +4892,7 @@ public final class ManagedCertificatesGetSamples {
*/
public final class ManagedCertificatesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedCertificates_ListByManagedEnvironment.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
*/
/**
* Sample code: List Managed Certificates by Managed Environment.
@@ -4162,9 +4918,7 @@ import java.util.Map;
*/
public final class ManagedCertificatesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ManagedCertificates_Patch.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificates_Patch.json
*/
/**
* Sample code: Patch Managed Certificate.
@@ -4173,8 +4927,10 @@ public final class ManagedCertificatesUpdateSamples {
*/
public static void
patchManagedCertificate(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- ManagedCertificate resource = manager.managedCertificates().getWithResponse("examplerg", "testcontainerenv",
- "certificate-firendly-name", com.azure.core.util.Context.NONE).getValue();
+ ManagedCertificate resource = manager.managedCertificates()
+ .getWithResponse("examplerg", "testcontainerenv", "certificate-firendly-name",
+ com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
}
@@ -4200,8 +4956,7 @@ public final class ManagedCertificatesUpdateSamples {
*/
public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironmentDiagnostics_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json
*/
/**
* Sample code: Get diagnostic data for a managed environments.
@@ -4210,8 +4965,9 @@ public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
*/
public static void getDiagnosticDataForAManagedEnvironments(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentDiagnostics().getDetectorWithResponse("mikono-workerapp-test-rg", "mikonokubeenv",
- "ManagedEnvAvailabilityMetrics", com.azure.core.util.Context.NONE);
+ manager.managedEnvironmentDiagnostics()
+ .getDetectorWithResponse("mikono-workerapp-test-rg", "mikonokubeenv", "ManagedEnvAvailabilityMetrics",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4224,8 +4980,7 @@ public final class ManagedEnvironmentDiagnosticsGetDetectorSamples {
*/
public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironmentDiagnostics_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentDiagnostics_List.json
*/
/**
* Sample code: Get the list of available diagnostic data for a managed environments.
@@ -4234,8 +4989,133 @@ public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
*/
public static void getTheListOfAvailableDiagnosticDataForAManagedEnvironments(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentDiagnostics().listDetectorsWithResponse("mikono-workerapp-test-rg", "mikonokubeenv",
- com.azure.core.util.Context.NONE);
+ manager.managedEnvironmentDiagnostics()
+ .listDetectorsWithResponse("mikono-workerapp-test-rg", "mikonokubeenv", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appcontainers.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.appcontainers.models.PrivateEndpointServiceConnectionStatus;
+import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnectionState;
+
+/**
+ * Samples for ManagedEnvironmentPrivateEndpointConnections CreateOrUpdate.
+ */
+public final class ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Update a Private Endpoint Connection by Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void updateAPrivateEndpointConnectionByManagedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ PrivateEndpointConnection resource = manager.managedEnvironmentPrivateEndpointConnections()
+ .getWithResponse("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
+ .withActionsRequired("None"))
+ .apply();
+ }
+}
+```
+
+### ManagedEnvironmentPrivateEndpointConnections_Delete
+
+```java
+/**
+ * Samples for ManagedEnvironmentPrivateEndpointConnections Delete.
+ */
+public final class ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentPrivateEndpointConnections_Delete.json
+ */
+ /**
+ * Sample code: Delete a Private Endpoint Connection by Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteAPrivateEndpointConnectionByManagedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentPrivateEndpointConnections()
+ .delete("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironmentPrivateEndpointConnections_Get
+
+```java
+/**
+ * Samples for ManagedEnvironmentPrivateEndpointConnections Get.
+ */
+public final class ManagedEnvironmentPrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentPrivateEndpointConnections_Get.json
+ */
+ /**
+ * Sample code: Get a Private Endpoint Connection by Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getAPrivateEndpointConnectionByManagedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentPrivateEndpointConnections()
+ .getWithResponse("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironmentPrivateEndpointConnections_List
+
+```java
+/**
+ * Samples for ManagedEnvironmentPrivateEndpointConnections List.
+ */
+public final class ManagedEnvironmentPrivateEndpointConnectionsListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentPrivateEndpointConnections_List.json
+ */
+ /**
+ * Sample code: List Private Endpoint Connections by Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listPrivateEndpointConnectionsByManagedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentPrivateEndpointConnections()
+ .list("examplerg", "managedEnv", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ManagedEnvironmentPrivateLinkResources_List
+
+```java
+/**
+ * Samples for ManagedEnvironmentPrivateLinkResources List.
+ */
+public final class ManagedEnvironmentPrivateLinkResourcesListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentPrivateLinkResources_List.json
+ */
+ /**
+ * Sample code: List Private Link Resources by Managed Environment.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listPrivateLinkResourcesByManagedEnvironment(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.managedEnvironmentPrivateLinkResources()
+ .list("examplerg", "managedEnv", com.azure.core.util.Context.NONE);
}
}
```
@@ -4248,8 +5128,7 @@ public final class ManagedEnvironmentDiagnosticsListDetectorsSamples {
*/
public final class ManagedEnvironmentUsagesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironmentUsages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentUsages_List.json
*/
/**
* Sample code: List managed environment usages.
@@ -4275,6 +5154,8 @@ import com.azure.resourcemanager.appcontainers.models.Header;
import com.azure.resourcemanager.appcontainers.models.LogAnalyticsConfiguration;
import com.azure.resourcemanager.appcontainers.models.LogsConfiguration;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.appcontainers.models.MetricsConfiguration;
@@ -4294,8 +5175,7 @@ import java.util.Map;
*/
public final class ManagedEnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
*/
/**
* Sample code: Create environment with custom infrastructureResourceGroup.
@@ -4304,7 +5184,9 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
*/
public static void createEnvironmentWithCustomInfrastructureResourceGroup(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironments().define("testcontainerenv").withRegion("East US")
+ manager.managedEnvironments()
+ .define("testcontainerenv")
+ .withRegion("East US")
.withExistingResourceGroup("examplerg")
.withDaprAIConnectionString(
"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
@@ -4314,21 +5196,28 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
new LogAnalyticsConfiguration().withCustomerId("string").withSharedKey("fakeTokenPlaceholder")))
.withZoneRedundant(true)
.withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("www.my-name.com")
- .withCertificateValue("Y2VydA==".getBytes()).withCertificatePassword("fakeTokenPlaceholder"))
+ .withCertificateValue("Y2VydA==".getBytes())
+ .withCertificatePassword("fakeTokenPlaceholder"))
.withWorkloadProfiles(Arrays.asList(
- new WorkloadProfile().withName("My-GP-01").withWorkloadProfileType("GeneralPurpose").withMinimumCount(3)
+ new WorkloadProfile().withName("My-GP-01")
+ .withWorkloadProfileType("GeneralPurpose")
+ .withMinimumCount(3)
.withMaximumCount(12),
- new WorkloadProfile().withName("My-MO-01").withWorkloadProfileType("MemoryOptimized")
- .withMinimumCount(3).withMaximumCount(6),
- new WorkloadProfile().withName("My-CO-01").withWorkloadProfileType("ComputeOptimized")
- .withMinimumCount(3).withMaximumCount(6),
+ new WorkloadProfile().withName("My-MO-01")
+ .withWorkloadProfileType("MemoryOptimized")
+ .withMinimumCount(3)
+ .withMaximumCount(6),
+ new WorkloadProfile().withName("My-CO-01")
+ .withWorkloadProfileType("ComputeOptimized")
+ .withMinimumCount(3)
+ .withMaximumCount(6),
new WorkloadProfile().withName("My-consumption-01").withWorkloadProfileType("Consumption")))
- .withInfrastructureResourceGroup("myInfrastructureRgName").create();
+ .withInfrastructureResourceGroup("myInfrastructureRgName")
+ .create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironments_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json
*/
/**
* Sample code: Create environments.
@@ -4336,7 +5225,9 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void createEnvironments(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironments().define("testcontainerenv").withRegion("East US")
+ manager.managedEnvironments()
+ .define("testcontainerenv")
+ .withRegion("East US")
.withExistingResourceGroup("examplerg")
.withIdentity(new ManagedServiceIdentity()
.withType(ManagedServiceIdentityType.fromString("SystemAssigned, UserAssigned"))
@@ -4347,9 +5238,10 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/")
.withVnetConfiguration(new VnetConfiguration().withInfrastructureSubnetId(
"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"))
- .withAppLogsConfiguration(
- new AppLogsConfiguration().withLogAnalyticsConfiguration(new LogAnalyticsConfiguration()
- .withCustomerId("string").withSharedKey("fakeTokenPlaceholder").withDynamicJsonColumns(true)))
+ .withAppLogsConfiguration(new AppLogsConfiguration()
+ .withLogAnalyticsConfiguration(new LogAnalyticsConfiguration().withCustomerId("string")
+ .withSharedKey("fakeTokenPlaceholder")
+ .withDynamicJsonColumns(true)))
.withAppInsightsConfiguration(new AppInsightsConfiguration().withConnectionString(
"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"))
.withOpenTelemetryConfiguration(
@@ -4359,7 +5251,8 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
.withDataDogConfiguration(
new DataDogConfiguration().withSite("string").withKey("fakeTokenPlaceholder"))
.withOtlpConfigurations(Arrays.asList(new OtlpConfiguration().withName("dashboard")
- .withEndpoint("dashboard.k8s.region.azurecontainerapps.io:80").withInsecure(true)
+ .withEndpoint("dashboard.k8s.region.azurecontainerapps.io:80")
+ .withInsecure(true)
.withHeaders(Arrays
.asList(new Header().withKey("fakeTokenPlaceholder").withValue("xxxxxxxxxxx"))))))
.withTracesConfiguration(new TracesConfiguration().withDestinations(Arrays.asList("appInsights")))
@@ -4367,17 +5260,26 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
.withMetricsConfiguration(new MetricsConfiguration().withDestinations(Arrays.asList("dataDog"))))
.withZoneRedundant(true)
.withCustomDomainConfiguration(new CustomDomainConfiguration().withDnsSuffix("www.my-name.com")
- .withCertificateValue("Y2VydA==".getBytes()).withCertificatePassword("fakeTokenPlaceholder"))
+ .withCertificateValue("Y2VydA==".getBytes())
+ .withCertificatePassword("fakeTokenPlaceholder"))
.withWorkloadProfiles(Arrays.asList(
- new WorkloadProfile().withName("My-GP-01").withWorkloadProfileType("GeneralPurpose").withMinimumCount(3)
+ new WorkloadProfile().withName("My-GP-01")
+ .withWorkloadProfileType("GeneralPurpose")
+ .withMinimumCount(3)
.withMaximumCount(12),
- new WorkloadProfile().withName("My-MO-01").withWorkloadProfileType("MemoryOptimized")
- .withMinimumCount(3).withMaximumCount(6),
- new WorkloadProfile().withName("My-CO-01").withWorkloadProfileType("ComputeOptimized")
- .withMinimumCount(3).withMaximumCount(6),
+ new WorkloadProfile().withName("My-MO-01")
+ .withWorkloadProfileType("MemoryOptimized")
+ .withMinimumCount(3)
+ .withMaximumCount(6),
+ new WorkloadProfile().withName("My-CO-01")
+ .withWorkloadProfileType("ComputeOptimized")
+ .withMinimumCount(3)
+ .withMaximumCount(6),
new WorkloadProfile().withName("My-consumption-01").withWorkloadProfileType("Consumption")))
.withPeerAuthentication(
new ManagedEnvironmentPropertiesPeerAuthentication().withMtls(new Mtls().withEnabled(true)))
+ .withPeerTrafficConfiguration(new ManagedEnvironmentPropertiesPeerTrafficConfiguration()
+ .withEncryption(new ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption().withEnabled(true)))
.create();
}
@@ -4403,9 +5305,7 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples {
*/
public final class ManagedEnvironmentsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ManagedEnvironments_Delete.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Delete.json
*/
/**
* Sample code: Delete environment by name.
@@ -4427,8 +5327,7 @@ public final class ManagedEnvironmentsDeleteSamples {
*/
public final class ManagedEnvironmentsGetAuthTokenSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironments_GetAuthToken.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_GetAuthToken.json
*/
/**
* Sample code: Get Managed Environment Auth Token.
@@ -4450,8 +5349,7 @@ public final class ManagedEnvironmentsGetAuthTokenSamples {
*/
public final class ManagedEnvironmentsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ManagedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -4459,8 +5357,8 @@ public final class ManagedEnvironmentsGetByResourceGroupSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getEnvironmentsByName(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironments().getByResourceGroupWithResponse("examplerg", "jlaw-demo1",
- com.azure.core.util.Context.NONE);
+ manager.managedEnvironments()
+ .getByResourceGroupWithResponse("examplerg", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
@@ -4473,8 +5371,7 @@ public final class ManagedEnvironmentsGetByResourceGroupSamples {
*/
public final class ManagedEnvironmentsListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironments_ListBySubscription.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_ListBySubscription.json
*/
/**
* Sample code: List environments by subscription.
@@ -4496,8 +5393,7 @@ public final class ManagedEnvironmentsListSamples {
*/
public final class ManagedEnvironmentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironments_ListByResourceGroup.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json
*/
/**
* Sample code: List environments by resource group.
@@ -4519,8 +5415,7 @@ public final class ManagedEnvironmentsListByResourceGroupSamples {
*/
public final class ManagedEnvironmentsListWorkloadProfileStatesSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironments_ListWorkloadProfileStates.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
*/
/**
* Sample code: List environments by subscription.
@@ -4529,8 +5424,8 @@ public final class ManagedEnvironmentsListWorkloadProfileStatesSamples {
*/
public static void
listEnvironmentsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironments().listWorkloadProfileStates("examplerg", "jlaw-demo1",
- com.azure.core.util.Context.NONE);
+ manager.managedEnvironments()
+ .listWorkloadProfileStates("examplerg", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
@@ -4547,9 +5442,7 @@ import java.util.Map;
*/
public final class ManagedEnvironmentsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ManagedEnvironments_Patch.
- * json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Patch.json
*/
/**
* Sample code: Patch Managed Environment.
@@ -4586,8 +5479,7 @@ public final class ManagedEnvironmentsUpdateSamples {
*/
public final class ManagedEnvironmentsDiagnosticsGetRootSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/ManagedEnvironments_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -4595,8 +5487,8 @@ public final class ManagedEnvironmentsDiagnosticsGetRootSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getEnvironmentsByName(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentsDiagnostics().getRootWithResponse("examplerg", "jlaw-demo1",
- com.azure.core.util.Context.NONE);
+ manager.managedEnvironmentsDiagnostics()
+ .getRootWithResponse("examplerg", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
@@ -4614,8 +5506,7 @@ import com.azure.resourcemanager.appcontainers.models.NfsAzureFileProperties;
*/
public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json
*/
/**
* Sample code: Create or update environments storage for NFS Azure file.
@@ -4624,16 +5515,18 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
*/
public static void createOrUpdateEnvironmentsStorageForNFSAzureFile(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentsStorages().define("jlaw-demo1")
+ manager.managedEnvironmentsStorages()
+ .define("jlaw-demo1")
.withExistingManagedEnvironment("examplerg", "managedEnv")
- .withProperties(new ManagedEnvironmentStorageProperties().withNfsAzureFile(new NfsAzureFileProperties()
- .withServer("server1").withAccessMode(AccessMode.READ_ONLY).withShareName("share1")))
+ .withProperties(new ManagedEnvironmentStorageProperties()
+ .withNfsAzureFile(new NfsAzureFileProperties().withServer("server1")
+ .withAccessMode(AccessMode.READ_ONLY)
+ .withShareName("share1")))
.create();
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironmentsStorages_CreateOrUpdate.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
* Sample code: Create or update environments storage.
@@ -4642,11 +5535,14 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
*/
public static void
createOrUpdateEnvironmentsStorage(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentsStorages().define("jlaw-demo1")
+ manager.managedEnvironmentsStorages()
+ .define("jlaw-demo1")
.withExistingManagedEnvironment("examplerg", "managedEnv")
- .withProperties(new ManagedEnvironmentStorageProperties().withAzureFile(
- new AzureFileProperties().withAccountName("account1").withAccountKey("fakeTokenPlaceholder")
- .withAccessMode(AccessMode.READ_ONLY).withShareName("share1")))
+ .withProperties(new ManagedEnvironmentStorageProperties()
+ .withAzureFile(new AzureFileProperties().withAccountName("account1")
+ .withAccountKey("fakeTokenPlaceholder")
+ .withAccessMode(AccessMode.READ_ONLY)
+ .withShareName("share1")))
.create();
}
}
@@ -4660,8 +5556,7 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples {
*/
public final class ManagedEnvironmentsStoragesDeleteSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironmentsStorages_Delete.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentsStorages_Delete.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -4670,8 +5565,8 @@ public final class ManagedEnvironmentsStoragesDeleteSamples {
*/
public static void listEnvironmentsStoragesBySubscription(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentsStorages().deleteWithResponse("examplerg", "managedEnv", "jlaw-demo1",
- com.azure.core.util.Context.NONE);
+ manager.managedEnvironmentsStorages()
+ .deleteWithResponse("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
@@ -4684,8 +5579,7 @@ public final class ManagedEnvironmentsStoragesDeleteSamples {
*/
public final class ManagedEnvironmentsStoragesGetSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironmentsStorages_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentsStorages_Get.json
*/
/**
* Sample code: get a environments storage.
@@ -4694,13 +5588,12 @@ public final class ManagedEnvironmentsStoragesGetSamples {
*/
public static void
getAEnvironmentsStorage(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentsStorages().getWithResponse("examplerg", "managedEnv", "jlaw-demo1",
- com.azure.core.util.Context.NONE);
+ manager.managedEnvironmentsStorages()
+ .getWithResponse("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironmentsStorages_Get_NfsAzureFile.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentsStorages_Get_NfsAzureFile.json
*/
/**
* Sample code: get a environments storage for NFS Azure file.
@@ -4709,8 +5602,8 @@ public final class ManagedEnvironmentsStoragesGetSamples {
*/
public static void getAEnvironmentsStorageForNFSAzureFile(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentsStorages().getWithResponse("examplerg", "managedEnv", "jlaw-demo1",
- com.azure.core.util.Context.NONE);
+ manager.managedEnvironmentsStorages()
+ .getWithResponse("examplerg", "managedEnv", "jlaw-demo1", com.azure.core.util.Context.NONE);
}
}
```
@@ -4723,8 +5616,7 @@ public final class ManagedEnvironmentsStoragesGetSamples {
*/
public final class ManagedEnvironmentsStoragesListSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ManagedEnvironmentsStorages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironmentsStorages_List.json
*/
/**
* Sample code: List environments storages by subscription.
@@ -4733,8 +5625,8 @@ public final class ManagedEnvironmentsStoragesListSamples {
*/
public static void listEnvironmentsStoragesBySubscription(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.managedEnvironmentsStorages().listWithResponse("examplerg", "managedEnv",
- com.azure.core.util.Context.NONE);
+ manager.managedEnvironmentsStorages()
+ .listWithResponse("examplerg", "managedEnv", com.azure.core.util.Context.NONE);
}
}
```
@@ -4749,8 +5641,7 @@ import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReque
*/
public final class NamespacesCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * Certificates_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificates_CheckNameAvailability.json
*/
/**
* Sample code: Certificates_CheckNameAvailability.
@@ -4760,14 +5651,14 @@ public final class NamespacesCheckNameAvailabilitySamples {
public static void
certificatesCheckNameAvailability(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager.namespaces()
- .checkNameAvailabilityWithResponse("examplerg", "testcontainerenv", new CheckNameAvailabilityRequest()
- .withName("testcertificatename").withType("Microsoft.App/managedEnvironments/certificates"),
+ .checkNameAvailabilityWithResponse("examplerg", "testcontainerenv",
+ new CheckNameAvailabilityRequest().withName("testcertificatename")
+ .withType("Microsoft.App/managedEnvironments/certificates"),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * ContainerApps_CheckNameAvailability.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CheckNameAvailability.json
*/
/**
* Sample code: ContainerApps_CheckNameAvailability.
@@ -4776,9 +5667,10 @@ public final class NamespacesCheckNameAvailabilitySamples {
*/
public static void
containerAppsCheckNameAvailability(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.namespaces().checkNameAvailabilityWithResponse("examplerg", "testcontainerenv",
- new CheckNameAvailabilityRequest().withName("testcappname").withType("Microsoft.App/containerApps"),
- com.azure.core.util.Context.NONE);
+ manager.namespaces()
+ .checkNameAvailabilityWithResponse("examplerg", "testcontainerenv",
+ new CheckNameAvailabilityRequest().withName("testcappname").withType("Microsoft.App/containerApps"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4791,8 +5683,7 @@ public final class NamespacesCheckNameAvailabilitySamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Operations_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Operations_List.json
*/
/**
* Sample code: List all operations.
@@ -4813,8 +5704,7 @@ public final class OperationsListSamples {
*/
public final class ResourceProviderGetCustomDomainVerificationIdSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
- * Subscriptions_GetCustomDomainVerificationId.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Subscriptions_GetCustomDomainVerificationId.json
*/
/**
* Sample code: List all operations.
@@ -4835,8 +5725,7 @@ public final class ResourceProviderGetCustomDomainVerificationIdSamples {
*/
public final class ResourceProviderJobExecutionSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_Execution_Get.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Execution_Get.json
*/
/**
* Sample code: Get a single Job Execution.
@@ -4844,8 +5733,8 @@ public final class ResourceProviderJobExecutionSamples {
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void getASingleJobExecution(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.resourceProviders().jobExecutionWithResponse("rg", "testcontainerAppsJob0", "jobExecution1",
- com.azure.core.util.Context.NONE);
+ manager.resourceProviders()
+ .jobExecutionWithResponse("rg", "testcontainerAppsJob0", "jobExecution1", com.azure.core.util.Context.NONE);
}
}
```
@@ -4858,8 +5747,7 @@ public final class ResourceProviderJobExecutionSamples {
*/
public final class UsagesListSamples {
/*
- * x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Usages_List.json
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-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 0bef6c90b82b..bcfb7024373d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for ContainerAppsApi Management
- This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-preview-2023-11.
+ 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-02.
https://github.com/Azure/azure-sdk-for-java
@@ -61,7 +61,7 @@
com.azure
azure-core-test
- 1.26.0-beta.1
+ 1.25.0
test
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 087cc2b9ecae..59521868b7f0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java
@@ -11,8 +11,8 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
@@ -38,24 +38,31 @@
import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsStoragesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsApiClientBuilder;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsAuthConfigsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsByContainerAppsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsPatchesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionReplicasImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSessionPoolsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSourceControlsImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentResiliencyPoliciesImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprSubscriptionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.DotNetComponentsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.FunctionsExtensionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.JavaComponentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.JobsExecutionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.JobsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedCertificatesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentDiagnosticsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentUsagesImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentPrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentPrivateLinkResourcesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsStoragesImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentUsagesImpl;
import com.azure.resourcemanager.appcontainers.implementation.NamespacesImpl;
import com.azure.resourcemanager.appcontainers.implementation.OperationsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ResourceProvidersImpl;
@@ -74,23 +81,30 @@
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.ContainerApps;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsAuthConfigs;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuilds;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildsByContainerApps;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsDiagnostics;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatches;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisionReplicas;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisions;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsSessionPools;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsSourceControls;
import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicies;
import com.azure.resourcemanager.appcontainers.models.DaprComponents;
import com.azure.resourcemanager.appcontainers.models.DaprSubscriptions;
import com.azure.resourcemanager.appcontainers.models.DotNetComponents;
+import com.azure.resourcemanager.appcontainers.models.FunctionsExtensions;
import com.azure.resourcemanager.appcontainers.models.JavaComponents;
import com.azure.resourcemanager.appcontainers.models.Jobs;
import com.azure.resourcemanager.appcontainers.models.JobsExecutions;
import com.azure.resourcemanager.appcontainers.models.ManagedCertificates;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentDiagnostics;
-import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentUsages;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPrivateEndpointConnections;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPrivateLinkResources;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironments;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsDiagnostics;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentsStorages;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentUsages;
import com.azure.resourcemanager.appcontainers.models.Namespaces;
import com.azure.resourcemanager.appcontainers.models.Operations;
import com.azure.resourcemanager.appcontainers.models.ResourceProviders;
@@ -104,6 +118,9 @@
/**
* Entry point to ContainerAppsApiManager.
+ * Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the
+ * function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions
+ * extension resource.
*/
public final class ContainerAppsApiManager {
private AppResiliencies appResiliencies;
@@ -136,6 +153,12 @@ public final class ContainerAppsApiManager {
private ContainerAppsRevisionReplicas containerAppsRevisionReplicas;
+ private ContainerAppsBuildsByContainerApps containerAppsBuildsByContainerApps;
+
+ private ContainerAppsBuilds containerAppsBuilds;
+
+ private ContainerAppsPatches containerAppsPatches;
+
private ContainerAppsDiagnostics containerAppsDiagnostics;
private ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics;
@@ -144,8 +167,12 @@ public final class ContainerAppsApiManager {
private Jobs jobs;
+ private DotNetComponents dotNetComponents;
+
private Operations operations;
+ private JavaComponents javaComponents;
+
private JobsExecutions jobsExecutions;
private ResourceProviders resourceProviders;
@@ -158,6 +185,10 @@ public final class ContainerAppsApiManager {
private Namespaces namespaces;
+ private ManagedEnvironmentPrivateEndpointConnections managedEnvironmentPrivateEndpointConnections;
+
+ private ManagedEnvironmentPrivateLinkResources managedEnvironmentPrivateLinkResources;
+
private DaprComponentResiliencyPolicies daprComponentResiliencyPolicies;
private DaprComponents daprComponents;
@@ -172,9 +203,9 @@ public final class ContainerAppsApiManager {
private ManagedEnvironmentUsages managedEnvironmentUsages;
- private JavaComponents javaComponents;
+ private FunctionsExtensions functionsExtensions;
- private DotNetComponents dotNetComponents;
+ private ContainerAppsSessionPools containerAppsSessionPools;
private final ContainerAppsApiClient clientObject;
@@ -182,8 +213,10 @@ private ContainerAppsApiManager(HttpPipeline httpPipeline, AzureProfile profile,
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject = new ContainerAppsApiClientBuilder().pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval).buildClient();
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
}
/**
@@ -334,12 +367,19 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.appcontainers")
- .append("/").append("1.0.0-beta.7");
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.appcontainers")
+ .append("/")
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
- .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
+ userAgentBuilder.append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}
@@ -358,18 +398,21 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
- policies.addAll(this.policies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY).collect(Collectors.toList()));
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0])).build();
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
return new ContainerAppsApiManager(httpPipeline, profile, defaultPollInterval);
}
}
@@ -562,6 +605,43 @@ public ContainerAppsRevisionReplicas containerAppsRevisionReplicas() {
return containerAppsRevisionReplicas;
}
+ /**
+ * Gets the resource collection API of ContainerAppsBuildsByContainerApps.
+ *
+ * @return Resource collection API of ContainerAppsBuildsByContainerApps.
+ */
+ public ContainerAppsBuildsByContainerApps containerAppsBuildsByContainerApps() {
+ if (this.containerAppsBuildsByContainerApps == null) {
+ this.containerAppsBuildsByContainerApps = new ContainerAppsBuildsByContainerAppsImpl(
+ clientObject.getContainerAppsBuildsByContainerApps(), this);
+ }
+ return containerAppsBuildsByContainerApps;
+ }
+
+ /**
+ * Gets the resource collection API of ContainerAppsBuilds.
+ *
+ * @return Resource collection API of ContainerAppsBuilds.
+ */
+ public ContainerAppsBuilds containerAppsBuilds() {
+ if (this.containerAppsBuilds == null) {
+ this.containerAppsBuilds = new ContainerAppsBuildsImpl(clientObject.getContainerAppsBuilds(), this);
+ }
+ return containerAppsBuilds;
+ }
+
+ /**
+ * Gets the resource collection API of ContainerAppsPatches.
+ *
+ * @return Resource collection API of ContainerAppsPatches.
+ */
+ public ContainerAppsPatches containerAppsPatches() {
+ if (this.containerAppsPatches == null) {
+ this.containerAppsPatches = new ContainerAppsPatchesImpl(clientObject.getContainerAppsPatches(), this);
+ }
+ return containerAppsPatches;
+ }
+
/**
* Gets the resource collection API of ContainerAppsDiagnostics.
*
@@ -613,6 +693,18 @@ public Jobs jobs() {
return jobs;
}
+ /**
+ * Gets the resource collection API of DotNetComponents. It manages DotNetComponent.
+ *
+ * @return Resource collection API of DotNetComponents.
+ */
+ public DotNetComponents dotNetComponents() {
+ if (this.dotNetComponents == null) {
+ this.dotNetComponents = new DotNetComponentsImpl(clientObject.getDotNetComponents(), this);
+ }
+ return dotNetComponents;
+ }
+
/**
* Gets the resource collection API of Operations.
*
@@ -625,6 +717,18 @@ public Operations operations() {
return operations;
}
+ /**
+ * Gets the resource collection API of JavaComponents. It manages JavaComponent.
+ *
+ * @return Resource collection API of JavaComponents.
+ */
+ public JavaComponents javaComponents() {
+ if (this.javaComponents == null) {
+ this.javaComponents = new JavaComponentsImpl(clientObject.getJavaComponents(), this);
+ }
+ return javaComponents;
+ }
+
/**
* Gets the resource collection API of JobsExecutions.
*
@@ -697,6 +801,33 @@ public Namespaces namespaces() {
return namespaces;
}
+ /**
+ * Gets the resource collection API of ManagedEnvironmentPrivateEndpointConnections. It manages
+ * PrivateEndpointConnection.
+ *
+ * @return Resource collection API of ManagedEnvironmentPrivateEndpointConnections.
+ */
+ public ManagedEnvironmentPrivateEndpointConnections managedEnvironmentPrivateEndpointConnections() {
+ if (this.managedEnvironmentPrivateEndpointConnections == null) {
+ this.managedEnvironmentPrivateEndpointConnections = new ManagedEnvironmentPrivateEndpointConnectionsImpl(
+ clientObject.getManagedEnvironmentPrivateEndpointConnections(), this);
+ }
+ return managedEnvironmentPrivateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedEnvironmentPrivateLinkResources.
+ *
+ * @return Resource collection API of ManagedEnvironmentPrivateLinkResources.
+ */
+ public ManagedEnvironmentPrivateLinkResources managedEnvironmentPrivateLinkResources() {
+ if (this.managedEnvironmentPrivateLinkResources == null) {
+ this.managedEnvironmentPrivateLinkResources = new ManagedEnvironmentPrivateLinkResourcesImpl(
+ clientObject.getManagedEnvironmentPrivateLinkResources(), this);
+ }
+ return managedEnvironmentPrivateLinkResources;
+ }
+
/**
* Gets the resource collection API of DaprComponentResiliencyPolicies. It manages DaprComponentResiliencyPolicy.
*
@@ -786,27 +917,28 @@ public ManagedEnvironmentUsages managedEnvironmentUsages() {
}
/**
- * Gets the resource collection API of JavaComponents. It manages JavaComponent.
+ * Gets the resource collection API of FunctionsExtensions.
*
- * @return Resource collection API of JavaComponents.
+ * @return Resource collection API of FunctionsExtensions.
*/
- public JavaComponents javaComponents() {
- if (this.javaComponents == null) {
- this.javaComponents = new JavaComponentsImpl(clientObject.getJavaComponents(), this);
+ public FunctionsExtensions functionsExtensions() {
+ if (this.functionsExtensions == null) {
+ this.functionsExtensions = new FunctionsExtensionsImpl(clientObject.getFunctionsExtensions(), this);
}
- return javaComponents;
+ return functionsExtensions;
}
/**
- * Gets the resource collection API of DotNetComponents. It manages DotNetComponent.
+ * Gets the resource collection API of ContainerAppsSessionPools. It manages SessionPool.
*
- * @return Resource collection API of DotNetComponents.
+ * @return Resource collection API of ContainerAppsSessionPools.
*/
- public DotNetComponents dotNetComponents() {
- if (this.dotNetComponents == null) {
- this.dotNetComponents = new DotNetComponentsImpl(clientObject.getDotNetComponents(), this);
+ public ContainerAppsSessionPools containerAppsSessionPools() {
+ if (this.containerAppsSessionPools == null) {
+ this.containerAppsSessionPools
+ = new ContainerAppsSessionPoolsImpl(clientObject.getContainerAppsSessionPools(), this);
}
- return dotNetComponents;
+ return containerAppsSessionPools;
}
/**
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 b0839ec31463..f0d390ee1103 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
@@ -13,8 +13,7 @@
import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
/**
- * An instance of this class provides access to all the operations defined in
- * ConnectedEnvironmentsDaprComponentsClient.
+ * An instance of this class provides access to all the operations defined in ConnectedEnvironmentsDaprComponentsClient.
*/
public interface ConnectedEnvironmentsDaprComponentsClient {
/**
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 51855da3e2ff..78b99343df82 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
@@ -151,6 +151,27 @@ public interface ContainerAppsApiClient {
*/
ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas();
+ /**
+ * Gets the ContainerAppsBuildsByContainerAppsClient object to access its operations.
+ *
+ * @return the ContainerAppsBuildsByContainerAppsClient object.
+ */
+ ContainerAppsBuildsByContainerAppsClient getContainerAppsBuildsByContainerApps();
+
+ /**
+ * Gets the ContainerAppsBuildsClient object to access its operations.
+ *
+ * @return the ContainerAppsBuildsClient object.
+ */
+ ContainerAppsBuildsClient getContainerAppsBuilds();
+
+ /**
+ * Gets the ContainerAppsPatchesClient object to access its operations.
+ *
+ * @return the ContainerAppsPatchesClient object.
+ */
+ ContainerAppsPatchesClient getContainerAppsPatches();
+
/**
* Gets the ContainerAppsDiagnosticsClient object to access its operations.
*
@@ -179,6 +200,13 @@ public interface ContainerAppsApiClient {
*/
JobsClient getJobs();
+ /**
+ * Gets the DotNetComponentsClient object to access its operations.
+ *
+ * @return the DotNetComponentsClient object.
+ */
+ DotNetComponentsClient getDotNetComponents();
+
/**
* Gets the OperationsClient object to access its operations.
*
@@ -186,6 +214,13 @@ public interface ContainerAppsApiClient {
*/
OperationsClient getOperations();
+ /**
+ * Gets the JavaComponentsClient object to access its operations.
+ *
+ * @return the JavaComponentsClient object.
+ */
+ JavaComponentsClient getJavaComponents();
+
/**
* Gets the JobsExecutionsClient object to access its operations.
*
@@ -228,6 +263,20 @@ public interface ContainerAppsApiClient {
*/
NamespacesClient getNamespaces();
+ /**
+ * Gets the ManagedEnvironmentPrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentPrivateEndpointConnectionsClient object.
+ */
+ ManagedEnvironmentPrivateEndpointConnectionsClient getManagedEnvironmentPrivateEndpointConnections();
+
+ /**
+ * Gets the ManagedEnvironmentPrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentPrivateLinkResourcesClient object.
+ */
+ ManagedEnvironmentPrivateLinkResourcesClient getManagedEnvironmentPrivateLinkResources();
+
/**
* Gets the DaprComponentResiliencyPoliciesClient object to access its operations.
*
@@ -278,16 +327,16 @@ public interface ContainerAppsApiClient {
ManagedEnvironmentUsagesClient getManagedEnvironmentUsages();
/**
- * Gets the JavaComponentsClient object to access its operations.
+ * Gets the FunctionsExtensionsClient object to access its operations.
*
- * @return the JavaComponentsClient object.
+ * @return the FunctionsExtensionsClient object.
*/
- JavaComponentsClient getJavaComponents();
+ FunctionsExtensionsClient getFunctionsExtensions();
/**
- * Gets the DotNetComponentsClient object to access its operations.
+ * Gets the ContainerAppsSessionPoolsClient object to access its operations.
*
- * @return the DotNetComponentsClient object.
+ * @return the ContainerAppsSessionPoolsClient object.
*/
- DotNetComponentsClient getDotNetComponents();
+ ContainerAppsSessionPoolsClient getContainerAppsSessionPools();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsByContainerAppsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsByContainerAppsClient.java
new file mode 100644
index 000000000000..258e621ecb99
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsByContainerAppsClient.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsBuildsByContainerAppsClient.
+ */
+public interface ContainerAppsBuildsByContainerAppsClient {
+ /**
+ * List Container Apps Build resources by Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Container Apps Build Resource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String containerAppName);
+
+ /**
+ * List Container Apps Build resources by Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Container Apps Build Resource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String containerAppName,
+ Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsClient.java
new file mode 100644
index 000000000000..7d3c288df126
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsBuildsClient.java
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsBuildsClient.
+ */
+public interface ContainerAppsBuildsClient {
+ /**
+ * Get a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Build resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String containerAppName,
+ String buildName, Context context);
+
+ /**
+ * Get a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Build resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppsBuildResourceInner get(String resourceGroupName, String containerAppName, String buildName);
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String buildName);
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String buildName,
+ Context context);
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerAppName, String buildName);
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerAppName, String buildName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsPatchesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsPatchesClient.java
new file mode 100644
index 000000000000..12ce9706f0b7
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsPatchesClient.java
@@ -0,0 +1,263 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsPatchResourceInner;
+import com.azure.resourcemanager.appcontainers.models.PatchSkipConfig;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsPatchesClient.
+ */
+public interface ContainerAppsPatchesClient {
+ /**
+ * List Container Apps Patch resources by ContainerApp.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App patch collection as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByContainerApp(String resourceGroupName,
+ String containerAppName);
+
+ /**
+ * List Container Apps Patch resources by ContainerApp.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param filter The filter to apply on the operation. For example, $filter=properties/patchApplyStatus eq
+ * 'Succeeded'.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App patch collection as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByContainerApp(String resourceGroupName, String containerAppName,
+ String filter, Context context);
+
+ /**
+ * Get details for specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details for specific Container Apps Patch by patch name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String containerAppName,
+ String patchName, Context context);
+
+ /**
+ * Get details for specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details for specific Container Apps Patch by patch name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppsPatchResourceInner get(String resourceGroupName, String containerAppName, String patchName);
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String patchName);
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, String patchName,
+ Context context);
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerAppName, String patchName);
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerAppName, String patchName, Context context);
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSkipConfigure(String resourceGroupName, String containerAppName,
+ String patchName, PatchSkipConfig patchSkipConfig);
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSkipConfigure(String resourceGroupName, String containerAppName,
+ String patchName, PatchSkipConfig patchSkipConfig, Context context);
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void skipConfigure(String resourceGroupName, String containerAppName, String patchName,
+ PatchSkipConfig patchSkipConfig);
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void skipConfigure(String resourceGroupName, String containerAppName, String patchName,
+ PatchSkipConfig patchSkipConfig, Context context);
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerAppsPatchResourceInner>
+ beginApply(String resourceGroupName, String containerAppName, String patchName);
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerAppsPatchResourceInner>
+ beginApply(String resourceGroupName, String containerAppName, String patchName, Context context);
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppsPatchResourceInner apply(String resourceGroupName, String containerAppName, String patchName);
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppsPatchResourceInner apply(String resourceGroupName, String containerAppName, String patchName,
+ Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSessionPoolsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSessionPoolsClient.java
new file mode 100644
index 000000000000..78e691488e7d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSessionPoolsClient.java
@@ -0,0 +1,315 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.models.SessionPoolInner;
+import com.azure.resourcemanager.appcontainers.models.SessionPoolUpdatableProperties;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsSessionPoolsClient.
+ */
+public interface ContainerAppsSessionPoolsClient {
+ /**
+ * Get the session pools in a given subscription.
+ *
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get the session pools in a given subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the properties of a session pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a session pool along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String sessionPoolName,
+ Context context);
+
+ /**
+ * Get the properties of a session pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner getByResourceGroup(String resourceGroupName, String sessionPoolName);
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SessionPoolInner> beginCreateOrUpdate(String resourceGroupName,
+ String sessionPoolName, SessionPoolInner sessionPoolEnvelope);
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SessionPoolInner> beginCreateOrUpdate(String resourceGroupName,
+ String sessionPoolName, SessionPoolInner sessionPoolEnvelope, Context context);
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner createOrUpdate(String resourceGroupName, String sessionPoolName,
+ SessionPoolInner sessionPoolEnvelope);
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner createOrUpdate(String resourceGroupName, String sessionPoolName,
+ SessionPoolInner sessionPoolEnvelope, Context context);
+
+ /**
+ * Update properties of a session pool
+ *
+ * Patches a session pool using JSON merge patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SessionPoolInner> beginUpdate(String resourceGroupName,
+ String sessionPoolName, SessionPoolUpdatableProperties sessionPoolEnvelope);
+
+ /**
+ * Update properties of a session pool
+ *
+ * Patches a session pool using JSON merge patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SessionPoolInner> beginUpdate(String resourceGroupName,
+ String sessionPoolName, SessionPoolUpdatableProperties sessionPoolEnvelope, Context context);
+
+ /**
+ * Update properties of a session pool
+ *
+ * Patches a session pool using JSON merge patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner update(String resourceGroupName, String sessionPoolName,
+ SessionPoolUpdatableProperties sessionPoolEnvelope);
+
+ /**
+ * Update properties of a session pool
+ *
+ * Patches a session pool using JSON merge patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionPoolInner update(String resourceGroupName, String sessionPoolName,
+ SessionPoolUpdatableProperties sessionPoolEnvelope, Context context);
+
+ /**
+ * Delete a session pool.
+ *
+ * Delete the session pool with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sessionPoolName);
+
+ /**
+ * Delete a session pool.
+ *
+ * Delete the session pool with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String sessionPoolName, Context context);
+
+ /**
+ * Delete a session pool.
+ *
+ * Delete the session pool with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sessionPoolName);
+
+ /**
+ * Delete a session pool.
+ *
+ * Delete the session pool with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sessionPoolName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/FunctionsExtensionsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/FunctionsExtensionsClient.java
new file mode 100644
index 000000000000..45732c3aac77
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/FunctionsExtensionsClient.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/**
+ * An instance of this class provides access to all the operations defined in FunctionsExtensionsClient.
+ */
+public interface FunctionsExtensionsClient {
+ /**
+ * Proxies a Functions host call to the function app backed by the container app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param revisionName Name of the Container App Revision, the parent resource.
+ * @param functionAppName Name of the Function App, the extension resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response invokeFunctionsHostWithResponse(String resourceGroupName, String containerAppName,
+ String revisionName, String functionAppName, Context context);
+
+ /**
+ * Proxies a Functions host call to the function app backed by the container app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param revisionName Name of the Container App Revision, the parent resource.
+ * @param functionAppName Name of the Function App, the extension resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ String invokeFunctionsHost(String resourceGroupName, String containerAppName, String revisionName,
+ String functionAppName);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentPrivateEndpointConnectionsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentPrivateEndpointConnectionsClient.java
new file mode 100644
index 000000000000..37a4ed33fe03
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentPrivateEndpointConnectionsClient.java
@@ -0,0 +1,219 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.models.PrivateEndpointConnectionInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * ManagedEnvironmentPrivateEndpointConnectionsClient.
+ */
+public interface ManagedEnvironmentPrivateEndpointConnectionsClient {
+ /**
+ * List private endpoint connections for 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.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 list of private endpoint connection associated with the specified resource as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * List private endpoint connections for 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.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 list of private endpoint connection associated with the specified resource as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName,
+ Context context);
+
+ /**
+ * Get a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection for a given managed environment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String environmentName,
+ String privateEndpointConnectionName, Context context);
+
+ /**
+ * Get a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection for a given managed environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(String resourceGroupName, String environmentName,
+ String privateEndpointConnectionName);
+
+ /**
+ * Update the state of a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param privateEndpointConnectionEnvelope The resource of private endpoint and its properties.
+ * @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 the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName, String environmentName, String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnectionEnvelope);
+
+ /**
+ * Update the state of a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param privateEndpointConnectionEnvelope The resource of private endpoint and its properties.
+ * @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 the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName, String environmentName, String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnectionEnvelope, Context context);
+
+ /**
+ * Update the state of a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param privateEndpointConnectionEnvelope The resource of private endpoint and its properties.
+ * @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 Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String environmentName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnectionEnvelope);
+
+ /**
+ * Update the state of a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param privateEndpointConnectionEnvelope The resource of private endpoint and its properties.
+ * @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 Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String environmentName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnectionEnvelope,
+ Context context);
+
+ /**
+ * Delete a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName,
+ String privateEndpointConnectionName);
+
+ /**
+ * Delete a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String environmentName,
+ String privateEndpointConnectionName, Context context);
+
+ /**
+ * Delete a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String environmentName, String privateEndpointConnectionName);
+
+ /**
+ * Delete a private endpoint connection for 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String environmentName, String privateEndpointConnectionName,
+ Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentPrivateLinkResourcesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentPrivateLinkResourcesClient.java
new file mode 100644
index 000000000000..7235c21740e7
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentPrivateLinkResourcesClient.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.PrivateLinkResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * ManagedEnvironmentPrivateLinkResourcesClient.
+ */
+public interface ManagedEnvironmentPrivateLinkResourcesClient {
+ /**
+ * List private link resources for 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.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * List private link resources for 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.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of private link resources 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/models/AuthConfigProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java
index 2dd5af9254bd..db4344dd4f30 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java
@@ -25,15 +25,13 @@ public final class AuthConfigProperties {
private AuthPlatform platform;
/*
- * The configuration settings that determines the validation flow of users using Service
- * Authentication/Authorization.
+ * The configuration settings that determines the validation flow of users using Service Authentication/Authorization.
*/
@JsonProperty(value = "globalValidation")
private GlobalValidation globalValidation;
/*
- * The configuration settings of each of the identity providers used to configure ContainerApp Service
- * Authentication/Authorization.
+ * The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization.
*/
@JsonProperty(value = "identityProviders")
private IdentityProviders identityProviders;
@@ -45,15 +43,13 @@ public final class AuthConfigProperties {
private Login login;
/*
- * The configuration settings of the HTTP requests for authentication and authorization requests made against
- * ContainerApp Service Authentication/Authorization.
+ * The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization.
*/
@JsonProperty(value = "httpSettings")
private HttpSettings httpSettings;
/*
- * The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service
- * Authentication/Authorization.
+ * The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service Authentication/Authorization.
*/
@JsonProperty(value = "encryptionSettings")
private EncryptionSettings encryptionSettings;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java
index 9508a6498f6e..b1b5baaf908a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java
@@ -54,8 +54,9 @@ public BillingMeterCollectionInner withValue(List value) {
*/
public void validate() {
if (value() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property value in model BillingMeterCollectionInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property value in model BillingMeterCollectionInner"));
} else {
value().forEach(e -> e.validate());
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderProperties.java
index 4004bc345160..1a1b95455e2b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderProperties.java
@@ -100,8 +100,9 @@ public BuilderProperties withContainerRegistries(List contain
*/
public void validate() {
if (environmentId() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property environmentId in model BuilderProperties"));
+ throw LOGGER.atError()
+ .log(
+ new IllegalArgumentException("Missing required property environmentId in model BuilderProperties"));
}
if (containerRegistries() != null) {
containerRegistries().forEach(e -> e.validate());
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java
index 79a0b8bbeb9d..bd819522dca8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentInner.java
@@ -149,8 +149,8 @@ public ConnectedEnvironmentInner withStaticIp(String staticIp) {
}
/**
- * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service
- * to Service communication telemetry.
+ * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
*
* @return the daprAIConnectionString value.
*/
@@ -159,8 +159,8 @@ public String daprAIConnectionString() {
}
/**
- * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service
- * to Service communication telemetry.
+ * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
*
* @param daprAIConnectionString the daprAIConnectionString value to set.
* @return the ConnectedEnvironmentInner object itself.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java
index f9eb45032dfc..fb4bf5b14804 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentProperties.java
@@ -104,8 +104,8 @@ public ConnectedEnvironmentProperties withStaticIp(String staticIp) {
}
/**
- * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service
- * to Service communication telemetry.
+ * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
*
* @return the daprAIConnectionString value.
*/
@@ -114,8 +114,8 @@ public String daprAIConnectionString() {
}
/**
- * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service
- * to Service communication telemetry.
+ * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
*
* @param daprAIConnectionString the daprAIConnectionString value to set.
* @return the ConnectedEnvironmentProperties object itself.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java
index 53bca84c6d61..171ee0d4ee58 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStoragesCollectionInner.java
@@ -53,8 +53,9 @@ public ConnectedEnvironmentStoragesCollectionInner withValue(List e.validate());
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
index a51478dfb1d9..19ae7d83aabf 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
@@ -8,8 +8,10 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.models.Configuration;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppPropertiesPatchingConfiguration;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProvisioningState;
import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
+import com.azure.resourcemanager.appcontainers.models.Kind;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
import com.azure.resourcemanager.appcontainers.models.Template;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -28,20 +30,23 @@ public final class ContainerAppInner extends Resource {
private ExtendedLocation extendedLocation;
/*
- * managed identities for the Container App to interact with other Azure services without maintaining any secrets
- * or credentials in code.
+ * managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.
*/
@JsonProperty(value = "identity")
private ManagedServiceIdentity identity;
/*
- * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is
- * managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if
- * it is removed from the template since it is managed by another resource.
+ * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
*/
@JsonProperty(value = "managedBy")
private String managedBy;
+ /*
+ * Metadata used to render different experiences for resources of the same type; e.g. WorkflowApp is a kind of Microsoft.App/ContainerApps type. If supported, the resource provider must validate and persist this value.
+ */
+ @JsonProperty(value = "kind")
+ private Kind kind;
+
/*
* ContainerApp resource specific properties
*/
@@ -81,8 +86,8 @@ public ContainerAppInner withExtendedLocation(ExtendedLocation extendedLocation)
}
/**
- * Get the identity property: managed identities for the Container App to interact with other Azure services
- * without maintaining any secrets or credentials in code.
+ * Get the identity property: managed identities for the Container App to interact with other Azure services without
+ * maintaining any secrets or credentials in code.
*
* @return the identity value.
*/
@@ -91,8 +96,8 @@ public ManagedServiceIdentity identity() {
}
/**
- * Set the identity property: managed identities for the Container App to interact with other Azure services
- * without maintaining any secrets or credentials in code.
+ * Set the identity property: managed identities for the Container App to interact with other Azure services without
+ * maintaining any secrets or credentials in code.
*
* @param identity the identity value to set.
* @return the ContainerAppInner object itself.
@@ -103,9 +108,9 @@ public ContainerAppInner withIdentity(ManagedServiceIdentity identity) {
}
/**
- * Get the managedBy property: The fully qualified resource ID of the resource that manages this resource.
- * Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment
- * will not delete the resource if it is removed from the template since it is managed by another resource.
+ * Get the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates
+ * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not
+ * delete the resource if it is removed from the template since it is managed by another resource.
*
* @return the managedBy value.
*/
@@ -114,9 +119,9 @@ public String managedBy() {
}
/**
- * Set the managedBy property: The fully qualified resource ID of the resource that manages this resource.
- * Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment
- * will not delete the resource if it is removed from the template since it is managed by another resource.
+ * Set the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates
+ * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not
+ * delete the resource if it is removed from the template since it is managed by another resource.
*
* @param managedBy the managedBy value to set.
* @return the ContainerAppInner object itself.
@@ -126,6 +131,30 @@ public ContainerAppInner withManagedBy(String managedBy) {
return this;
}
+ /**
+ * Get the kind property: Metadata used to render different experiences for resources of the same type; e.g.
+ * WorkflowApp is a kind of Microsoft.App/ContainerApps type. If supported, the resource provider must validate and
+ * persist this value.
+ *
+ * @return the kind value.
+ */
+ public Kind kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Metadata used to render different experiences for resources of the same type; e.g.
+ * WorkflowApp is a kind of Microsoft.App/ContainerApps type. If supported, the resource provider must validate and
+ * persist this value.
+ *
+ * @param kind the kind value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withKind(Kind kind) {
+ this.kind = kind;
+ return this;
+ }
+
/**
* Get the innerProperties property: ContainerApp resource specific properties.
*
@@ -240,6 +269,30 @@ public ContainerAppInner withWorkloadProfileName(String workloadProfileName) {
return this;
}
+ /**
+ * Get the patchingConfiguration property: Container App auto patch configuration.
+ *
+ * @return the patchingConfiguration value.
+ */
+ public ContainerAppPropertiesPatchingConfiguration patchingConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().patchingConfiguration();
+ }
+
+ /**
+ * Set the patchingConfiguration property: Container App auto patch configuration.
+ *
+ * @param patchingConfiguration the patchingConfiguration value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner
+ withPatchingConfiguration(ContainerAppPropertiesPatchingConfiguration patchingConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerAppProperties();
+ }
+ this.innerProperties().withPatchingConfiguration(patchingConfiguration);
+ return this;
+ }
+
/**
* Get the latestRevisionName property: Name of the latest revision of the Container App.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppJobExecutionsInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppJobExecutionsInner.java
index be02df97a4b8..665a3b1d6ed3 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppJobExecutionsInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppJobExecutionsInner.java
@@ -68,8 +68,9 @@ public String nextLink() {
*/
public void validate() {
if (value() == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- "Missing required property value in model ContainerAppJobExecutionsInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property value in model ContainerAppJobExecutionsInner"));
} else {
value().forEach(e -> e.validate());
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
index 312d98bd745c..a4751afca8a1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.appcontainers.models.Configuration;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppPropertiesPatchingConfiguration;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProvisioningState;
import com.azure.resourcemanager.appcontainers.models.Template;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -40,6 +41,12 @@ public final class ContainerAppProperties {
@JsonProperty(value = "workloadProfileName")
private String workloadProfileName;
+ /*
+ * Container App auto patch configuration.
+ */
+ @JsonProperty(value = "patchingConfiguration")
+ private ContainerAppPropertiesPatchingConfiguration patchingConfiguration;
+
/*
* Name of the latest revision of the Container App.
*/
@@ -163,6 +170,27 @@ public ContainerAppProperties withWorkloadProfileName(String workloadProfileName
return this;
}
+ /**
+ * Get the patchingConfiguration property: Container App auto patch configuration.
+ *
+ * @return the patchingConfiguration value.
+ */
+ public ContainerAppPropertiesPatchingConfiguration patchingConfiguration() {
+ return this.patchingConfiguration;
+ }
+
+ /**
+ * Set the patchingConfiguration property: Container App auto patch configuration.
+ *
+ * @param patchingConfiguration the patchingConfiguration value to set.
+ * @return the ContainerAppProperties object itself.
+ */
+ public ContainerAppProperties
+ withPatchingConfiguration(ContainerAppPropertiesPatchingConfiguration patchingConfiguration) {
+ this.patchingConfiguration = patchingConfiguration;
+ return this;
+ }
+
/**
* Get the latestRevisionName property: Name of the latest revision of the Container App.
*
@@ -263,6 +291,9 @@ public String eventStreamEndpoint() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (patchingConfiguration() != null) {
+ patchingConfiguration().validate();
+ }
if (configuration() != null) {
configuration().validate();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppsBuildProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppsBuildProperties.java
new file mode 100644
index 000000000000..964024fa64dc
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppsBuildProperties.java
@@ -0,0 +1,113 @@
+// 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.Immutable;
+import com.azure.resourcemanager.appcontainers.models.BuildProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.BuildStatus;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The ContainerAppBuild properties.
+ */
+@Immutable
+public final class ContainerAppsBuildProperties {
+ /*
+ * Build provisioning state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private BuildProvisioningState provisioningState;
+
+ /*
+ * Status of the build once it has been provisioned.
+ */
+ @JsonProperty(value = "buildStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private BuildStatus buildStatus;
+
+ /*
+ * Container registry that the final image will be uploaded to.
+ */
+ @JsonProperty(value = "destinationContainerRegistry", access = JsonProperty.Access.WRITE_ONLY)
+ private ContainerRegistryWithCustomImage destinationContainerRegistry;
+
+ /*
+ * Configuration of the build.
+ */
+ @JsonProperty(value = "configuration", access = JsonProperty.Access.WRITE_ONLY)
+ private ContainerAppsBuildConfiguration configuration;
+
+ /*
+ * Endpoint from which the build logs can be streamed.
+ */
+ @JsonProperty(value = "logStreamEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String logStreamEndpoint;
+
+ /**
+ * Creates an instance of ContainerAppsBuildProperties class.
+ */
+ public ContainerAppsBuildProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Build provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public BuildProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the buildStatus property: Status of the build once it has been provisioned.
+ *
+ * @return the buildStatus value.
+ */
+ public BuildStatus buildStatus() {
+ return this.buildStatus;
+ }
+
+ /**
+ * Get the destinationContainerRegistry property: Container registry that the final image will be uploaded to.
+ *
+ * @return the destinationContainerRegistry value.
+ */
+ public ContainerRegistryWithCustomImage destinationContainerRegistry() {
+ return this.destinationContainerRegistry;
+ }
+
+ /**
+ * Get the configuration property: Configuration of the build.
+ *
+ * @return the configuration value.
+ */
+ public ContainerAppsBuildConfiguration configuration() {
+ return this.configuration;
+ }
+
+ /**
+ * Get the logStreamEndpoint property: Endpoint from which the build logs can be streamed.
+ *
+ * @return the logStreamEndpoint value.
+ */
+ public String logStreamEndpoint() {
+ return this.logStreamEndpoint;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (destinationContainerRegistry() != null) {
+ destinationContainerRegistry().validate();
+ }
+ if (configuration() != null) {
+ configuration().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppsBuildResourceInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppsBuildResourceInner.java
new file mode 100644
index 000000000000..fd417e534aa4
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppsBuildResourceInner.java
@@ -0,0 +1,112 @@
+// 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.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.BuildProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.BuildStatus;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Information pertaining to an individual build.
+ */
+@Immutable
+public final class ContainerAppsBuildResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ @JsonProperty(value = "properties")
+ private ContainerAppsBuildProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of ContainerAppsBuildResourceInner class.
+ */
+ public ContainerAppsBuildResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The resource-specific properties for this resource.
+ *
+ * @return the innerProperties value.
+ */
+ private ContainerAppsBuildProperties 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 provisioningState property: Build provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public BuildProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the buildStatus property: Status of the build once it has been provisioned.
+ *
+ * @return the buildStatus value.
+ */
+ public BuildStatus buildStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().buildStatus();
+ }
+
+ /**
+ * Get the destinationContainerRegistry property: Container registry that the final image will be uploaded to.
+ *
+ * @return the destinationContainerRegistry value.
+ */
+ public ContainerRegistryWithCustomImage destinationContainerRegistry() {
+ return this.innerProperties() == null ? null : this.innerProperties().destinationContainerRegistry();
+ }
+
+ /**
+ * Get the configuration property: Configuration of the build.
+ *
+ * @return the configuration value.
+ */
+ public ContainerAppsBuildConfiguration configuration() {
+ return this.innerProperties() == null ? null : this.innerProperties().configuration();
+ }
+
+ /**
+ * Get the logStreamEndpoint property: Endpoint from which the build logs can be streamed.
+ *
+ * @return the logStreamEndpoint value.
+ */
+ public String logStreamEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().logStreamEndpoint();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppsPatchResourceInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppsPatchResourceInner.java
new file mode 100644
index 000000000000..34145a127eee
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppsPatchResourceInner.java
@@ -0,0 +1,64 @@
+// 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.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.PatchProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Container App Patch.
+ */
+@Immutable
+public final class ContainerAppsPatchResourceInner extends ProxyResource {
+ /*
+ * Properties that describes current states of the patch resource.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private PatchProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of ContainerAppsPatchResourceInner class.
+ */
+ public ContainerAppsPatchResourceInner() {
+ }
+
+ /**
+ * Get the properties property: Properties that describes current states of the patch resource.
+ *
+ * @return the properties value.
+ */
+ public PatchProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
index 4f00be750b53..6922e5317c8e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/CustomHostnameAnalysisResultInner.java
@@ -40,15 +40,13 @@ public final class CustomHostnameAnalysisResultInner {
private CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo customDomainVerificationFailureInfo;
/*
- * true
if there is a conflict on the Container App's managed environment; otherwise,
- * false
.
+ * true
if there is a conflict on the Container App's managed environment; otherwise, false
.
*/
@JsonProperty(value = "hasConflictOnManagedEnvironment", access = JsonProperty.Access.WRITE_ONLY)
private Boolean hasConflictOnManagedEnvironment;
/*
- * true
if there is a conflict on the Container App's managed environment level custom domain;
- * otherwise, false
.
+ * true
if there is a conflict on the Container App's managed environment level custom domain; otherwise, false
.
*/
@JsonProperty(value = "conflictWithEnvironmentCustomDomain", access = JsonProperty.Access.WRITE_ONLY)
private Boolean conflictWithEnvironmentCustomDomain;
@@ -143,8 +141,8 @@ public Boolean hasConflictOnManagedEnvironment() {
}
/**
- * Get the conflictWithEnvironmentCustomDomain property: <code>true</code> if there is a conflict on
- * the Container App's managed environment level custom domain; otherwise, <code>false</code>.
+ * Get the conflictWithEnvironmentCustomDomain property: <code>true</code> if there is a conflict on the
+ * Container App's managed environment level custom domain; otherwise, <code>false</code>.
*
* @return the conflictWithEnvironmentCustomDomain value.
*/
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
index 4f4b9a166bde..ca7171d645d3 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
@@ -54,8 +54,9 @@ public DaprSecretsCollectionInner withValue(List value) {
*/
public void validate() {
if (value() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property value in model DaprSecretsCollectionInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property value in model DaprSecretsCollectionInner"));
} else {
value().forEach(e -> e.validate());
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.java
index 3467b799bcbb..c8aa84f648bd 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsCollectionInner.java
@@ -68,8 +68,9 @@ public String nextLink() {
*/
public void validate() {
if (value() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property value in model DiagnosticsCollectionInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property value in model DiagnosticsCollectionInner"));
} else {
value().forEach(e -> e.validate());
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JavaComponentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JavaComponentInner.java
index cedf0eaf85e1..4340ed8e2712 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JavaComponentInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JavaComponentInner.java
@@ -7,12 +7,8 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentProvisioningState;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind;
-import com.azure.resourcemanager.appcontainers.models.JavaComponentType;
+import com.azure.resourcemanager.appcontainers.models.JavaComponentProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
/**
* Java Component.
@@ -23,7 +19,7 @@ public final class JavaComponentInner extends ProxyResource {
* Java Component resource specific properties
*/
@JsonProperty(value = "properties")
- private JavaComponentProperties innerProperties;
+ private JavaComponentProperties properties;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -38,99 +34,32 @@ public JavaComponentInner() {
}
/**
- * Get the innerProperties property: Java Component resource specific properties.
+ * Get the properties property: Java Component resource specific properties.
*
- * @return the innerProperties value.
+ * @return the properties value.
*/
- private JavaComponentProperties innerProperties() {
- return this.innerProperties;
+ public JavaComponentProperties properties() {
+ return this.properties;
}
/**
- * 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 componentType property: Type of the Java Component.
+ * Set the properties property: Java Component resource specific properties.
*
- * @return the componentType value.
- */
- public JavaComponentType componentType() {
- return this.innerProperties() == null ? null : this.innerProperties().componentType();
- }
-
- /**
- * Set the componentType property: Type of the Java Component.
- *
- * @param componentType the componentType value to set.
+ * @param properties the properties value to set.
* @return the JavaComponentInner object itself.
*/
- public JavaComponentInner withComponentType(JavaComponentType componentType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new JavaComponentProperties();
- }
- this.innerProperties().withComponentType(componentType);
+ public JavaComponentInner withProperties(JavaComponentProperties properties) {
+ this.properties = properties;
return this;
}
/**
- * Get the provisioningState property: Provisioning state of the Java Component.
- *
- * @return the provisioningState value.
- */
- public JavaComponentProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the configurations property: List of Java Components configuration properties.
- *
- * @return the configurations value.
- */
- public List configurations() {
- return this.innerProperties() == null ? null : this.innerProperties().configurations();
- }
-
- /**
- * Set the configurations property: List of Java Components configuration properties.
- *
- * @param configurations the configurations value to set.
- * @return the JavaComponentInner object itself.
- */
- public JavaComponentInner withConfigurations(List configurations) {
- if (this.innerProperties() == null) {
- this.innerProperties = new JavaComponentProperties();
- }
- this.innerProperties().withConfigurations(configurations);
- return this;
- }
-
- /**
- * Get the serviceBinds property: List of Java Components that are bound to the Java component.
- *
- * @return the serviceBinds value.
- */
- public List serviceBinds() {
- return this.innerProperties() == null ? null : this.innerProperties().serviceBinds();
- }
-
- /**
- * Set the serviceBinds property: List of Java Components that are bound to the Java component.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
- * @param serviceBinds the serviceBinds value to set.
- * @return the JavaComponentInner object itself.
+ * @return the systemData value.
*/
- public JavaComponentInner withServiceBinds(List serviceBinds) {
- if (this.innerProperties() == null) {
- this.innerProperties = new JavaComponentProperties();
- }
- this.innerProperties().withServiceBinds(serviceBinds);
- return this;
+ public SystemData systemData() {
+ return this.systemData;
}
/**
@@ -139,8 +68,8 @@ public JavaComponentInner withServiceBinds(List servic
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (properties() != null) {
+ properties().validate();
}
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionInner.java
index d407d72fc16f..f5d3db346f1c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionInner.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.appcontainers.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.ExecutionStatus;
import com.azure.resourcemanager.appcontainers.models.JobExecutionRunningState;
import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -192,6 +193,29 @@ public JobExecutionInner withTemplate(JobExecutionTemplate template) {
return this;
}
+ /**
+ * Get the detailedStatus property: Detailed status of the job execution.
+ *
+ * @return the detailedStatus value.
+ */
+ public ExecutionStatus detailedStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().detailedStatus();
+ }
+
+ /**
+ * Set the detailedStatus property: Detailed status of the job execution.
+ *
+ * @param detailedStatus the detailedStatus value to set.
+ * @return the JobExecutionInner object itself.
+ */
+ public JobExecutionInner withDetailedStatus(ExecutionStatus detailedStatus) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobExecutionProperties();
+ }
+ this.innerProperties().withDetailedStatus(detailedStatus);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionProperties.java
index 38038116fad5..3568e1835e9d 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionProperties.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.appcontainers.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.ExecutionStatus;
import com.azure.resourcemanager.appcontainers.models.JobExecutionRunningState;
import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -39,6 +40,12 @@ public final class JobExecutionProperties {
@JsonProperty(value = "template")
private JobExecutionTemplate template;
+ /*
+ * Detailed status of the job execution.
+ */
+ @JsonProperty(value = "detailedStatus")
+ private ExecutionStatus detailedStatus;
+
/**
* Creates an instance of JobExecutionProperties class.
*/
@@ -114,6 +121,26 @@ public JobExecutionProperties withTemplate(JobExecutionTemplate template) {
return this;
}
+ /**
+ * Get the detailedStatus property: Detailed status of the job execution.
+ *
+ * @return the detailedStatus value.
+ */
+ public ExecutionStatus detailedStatus() {
+ return this.detailedStatus;
+ }
+
+ /**
+ * Set the detailedStatus property: Detailed status of the job execution.
+ *
+ * @param detailedStatus the detailedStatus value to set.
+ * @return the JobExecutionProperties object itself.
+ */
+ public JobExecutionProperties withDetailedStatus(ExecutionStatus detailedStatus) {
+ this.detailedStatus = detailedStatus;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -123,5 +150,8 @@ public void validate() {
if (template() != null) {
template().validate();
}
+ if (detailedStatus() != null) {
+ detailedStatus().validate();
+ }
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobInner.java
index 1f480d8be425..7445b61745d7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobInner.java
@@ -28,8 +28,7 @@ public final class JobInner extends Resource {
private ExtendedLocation extendedLocation;
/*
- * Managed identities needed by a container app job to interact with other Azure services to not maintain any
- * secrets or credentials in code.
+ * Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.
*/
@JsonProperty(value = "identity")
private ManagedServiceIdentity identity;
@@ -73,8 +72,8 @@ public JobInner withExtendedLocation(ExtendedLocation extendedLocation) {
}
/**
- * Get the identity property: Managed identities needed by a container app job to interact with other Azure
- * services to not maintain any secrets or credentials in code.
+ * Get the identity property: Managed identities needed by a container app job to interact with other Azure services
+ * to not maintain any secrets or credentials in code.
*
* @return the identity value.
*/
@@ -83,8 +82,8 @@ public ManagedServiceIdentity identity() {
}
/**
- * Set the identity property: Managed identities needed by a container app job to interact with other Azure
- * services to not maintain any secrets or credentials in code.
+ * Set the identity property: Managed identities needed by a container app job to interact with other Azure services
+ * to not maintain any secrets or credentials in code.
*
* @param identity the identity value to set.
* @return the JobInner object itself.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobSecretsCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobSecretsCollectionInner.java
index 47707c7fade7..c55b5a147a7b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobSecretsCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobSecretsCollectionInner.java
@@ -54,8 +54,9 @@ public JobSecretsCollectionInner withValue(List value) {
*/
public void validate() {
if (value() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property value in model JobSecretsCollectionInner"));
+ throw LOGGER.atError()
+ .log(
+ new IllegalArgumentException("Missing required property value in model JobSecretsCollectionInner"));
} else {
value().forEach(e -> e.validate());
}
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 c31e5a5ee4f0..7fd69802682f 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
@@ -14,6 +14,7 @@
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
import com.azure.resourcemanager.appcontainers.models.KedaConfiguration;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
import com.azure.resourcemanager.appcontainers.models.OpenTelemetryConfiguration;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
@@ -34,8 +35,7 @@ public final class ManagedEnvironmentInner extends Resource {
private String kind;
/*
- * Managed identities for the Managed Environment to interact with other Azure services without maintaining any
- * secrets or credentials in code.
+ * Managed identities for the Managed Environment to interact with other Azure services without maintaining any secrets or credentials in code.
*/
@JsonProperty(value = "identity")
private ManagedServiceIdentity identity;
@@ -171,8 +171,8 @@ public ManagedEnvironmentInner withDaprAIInstrumentationKey(String daprAIInstrum
}
/**
- * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service
- * to Service communication telemetry.
+ * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
*
* @return the daprAIConnectionString value.
*/
@@ -181,8 +181,8 @@ public String daprAIConnectionString() {
}
/**
- * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service
- * to Service communication telemetry.
+ * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
*
* @param daprAIConnectionString the daprAIConnectionString value to set.
* @return the ManagedEnvironmentInner object itself.
@@ -444,9 +444,9 @@ public ManagedEnvironmentInner withDaprConfiguration(DaprConfiguration daprConfi
}
/**
- * Get the infrastructureResourceGroup property: Name of the platform-managed resource group created for the
- * Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be
- * created in the same subscription as the subnet.
+ * Get the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed
+ * Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in
+ * the same subscription as the subnet.
*
* @return the infrastructureResourceGroup value.
*/
@@ -455,9 +455,9 @@ public String infrastructureResourceGroup() {
}
/**
- * Set the infrastructureResourceGroup property: Name of the platform-managed resource group created for the
- * Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be
- * created in the same subscription as the subnet.
+ * Set the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed
+ * Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in
+ * the same subscription as the subnet.
*
* @param infrastructureResourceGroup the infrastructureResourceGroup value to set.
* @return the ManagedEnvironmentInner object itself.
@@ -494,6 +494,39 @@ public ManagedEnvironmentPropertiesPeerAuthentication peerAuthentication() {
return this;
}
+ /**
+ * Get the peerTrafficConfiguration property: Peer traffic settings for the Managed Environment.
+ *
+ * @return the peerTrafficConfiguration value.
+ */
+ public ManagedEnvironmentPropertiesPeerTrafficConfiguration peerTrafficConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().peerTrafficConfiguration();
+ }
+
+ /**
+ * Set the peerTrafficConfiguration property: Peer traffic settings for the Managed Environment.
+ *
+ * @param peerTrafficConfiguration the peerTrafficConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner
+ withPeerTrafficConfiguration(ManagedEnvironmentPropertiesPeerTrafficConfiguration peerTrafficConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withPeerTrafficConfiguration(peerTrafficConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: Private endpoint connections to the resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
/**
* Validates the instance.
*
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 8cdc1ac40fbd..18738a87828c 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
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
import com.azure.resourcemanager.appcontainers.models.KedaConfiguration;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication;
+import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration;
import com.azure.resourcemanager.appcontainers.models.OpenTelemetryConfiguration;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
@@ -122,9 +123,7 @@ public final class ManagedEnvironmentProperties {
private DaprConfiguration daprConfiguration;
/*
- * Name of the platform-managed resource group created for the Managed Environment to host infrastructure
- * resources. If a subnet ID is provided, this resource group will be created in the same subscription as the
- * subnet.
+ * Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in the same subscription as the subnet.
*/
@JsonProperty(value = "infrastructureResourceGroup")
private String infrastructureResourceGroup;
@@ -135,6 +134,18 @@ public final class ManagedEnvironmentProperties {
@JsonProperty(value = "peerAuthentication")
private ManagedEnvironmentPropertiesPeerAuthentication peerAuthentication;
+ /*
+ * Peer traffic settings for the Managed Environment
+ */
+ @JsonProperty(value = "peerTrafficConfiguration")
+ private ManagedEnvironmentPropertiesPeerTrafficConfiguration peerTrafficConfiguration;
+
+ /*
+ * Private endpoint connections to the resource.
+ */
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
/**
* Creates an instance of ManagedEnvironmentProperties class.
*/
@@ -173,8 +184,8 @@ public ManagedEnvironmentProperties withDaprAIInstrumentationKey(String daprAIIn
}
/**
- * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service
- * to Service communication telemetry.
+ * Get the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
*
* @return the daprAIConnectionString value.
*/
@@ -183,8 +194,8 @@ public String daprAIConnectionString() {
}
/**
- * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service
- * to Service communication telemetry.
+ * Set the daprAIConnectionString property: Application Insights connection string used by Dapr to export Service to
+ * Service communication telemetry.
*
* @param daprAIConnectionString the daprAIConnectionString value to set.
* @return the ManagedEnvironmentProperties object itself.
@@ -418,9 +429,9 @@ public ManagedEnvironmentProperties withDaprConfiguration(DaprConfiguration dapr
}
/**
- * Get the infrastructureResourceGroup property: Name of the platform-managed resource group created for the
- * Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be
- * created in the same subscription as the subnet.
+ * Get the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed
+ * Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in
+ * the same subscription as the subnet.
*
* @return the infrastructureResourceGroup value.
*/
@@ -429,9 +440,9 @@ public String infrastructureResourceGroup() {
}
/**
- * Set the infrastructureResourceGroup property: Name of the platform-managed resource group created for the
- * Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be
- * created in the same subscription as the subnet.
+ * Set the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed
+ * Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in
+ * the same subscription as the subnet.
*
* @param infrastructureResourceGroup the infrastructureResourceGroup value to set.
* @return the ManagedEnvironmentProperties object itself.
@@ -462,6 +473,36 @@ public ManagedEnvironmentPropertiesPeerAuthentication peerAuthentication() {
return this;
}
+ /**
+ * Get the peerTrafficConfiguration property: Peer traffic settings for the Managed Environment.
+ *
+ * @return the peerTrafficConfiguration value.
+ */
+ public ManagedEnvironmentPropertiesPeerTrafficConfiguration peerTrafficConfiguration() {
+ return this.peerTrafficConfiguration;
+ }
+
+ /**
+ * Set the peerTrafficConfiguration property: Peer traffic settings for the Managed Environment.
+ *
+ * @param peerTrafficConfiguration the peerTrafficConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties
+ withPeerTrafficConfiguration(ManagedEnvironmentPropertiesPeerTrafficConfiguration peerTrafficConfiguration) {
+ this.peerTrafficConfiguration = peerTrafficConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: Private endpoint connections to the resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
/**
* Validates the instance.
*
@@ -495,5 +536,11 @@ public void validate() {
if (peerAuthentication() != null) {
peerAuthentication().validate();
}
+ if (peerTrafficConfiguration() != null) {
+ peerTrafficConfiguration().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStoragesCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStoragesCollectionInner.java
index 58a26bebfd69..3a2d90a0b376 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStoragesCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStoragesCollectionInner.java
@@ -53,8 +53,9 @@ public ManagedEnvironmentStoragesCollectionInner withValue(List e.validate());
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateEndpointConnectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 000000000000..89c2a5036bee
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,134 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.PrivateEndpoint;
+import com.azure.resourcemanager.appcontainers.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * The Private Endpoint Connection resource.
+ */
+@Fluent
+public final class PrivateEndpointConnectionInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of PrivateEndpointConnectionInner class.
+ */
+ public PrivateEndpointConnectionInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties 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 groupIds property: The group ids for the private endpoint resource.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupIds();
+ }
+
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private end point.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner
+ withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..2c2e5ddf408e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,130 @@
+// 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.resourcemanager.appcontainers.models.PrivateEndpoint;
+import com.azure.resourcemanager.appcontainers.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Properties of the private endpoint connection.
+ */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ /*
+ * The group ids for the private endpoint resource.
+ */
+ @JsonProperty(value = "groupIds", access = JsonProperty.Access.WRITE_ONLY)
+ private List groupIds;
+
+ /*
+ * The resource of private end point.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between service consumer and provider.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState", required = true)
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /**
+ * Creates an instance of PrivateEndpointConnectionProperties class.
+ */
+ public PrivateEndpointConnectionProperties() {
+ }
+
+ /**
+ * Get the groupIds property: The group ids for the private endpoint resource.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.groupIds;
+ }
+
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private end point.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties
+ withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties"));
+ } else {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateLinkResourceInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 000000000000..fcd0db6e63e0
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * A private link resource.
+ */
+@Fluent
+public final class PrivateLinkResourceInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateLinkResourceProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of PrivateLinkResourceInner class.
+ */
+ public PrivateLinkResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateLinkResourceProperties 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 groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupId();
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredMembers();
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames();
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateLinkResourceProperties();
+ }
+ this.innerProperties().withRequiredZoneNames(requiredZoneNames);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateLinkResourceProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 000000000000..b2eadba60ea9
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PrivateLinkResourceProperties.java
@@ -0,0 +1,85 @@
+// 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.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Properties of a private link resource.
+ */
+@Fluent
+public final class PrivateLinkResourceProperties {
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /*
+ * The private link resource required member names.
+ */
+ @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /*
+ * The private link resource private link DNS zone name.
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /**
+ * Creates an instance of PrivateLinkResourceProperties class.
+ */
+ public PrivateLinkResourceProperties() {
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaCollectionInner.java
index ef472cec5078..06c91a40ea62 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaCollectionInner.java
@@ -53,8 +53,8 @@ public ReplicaCollectionInner withValue(List value) {
*/
public void validate() {
if (value() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property value in model ReplicaCollectionInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property value in model ReplicaCollectionInner"));
} else {
value().forEach(e -> e.validate());
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SecretsCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SecretsCollectionInner.java
index f3ee91d90586..f1566bac02a7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SecretsCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SecretsCollectionInner.java
@@ -54,8 +54,8 @@ public SecretsCollectionInner withValue(List value) {
*/
public void validate() {
if (value() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property value in model SecretsCollectionInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property value in model SecretsCollectionInner"));
} else {
value().forEach(e -> e.validate());
}
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
new file mode 100644
index 000000000000..3c7d54bd4258
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolInner.java
@@ -0,0 +1,304 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ContainerType;
+import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
+import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration;
+import com.azure.resourcemanager.appcontainers.models.PoolManagementType;
+import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SecretAutoGenerated;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionPoolProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Container App session pool.
+ */
+@Fluent
+public final class SessionPoolInner extends Resource {
+ /*
+ * Container App session pool resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private SessionPoolProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of SessionPoolInner class.
+ */
+ public SessionPoolInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Container App session pool resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SessionPoolProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SessionPoolInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public SessionPoolInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the environmentId property: Resource ID of the session pool's environment.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.innerProperties() == null ? null : this.innerProperties().environmentId();
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of the session pool's environment.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withEnvironmentId(String environmentId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionPoolProperties();
+ }
+ this.innerProperties().withEnvironmentId(environmentId);
+ return this;
+ }
+
+ /**
+ * Get the containerType property: The container type of the sessions.
+ *
+ * @return the containerType value.
+ */
+ public ContainerType containerType() {
+ return this.innerProperties() == null ? null : this.innerProperties().containerType();
+ }
+
+ /**
+ * Set the containerType property: The container type of the sessions.
+ *
+ * @param containerType the containerType value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withContainerType(ContainerType containerType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionPoolProperties();
+ }
+ this.innerProperties().withContainerType(containerType);
+ return this;
+ }
+
+ /**
+ * Get the poolManagementType property: The pool management type of the session pool.
+ *
+ * @return the poolManagementType value.
+ */
+ public PoolManagementType poolManagementType() {
+ return this.innerProperties() == null ? null : this.innerProperties().poolManagementType();
+ }
+
+ /**
+ * Set the poolManagementType property: The pool management type of the session pool.
+ *
+ * @param poolManagementType the poolManagementType value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withPoolManagementType(PoolManagementType poolManagementType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionPoolProperties();
+ }
+ this.innerProperties().withPoolManagementType(poolManagementType);
+ return this;
+ }
+
+ /**
+ * Get the nodeCount property: The number of nodes the session pool is using.
+ *
+ * @return the nodeCount value.
+ */
+ public Integer nodeCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().nodeCount();
+ }
+
+ /**
+ * Get the scaleConfiguration property: The scale configuration of the session pool.
+ *
+ * @return the scaleConfiguration value.
+ */
+ public ScaleConfiguration scaleConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().scaleConfiguration();
+ }
+
+ /**
+ * Set the scaleConfiguration property: The scale configuration of the session pool.
+ *
+ * @param scaleConfiguration the scaleConfiguration value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withScaleConfiguration(ScaleConfiguration scaleConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionPoolProperties();
+ }
+ this.innerProperties().withScaleConfiguration(scaleConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the secrets property: The secrets of the session pool.
+ *
+ * @return the secrets value.
+ */
+ public List secrets() {
+ return this.innerProperties() == null ? null : this.innerProperties().secrets();
+ }
+
+ /**
+ * Set the secrets property: The secrets of the session pool.
+ *
+ * @param secrets the secrets value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withSecrets(List secrets) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionPoolProperties();
+ }
+ this.innerProperties().withSecrets(secrets);
+ return this;
+ }
+
+ /**
+ * Get the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.
+ *
+ * @return the dynamicPoolConfiguration value.
+ */
+ public DynamicPoolConfiguration dynamicPoolConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().dynamicPoolConfiguration();
+ }
+
+ /**
+ * Set the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.
+ *
+ * @param dynamicPoolConfiguration the dynamicPoolConfiguration value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withDynamicPoolConfiguration(DynamicPoolConfiguration dynamicPoolConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionPoolProperties();
+ }
+ this.innerProperties().withDynamicPoolConfiguration(dynamicPoolConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the customContainerTemplate property: The custom container configuration if the containerType is
+ * CustomContainer.
+ *
+ * @return the customContainerTemplate value.
+ */
+ public CustomContainerTemplate customContainerTemplate() {
+ return this.innerProperties() == null ? null : this.innerProperties().customContainerTemplate();
+ }
+
+ /**
+ * Set the customContainerTemplate property: The custom container configuration if the containerType is
+ * CustomContainer.
+ *
+ * @param customContainerTemplate the customContainerTemplate value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withCustomContainerTemplate(CustomContainerTemplate customContainerTemplate) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionPoolProperties();
+ }
+ this.innerProperties().withCustomContainerTemplate(customContainerTemplate);
+ return this;
+ }
+
+ /**
+ * Get the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.
+ *
+ * @return the sessionNetworkConfiguration value.
+ */
+ public SessionNetworkConfiguration sessionNetworkConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().sessionNetworkConfiguration();
+ }
+
+ /**
+ * Set the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.
+ *
+ * @param sessionNetworkConfiguration the sessionNetworkConfiguration value to set.
+ * @return the SessionPoolInner object itself.
+ */
+ public SessionPoolInner withSessionNetworkConfiguration(SessionNetworkConfiguration sessionNetworkConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionPoolProperties();
+ }
+ this.innerProperties().withSessionNetworkConfiguration(sessionNetworkConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the poolManagementEndpoint property: The endpoint to manage the pool.
+ *
+ * @return the poolManagementEndpoint value.
+ */
+ public String poolManagementEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().poolManagementEndpoint();
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the session pool.
+ *
+ * @return the provisioningState value.
+ */
+ public SessionPoolProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
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
new file mode 100644
index 000000000000..f5384158fb65
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolProperties.java
@@ -0,0 +1,308 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.ContainerType;
+import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
+import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration;
+import com.azure.resourcemanager.appcontainers.models.PoolManagementType;
+import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SecretAutoGenerated;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionPoolProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Container App session pool resource specific properties.
+ */
+@Fluent
+public final class SessionPoolProperties {
+ /*
+ * Resource ID of the session pool's environment.
+ */
+ @JsonProperty(value = "environmentId")
+ private String environmentId;
+
+ /*
+ * The container type of the sessions.
+ */
+ @JsonProperty(value = "containerType")
+ private ContainerType containerType;
+
+ /*
+ * The pool management type of the session pool.
+ */
+ @JsonProperty(value = "poolManagementType")
+ private PoolManagementType poolManagementType;
+
+ /*
+ * The number of nodes the session pool is using.
+ */
+ @JsonProperty(value = "nodeCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer nodeCount;
+
+ /*
+ * The scale configuration of the session pool.
+ */
+ @JsonProperty(value = "scaleConfiguration")
+ private ScaleConfiguration scaleConfiguration;
+
+ /*
+ * The secrets of the session pool.
+ */
+ @JsonProperty(value = "secrets")
+ private List secrets;
+
+ /*
+ * The pool configuration if the poolManagementType is dynamic.
+ */
+ @JsonProperty(value = "dynamicPoolConfiguration")
+ private DynamicPoolConfiguration dynamicPoolConfiguration;
+
+ /*
+ * The custom container configuration if the containerType is CustomContainer.
+ */
+ @JsonProperty(value = "customContainerTemplate")
+ private CustomContainerTemplate customContainerTemplate;
+
+ /*
+ * The network configuration of the sessions in the session pool.
+ */
+ @JsonProperty(value = "sessionNetworkConfiguration")
+ private SessionNetworkConfiguration sessionNetworkConfiguration;
+
+ /*
+ * The endpoint to manage the pool.
+ */
+ @JsonProperty(value = "poolManagementEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String poolManagementEndpoint;
+
+ /*
+ * Provisioning state of the session pool.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private SessionPoolProvisioningState provisioningState;
+
+ /**
+ * Creates an instance of SessionPoolProperties class.
+ */
+ public SessionPoolProperties() {
+ }
+
+ /**
+ * Get the environmentId property: Resource ID of the session pool's environment.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.environmentId;
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of the session pool's environment.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the SessionPoolProperties object itself.
+ */
+ public SessionPoolProperties withEnvironmentId(String environmentId) {
+ this.environmentId = environmentId;
+ return this;
+ }
+
+ /**
+ * Get the containerType property: The container type of the sessions.
+ *
+ * @return the containerType value.
+ */
+ public ContainerType containerType() {
+ return this.containerType;
+ }
+
+ /**
+ * Set the containerType property: The container type of the sessions.
+ *
+ * @param containerType the containerType value to set.
+ * @return the SessionPoolProperties object itself.
+ */
+ public SessionPoolProperties withContainerType(ContainerType containerType) {
+ this.containerType = containerType;
+ return this;
+ }
+
+ /**
+ * Get the poolManagementType property: The pool management type of the session pool.
+ *
+ * @return the poolManagementType value.
+ */
+ public PoolManagementType poolManagementType() {
+ return this.poolManagementType;
+ }
+
+ /**
+ * Set the poolManagementType property: The pool management type of the session pool.
+ *
+ * @param poolManagementType the poolManagementType value to set.
+ * @return the SessionPoolProperties object itself.
+ */
+ public SessionPoolProperties withPoolManagementType(PoolManagementType poolManagementType) {
+ this.poolManagementType = poolManagementType;
+ return this;
+ }
+
+ /**
+ * Get the nodeCount property: The number of nodes the session pool is using.
+ *
+ * @return the nodeCount value.
+ */
+ public Integer nodeCount() {
+ return this.nodeCount;
+ }
+
+ /**
+ * Get the scaleConfiguration property: The scale configuration of the session pool.
+ *
+ * @return the scaleConfiguration value.
+ */
+ public ScaleConfiguration scaleConfiguration() {
+ return this.scaleConfiguration;
+ }
+
+ /**
+ * Set the scaleConfiguration property: The scale configuration of the session pool.
+ *
+ * @param scaleConfiguration the scaleConfiguration value to set.
+ * @return the SessionPoolProperties object itself.
+ */
+ public SessionPoolProperties withScaleConfiguration(ScaleConfiguration scaleConfiguration) {
+ this.scaleConfiguration = scaleConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the secrets property: The secrets of the session pool.
+ *
+ * @return the secrets value.
+ */
+ public List secrets() {
+ return this.secrets;
+ }
+
+ /**
+ * Set the secrets property: The secrets of the session pool.
+ *
+ * @param secrets the secrets value to set.
+ * @return the SessionPoolProperties object itself.
+ */
+ public SessionPoolProperties withSecrets(List secrets) {
+ this.secrets = secrets;
+ return this;
+ }
+
+ /**
+ * Get the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.
+ *
+ * @return the dynamicPoolConfiguration value.
+ */
+ public DynamicPoolConfiguration dynamicPoolConfiguration() {
+ return this.dynamicPoolConfiguration;
+ }
+
+ /**
+ * Set the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.
+ *
+ * @param dynamicPoolConfiguration the dynamicPoolConfiguration value to set.
+ * @return the SessionPoolProperties object itself.
+ */
+ public SessionPoolProperties withDynamicPoolConfiguration(DynamicPoolConfiguration dynamicPoolConfiguration) {
+ this.dynamicPoolConfiguration = dynamicPoolConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the customContainerTemplate property: The custom container configuration if the containerType is
+ * CustomContainer.
+ *
+ * @return the customContainerTemplate value.
+ */
+ public CustomContainerTemplate customContainerTemplate() {
+ return this.customContainerTemplate;
+ }
+
+ /**
+ * Set the customContainerTemplate property: The custom container configuration if the containerType is
+ * CustomContainer.
+ *
+ * @param customContainerTemplate the customContainerTemplate value to set.
+ * @return the SessionPoolProperties object itself.
+ */
+ public SessionPoolProperties withCustomContainerTemplate(CustomContainerTemplate customContainerTemplate) {
+ this.customContainerTemplate = customContainerTemplate;
+ return this;
+ }
+
+ /**
+ * Get the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.
+ *
+ * @return the sessionNetworkConfiguration value.
+ */
+ public SessionNetworkConfiguration sessionNetworkConfiguration() {
+ return this.sessionNetworkConfiguration;
+ }
+
+ /**
+ * Set the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.
+ *
+ * @param sessionNetworkConfiguration the sessionNetworkConfiguration value to set.
+ * @return the SessionPoolProperties object itself.
+ */
+ public SessionPoolProperties
+ withSessionNetworkConfiguration(SessionNetworkConfiguration sessionNetworkConfiguration) {
+ this.sessionNetworkConfiguration = sessionNetworkConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the poolManagementEndpoint property: The endpoint to manage the pool.
+ *
+ * @return the poolManagementEndpoint value.
+ */
+ public String poolManagementEndpoint() {
+ return this.poolManagementEndpoint;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the session pool.
+ *
+ * @return the provisioningState value.
+ */
+ public SessionPoolProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (scaleConfiguration() != null) {
+ scaleConfiguration().validate();
+ }
+ if (secrets() != null) {
+ secrets().forEach(e -> e.validate());
+ }
+ if (dynamicPoolConfiguration() != null) {
+ dynamicPoolConfiguration().validate();
+ }
+ if (customContainerTemplate() != null) {
+ customContainerTemplate().validate();
+ }
+ if (sessionNetworkConfiguration() != null) {
+ sessionNetworkConfiguration().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolUpdatablePropertiesProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolUpdatablePropertiesProperties.java
new file mode 100644
index 000000000000..6f76cff5c76a
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SessionPoolUpdatablePropertiesProperties.java
@@ -0,0 +1,184 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
+import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SecretAutoGenerated;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Session pool resource specific updatable properties.
+ */
+@Fluent
+public final class SessionPoolUpdatablePropertiesProperties {
+ /*
+ * The scale configuration of the session pool.
+ */
+ @JsonProperty(value = "scaleConfiguration")
+ private ScaleConfiguration scaleConfiguration;
+
+ /*
+ * The secrets of the session pool.
+ */
+ @JsonProperty(value = "secrets")
+ private List secrets;
+
+ /*
+ * The pool configuration if the poolManagementType is dynamic.
+ */
+ @JsonProperty(value = "dynamicPoolConfiguration")
+ private DynamicPoolConfiguration dynamicPoolConfiguration;
+
+ /*
+ * The custom container configuration if the containerType is CustomContainer.
+ */
+ @JsonProperty(value = "customContainerTemplate")
+ private CustomContainerTemplate customContainerTemplate;
+
+ /*
+ * The network configuration of the sessions in the session pool.
+ */
+ @JsonProperty(value = "sessionNetworkConfiguration")
+ private SessionNetworkConfiguration sessionNetworkConfiguration;
+
+ /**
+ * Creates an instance of SessionPoolUpdatablePropertiesProperties class.
+ */
+ public SessionPoolUpdatablePropertiesProperties() {
+ }
+
+ /**
+ * Get the scaleConfiguration property: The scale configuration of the session pool.
+ *
+ * @return the scaleConfiguration value.
+ */
+ public ScaleConfiguration scaleConfiguration() {
+ return this.scaleConfiguration;
+ }
+
+ /**
+ * Set the scaleConfiguration property: The scale configuration of the session pool.
+ *
+ * @param scaleConfiguration the scaleConfiguration value to set.
+ * @return the SessionPoolUpdatablePropertiesProperties object itself.
+ */
+ public SessionPoolUpdatablePropertiesProperties withScaleConfiguration(ScaleConfiguration scaleConfiguration) {
+ this.scaleConfiguration = scaleConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the secrets property: The secrets of the session pool.
+ *
+ * @return the secrets value.
+ */
+ public List secrets() {
+ return this.secrets;
+ }
+
+ /**
+ * Set the secrets property: The secrets of the session pool.
+ *
+ * @param secrets the secrets value to set.
+ * @return the SessionPoolUpdatablePropertiesProperties object itself.
+ */
+ public SessionPoolUpdatablePropertiesProperties withSecrets(List secrets) {
+ this.secrets = secrets;
+ return this;
+ }
+
+ /**
+ * Get the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.
+ *
+ * @return the dynamicPoolConfiguration value.
+ */
+ public DynamicPoolConfiguration dynamicPoolConfiguration() {
+ return this.dynamicPoolConfiguration;
+ }
+
+ /**
+ * Set the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.
+ *
+ * @param dynamicPoolConfiguration the dynamicPoolConfiguration value to set.
+ * @return the SessionPoolUpdatablePropertiesProperties object itself.
+ */
+ public SessionPoolUpdatablePropertiesProperties
+ withDynamicPoolConfiguration(DynamicPoolConfiguration dynamicPoolConfiguration) {
+ this.dynamicPoolConfiguration = dynamicPoolConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the customContainerTemplate property: The custom container configuration if the containerType is
+ * CustomContainer.
+ *
+ * @return the customContainerTemplate value.
+ */
+ public CustomContainerTemplate customContainerTemplate() {
+ return this.customContainerTemplate;
+ }
+
+ /**
+ * Set the customContainerTemplate property: The custom container configuration if the containerType is
+ * CustomContainer.
+ *
+ * @param customContainerTemplate the customContainerTemplate value to set.
+ * @return the SessionPoolUpdatablePropertiesProperties object itself.
+ */
+ public SessionPoolUpdatablePropertiesProperties
+ withCustomContainerTemplate(CustomContainerTemplate customContainerTemplate) {
+ this.customContainerTemplate = customContainerTemplate;
+ return this;
+ }
+
+ /**
+ * Get the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.
+ *
+ * @return the sessionNetworkConfiguration value.
+ */
+ public SessionNetworkConfiguration sessionNetworkConfiguration() {
+ return this.sessionNetworkConfiguration;
+ }
+
+ /**
+ * Set the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.
+ *
+ * @param sessionNetworkConfiguration the sessionNetworkConfiguration value to set.
+ * @return the SessionPoolUpdatablePropertiesProperties object itself.
+ */
+ public SessionPoolUpdatablePropertiesProperties
+ withSessionNetworkConfiguration(SessionNetworkConfiguration sessionNetworkConfiguration) {
+ this.sessionNetworkConfiguration = sessionNetworkConfiguration;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (scaleConfiguration() != null) {
+ scaleConfiguration().validate();
+ }
+ if (secrets() != null) {
+ secrets().forEach(e -> e.validate());
+ }
+ if (dynamicPoolConfiguration() != null) {
+ dynamicPoolConfiguration().validate();
+ }
+ if (customContainerTemplate() != null) {
+ customContainerTemplate().validate();
+ }
+ if (sessionNetworkConfiguration() != null) {
+ sessionNetworkConfiguration().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/UsageInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/UsageInner.java
index e37f5a12c5f9..43fbf24ec7d1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/UsageInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/UsageInner.java
@@ -131,8 +131,8 @@ public UsageInner withName(UsageName name) {
*/
public void validate() {
if (name() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property name in model UsageInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property name in model UsageInner"));
} else {
name().validate();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/package-info.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/package-info.java
index 9ea383c7aad7..f87287ab52d0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/package-info.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/package-info.java
@@ -4,6 +4,8 @@
/**
* Package containing the inner data models for ContainerAppsApiClient.
- * null.
+ * 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 com.azure.resourcemanager.appcontainers.fluent.models;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/package-info.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/package-info.java
index 131b0b619aad..0eba2fe983f2 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/package-info.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/package-info.java
@@ -4,6 +4,8 @@
/**
* Package containing the service clients for ContainerAppsApiClient.
- * null.
+ * 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 com.azure.resourcemanager.appcontainers.fluent;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AppResilienciesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AppResilienciesClientImpl.java
index af7bcd069fbb..9f504c7f1452 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AppResilienciesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AppResilienciesClientImpl.java
@@ -60,8 +60,8 @@ public final class AppResilienciesClientImpl implements AppResilienciesClient {
}
/**
- * The interface defining all the services for ContainerAppsApiClientAppResiliencies to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for ContainerAppsApiClientAppResiliencies to be used by the proxy service
+ * to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AppResiliencyImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AppResiliencyImpl.java
index 2d715f1928f4..ac7c0ecd7a10 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AppResiliencyImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AppResiliencyImpl.java
@@ -85,14 +85,18 @@ public AppResiliencyImpl withExistingContainerApp(String resourceGroupName, Stri
}
public AppResiliency create() {
- this.innerObject = serviceManager.serviceClient().getAppResiliencies()
- .createOrUpdateWithResponse(resourceGroupName, appName, name, this.innerModel(), Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getAppResiliencies()
+ .createOrUpdateWithResponse(resourceGroupName, appName, name, this.innerModel(), Context.NONE)
+ .getValue();
return this;
}
public AppResiliency create(Context context) {
- this.innerObject = serviceManager.serviceClient().getAppResiliencies()
- .createOrUpdateWithResponse(resourceGroupName, appName, name, this.innerModel(), context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getAppResiliencies()
+ .createOrUpdateWithResponse(resourceGroupName, appName, name, this.innerModel(), context)
+ .getValue();
return this;
}
@@ -107,14 +111,18 @@ public AppResiliencyImpl update() {
}
public AppResiliency apply() {
- this.innerObject = serviceManager.serviceClient().getAppResiliencies()
- .updateWithResponse(resourceGroupName, appName, name, this.innerModel(), Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getAppResiliencies()
+ .updateWithResponse(resourceGroupName, appName, name, this.innerModel(), Context.NONE)
+ .getValue();
return this;
}
public AppResiliency apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getAppResiliencies()
- .updateWithResponse(resourceGroupName, appName, name, this.innerModel(), context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getAppResiliencies()
+ .updateWithResponse(resourceGroupName, appName, name, this.innerModel(), context)
+ .getValue();
return this;
}
@@ -128,14 +136,18 @@ public AppResiliency apply(Context context) {
}
public AppResiliency refresh() {
- this.innerObject = serviceManager.serviceClient().getAppResiliencies()
- .getWithResponse(resourceGroupName, appName, name, Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getAppResiliencies()
+ .getWithResponse(resourceGroupName, appName, name, Context.NONE)
+ .getValue();
return this;
}
public AppResiliency refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getAppResiliencies()
- .getWithResponse(resourceGroupName, appName, name, context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getAppResiliencies()
+ .getWithResponse(resourceGroupName, appName, name, context)
+ .getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
index 579bbf3d7b60..dac6789aac8f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
@@ -85,14 +85,17 @@ public AuthConfigImpl withExistingContainerApp(String resourceGroupName, String
}
public AuthConfig create() {
- this.innerObject
- = serviceManager.serviceClient().getContainerAppsAuthConfigs().createOrUpdateWithResponse(resourceGroupName,
- containerAppName, authConfigName, this.innerModel(), Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerAppsAuthConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, containerAppName, authConfigName, this.innerModel(),
+ Context.NONE)
+ .getValue();
return this;
}
public AuthConfig create(Context context) {
- this.innerObject = serviceManager.serviceClient().getContainerAppsAuthConfigs()
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerAppsAuthConfigs()
.createOrUpdateWithResponse(resourceGroupName, containerAppName, authConfigName, this.innerModel(), context)
.getValue();
return this;
@@ -109,14 +112,17 @@ public AuthConfigImpl update() {
}
public AuthConfig apply() {
- this.innerObject
- = serviceManager.serviceClient().getContainerAppsAuthConfigs().createOrUpdateWithResponse(resourceGroupName,
- containerAppName, authConfigName, this.innerModel(), Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerAppsAuthConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, containerAppName, authConfigName, this.innerModel(),
+ Context.NONE)
+ .getValue();
return this;
}
public AuthConfig apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getContainerAppsAuthConfigs()
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerAppsAuthConfigs()
.createOrUpdateWithResponse(resourceGroupName, containerAppName, authConfigName, this.innerModel(), context)
.getValue();
return this;
@@ -132,14 +138,18 @@ public AuthConfig apply(Context context) {
}
public AuthConfig refresh() {
- this.innerObject = serviceManager.serviceClient().getContainerAppsAuthConfigs()
- .getWithResponse(resourceGroupName, containerAppName, authConfigName, Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerAppsAuthConfigs()
+ .getWithResponse(resourceGroupName, containerAppName, authConfigName, Context.NONE)
+ .getValue();
return this;
}
public AuthConfig refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getContainerAppsAuthConfigs()
- .getWithResponse(resourceGroupName, containerAppName, authConfigName, context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerAppsAuthConfigs()
+ .getWithResponse(resourceGroupName, containerAppName, authConfigName, context)
+ .getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildAuthTokensClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildAuthTokensClientImpl.java
index 416f699371ba..c41f96fc70bf 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildAuthTokensClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildAuthTokensClientImpl.java
@@ -51,8 +51,8 @@ public final class BuildAuthTokensClientImpl implements BuildAuthTokensClient {
}
/**
- * The interface defining all the services for ContainerAppsApiClientBuildAuthTokens to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for ContainerAppsApiClientBuildAuthTokens to be used by the proxy service
+ * to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildResourceImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildResourceImpl.java
index da4354a5db34..f254e9354fc1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildResourceImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildResourceImpl.java
@@ -87,14 +87,16 @@ public BuildResourceImpl withExistingBuilder(String resourceGroupName, String bu
}
public BuildResource create() {
- this.innerObject = serviceManager.serviceClient().getBuilds().createOrUpdate(resourceGroupName, builderName,
- buildName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilds()
+ .createOrUpdate(resourceGroupName, builderName, buildName, this.innerModel(), Context.NONE);
return this;
}
public BuildResource create(Context context) {
- this.innerObject = serviceManager.serviceClient().getBuilds().createOrUpdate(resourceGroupName, builderName,
- buildName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilds()
+ .createOrUpdate(resourceGroupName, builderName, buildName, this.innerModel(), context);
return this;
}
@@ -109,14 +111,16 @@ public BuildResourceImpl update() {
}
public BuildResource apply() {
- this.innerObject = serviceManager.serviceClient().getBuilds().createOrUpdate(resourceGroupName, builderName,
- buildName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilds()
+ .createOrUpdate(resourceGroupName, builderName, buildName, this.innerModel(), Context.NONE);
return this;
}
public BuildResource apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getBuilds().createOrUpdate(resourceGroupName, builderName,
- buildName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilds()
+ .createOrUpdate(resourceGroupName, builderName, buildName, this.innerModel(), context);
return this;
}
@@ -130,14 +134,18 @@ public BuildResource apply(Context context) {
}
public BuildResource refresh() {
- this.innerObject = serviceManager.serviceClient().getBuilds()
- .getWithResponse(resourceGroupName, builderName, buildName, Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilds()
+ .getWithResponse(resourceGroupName, builderName, buildName, Context.NONE)
+ .getValue();
return this;
}
public BuildResource refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getBuilds()
- .getWithResponse(resourceGroupName, builderName, buildName, context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilds()
+ .getWithResponse(resourceGroupName, builderName, buildName, context)
+ .getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.java
index 9926d63f18bc..14d509009b5e 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.java
@@ -104,14 +104,16 @@ public BuilderResourceImpl withExistingResourceGroup(String resourceGroupName) {
}
public BuilderResource create() {
- this.innerObject = serviceManager.serviceClient().getBuilders().createOrUpdate(resourceGroupName, builderName,
- this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilders()
+ .createOrUpdate(resourceGroupName, builderName, this.innerModel(), Context.NONE);
return this;
}
public BuilderResource create(Context context) {
- this.innerObject = serviceManager.serviceClient().getBuilders().createOrUpdate(resourceGroupName, builderName,
- this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilders()
+ .createOrUpdate(resourceGroupName, builderName, this.innerModel(), context);
return this;
}
@@ -127,14 +129,16 @@ public BuilderResourceImpl update() {
}
public BuilderResource apply() {
- this.innerObject = serviceManager.serviceClient().getBuilders().update(resourceGroupName, builderName,
- updateBuilderEnvelope, Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilders()
+ .update(resourceGroupName, builderName, updateBuilderEnvelope, Context.NONE);
return this;
}
public BuilderResource apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getBuilders().update(resourceGroupName, builderName,
- updateBuilderEnvelope, context);
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilders()
+ .update(resourceGroupName, builderName, updateBuilderEnvelope, context);
return this;
}
@@ -147,14 +151,18 @@ public BuilderResource apply(Context context) {
}
public BuilderResource refresh() {
- this.innerObject = serviceManager.serviceClient().getBuilders()
- .getByResourceGroupWithResponse(resourceGroupName, builderName, Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilders()
+ .getByResourceGroupWithResponse(resourceGroupName, builderName, Context.NONE)
+ .getValue();
return this;
}
public BuilderResource refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getBuilders()
- .getByResourceGroupWithResponse(resourceGroupName, builderName, context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getBuilders()
+ .getByResourceGroupWithResponse(resourceGroupName, builderName, context)
+ .getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
index 237e1e0d2aa2..7f84f8f2426b 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
@@ -87,7 +87,8 @@ public CertificateImpl withExistingConnectedEnvironment(String resourceGroupName
}
public Certificate create() {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsCertificates()
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsCertificates()
.createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(),
Context.NONE)
.getValue();
@@ -95,9 +96,11 @@ public Certificate create() {
}
public Certificate create(Context context) {
- this.innerObject
- = serviceManager.serviceClient().getConnectedEnvironmentsCertificates().createOrUpdateWithResponse(
- resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(), context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsCertificates()
+ .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(),
+ context)
+ .getValue();
return this;
}
@@ -113,7 +116,8 @@ public CertificateImpl update() {
}
public Certificate apply() {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsCertificates()
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsCertificates()
.updateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, updateCertificateEnvelope,
Context.NONE)
.getValue();
@@ -121,7 +125,8 @@ public Certificate apply() {
}
public Certificate apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsCertificates()
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsCertificates()
.updateWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, updateCertificateEnvelope,
context)
.getValue();
@@ -139,14 +144,18 @@ public Certificate apply(Context context) {
}
public Certificate refresh() {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsCertificates()
- .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsCertificates()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE)
+ .getValue();
return this;
}
public Certificate refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsCertificates()
- .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsCertificates()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context)
+ .getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
index 3a3b7b71bd48..8981b8c50a9c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
@@ -61,8 +61,8 @@ public final class CertificatesClientImpl implements CertificatesClient {
}
/**
- * The interface defining all the services for ContainerAppsApiClientCertificates to be used by the proxy service
- * to perform REST calls.
+ * The interface defining all the services for ContainerAppsApiClientCertificates to be used by the proxy service to
+ * perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java
index bb48fdd2cdf8..8d014c732e36 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java
@@ -61,8 +61,9 @@ public Certificate get(String resourceGroupName, String environmentName, String
public Response createOrUpdateWithResponse(String resourceGroupName, String environmentName,
String certificateName, CertificateInner certificateEnvelope, Context context) {
- Response inner = this.serviceClient().createOrUpdateWithResponse(resourceGroupName,
- environmentName, certificateName, certificateEnvelope, context);
+ Response inner = this.serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, environmentName, certificateName, certificateEnvelope,
+ context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new CertificateImpl(inner.getValue(), this.manager()));
@@ -92,8 +93,8 @@ public void delete(String resourceGroupName, String environmentName, String cert
public Response updateWithResponse(String resourceGroupName, String environmentName,
String certificateName, CertificatePatch certificateEnvelope, Context context) {
- Response inner = this.serviceClient().updateWithResponse(resourceGroupName, environmentName,
- certificateName, certificateEnvelope, context);
+ Response inner = this.serviceClient()
+ .updateWithResponse(resourceGroupName, environmentName, certificateName, certificateEnvelope, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new CertificateImpl(inner.getValue(), this.manager()));
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java
index a733c450c07e..47db3449f3da 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentImpl.java
@@ -111,14 +111,16 @@ public ConnectedEnvironmentImpl withExistingResourceGroup(String resourceGroupNa
}
public ConnectedEnvironment create() {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironments().createOrUpdate(resourceGroupName,
- connectedEnvironmentName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), Context.NONE);
return this;
}
public ConnectedEnvironment create(Context context) {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironments().createOrUpdate(resourceGroupName,
- connectedEnvironmentName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), context);
return this;
}
@@ -134,14 +136,16 @@ public ConnectedEnvironmentImpl update() {
}
public ConnectedEnvironment apply() {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironments().createOrUpdate(resourceGroupName,
- connectedEnvironmentName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), Context.NONE);
return this;
}
public ConnectedEnvironment apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironments().createOrUpdate(resourceGroupName,
- connectedEnvironmentName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironments()
+ .createOrUpdate(resourceGroupName, connectedEnvironmentName, this.innerModel(), context);
return this;
}
@@ -155,27 +159,32 @@ public ConnectedEnvironment apply(Context context) {
}
public ConnectedEnvironment refresh() {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironments()
- .getByResourceGroupWithResponse(resourceGroupName, connectedEnvironmentName, Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironments()
+ .getByResourceGroupWithResponse(resourceGroupName, connectedEnvironmentName, Context.NONE)
+ .getValue();
return this;
}
public ConnectedEnvironment refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironments()
- .getByResourceGroupWithResponse(resourceGroupName, connectedEnvironmentName, context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironments()
+ .getByResourceGroupWithResponse(resourceGroupName, connectedEnvironmentName, context)
+ .getValue();
return this;
}
public Response
checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context) {
- return serviceManager.connectedEnvironments().checkNameAvailabilityWithResponse(resourceGroupName,
- connectedEnvironmentName, checkNameAvailabilityRequest, context);
+ return serviceManager.connectedEnvironments()
+ .checkNameAvailabilityWithResponse(resourceGroupName, connectedEnvironmentName,
+ checkNameAvailabilityRequest, context);
}
public CheckNameAvailabilityResponse
checkNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest) {
- return serviceManager.connectedEnvironments().checkNameAvailability(resourceGroupName, connectedEnvironmentName,
- checkNameAvailabilityRequest);
+ return serviceManager.connectedEnvironments()
+ .checkNameAvailability(resourceGroupName, connectedEnvironmentName, checkNameAvailabilityRequest);
}
public ConnectedEnvironmentImpl withRegion(Region location) {
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 1dfa1dde464c..9b485850e274 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
@@ -62,14 +62,20 @@ public ConnectedEnvironmentStorageImpl withExistingConnectedEnvironment(String r
}
public ConnectedEnvironmentStorage create() {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsStorages().createOrUpdateWithResponse(
- resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(),
+ Context.NONE)
+ .getValue();
return this;
}
public ConnectedEnvironmentStorage create(Context context) {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsStorages().createOrUpdateWithResponse(
- resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(),
+ context)
+ .getValue();
return this;
}
@@ -85,14 +91,20 @@ public ConnectedEnvironmentStorageImpl update() {
}
public ConnectedEnvironmentStorage apply() {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsStorages().createOrUpdateWithResponse(
- resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(),
+ Context.NONE)
+ .getValue();
return this;
}
public ConnectedEnvironmentStorage apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsStorages().createOrUpdateWithResponse(
- resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(), context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .createOrUpdateWithResponse(resourceGroupName, connectedEnvironmentName, storageName, this.innerModel(),
+ context)
+ .getValue();
return this;
}
@@ -107,14 +119,18 @@ public ConnectedEnvironmentStorage apply(Context context) {
}
public ConnectedEnvironmentStorage refresh() {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsStorages()
- .getWithResponse(resourceGroupName, connectedEnvironmentName, storageName, Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, storageName, Context.NONE)
+ .getValue();
return this;
}
public ConnectedEnvironmentStorage refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getConnectedEnvironmentsStorages()
- .getWithResponse(resourceGroupName, connectedEnvironmentName, storageName, context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConnectedEnvironmentsStorages()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, storageName, context)
+ .getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java
index 98958a7e2466..c5aaf65dce2f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStoragesCollectionImpl.java
@@ -26,9 +26,9 @@ public final class ConnectedEnvironmentStoragesCollectionImpl implements Connect
public List value() {
List inner = this.innerModel().value();
if (inner != null) {
- return Collections.unmodifiableList(
- inner.stream().map(inner1 -> new ConnectedEnvironmentStorageImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
+ return Collections.unmodifiableList(inner.stream()
+ .map(inner1 -> new ConnectedEnvironmentStorageImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
} else {
return Collections.emptyList();
}
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 be1c333d2d80..e3cc79529305 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
@@ -61,8 +61,8 @@ public final class ConnectedEnvironmentsCertificatesClientImpl implements Connec
}
/**
- * The interface defining all the services for ContainerAppsApiClientConnectedEnvironmentsCertificates to be used
- * by the proxy service to perform REST calls.
+ * The interface defining all the services for ContainerAppsApiClientConnectedEnvironmentsCertificates to be used by
+ * the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
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 599b752b8e5b..bbe34b1865dd 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
@@ -40,8 +40,8 @@ public PagedIterable list(String resourceGroupName, String connecte
public Response getWithResponse(String resourceGroupName, String connectedEnvironmentName,
String certificateName, Context context) {
- Response inner = this.serviceClient().getWithResponse(resourceGroupName,
- connectedEnvironmentName, certificateName, context);
+ Response inner = this.serviceClient()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new CertificateImpl(inner.getValue(), this.manager()));
@@ -61,8 +61,8 @@ 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);
+ return this.serviceClient()
+ .deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
}
public void delete(String resourceGroupName, String connectedEnvironmentName, String certificateName) {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
index ab3ab2053e3f..2dbf6eec8621 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
@@ -736,7 +736,8 @@ private Mono createOrUpdateAsync(String resourceGroup
private Mono createOrUpdateAsync(String resourceGroupName,
String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope, Context context) {
return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context)
- .last().flatMap(this.client::getLroFinalResultOrError);
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
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 bc4defccdabf..4b813bd2ab73 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
@@ -36,8 +36,7 @@
import reactor.core.publisher.Mono;
/**
- * An instance of this class provides access to all the operations defined in
- * ConnectedEnvironmentsDaprComponentsClient.
+ * An instance of this class provides access to all the operations defined in ConnectedEnvironmentsDaprComponentsClient.
*/
public final class ConnectedEnvironmentsDaprComponentsClientImpl implements ConnectedEnvironmentsDaprComponentsClient {
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java
index eacdeaebf3bb..81cb2b05c3e1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java
@@ -65,8 +65,8 @@ public DaprComponent get(String resourceGroupName, String connectedEnvironmentNa
public Response deleteWithResponse(String resourceGroupName, String connectedEnvironmentName,
String componentName, Context context) {
- return this.serviceClient().deleteWithResponse(resourceGroupName, connectedEnvironmentName, componentName,
- context);
+ return this.serviceClient()
+ .deleteWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context);
}
public void delete(String resourceGroupName, String connectedEnvironmentName, String componentName) {
@@ -75,8 +75,8 @@ public void delete(String resourceGroupName, String connectedEnvironmentName, St
public Response listSecretsWithResponse(String resourceGroupName,
String connectedEnvironmentName, String componentName, Context context) {
- Response inner = this.serviceClient().listSecretsWithResponse(resourceGroupName,
- connectedEnvironmentName, componentName, context);
+ Response inner = this.serviceClient()
+ .listSecretsWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new DaprSecretsCollectionImpl(inner.getValue(), this.manager()));
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsImpl.java
index 2919f62d27be..65670a635404 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsImpl.java
@@ -104,8 +104,9 @@ public ConnectedEnvironment update(String resourceGroupName, String connectedEnv
public Response checkNameAvailabilityWithResponse(String resourceGroupName,
String connectedEnvironmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context) {
- Response inner = this.serviceClient().checkNameAvailabilityWithResponse(
- resourceGroupName, connectedEnvironmentName, checkNameAvailabilityRequest, context);
+ Response inner = this.serviceClient()
+ .checkNameAvailabilityWithResponse(resourceGroupName, connectedEnvironmentName,
+ checkNameAvailabilityRequest, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new CheckNameAvailabilityResponseImpl(inner.getValue(), this.manager()));
@@ -116,8 +117,8 @@ public Response checkNameAvailabilityWithResponse
public CheckNameAvailabilityResponse checkNameAvailability(String resourceGroupName,
String connectedEnvironmentName, CheckNameAvailabilityRequest checkNameAvailabilityRequest) {
- CheckNameAvailabilityResponseInner inner = this.serviceClient().checkNameAvailability(resourceGroupName,
- connectedEnvironmentName, checkNameAvailabilityRequest);
+ CheckNameAvailabilityResponseInner inner = this.serviceClient()
+ .checkNameAvailability(resourceGroupName, connectedEnvironmentName, checkNameAvailabilityRequest);
if (inner != null) {
return new CheckNameAvailabilityResponseImpl(inner, this.manager());
} else {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java
index c44b673d9562..313d8933511a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java
@@ -55,8 +55,8 @@ public final class ConnectedEnvironmentsStoragesClientImpl implements ConnectedE
}
/**
- * The interface defining all the services for ContainerAppsApiClientConnectedEnvironmentsStorages to be used by
- * the proxy service to perform REST calls.
+ * The interface defining all the services for ContainerAppsApiClientConnectedEnvironmentsStorages to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesImpl.java
index 3c5f66271c3b..06e1afd1673a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesImpl.java
@@ -11,9 +11,9 @@
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsStoragesClient;
import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStorageInner;
import com.azure.resourcemanager.appcontainers.fluent.models.ConnectedEnvironmentStoragesCollectionInner;
+import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorage;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStoragesCollection;
-import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsStorages;
public final class ConnectedEnvironmentsStoragesImpl implements ConnectedEnvironmentsStorages {
private static final ClientLogger LOGGER = new ClientLogger(ConnectedEnvironmentsStoragesImpl.class);
@@ -75,8 +75,8 @@ public ConnectedEnvironmentStorage get(String resourceGroupName, String connecte
public Response deleteWithResponse(String resourceGroupName, String connectedEnvironmentName,
String storageName, Context context) {
- return this.serviceClient().deleteWithResponse(resourceGroupName, connectedEnvironmentName, storageName,
- context);
+ return this.serviceClient()
+ .deleteWithResponse(resourceGroupName, connectedEnvironmentName, storageName, context);
}
public void delete(String resourceGroupName, String connectedEnvironmentName, String storageName) {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java
index 1325dc07837e..b3f91ceb38da 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java
@@ -12,9 +12,11 @@
import com.azure.resourcemanager.appcontainers.models.Configuration;
import com.azure.resourcemanager.appcontainers.models.ContainerApp;
import com.azure.resourcemanager.appcontainers.models.ContainerAppAuthToken;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppPropertiesPatchingConfiguration;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProvisioningState;
import com.azure.resourcemanager.appcontainers.models.CustomHostnameAnalysisResult;
import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
+import com.azure.resourcemanager.appcontainers.models.Kind;
import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
import com.azure.resourcemanager.appcontainers.models.SecretsCollection;
import com.azure.resourcemanager.appcontainers.models.Template;
@@ -64,6 +66,10 @@ public String managedBy() {
return this.innerModel().managedBy();
}
+ public Kind kind() {
+ return this.innerModel().kind();
+ }
+
public SystemData systemData() {
return this.innerModel().systemData();
}
@@ -84,6 +90,10 @@ public String workloadProfileName() {
return this.innerModel().workloadProfileName();
}
+ public ContainerAppPropertiesPatchingConfiguration patchingConfiguration() {
+ return this.innerModel().patchingConfiguration();
+ }
+
public String latestRevisionName() {
return this.innerModel().latestRevisionName();
}
@@ -151,14 +161,16 @@ public ContainerAppImpl withExistingResourceGroup(String resourceGroupName) {
}
public ContainerApp create() {
- this.innerObject = serviceManager.serviceClient().getContainerApps().createOrUpdate(resourceGroupName,
- containerAppName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerApps()
+ .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), Context.NONE);
return this;
}
public ContainerApp create(Context context) {
- this.innerObject = serviceManager.serviceClient().getContainerApps().createOrUpdate(resourceGroupName,
- containerAppName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerApps()
+ .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), context);
return this;
}
@@ -173,14 +185,16 @@ public ContainerAppImpl update() {
}
public ContainerApp apply() {
- this.innerObject = serviceManager.serviceClient().getContainerApps().update(resourceGroupName, containerAppName,
- this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerApps()
+ .update(resourceGroupName, containerAppName, this.innerModel(), Context.NONE);
return this;
}
public ContainerApp apply(Context context) {
- this.innerObject = serviceManager.serviceClient().getContainerApps().update(resourceGroupName, containerAppName,
- this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerApps()
+ .update(resourceGroupName, containerAppName, this.innerModel(), context);
return this;
}
@@ -193,21 +207,25 @@ public ContainerApp apply(Context context) {
}
public ContainerApp refresh() {
- this.innerObject = serviceManager.serviceClient().getContainerApps()
- .getByResourceGroupWithResponse(resourceGroupName, containerAppName, Context.NONE).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerApps()
+ .getByResourceGroupWithResponse(resourceGroupName, containerAppName, Context.NONE)
+ .getValue();
return this;
}
public ContainerApp refresh(Context context) {
- this.innerObject = serviceManager.serviceClient().getContainerApps()
- .getByResourceGroupWithResponse(resourceGroupName, containerAppName, context).getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getContainerApps()
+ .getByResourceGroupWithResponse(resourceGroupName, containerAppName, context)
+ .getValue();
return this;
}
public Response listCustomHostnameAnalysisWithResponse(String customHostname,
Context context) {
- return serviceManager.containerApps().listCustomHostnameAnalysisWithResponse(resourceGroupName,
- containerAppName, customHostname, context);
+ return serviceManager.containerApps()
+ .listCustomHostnameAnalysisWithResponse(resourceGroupName, containerAppName, customHostname, context);
}
public CustomHostnameAnalysisResult listCustomHostnameAnalysis() {
@@ -276,6 +294,11 @@ public ContainerAppImpl withManagedBy(String managedBy) {
return this;
}
+ public ContainerAppImpl withKind(Kind kind) {
+ this.innerModel().withKind(kind);
+ return this;
+ }
+
public ContainerAppImpl withManagedEnvironmentId(String managedEnvironmentId) {
this.innerModel().withManagedEnvironmentId(managedEnvironmentId);
return this;
@@ -291,6 +314,12 @@ public ContainerAppImpl withWorkloadProfileName(String workloadProfileName) {
return this;
}
+ public ContainerAppImpl
+ withPatchingConfiguration(ContainerAppPropertiesPatchingConfiguration patchingConfiguration) {
+ this.innerModel().withPatchingConfiguration(patchingConfiguration);
+ return this;
+ }
+
public ContainerAppImpl withConfiguration(Configuration configuration) {
this.innerModel().withConfiguration(configuration);
return this;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppJobExecutionsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppJobExecutionsImpl.java
index 6f7c1e0d91d3..6dfa8160d1f7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppJobExecutionsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppJobExecutionsImpl.java
@@ -27,7 +27,8 @@ public List value() {
List inner = this.innerModel().value();
if (inner != null) {
return Collections.unmodifiableList(inner.stream()
- .map(inner1 -> new JobExecutionImpl(inner1, this.manager())).collect(Collectors.toList()));
+ .map(inner1 -> new JobExecutionImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
} else {
return Collections.emptyList();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientBuilder.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientBuilder.java
index 49c7d2ab750a..d2fa8d7fd0f7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientBuilder.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientBuilder.java
@@ -123,11 +123,13 @@ public ContainerAppsApiClientBuilder serializerAdapter(SerializerAdapter seriali
public ContainerAppsApiClientImpl buildClient() {
String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
- HttpPipeline localPipeline = (pipeline != null) ? pipeline
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
: new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
Duration localDefaultPollInterval
= (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
- SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
ContainerAppsApiClientImpl client = new ContainerAppsApiClientImpl(localPipeline, localSerializerAdapter,
localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
index 1253a9deec72..0d65b5179c7c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.appcontainers.implementation;
import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpResponse;
@@ -12,8 +13,8 @@
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
@@ -36,24 +37,31 @@
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsStoragesClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsApiClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsAuthConfigsClient;
+import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsBuildsByContainerAppsClient;
+import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsBuildsClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsDiagnosticsClient;
+import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsPatchesClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsRevisionReplicasClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsRevisionsClient;
+import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsSessionPoolsClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsSourceControlsClient;
import com.azure.resourcemanager.appcontainers.fluent.DaprComponentResiliencyPoliciesClient;
import com.azure.resourcemanager.appcontainers.fluent.DaprComponentsClient;
import com.azure.resourcemanager.appcontainers.fluent.DaprSubscriptionsClient;
import com.azure.resourcemanager.appcontainers.fluent.DotNetComponentsClient;
+import com.azure.resourcemanager.appcontainers.fluent.FunctionsExtensionsClient;
import com.azure.resourcemanager.appcontainers.fluent.JavaComponentsClient;
import com.azure.resourcemanager.appcontainers.fluent.JobsClient;
import com.azure.resourcemanager.appcontainers.fluent.JobsExecutionsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedCertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentDiagnosticsClient;
-import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentUsagesClient;
+import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentPrivateEndpointConnectionsClient;
+import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentPrivateLinkResourcesClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsDiagnosticsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsStoragesClient;
+import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentUsagesClient;
import com.azure.resourcemanager.appcontainers.fluent.NamespacesClient;
import com.azure.resourcemanager.appcontainers.fluent.OperationsClient;
import com.azure.resourcemanager.appcontainers.fluent.ResourceProvidersClient;
@@ -366,6 +374,48 @@ public ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas() {
return this.containerAppsRevisionReplicas;
}
+ /**
+ * The ContainerAppsBuildsByContainerAppsClient object to access its operations.
+ */
+ private final ContainerAppsBuildsByContainerAppsClient containerAppsBuildsByContainerApps;
+
+ /**
+ * Gets the ContainerAppsBuildsByContainerAppsClient object to access its operations.
+ *
+ * @return the ContainerAppsBuildsByContainerAppsClient object.
+ */
+ public ContainerAppsBuildsByContainerAppsClient getContainerAppsBuildsByContainerApps() {
+ return this.containerAppsBuildsByContainerApps;
+ }
+
+ /**
+ * The ContainerAppsBuildsClient object to access its operations.
+ */
+ private final ContainerAppsBuildsClient containerAppsBuilds;
+
+ /**
+ * Gets the ContainerAppsBuildsClient object to access its operations.
+ *
+ * @return the ContainerAppsBuildsClient object.
+ */
+ public ContainerAppsBuildsClient getContainerAppsBuilds() {
+ return this.containerAppsBuilds;
+ }
+
+ /**
+ * The ContainerAppsPatchesClient object to access its operations.
+ */
+ private final ContainerAppsPatchesClient containerAppsPatches;
+
+ /**
+ * Gets the ContainerAppsPatchesClient object to access its operations.
+ *
+ * @return the ContainerAppsPatchesClient object.
+ */
+ public ContainerAppsPatchesClient getContainerAppsPatches() {
+ return this.containerAppsPatches;
+ }
+
/**
* The ContainerAppsDiagnosticsClient object to access its operations.
*/
@@ -422,6 +472,20 @@ public JobsClient getJobs() {
return this.jobs;
}
+ /**
+ * The DotNetComponentsClient object to access its operations.
+ */
+ private final DotNetComponentsClient dotNetComponents;
+
+ /**
+ * Gets the DotNetComponentsClient object to access its operations.
+ *
+ * @return the DotNetComponentsClient object.
+ */
+ public DotNetComponentsClient getDotNetComponents() {
+ return this.dotNetComponents;
+ }
+
/**
* The OperationsClient object to access its operations.
*/
@@ -436,6 +500,20 @@ public OperationsClient getOperations() {
return this.operations;
}
+ /**
+ * The JavaComponentsClient object to access its operations.
+ */
+ private final JavaComponentsClient javaComponents;
+
+ /**
+ * Gets the JavaComponentsClient object to access its operations.
+ *
+ * @return the JavaComponentsClient object.
+ */
+ public JavaComponentsClient getJavaComponents() {
+ return this.javaComponents;
+ }
+
/**
* The JobsExecutionsClient object to access its operations.
*/
@@ -520,6 +598,34 @@ public NamespacesClient getNamespaces() {
return this.namespaces;
}
+ /**
+ * The ManagedEnvironmentPrivateEndpointConnectionsClient object to access its operations.
+ */
+ private final ManagedEnvironmentPrivateEndpointConnectionsClient managedEnvironmentPrivateEndpointConnections;
+
+ /**
+ * Gets the ManagedEnvironmentPrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentPrivateEndpointConnectionsClient object.
+ */
+ public ManagedEnvironmentPrivateEndpointConnectionsClient getManagedEnvironmentPrivateEndpointConnections() {
+ return this.managedEnvironmentPrivateEndpointConnections;
+ }
+
+ /**
+ * The ManagedEnvironmentPrivateLinkResourcesClient object to access its operations.
+ */
+ private final ManagedEnvironmentPrivateLinkResourcesClient managedEnvironmentPrivateLinkResources;
+
+ /**
+ * Gets the ManagedEnvironmentPrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentPrivateLinkResourcesClient object.
+ */
+ public ManagedEnvironmentPrivateLinkResourcesClient getManagedEnvironmentPrivateLinkResources() {
+ return this.managedEnvironmentPrivateLinkResources;
+ }
+
/**
* The DaprComponentResiliencyPoliciesClient object to access its operations.
*/
@@ -619,31 +725,31 @@ public ManagedEnvironmentUsagesClient getManagedEnvironmentUsages() {
}
/**
- * The JavaComponentsClient object to access its operations.
+ * The FunctionsExtensionsClient object to access its operations.
*/
- private final JavaComponentsClient javaComponents;
+ private final FunctionsExtensionsClient functionsExtensions;
/**
- * Gets the JavaComponentsClient object to access its operations.
+ * Gets the FunctionsExtensionsClient object to access its operations.
*
- * @return the JavaComponentsClient object.
+ * @return the FunctionsExtensionsClient object.
*/
- public JavaComponentsClient getJavaComponents() {
- return this.javaComponents;
+ public FunctionsExtensionsClient getFunctionsExtensions() {
+ return this.functionsExtensions;
}
/**
- * The DotNetComponentsClient object to access its operations.
+ * The ContainerAppsSessionPoolsClient object to access its operations.
*/
- private final DotNetComponentsClient dotNetComponents;
+ private final ContainerAppsSessionPoolsClient containerAppsSessionPools;
/**
- * Gets the DotNetComponentsClient object to access its operations.
+ * Gets the ContainerAppsSessionPoolsClient object to access its operations.
*
- * @return the DotNetComponentsClient object.
+ * @return the ContainerAppsSessionPoolsClient object.
*/
- public DotNetComponentsClient getDotNetComponents() {
- return this.dotNetComponents;
+ public ContainerAppsSessionPoolsClient getContainerAppsSessionPools() {
+ return this.containerAppsSessionPools;
}
/**
@@ -663,7 +769,7 @@ public DotNetComponentsClient getDotNetComponents() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-11-02-preview";
+ this.apiVersion = "2024-02-02-preview";
this.appResiliencies = new AppResilienciesClientImpl(this);
this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsClientImpl(this);
this.availableWorkloadProfiles = new AvailableWorkloadProfilesClientImpl(this);
@@ -679,17 +785,25 @@ public DotNetComponentsClient getDotNetComponents() {
this.containerApps = new ContainerAppsClientImpl(this);
this.containerAppsRevisions = new ContainerAppsRevisionsClientImpl(this);
this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasClientImpl(this);
+ this.containerAppsBuildsByContainerApps = new ContainerAppsBuildsByContainerAppsClientImpl(this);
+ this.containerAppsBuilds = new ContainerAppsBuildsClientImpl(this);
+ this.containerAppsPatches = new ContainerAppsPatchesClientImpl(this);
this.containerAppsDiagnostics = new ContainerAppsDiagnosticsClientImpl(this);
this.managedEnvironmentDiagnostics = new ManagedEnvironmentDiagnosticsClientImpl(this);
this.managedEnvironmentsDiagnostics = new ManagedEnvironmentsDiagnosticsClientImpl(this);
this.jobs = new JobsClientImpl(this);
+ this.dotNetComponents = new DotNetComponentsClientImpl(this);
this.operations = new OperationsClientImpl(this);
+ this.javaComponents = new JavaComponentsClientImpl(this);
this.jobsExecutions = new JobsExecutionsClientImpl(this);
this.resourceProviders = new ResourceProvidersClientImpl(this);
this.managedEnvironments = new ManagedEnvironmentsClientImpl(this);
this.certificates = new CertificatesClientImpl(this);
this.managedCertificates = new ManagedCertificatesClientImpl(this);
this.namespaces = new NamespacesClientImpl(this);
+ this.managedEnvironmentPrivateEndpointConnections
+ = new ManagedEnvironmentPrivateEndpointConnectionsClientImpl(this);
+ this.managedEnvironmentPrivateLinkResources = new ManagedEnvironmentPrivateLinkResourcesClientImpl(this);
this.daprComponentResiliencyPolicies = new DaprComponentResiliencyPoliciesClientImpl(this);
this.daprComponents = new DaprComponentsClientImpl(this);
this.daprSubscriptions = new DaprSubscriptionsClientImpl(this);
@@ -697,8 +811,8 @@ public DotNetComponentsClient getDotNetComponents() {
this.containerAppsSourceControls = new ContainerAppsSourceControlsClientImpl(this);
this.usages = new UsagesClientImpl(this);
this.managedEnvironmentUsages = new ManagedEnvironmentUsagesClientImpl(this);
- this.javaComponents = new JavaComponentsClientImpl(this);
- this.dotNetComponents = new DotNetComponentsClientImpl(this);
+ this.functionsExtensions = new FunctionsExtensionsClientImpl(this);
+ this.containerAppsSessionPools = new ContainerAppsSessionPoolsClientImpl(this);
}
/**
@@ -761,8 +875,8 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
if (errorBody != null) {
// try to deserialize error body to ManagementError
try {
- managementError = this.getSerializerAdapter().deserialize(errorBody, ManagementError.class,
- SerializerEncoding.JSON);
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
if (managementError.getCode() == null || managementError.getMessage() == null) {
managementError = null;
}
@@ -803,7 +917,7 @@ public int getStatusCode() {
}
public String getHeaderValue(String s) {
- return httpHeaders.getValue(s);
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
}
public HttpHeaders getHeaders() {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildResourceImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildResourceImpl.java
new file mode 100644
index 000000000000..0140fcd8e536
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildResourceImpl.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuildProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.BuildStatus;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildResource;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+
+public final class ContainerAppsBuildResourceImpl implements ContainerAppsBuildResource {
+ private ContainerAppsBuildResourceInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ ContainerAppsBuildResourceImpl(ContainerAppsBuildResourceInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public BuildProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public BuildStatus buildStatus() {
+ return this.innerModel().buildStatus();
+ }
+
+ public ContainerRegistryWithCustomImage destinationContainerRegistry() {
+ return this.innerModel().destinationContainerRegistry();
+ }
+
+ public ContainerAppsBuildConfiguration configuration() {
+ return this.innerModel().configuration();
+ }
+
+ public String logStreamEndpoint() {
+ return this.innerModel().logStreamEndpoint();
+ }
+
+ public ContainerAppsBuildResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsByContainerAppsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsByContainerAppsClientImpl.java
new file mode 100644
index 000000000000..23ac3a84b9f5
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsByContainerAppsClientImpl.java
@@ -0,0 +1,290 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsBuildsByContainerAppsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildCollection;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsBuildsByContainerAppsClient.
+ */
+public final class ContainerAppsBuildsByContainerAppsClientImpl implements ContainerAppsBuildsByContainerAppsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ContainerAppsBuildsByContainerAppsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ContainerAppsBuildsByContainerAppsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ContainerAppsBuildsByContainerAppsClientImpl(ContainerAppsApiClientImpl client) {
+ this.service = RestProxy.create(ContainerAppsBuildsByContainerAppsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientContainerAppsBuildsByContainerApps to be used
+ * by the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface ContainerAppsBuildsByContainerAppsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/builds")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("containerAppName") String containerAppName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List Container Apps Build resources by Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Container Apps Build Resource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String containerAppName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, containerAppName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List Container Apps Build resources by Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Container Apps Build Resource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String containerAppName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, containerAppName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List Container Apps Build resources by Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Container Apps Build Resource list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String containerAppName) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, containerAppName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Container Apps Build resources by Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Container Apps Build Resource list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String containerAppName,
+ Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, containerAppName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List Container Apps Build resources by Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Container Apps Build Resource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String containerAppName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, containerAppName));
+ }
+
+ /**
+ * List Container Apps Build resources by Container App.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Container Apps Build Resource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String containerAppName,
+ Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, containerAppName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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 response of a Container Apps Build Resource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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 response of a Container Apps Build Resource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsByContainerAppsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsByContainerAppsImpl.java
new file mode 100644
index 000000000000..f5ff5268f874
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsByContainerAppsImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsBuildsByContainerAppsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildResource;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildsByContainerApps;
+
+public final class ContainerAppsBuildsByContainerAppsImpl implements ContainerAppsBuildsByContainerApps {
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerAppsBuildsByContainerAppsImpl.class);
+
+ private final ContainerAppsBuildsByContainerAppsClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public ContainerAppsBuildsByContainerAppsImpl(ContainerAppsBuildsByContainerAppsClient innerClient,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String containerAppName) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, containerAppName);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new ContainerAppsBuildResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String containerAppName,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, containerAppName, context);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new ContainerAppsBuildResourceImpl(inner1, this.manager()));
+ }
+
+ private ContainerAppsBuildsByContainerAppsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsClientImpl.java
new file mode 100644
index 000000000000..0a9b6a1c7932
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsClientImpl.java
@@ -0,0 +1,441 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.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.ContainerAppsBuildsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsBuildsClient.
+ */
+public final class ContainerAppsBuildsClientImpl implements ContainerAppsBuildsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ContainerAppsBuildsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ContainerAppsBuildsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ContainerAppsBuildsClientImpl(ContainerAppsApiClientImpl client) {
+ this.service = RestProxy.create(ContainerAppsBuildsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientContainerAppsBuilds to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface ContainerAppsBuildsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/builds/{buildName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("containerAppName") String containerAppName, @PathParam("buildName") String buildName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/builds/{buildName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("containerAppName") String containerAppName, @PathParam("buildName") String buildName,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Build resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String containerAppName, String buildName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, containerAppName, buildName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Build resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String containerAppName, String buildName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, containerAppName, buildName, accept, context);
+ }
+
+ /**
+ * Get a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Build resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String containerAppName,
+ String buildName) {
+ return getWithResponseAsync(resourceGroupName, containerAppName, buildName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Build resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String containerAppName,
+ String buildName, Context context) {
+ return getWithResponseAsync(resourceGroupName, containerAppName, buildName, context).block();
+ }
+
+ /**
+ * Get a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Build resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ContainerAppsBuildResourceInner get(String resourceGroupName, String containerAppName, String buildName) {
+ return getWithResponse(resourceGroupName, containerAppName, buildName, Context.NONE).getValue();
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String buildName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, containerAppName, buildName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String buildName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, containerAppName, buildName, accept, context);
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String buildName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, containerAppName, buildName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String buildName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, containerAppName, buildName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String buildName) {
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, buildName).getSyncPoller();
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String buildName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, buildName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName, String buildName) {
+ return beginDeleteAsync(resourceGroupName, containerAppName, buildName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName, String buildName,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, containerAppName, buildName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName, String buildName) {
+ deleteAsync(resourceGroupName, containerAppName, buildName).block();
+ }
+
+ /**
+ * Delete a Container Apps Build resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Build is associated.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName, String buildName, Context context) {
+ deleteAsync(resourceGroupName, containerAppName, buildName, context).block();
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsImpl.java
new file mode 100644
index 000000000000..2e9fdac76510
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsBuildsImpl.java
@@ -0,0 +1,66 @@
+// 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.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsBuildsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildResource;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuilds;
+
+public final class ContainerAppsBuildsImpl implements ContainerAppsBuilds {
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerAppsBuildsImpl.class);
+
+ private final ContainerAppsBuildsClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public ContainerAppsBuildsImpl(ContainerAppsBuildsClient innerClient,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String containerAppName,
+ String buildName, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, containerAppName, buildName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ContainerAppsBuildResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ContainerAppsBuildResource get(String resourceGroupName, String containerAppName, String buildName) {
+ ContainerAppsBuildResourceInner inner
+ = this.serviceClient().get(resourceGroupName, containerAppName, buildName);
+ if (inner != null) {
+ return new ContainerAppsBuildResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String containerAppName, String buildName) {
+ this.serviceClient().delete(resourceGroupName, containerAppName, buildName);
+ }
+
+ public void delete(String resourceGroupName, String containerAppName, String buildName, Context context) {
+ this.serviceClient().delete(resourceGroupName, containerAppName, buildName, context);
+ }
+
+ private ContainerAppsBuildsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsPatchResourceImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsPatchResourceImpl.java
new file mode 100644
index 000000000000..da5d66fd22e1
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsPatchResourceImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsPatchResourceInner;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatchResource;
+import com.azure.resourcemanager.appcontainers.models.PatchProperties;
+
+public final class ContainerAppsPatchResourceImpl implements ContainerAppsPatchResource {
+ private ContainerAppsPatchResourceInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ ContainerAppsPatchResourceImpl(ContainerAppsPatchResourceInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public PatchProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ContainerAppsPatchResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsPatchesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsPatchesClientImpl.java
new file mode 100644
index 000000000000..f0651329280e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsPatchesClientImpl.java
@@ -0,0 +1,1206 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.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.ContainerAppsPatchesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsPatchResourceInner;
+import com.azure.resourcemanager.appcontainers.models.PatchCollection;
+import com.azure.resourcemanager.appcontainers.models.PatchSkipConfig;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsPatchesClient.
+ */
+public final class ContainerAppsPatchesClientImpl implements ContainerAppsPatchesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ContainerAppsPatchesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ContainerAppsPatchesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ContainerAppsPatchesClientImpl(ContainerAppsApiClientImpl client) {
+ this.service = RestProxy.create(ContainerAppsPatchesService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientContainerAppsPatches to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface ContainerAppsPatchesService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByContainerApp(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("containerAppName") String containerAppName, @QueryParam("$filter") String filter,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches/{patchName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("containerAppName") String containerAppName, @PathParam("patchName") String patchName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches/{patchName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("containerAppName") String containerAppName, @PathParam("patchName") String patchName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches/{patchName}/skipConfig")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> skipConfigure(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("containerAppName") String containerAppName, @PathParam("patchName") String patchName,
+ @BodyParam("application/json") PatchSkipConfig patchSkipConfig, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches/{patchName}/apply")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> apply(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("containerAppName") String containerAppName, @PathParam("patchName") String patchName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByContainerAppNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List Container Apps Patch resources by ContainerApp.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param filter The filter to apply on the operation. For example, $filter=properties/patchApplyStatus eq
+ * 'Succeeded'.
+ * @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 container App patch collection along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByContainerAppSinglePageAsync(String resourceGroupName, String containerAppName, String filter) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByContainerApp(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, containerAppName, filter, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List Container Apps Patch resources by ContainerApp.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param filter The filter to apply on the operation. For example, $filter=properties/patchApplyStatus eq
+ * 'Succeeded'.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App patch collection along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByContainerAppSinglePageAsync(
+ String resourceGroupName, String containerAppName, String filter, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByContainerApp(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, containerAppName, filter, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List Container Apps Patch resources by ContainerApp.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param filter The filter to apply on the operation. For example, $filter=properties/patchApplyStatus eq
+ * 'Succeeded'.
+ * @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 container App patch collection as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByContainerAppAsync(String resourceGroupName,
+ String containerAppName, String filter) {
+ return new PagedFlux<>(() -> listByContainerAppSinglePageAsync(resourceGroupName, containerAppName, filter),
+ nextLink -> listByContainerAppNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Container Apps Patch resources by ContainerApp.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App patch collection as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByContainerAppAsync(String resourceGroupName,
+ String containerAppName) {
+ final String filter = null;
+ return new PagedFlux<>(() -> listByContainerAppSinglePageAsync(resourceGroupName, containerAppName, filter),
+ nextLink -> listByContainerAppNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Container Apps Patch resources by ContainerApp.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param filter The filter to apply on the operation. For example, $filter=properties/patchApplyStatus eq
+ * 'Succeeded'.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App patch collection as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByContainerAppAsync(String resourceGroupName,
+ String containerAppName, String filter, Context context) {
+ return new PagedFlux<>(
+ () -> listByContainerAppSinglePageAsync(resourceGroupName, containerAppName, filter, context),
+ nextLink -> listByContainerAppNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List Container Apps Patch resources by ContainerApp.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App patch collection as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByContainerApp(String resourceGroupName,
+ String containerAppName) {
+ final String filter = null;
+ return new PagedIterable<>(listByContainerAppAsync(resourceGroupName, containerAppName, filter));
+ }
+
+ /**
+ * List Container Apps Patch resources by ContainerApp.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param filter The filter to apply on the operation. For example, $filter=properties/patchApplyStatus eq
+ * 'Succeeded'.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App patch collection as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByContainerApp(String resourceGroupName,
+ String containerAppName, String filter, Context context) {
+ return new PagedIterable<>(listByContainerAppAsync(resourceGroupName, containerAppName, filter, context));
+ }
+
+ /**
+ * Get details for specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details for specific Container Apps Patch by patch name along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String containerAppName, String patchName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (patchName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter patchName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, containerAppName, patchName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get details for specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details for specific Container Apps Patch by patch name along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String containerAppName, String patchName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (patchName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter patchName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, containerAppName, patchName, accept, context);
+ }
+
+ /**
+ * Get details for specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details for specific Container Apps Patch by patch name on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String containerAppName,
+ String patchName) {
+ return getWithResponseAsync(resourceGroupName, containerAppName, patchName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get details for specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details for specific Container Apps Patch by patch name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String containerAppName,
+ String patchName, Context context) {
+ return getWithResponseAsync(resourceGroupName, containerAppName, patchName, context).block();
+ }
+
+ /**
+ * Get details for specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details for specific Container Apps Patch by patch name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ContainerAppsPatchResourceInner get(String resourceGroupName, String containerAppName, String patchName) {
+ return getWithResponse(resourceGroupName, containerAppName, patchName, Context.NONE).getValue();
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String patchName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (patchName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter patchName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, containerAppName, patchName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String patchName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (patchName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter patchName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, containerAppName, patchName, accept, context);
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String patchName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, containerAppName, patchName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String patchName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, containerAppName, patchName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String patchName) {
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, patchName).getSyncPoller();
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName,
+ String patchName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, patchName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName, String patchName) {
+ return beginDeleteAsync(resourceGroupName, containerAppName, patchName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName, String patchName,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, containerAppName, patchName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName, String patchName) {
+ deleteAsync(resourceGroupName, containerAppName, patchName).block();
+ }
+
+ /**
+ * Delete specific Container Apps Patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 containerAppName, String patchName, Context context) {
+ deleteAsync(resourceGroupName, containerAppName, patchName, context).block();
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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>> skipConfigureWithResponseAsync(String resourceGroupName,
+ String containerAppName, String patchName, PatchSkipConfig patchSkipConfig) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (patchName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter patchName is required and cannot be null."));
+ }
+ if (patchSkipConfig == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter patchSkipConfig is required and cannot be null."));
+ } else {
+ patchSkipConfig.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.skipConfigure(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, containerAppName, patchName, patchSkipConfig,
+ accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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>> skipConfigureWithResponseAsync(String resourceGroupName,
+ String containerAppName, String patchName, PatchSkipConfig patchSkipConfig, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (patchName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter patchName is required and cannot be null."));
+ }
+ if (patchSkipConfig == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter patchSkipConfig is required and cannot be null."));
+ } else {
+ patchSkipConfig.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.skipConfigure(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, containerAppName, patchName, patchSkipConfig, accept,
+ context);
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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> beginSkipConfigureAsync(String resourceGroupName,
+ String containerAppName, String patchName, PatchSkipConfig patchSkipConfig) {
+ Mono>> mono
+ = skipConfigureWithResponseAsync(resourceGroupName, containerAppName, patchName, patchSkipConfig);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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> beginSkipConfigureAsync(String resourceGroupName,
+ String containerAppName, String patchName, PatchSkipConfig patchSkipConfig, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = skipConfigureWithResponseAsync(resourceGroupName, containerAppName, patchName, patchSkipConfig, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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> beginSkipConfigure(String resourceGroupName, String containerAppName,
+ String patchName, PatchSkipConfig patchSkipConfig) {
+ return this.beginSkipConfigureAsync(resourceGroupName, containerAppName, patchName, patchSkipConfig)
+ .getSyncPoller();
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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> beginSkipConfigure(String resourceGroupName, String containerAppName,
+ String patchName, PatchSkipConfig patchSkipConfig, Context context) {
+ return this.beginSkipConfigureAsync(resourceGroupName, containerAppName, patchName, patchSkipConfig, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 skipConfigureAsync(String resourceGroupName, String containerAppName, String patchName,
+ PatchSkipConfig patchSkipConfig) {
+ return beginSkipConfigureAsync(resourceGroupName, containerAppName, patchName, patchSkipConfig).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 skipConfigureAsync(String resourceGroupName, String containerAppName, String patchName,
+ PatchSkipConfig patchSkipConfig, Context context) {
+ return beginSkipConfigureAsync(resourceGroupName, containerAppName, patchName, patchSkipConfig, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 skipConfigure(String resourceGroupName, String containerAppName, String patchName,
+ PatchSkipConfig patchSkipConfig) {
+ skipConfigureAsync(resourceGroupName, containerAppName, patchName, patchSkipConfig).block();
+ }
+
+ /**
+ * Configure the Container Apps Patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 skipConfigure(String resourceGroupName, String containerAppName, String patchName,
+ PatchSkipConfig patchSkipConfig, Context context) {
+ skipConfigureAsync(resourceGroupName, containerAppName, patchName, patchSkipConfig, context).block();
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Patch along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> applyWithResponseAsync(String resourceGroupName, String containerAppName,
+ String patchName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (patchName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter patchName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.apply(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, containerAppName, patchName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Patch along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> applyWithResponseAsync(String resourceGroupName, String containerAppName,
+ String patchName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (containerAppName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter containerAppName is required and cannot be null."));
+ }
+ if (patchName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter patchName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.apply(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, containerAppName, patchName, accept, context);
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ContainerAppsPatchResourceInner>
+ beginApplyAsync(String resourceGroupName, String containerAppName, String patchName) {
+ Mono>> mono = applyWithResponseAsync(resourceGroupName, containerAppName, patchName);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ContainerAppsPatchResourceInner.class, ContainerAppsPatchResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ContainerAppsPatchResourceInner>
+ beginApplyAsync(String resourceGroupName, String containerAppName, String patchName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = applyWithResponseAsync(resourceGroupName, containerAppName, patchName, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ContainerAppsPatchResourceInner.class, ContainerAppsPatchResourceInner.class,
+ context);
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ContainerAppsPatchResourceInner>
+ beginApply(String resourceGroupName, String containerAppName, String patchName) {
+ return this.beginApplyAsync(resourceGroupName, containerAppName, patchName).getSyncPoller();
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ContainerAppsPatchResourceInner>
+ beginApply(String resourceGroupName, String containerAppName, String patchName, Context context) {
+ return this.beginApplyAsync(resourceGroupName, containerAppName, patchName, context).getSyncPoller();
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Patch on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono applyAsync(String resourceGroupName, String containerAppName,
+ String patchName) {
+ return beginApplyAsync(resourceGroupName, containerAppName, patchName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Patch on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono applyAsync(String resourceGroupName, String containerAppName,
+ String patchName, Context context) {
+ return beginApplyAsync(resourceGroupName, containerAppName, patchName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ContainerAppsPatchResourceInner apply(String resourceGroupName, String containerAppName, String patchName) {
+ return applyAsync(resourceGroupName, containerAppName, patchName).block();
+ }
+
+ /**
+ * Apply a Container Apps Patch resource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App the Patch is associated.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Patch.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ContainerAppsPatchResourceInner apply(String resourceGroupName, String containerAppName, String patchName,
+ Context context) {
+ return applyAsync(resourceGroupName, containerAppName, patchName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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 container App patch collection along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByContainerAppNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByContainerAppNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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 container App patch collection along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByContainerAppNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listByContainerAppNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsPatchesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsPatchesImpl.java
new file mode 100644
index 000000000000..e37f354e487c
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsPatchesImpl.java
@@ -0,0 +1,115 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsPatchesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsPatchResourceInner;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatches;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatchResource;
+import com.azure.resourcemanager.appcontainers.models.PatchSkipConfig;
+
+public final class ContainerAppsPatchesImpl implements ContainerAppsPatches {
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerAppsPatchesImpl.class);
+
+ private final ContainerAppsPatchesClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public ContainerAppsPatchesImpl(ContainerAppsPatchesClient innerClient,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByContainerApp(String resourceGroupName,
+ String containerAppName) {
+ PagedIterable inner
+ = this.serviceClient().listByContainerApp(resourceGroupName, containerAppName);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new ContainerAppsPatchResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByContainerApp(String resourceGroupName,
+ String containerAppName, String filter, Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByContainerApp(resourceGroupName, containerAppName, filter, context);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new ContainerAppsPatchResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(String resourceGroupName, String containerAppName,
+ String patchName, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, containerAppName, patchName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ContainerAppsPatchResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ContainerAppsPatchResource get(String resourceGroupName, String containerAppName, String patchName) {
+ ContainerAppsPatchResourceInner inner
+ = this.serviceClient().get(resourceGroupName, containerAppName, patchName);
+ if (inner != null) {
+ return new ContainerAppsPatchResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String containerAppName, String patchName) {
+ this.serviceClient().delete(resourceGroupName, containerAppName, patchName);
+ }
+
+ public void delete(String resourceGroupName, String containerAppName, String patchName, Context context) {
+ this.serviceClient().delete(resourceGroupName, containerAppName, patchName, context);
+ }
+
+ public void skipConfigure(String resourceGroupName, String containerAppName, String patchName,
+ PatchSkipConfig patchSkipConfig) {
+ this.serviceClient().skipConfigure(resourceGroupName, containerAppName, patchName, patchSkipConfig);
+ }
+
+ public void skipConfigure(String resourceGroupName, String containerAppName, String patchName,
+ PatchSkipConfig patchSkipConfig, Context context) {
+ this.serviceClient().skipConfigure(resourceGroupName, containerAppName, patchName, patchSkipConfig, context);
+ }
+
+ public ContainerAppsPatchResource apply(String resourceGroupName, String containerAppName, String patchName) {
+ ContainerAppsPatchResourceInner inner
+ = this.serviceClient().apply(resourceGroupName, containerAppName, patchName);
+ if (inner != null) {
+ return new ContainerAppsPatchResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public ContainerAppsPatchResource apply(String resourceGroupName, String containerAppName, String patchName,
+ Context context) {
+ ContainerAppsPatchResourceInner inner
+ = this.serviceClient().apply(resourceGroupName, containerAppName, patchName, context);
+ if (inner != null) {
+ return new ContainerAppsPatchResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private ContainerAppsPatchesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java
index 1e8b67b9cbfa..c61df0a2fa31 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java
@@ -52,8 +52,8 @@ public final class ContainerAppsRevisionReplicasClientImpl implements ContainerA
}
/**
- * The interface defining all the services for ContainerAppsApiClientContainerAppsRevisionReplicas to be used by
- * the proxy service to perform REST calls.
+ * The interface defining all the services for ContainerAppsApiClientContainerAppsRevisionReplicas to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java
index d4af3bac90f6..78840c5e4e64 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasImpl.java
@@ -30,8 +30,8 @@ public ContainerAppsRevisionReplicasImpl(ContainerAppsRevisionReplicasClient inn
public Response getReplicaWithResponse(String resourceGroupName, String containerAppName,
String revisionName, String replicaName, Context context) {
- Response inner = this.serviceClient().getReplicaWithResponse(resourceGroupName, containerAppName,
- revisionName, replicaName, context);
+ Response inner = this.serviceClient()
+ .getReplicaWithResponse(resourceGroupName, containerAppName, revisionName, replicaName, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new ReplicaImpl(inner.getValue(), this.manager()));
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java
index 2f77c0175db5..c882280ca305 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsImpl.java
@@ -62,8 +62,8 @@ public Revision getRevision(String resourceGroupName, String containerAppName, S
public Response activateRevisionWithResponse(String resourceGroupName, String containerAppName,
String revisionName, Context context) {
- return this.serviceClient().activateRevisionWithResponse(resourceGroupName, containerAppName, revisionName,
- context);
+ return this.serviceClient()
+ .activateRevisionWithResponse(resourceGroupName, containerAppName, revisionName, context);
}
public void activateRevision(String resourceGroupName, String containerAppName, String revisionName) {
@@ -72,8 +72,8 @@ public void activateRevision(String resourceGroupName, String containerAppName,
public Response deactivateRevisionWithResponse(String resourceGroupName, String containerAppName,
String revisionName, Context context) {
- return this.serviceClient().deactivateRevisionWithResponse(resourceGroupName, containerAppName, revisionName,
- context);
+ return this.serviceClient()
+ .deactivateRevisionWithResponse(resourceGroupName, containerAppName, revisionName, context);
}
public void deactivateRevision(String resourceGroupName, String containerAppName, String revisionName) {
@@ -82,8 +82,8 @@ public void deactivateRevision(String resourceGroupName, String containerAppName
public Response restartRevisionWithResponse(String resourceGroupName, String containerAppName,
String revisionName, Context context) {
- return this.serviceClient().restartRevisionWithResponse(resourceGroupName, containerAppName, revisionName,
- context);
+ return this.serviceClient()
+ .restartRevisionWithResponse(resourceGroupName, containerAppName, revisionName, context);
}
public void restartRevision(String resourceGroupName, String containerAppName, String revisionName) {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSessionPoolsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSessionPoolsClientImpl.java
new file mode 100644
index 000000000000..5cff18f84112
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSessionPoolsClientImpl.java
@@ -0,0 +1,1366 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.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.ContainerAppsSessionPoolsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.SessionPoolInner;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import com.azure.resourcemanager.appcontainers.models.SessionPoolCollection;
+import com.azure.resourcemanager.appcontainers.models.SessionPoolUpdatableProperties;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerAppsSessionPoolsClient.
+ */
+public final class ContainerAppsSessionPoolsClientImpl implements ContainerAppsSessionPoolsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ContainerAppsSessionPoolsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of ContainerAppsSessionPoolsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ContainerAppsSessionPoolsClientImpl(ContainerAppsApiClientImpl client) {
+ this.service = RestProxy.create(ContainerAppsSessionPoolsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientContainerAppsSessionPools to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface ContainerAppsSessionPoolsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/sessionPools")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByResourceGroup(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("sessionPoolName") String sessionPoolName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("sessionPoolName") String sessionPoolName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") SessionPoolInner sessionPoolEnvelope, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> update(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("sessionPoolName") String sessionPoolName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") SessionPoolUpdatableProperties sessionPoolEnvelope,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("sessionPoolName") String sessionPoolName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get the session pools in a given subscription.
+ *
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given subscription along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the session pools in a given subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given subscription along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), accept,
+ context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Get the session pools in a given subscription.
+ *
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given subscription as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get the session pools in a given subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given subscription as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get the session pools in a given subscription.
+ *
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * Get the session pools in a given subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(),
+ this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ this.client.getApiVersion(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * Get the session pools in a given resource group of a subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the session pools in a given resource group of a subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * Get the properties of a session pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a session pool along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String sessionPoolName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (sessionPoolName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter sessionPoolName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, sessionPoolName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the properties of a session pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a session pool along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String sessionPoolName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (sessionPoolName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter sessionPoolName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ sessionPoolName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Get the properties of a session pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a session pool on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String sessionPoolName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, sessionPoolName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the properties of a session pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a session pool along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String sessionPoolName,
+ Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, sessionPoolName, context).block();
+ }
+
+ /**
+ * Get the properties of a session pool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a session pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SessionPoolInner getByResourceGroup(String resourceGroupName, String sessionPoolName) {
+ return getByResourceGroupWithResponse(resourceGroupName, sessionPoolName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App session pool along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String sessionPoolName, SessionPoolInner sessionPoolEnvelope) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (sessionPoolName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter sessionPoolName is required and cannot be null."));
+ }
+ if (sessionPoolEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter sessionPoolEnvelope is required and cannot be null."));
+ } else {
+ sessionPoolEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, sessionPoolName, this.client.getApiVersion(), sessionPoolEnvelope, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App session pool along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String sessionPoolName, SessionPoolInner sessionPoolEnvelope, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (sessionPoolName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter sessionPoolName is required and cannot be null."));
+ }
+ if (sessionPoolEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter sessionPoolEnvelope is required and cannot be null."));
+ } else {
+ sessionPoolEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ sessionPoolName, this.client.getApiVersion(), sessionPoolEnvelope, accept, context);
+ }
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, SessionPoolInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String sessionPoolName, SessionPoolInner sessionPoolEnvelope) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, sessionPoolName, sessionPoolEnvelope);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ SessionPoolInner.class, SessionPoolInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, SessionPoolInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String sessionPoolName, SessionPoolInner sessionPoolEnvelope, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, sessionPoolName, sessionPoolEnvelope, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ SessionPoolInner.class, SessionPoolInner.class, context);
+ }
+
+ /**
+ * Create or update a session pool.
+ *
+ * Create or update a session pool with the given properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param sessionPoolName Name of the session pool.
+ * @param sessionPoolEnvelope Properties used to create a session pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App session pool.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller