diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md
index 2d8837938fff..762a78d4d27c 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-06-27)
+
+- 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..7065b455a5af 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})
@@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
### Authentication
-By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
+Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
-- `AZURE_CLIENT_ID` for Azure client ID.
-- `AZURE_TENANT_ID` for Azure tenant ID.
-- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-
-With above configuration, `azure` client can be authenticated using the following code:
+Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -97,6 +93,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
index bb9e2e0bf3b2..43e8efcc1216 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)
@@ -188,6 +218,17 @@
- [List](#jobsexecutions_list)
+## LogicApps
+
+- [CreateOrUpdate](#logicapps_createorupdate)
+- [Delete](#logicapps_delete)
+- [DeployWorkflowArtifacts](#logicapps_deployworkflowartifacts)
+- [Get](#logicapps_get)
+- [GetWorkflow](#logicapps_getworkflow)
+- [Invoke](#logicapps_invoke)
+- [ListWorkflows](#logicapps_listworkflows)
+- [ListWorkflowsConnections](#logicapps_listworkflowsconnections)
+
## ManagedCertificates
- [CreateOrUpdate](#managedcertificates_createorupdate)
@@ -201,6 +242,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)
@@ -261,7 +313,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_CreateOrUpdate
* .json
*/
/**
@@ -271,20 +323,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();
}
}
```
@@ -298,7 +357,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Delete.json
*/
/**
* Sample code: Delete App Resiliency.
@@ -306,8 +365,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);
}
}
```
@@ -321,7 +380,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Get.json
*/
/**
* Sample code: Get App Resiliency.
@@ -329,8 +388,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);
}
}
```
@@ -344,7 +403,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_List.json
*/
/**
* Sample code: List App Resiliency.
@@ -369,7 +428,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Patch.json
*/
/**
* Sample code: Update App Resiliency.
@@ -395,7 +454,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* AvailableWorkloadProfiles_Get.json
*/
/**
@@ -418,7 +477,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/BillingMeters_Get.json
*/
/**
* Sample code: BillingMeters_Get.
@@ -440,7 +499,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_ListAuthToken.json
*/
/**
* Sample code: Get Build Auth Token.
@@ -470,7 +529,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_CreateOrUpdate.json
*/
/**
* Sample code: Builders_CreateOrUpdate_0.
@@ -479,7 +538,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 +550,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();
}
@@ -519,7 +583,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Delete.json
*/
/**
* Sample code: Builders_Delete_0.
@@ -541,7 +605,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Get.json
*/
/**
* Sample code: Builders_Get_0.
@@ -563,7 +627,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_ListBySubscription.
* json
*/
/**
@@ -587,7 +651,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_ListByResourceGroup
* .json
*/
/**
@@ -615,7 +679,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Update.json
*/
/**
* Sample code: Builders_Update_0.
@@ -624,7 +688,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();
}
@@ -658,7 +723,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_CreateOrUpdate.json
*/
/**
* Sample code: Builds_CreateOrUpdate_WithConfig.
@@ -667,29 +732,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* Builds_CreateOrUpdate_NoConfig.json
*/
/**
@@ -713,7 +781,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_Delete.json
*/
/**
* Sample code: Builds_Delete_0.
@@ -735,7 +803,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_Get.json
*/
/**
* Sample code: Builds_Get_0.
@@ -757,7 +825,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_ListByBuilderResource
* .json
*/
/**
@@ -785,7 +853,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* Certificate_CreateOrUpdate_FromKeyVault.json
*/
/**
@@ -795,18 +863,20 @@ 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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_CreateOrUpdate.
* json
*/
/**
@@ -816,11 +886,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);
}
}
```
@@ -834,7 +906,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_Delete.json
*/
/**
* Sample code: Delete Certificate.
@@ -842,8 +914,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);
}
}
```
@@ -857,7 +930,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -865,8 +938,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,7 +953,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* Certificates_ListByManagedEnvironment.json
*/
/**
@@ -907,7 +981,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificates_Patch.json
*/
/**
* Sample code: Patch Certificate.
@@ -915,9 +989,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,7 +1019,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsCertificates_CheckNameAvailability.json
*/
/**
@@ -955,8 +1030,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,7 +1048,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironments_CreateOrUpdate.json
*/
/**
@@ -981,12 +1057,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();
}
}
@@ -1001,7 +1081,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Delete
* .json
*/
/**
@@ -1025,7 +1105,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Get.
* json
*/
/**
@@ -1035,8 +1115,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,7 +1129,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironments_ListBySubscription.json
*/
/**
@@ -1072,7 +1152,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironments_ListByResourceGroup.json
*/
/**
@@ -1096,7 +1176,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Patch.
* json
*/
/**
@@ -1121,7 +1201,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsCertificate_CreateOrUpdate.json
*/
/**
@@ -1131,7 +1211,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,7 +1230,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsCertificate_Delete.json
*/
/**
@@ -1157,8 +1239,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,7 +1254,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsCertificate_Get.json
*/
/**
@@ -1180,8 +1263,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,7 +1278,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
*/
/**
@@ -1204,8 +1288,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,7 +1306,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsCertificates_Patch.json
*/
/**
@@ -1231,8 +1315,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,7 +1350,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
*/
/**
@@ -1274,9 +1360,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,7 +1390,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_Delete.json
*/
/**
@@ -1309,8 +1399,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,7 +1413,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_Get.json
*/
/**
@@ -1332,8 +1422,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,7 +1436,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_List.json
*/
/**
@@ -1355,8 +1445,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,7 +1459,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsDaprComponents_ListSecrets.json
*/
/**
@@ -1379,8 +1469,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,7 +1487,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
@@ -1407,11 +1497,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,7 +1518,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsStorages_Delete.json
*/
/**
@@ -1435,8 +1528,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,7 +1542,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsStorages_Get.json
*/
/**
@@ -1459,8 +1552,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,7 +1566,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ConnectedEnvironmentsStorages_List.json
*/
/**
@@ -1483,8 +1576,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 +1586,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 +1596,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 +1604,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 +1614,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 +1636,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,7 +1648,125 @@ import java.util.Map;
*/
public final class ContainerAppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
+ * 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
*/
/**
@@ -1547,67 +1776,99 @@ 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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate
* .json
*/
/**
@@ -1617,76 +1878,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ContainerApps_TcpApp_CreateOrUpdate.json
*/
/**
@@ -1695,35 +2021,64 @@ 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/2023-11-02-preview/examples/
+ * 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/2024-02-02-preview/examples/
* ContainerApps_ManagedBy_CreateOrUpdate.json
*/
/**
@@ -1733,30 +2088,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();
}
@@ -1783,7 +2139,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Delete.json
*/
/**
* Sample code: Delete Container App.
@@ -1805,7 +2161,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_GetAuthToken.
* json
*/
/**
@@ -1829,7 +2185,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
@@ -1837,8 +2193,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,7 +2207,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ContainerApps_ListBySubscription.json
*/
/**
@@ -1874,7 +2230,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ContainerApps_ListByResourceGroup.json
*/
/**
@@ -1897,7 +2253,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ContainerApps_ListCustomHostNameAnalysis.json
*/
/**
@@ -1906,8 +2262,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);
}
}
```
@@ -1921,7 +2278,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListSecrets.
* json
*/
/**
@@ -1945,7 +2302,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Start.json
*/
/**
* Sample code: Start Container App.
@@ -1967,7 +2324,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Stop.json
*/
/**
* Sample code: Stop Container App.
@@ -2001,7 +2358,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;
@@ -2019,7 +2383,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Patch.json
*/
/**
* Sample code: Patch Container App.
@@ -2028,50 +2392,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();
}
@@ -2106,7 +2502,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_CreateOrUpdate.
* json
*/
/**
@@ -2116,7 +2512,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(
@@ -2140,7 +2537,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_Delete.json
*/
/**
* Sample code: Delete Container App AuthConfig.
@@ -2149,8 +2546,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);
}
}
```
@@ -2164,7 +2561,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_Get.json
*/
/**
* Sample code: Get Container App's AuthConfig.
@@ -2173,8 +2570,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);
}
}
```
@@ -2188,7 +2585,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_ListByContainer.
* json
*/
/**
@@ -2198,8 +2595,78 @@ 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);
}
}
```
@@ -2213,7 +2680,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsDiagnostics_Get
* .json
*/
/**
@@ -2223,8 +2690,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);
}
}
```
@@ -2238,7 +2706,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
@@ -2247,8 +2715,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);
}
}
```
@@ -2262,7 +2731,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json
*/
/**
* Sample code: Get Container App.
@@ -2270,8 +2739,8 @@ 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);
}
}
```
@@ -2284,7 +2753,7 @@ public final class ContainerAppsDiagnosticsGetRootSamples {
*/
public final class ContainerAppsDiagnosticsListDetectorsSamples {
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ContainerAppsDiagnostics_List.json
*/
/**
@@ -2294,8 +2763,8 @@ public final class ContainerAppsDiagnosticsListDetectorsSamples {
*/
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);
+ manager.containerAppsDiagnostics()
+ .listDetectors("mikono-workerapp-test-rg", "mikono-capp-stage1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2309,7 +2778,7 @@ public final class ContainerAppsDiagnosticsListDetectorsSamples {
public final class ContainerAppsDiagnosticsListRevisionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
@@ -2318,8 +2787,131 @@ 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.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);
}
}
```
@@ -2333,7 +2925,7 @@ public final class ContainerAppsDiagnosticsListRevisionsSamples {
public final class ContainerAppsRevisionReplicasGetReplicaSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Replicas_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Replicas_Get.json
*/
/**
* Sample code: Get Container App's revision replica.
@@ -2342,8 +2934,9 @@ public final class ContainerAppsRevisionReplicasGetReplicaSamples {
*/
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);
+ manager.containerAppsRevisionReplicas()
+ .getReplicaWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09", "myapp--0wlqy09-5d9774cff-5wnd8",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2357,7 +2950,7 @@ public final class ContainerAppsRevisionReplicasGetReplicaSamples {
public final class ContainerAppsRevisionReplicasListReplicasSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Replicas_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Replicas_List.json
*/
/**
* Sample code: List Container App's replicas.
@@ -2366,8 +2959,8 @@ public final class ContainerAppsRevisionReplicasListReplicasSamples {
*/
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);
+ manager.containerAppsRevisionReplicas()
+ .listReplicasWithResponse("workerapps-rg-xj", "myapp", "myapp--0wlqy09", com.azure.core.util.Context.NONE);
}
}
```
@@ -2381,7 +2974,7 @@ public final class ContainerAppsRevisionReplicasListReplicasSamples {
public final class ContainerAppsRevisionsActivateRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_Activate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Activate.json
*/
/**
* Sample code: Activate Container App's revision.
@@ -2390,8 +2983,9 @@ public final class ContainerAppsRevisionsActivateRevisionSamples {
*/
public static void
activateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().activateRevisionWithResponse("rg", "testcontainerApp0",
- "testcontainerApp0-pjxhsye", com.azure.core.util.Context.NONE);
+ manager.containerAppsRevisions()
+ .activateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2405,7 +2999,7 @@ public final class ContainerAppsRevisionsActivateRevisionSamples {
public final class ContainerAppsRevisionsDeactivateRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_Deactivate.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Deactivate.json
*/
/**
* Sample code: Deactivate Container App's revision.
@@ -2414,8 +3008,9 @@ public final class ContainerAppsRevisionsDeactivateRevisionSamples {
*/
public static void
deactivateContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().deactivateRevisionWithResponse("rg", "testcontainerApp0",
- "testcontainerApp0-pjxhsye", com.azure.core.util.Context.NONE);
+ manager.containerAppsRevisions()
+ .deactivateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2429,7 +3024,7 @@ public final class ContainerAppsRevisionsDeactivateRevisionSamples {
public final class ContainerAppsRevisionsGetRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_Get.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Get.json
*/
/**
* Sample code: Get Container App's revision.
@@ -2438,8 +3033,9 @@ public final class ContainerAppsRevisionsGetRevisionSamples {
*/
public static void
getContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
- com.azure.core.util.Context.NONE);
+ manager.containerAppsRevisions()
+ .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2453,7 +3049,7 @@ public final class ContainerAppsRevisionsGetRevisionSamples {
public final class ContainerAppsRevisionsListRevisionsSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_List.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_List.json
*/
/**
* Sample code: List Container App's revisions.
@@ -2462,8 +3058,8 @@ public final class ContainerAppsRevisionsListRevisionsSamples {
*/
public static void
listContainerAppSRevisions(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().listRevisions("rg", "testcontainerApp0", null,
- com.azure.core.util.Context.NONE);
+ manager.containerAppsRevisions()
+ .listRevisions("rg", "testcontainerApp0", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2477,7 +3073,7 @@ public final class ContainerAppsRevisionsListRevisionsSamples {
public final class ContainerAppsRevisionsRestartRevisionSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Revisions_Restart.json
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Restart.json
*/
/**
* Sample code: Restart Container App's revision.
@@ -2486,28 +3082,229 @@ public final class ContainerAppsRevisionsRestartRevisionSamples {
*/
public static void
restartContainerAppSRevision(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
- manager.containerAppsRevisions().restartRevisionWithResponse("rg", "testStaticSite0",
- "testcontainerApp0-pjxhsye", com.azure.core.util.Context.NONE);
+ manager.containerAppsRevisions()
+ .restartRevisionWithResponse("rg", "testStaticSite0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ContainerAppsSourceControls_CreateOrUpdate
+### ContainerAppsSessionPools_CreateOrUpdate
```java
-import com.azure.resourcemanager.appcontainers.models.AzureCredentials;
-import com.azure.resourcemanager.appcontainers.models.EnvironmentVariable;
-import com.azure.resourcemanager.appcontainers.models.GithubActionConfiguration;
-import com.azure.resourcemanager.appcontainers.models.RegistryInfo;
+import 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 ContainerAppsSourceControls CreateOrUpdate.
+ * Samples for ContainerAppsSessionPools CreateOrUpdate.
*/
-public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
+public final class ContainerAppsSessionPoolsCreateOrUpdateSamples {
/*
- * 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/SessionPools_CreateOrUpdate.
+ * json
+ */
+ /**
+ * Sample code: Create or Update Session Pool.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ createOrUpdateSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools()
+ .define("testsessionpool")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
+ .withContainerType(ContainerType.CUSTOM_CONTAINER)
+ .withPoolManagementType(PoolManagementType.DYNAMIC)
+ .withScaleConfiguration(
+ new ScaleConfiguration().withMaxConcurrentSessions(500).withReadySessionInstances(100))
+ .withDynamicPoolConfiguration(
+ new DynamicPoolConfiguration().withExecutionType(ExecutionType.TIMED).withCooldownPeriodInSeconds(600))
+ .withCustomContainerTemplate(new CustomContainerTemplate()
+ .withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
+ .withName("testinitcontainer")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new SessionContainerResources().withCpu(0.25D).withMemory("0.5Gi"))))
+ .withIngress(new SessionIngress().withTargetPort(80)))
+ .withSessionNetworkConfiguration(
+ new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
+ .create();
+ }
+}
+```
+
+### ContainerAppsSessionPools_Delete
+
+```java
+/**
+ * Samples for ContainerAppsSessionPools Delete.
+ */
+public final class ContainerAppsSessionPoolsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Delete.json
+ */
+ /**
+ * Sample code: Delete Session Pool.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deleteSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools().delete("rg", "testsessionpool", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsSessionPools_GetByResourceGroup
+
+```java
+/**
+ * Samples for ContainerAppsSessionPools GetByResourceGroup.
+ */
+public final class ContainerAppsSessionPoolsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Get.json
+ */
+ /**
+ * Sample code: Get Session Pool.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void getSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools()
+ .getByResourceGroupWithResponse("rg", "testsessionpool", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsSessionPools_List
+
+```java
+/**
+ * Samples for ContainerAppsSessionPools List.
+ */
+public final class ContainerAppsSessionPoolsListSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
+ * SessionPools_ListBySubscription.json
+ */
+ /**
+ * Sample code: List Session Pools by subscription.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ listSessionPoolsBySubscription(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsSessionPools_ListByResourceGroup
+
+```java
+/**
+ * Samples for ContainerAppsSessionPools ListByResourceGroup.
+ */
+public final class ContainerAppsSessionPoolsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
+ * SessionPools_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List Session Pools by resource group.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ listSessionPoolsByResourceGroup(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.containerAppsSessionPools().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsSessionPools_Update
+
+```java
+import com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate;
+import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration;
+import com.azure.resourcemanager.appcontainers.models.ExecutionType;
+import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionContainer;
+import com.azure.resourcemanager.appcontainers.models.SessionContainerResources;
+import com.azure.resourcemanager.appcontainers.models.SessionIngress;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration;
+import com.azure.resourcemanager.appcontainers.models.SessionNetworkStatus;
+import com.azure.resourcemanager.appcontainers.models.SessionPool;
+import java.util.Arrays;
+
+/**
+ * Samples for ContainerAppsSessionPools Update.
+ */
+public final class ContainerAppsSessionPoolsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Patch.json
+ */
+ /**
+ * Sample code: Update Session Pool.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void updateSessionPool(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ SessionPool resource = manager.containerAppsSessionPools()
+ .getByResourceGroupWithResponse("rg", "testsessionpool", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withScaleConfiguration(
+ new ScaleConfiguration().withMaxConcurrentSessions(500).withReadySessionInstances(100))
+ .withDynamicPoolConfiguration(
+ new DynamicPoolConfiguration().withExecutionType(ExecutionType.TIMED).withCooldownPeriodInSeconds(600))
+ .withCustomContainerTemplate(new CustomContainerTemplate()
+ .withContainers(Arrays.asList(new SessionContainer().withImage("repo/testcontainer:v4")
+ .withName("testinitcontainer")
+ .withCommand(Arrays.asList("/bin/sh"))
+ .withArgs(Arrays.asList("-c", "while true; do echo hello; sleep 10;done"))
+ .withResources(new SessionContainerResources().withCpu(0.25D).withMemory("0.5Gi"))))
+ .withIngress(new SessionIngress().withTargetPort(80)))
+ .withSessionNetworkConfiguration(
+ new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_ENABLED))
+ .apply();
+ }
+}
+```
+
+### ContainerAppsSourceControls_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appcontainers.models.AzureCredentials;
+import com.azure.resourcemanager.appcontainers.models.EnvironmentVariable;
+import com.azure.resourcemanager.appcontainers.models.GithubActionConfiguration;
+import com.azure.resourcemanager.appcontainers.models.RegistryInfo;
+import java.util.Arrays;
+
+/**
+ * Samples for ContainerAppsSourceControls CreateOrUpdate.
+ */
+public final class ContainerAppsSourceControlsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
+ * SourceControls_CreateOrUpdate.json
*/
/**
* Sample code: Create or Update Container App SourceControl.
@@ -2516,15 +3313,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"))))
@@ -2542,7 +3346,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_Delete.json
*/
/**
* Sample code: Delete Container App SourceControl.
@@ -2551,8 +3355,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);
}
}
```
@@ -2566,7 +3370,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_Get.json
*/
/**
* Sample code: Get Container App's SourceControl.
@@ -2575,8 +3379,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,7 +3393,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* SourceControls_ListByContainer.json
*/
/**
@@ -2598,8 +3402,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,7 +3422,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json
*/
/**
@@ -2628,21 +3432,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprComponentResiliencyPolicy_CreateOrUpdate_AllOptions.json
*/
/**
@@ -2652,29 +3460,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json
*/
/**
@@ -2684,14 +3499,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,7 +3525,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprComponentResiliencyPolicies_Delete.json
*/
/**
@@ -2717,8 +3535,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,7 +3550,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprComponentResiliencyPolicies_Get.json
*/
/**
@@ -2741,8 +3560,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,7 +3575,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprComponentResiliencyPolicies_List.json
*/
/**
@@ -2765,8 +3585,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,7 +3606,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprComponents_CreateOrUpdate_Secrets.json
*/
/**
@@ -2796,25 +3616,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprComponents_CreateOrUpdate_SecretStoreComponent.json
*/
/**
@@ -2824,20 +3647,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);
}
}
```
@@ -2851,7 +3678,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_Delete.json
*/
/**
* Sample code: Delete dapr component.
@@ -2859,8 +3686,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,7 +3700,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprComponents_Get_SecretStoreComponent.json
*/
/**
@@ -2883,13 +3710,13 @@ 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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_Get_Secrets.
* json
*/
/**
@@ -2899,8 +3726,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);
}
}
```
@@ -2914,7 +3741,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_List.json
*/
/**
* Sample code: List Dapr Components.
@@ -2936,7 +3763,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_ListSecrets.
* json
*/
/**
@@ -2946,8 +3773,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,7 +3794,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json
*/
/**
@@ -2977,19 +3804,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprSubscriptions_CreateOrUpdate_DefaultRoute.json
*/
/**
@@ -2999,13 +3829,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json
*/
/**
@@ -3015,11 +3849,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();
}
@@ -3047,7 +3885,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_Delete.
* json
*/
/**
@@ -3056,8 +3894,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,7 +3908,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprSubscriptions_Get_DefaultRoute.json
*/
/**
@@ -3080,12 +3918,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprSubscriptions_Get_BulkSubscribeAndScopes.json
*/
/**
@@ -3095,12 +3933,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DaprSubscriptions_Get_RouteRulesAndMetadata.json
*/
/**
@@ -3110,8 +3948,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);
}
}
```
@@ -3125,7 +3963,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_List.json
*/
/**
* Sample code: List Dapr subscriptions.
@@ -3151,7 +3989,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DotNetComponents_CreateOrUpdate.json
*/
/**
@@ -3161,7 +3999,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,7 +4009,7 @@ public final class DotNetComponentsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DotNetComponents_CreateOrUpdate_ServiceBind.json
*/
/**
@@ -3180,13 +4019,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();
}
}
@@ -3201,7 +4042,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Delete.json
*/
/**
* Sample code: Delete .NET Component.
@@ -3209,8 +4050,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,7 +4064,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DotNetComponents_Get_ServiceBind.json
*/
/**
@@ -3233,13 +4074,13 @@ 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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Get.json
*/
/**
* Sample code: Get .NET Component.
@@ -3247,8 +4088,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);
}
}
```
@@ -3262,7 +4103,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_List.json
*/
/**
* Sample code: List .NET Components.
@@ -3274,7 +4115,7 @@ public final class DotNetComponentsListSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DotNetComponents_List_ServiceBind.json
*/
/**
@@ -3303,7 +4144,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* DotNetComponents_Patch_ServiceBind.json
*/
/**
@@ -3316,17 +4157,19 @@ 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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Patch.json
*/
/**
* Sample code: Patch .NET Component.
@@ -3337,7 +4180,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 +4189,37 @@ 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,7 +4227,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* JavaComponents_CreateOrUpdate_ServiceBind.json
*/
/**
@@ -3368,20 +4237,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* JavaComponents_CreateOrUpdate.json
*/
/**
@@ -3391,13 +4262,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();
}
}
@@ -3412,7 +4284,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Delete.json
*/
/**
* Sample code: Delete Java Component.
@@ -3420,8 +4292,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);
}
}
```
@@ -3435,7 +4307,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Get.json
*/
/**
* Sample code: Get Java Component.
@@ -3443,12 +4315,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* JavaComponents_Get_ServiceBind.json
*/
/**
@@ -3458,8 +4330,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);
}
}
```
@@ -3473,7 +4345,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_List.json
*/
/**
* Sample code: List Java Components.
@@ -3485,7 +4357,7 @@ public final class JavaComponentsListSamples {
}
/*
- * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* JavaComponents_List_ServiceBind.json
*/
/**
@@ -3506,7 +4378,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;
/**
@@ -3515,7 +4387,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Patch.json
*/
/**
* Sample code: Patch Java Component.
@@ -3526,17 +4398,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* JavaComponents_Patch_ServiceBind.json
*/
/**
@@ -3549,14 +4421,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 +4447,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,18 +4456,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* Job_CreateorUpdate_ConnectedEnvironment.json
*/
/**
@@ -3602,33 +4482,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* Job_CreateorUpdate_EventTrigger.json
*/
/**
@@ -3638,20 +4528,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(
@@ -3661,7 +4565,7 @@ public final class JobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/examples/Job_CreateorUpdate.json
+ * 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 +4574,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;
+ }
}
```
@@ -3709,7 +4645,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Delete.json
*/
/**
* Sample code: Delete Container Apps Job.
@@ -3731,7 +4667,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Get.json
*/
/**
* Sample code: Get Container Apps Job.
@@ -3753,7 +4689,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
+ * 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 +4698,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);
}
}
```
@@ -3777,7 +4714,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Jobs_ListBySubscription.json
*/
/**
* Sample code: List Container Apps Jobs by subscription.
@@ -3800,7 +4737,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Jobs_ListByResourceGroup.
* json
*/
/**
@@ -3824,7 +4761,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
+ * 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 +4770,7 @@ 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().listDetectors("mikono-workerapp-test-rg", "mikonojob1", com.azure.core.util.Context.NONE);
}
}
```
@@ -3848,7 +4784,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ListSecrets.json
*/
/**
* Sample code: List Container Apps Job Secrets.
@@ -3871,7 +4807,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ProxyGet.json
*/
/**
* Sample code: Get Container App Job by name.
@@ -3899,7 +4835,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Start.json
*/
/**
* Sample code: Run a Container Apps Job.
@@ -3907,16 +4843,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);
}
}
```
@@ -3930,7 +4867,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Stop_Execution.json
*/
/**
* Sample code: Terminate a Container Apps Job.
@@ -3953,7 +4890,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Stop_Multiple.json
*/
/**
* Sample code: Terminate Multiple Container Apps Job.
@@ -3991,7 +4928,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Patch.json
*/
/**
* Sample code: Patch Container Apps Job.
@@ -4000,28 +4937,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();
}
}
@@ -4036,7 +4978,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Executions_Get.json
*/
/**
* Sample code: Get a Container Apps Job Executions.
@@ -4050,6 +4992,245 @@ public final class JobsExecutionsListSamples {
}
```
+### LogicApps_CreateOrUpdate
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import java.io.IOException;
+
+/**
+ * Samples for LogicApps CreateOrUpdate.
+ */
+public final class LogicAppsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_Create.json
+ */
+ /**
+ * Sample code: Create logic app extension.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void createLogicAppExtension(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager)
+ throws IOException {
+ manager.logicApps()
+ .define("testcontainerApp0")
+ .withExistingContainerApp("examplerg", "testcontainerApp0")
+ .withProperties(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .create();
+ }
+}
+```
+
+### LogicApps_Delete
+
+```java
+/**
+ * Samples for LogicApps Delete.
+ */
+public final class LogicAppsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_Delete.json
+ */
+ /**
+ * Sample code: Create logic app extension.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ createLogicAppExtension(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .deleteWithResponse("examplerg", "testcontainerApp0", "testcontainerApp0",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LogicApps_DeployWorkflowArtifacts
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.appcontainers.models.WorkflowArtifacts;
+import java.io.IOException;
+import java.util.Arrays;
+
+/**
+ * Samples for LogicApps DeployWorkflowArtifacts.
+ */
+public final class LogicAppsDeployWorkflowArtifactsSamples {
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
+ * LogicApps_PostDeployWorkflowArtifacts.json
+ */
+ /**
+ * Sample code: Deploys workflow artifacts.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void deploysWorkflowArtifacts(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager)
+ throws IOException {
+ manager.logicApps()
+ .deployWorkflowArtifactsWithResponse("testrg123", "testapp2", "testapp2", new WorkflowArtifacts()
+ .withAppSettings(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"eventHub_connectionString\":\"Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE=\"}",
+ Object.class, SerializerEncoding.JSON))
+ .withFiles(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"connections.json\":{\"managedApiConnections\":{},\"serviceProviderConnections\":{\"eventHub\":{\"displayName\":\"example1\",\"parameterValues\":{\"connectionString\":\"@appsetting('eventHub_connectionString')\"},\"serviceProvider\":{\"id\":\"/serviceProviders/eventHub\"}}}},\"test1/workflow.json\":{\"definition\":{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"triggers\":{\"When_events_are_available_in_Event_hub\":{\"type\":\"ServiceProvider\",\"inputs\":{\"parameters\":{\"eventHubName\":\"test123\"},\"serviceProviderConfiguration\":{\"operationId\":\"receiveEvents\",\"connectionName\":\"eventHub\",\"serviceProviderId\":\"/serviceProviders/eventHub\"}},\"splitOn\":\"@triggerOutputs()?['body']\"}}},\"kind\":\"Stateful\"}}",
+ Object.class, SerializerEncoding.JSON)),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
+ * LogicApps_DeleteDeployWorkflowArtifacts.json
+ */
+ /**
+ * Sample code: Delete workflow artifacts.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ deleteWorkflowArtifacts(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .deployWorkflowArtifactsWithResponse("testrg123", "testapp2", "testapp2",
+ new WorkflowArtifacts().withFilesToDelete(Arrays.asList("test/workflow.json", "test/")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LogicApps_Get
+
+```java
+/**
+ * Samples for LogicApps Get.
+ */
+public final class LogicAppsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_Get.json
+ */
+ /**
+ * Sample code: Get logic app extension by name.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ getLogicAppExtensionByName(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .getWithResponse("examplerg", "testcontainerApp0", "testcontainerApp0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LogicApps_GetWorkflow
+
+```java
+/**
+ * Samples for LogicApps GetWorkflow.
+ */
+public final class LogicAppsGetWorkflowSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_GetWorkflow.json
+ */
+ /**
+ * Sample code: GET a workflow.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void gETAWorkflow(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .getWorkflowWithResponse("examplerg", "testcontainerApp0", "testcontainerApp0", "stateful1",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LogicApps_Invoke
+
+```java
+import com.azure.resourcemanager.appcontainers.models.LogicAppsProxyMethod;
+
+/**
+ * Samples for LogicApps Invoke.
+ */
+public final class LogicAppsInvokeSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_ListCallbackURL.
+ * json
+ */
+ /**
+ * Sample code: Get workflow list call back URL.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void
+ getWorkflowListCallBackURL(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .invokeWithResponse("testrg123", "testapp2", "testapp2",
+ "/runtime/webhooks/workflow/api/management/workflows/Stateful1/triggers/When_a_HTTP_request_is_received/listCallbackUrl",
+ LogicAppsProxyMethod.POST, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LogicApps_ListWorkflows
+
+```java
+/**
+ * Samples for LogicApps ListWorkflows.
+ */
+public final class LogicAppsListWorkflowsSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_ListWorkflows.json
+ */
+ /**
+ * Sample code: List the workflows.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listTheWorkflows(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .listWorkflows("examplerg", "testcontainerApp0", "testcontainerApp0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LogicApps_ListWorkflowsConnections
+
+```java
+/**
+ * Samples for LogicApps ListWorkflowsConnections.
+ */
+public final class LogicAppsListWorkflowsConnectionsSamples {
+ /*
+ * x-ms-original-file:
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_ListConnections.
+ * json
+ */
+ /**
+ * Sample code: List the Workflows Configuration Connections.
+ *
+ * @param manager Entry point to ContainerAppsApiManager.
+ */
+ public static void listTheWorkflowsConfigurationConnections(
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
+ manager.logicApps()
+ .listWorkflowsConnectionsWithResponse("testrg123", "testapp2", "testapp2",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### ManagedCertificates_CreateOrUpdate
```java
@@ -4061,7 +5242,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedCertificate_CreateOrUpdate.json
*/
/**
@@ -4071,7 +5252,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))
@@ -4089,7 +5272,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificate_Delete.
* json
*/
/**
@@ -4098,8 +5281,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);
}
}
```
@@ -4113,7 +5297,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificate_Get.json
*/
/**
* Sample code: Get Certificate.
@@ -4121,8 +5305,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,7 +5320,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedCertificates_ListByManagedEnvironment.json
*/
/**
@@ -4163,7 +5348,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificates_Patch.
* json
*/
/**
@@ -4173,8 +5358,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,7 +5387,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironmentDiagnostics_Get.json
*/
/**
@@ -4210,8 +5397,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,7 +5412,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironmentDiagnostics_List.json
*/
/**
@@ -4234,8 +5422,138 @@ 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,7 +5566,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironmentUsages_List.json
*/
/**
@@ -4275,6 +5593,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,7 +5614,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
*/
/**
@@ -4304,7 +5624,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,20 +5636,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironments_CreateOrUpdate.json
*/
/**
@@ -4336,7 +5666,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 +5679,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 +5692,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 +5701,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();
}
@@ -4404,7 +5747,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Delete.
* json
*/
/**
@@ -4427,7 +5770,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironments_GetAuthToken.json
*/
/**
@@ -4451,7 +5794,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -4459,8 +5802,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,7 +5816,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironments_ListBySubscription.json
*/
/**
@@ -4496,7 +5839,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironments_ListByResourceGroup.json
*/
/**
@@ -4519,7 +5862,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironments_ListWorkloadProfileStates.json
*/
/**
@@ -4529,8 +5872,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);
}
}
```
@@ -4548,7 +5891,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.
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Patch.
* json
*/
/**
@@ -4587,7 +5930,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Get.json
*/
/**
* Sample code: Get environments by name.
@@ -4595,8 +5938,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,7 +5957,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json
*/
/**
@@ -4624,15 +5967,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironmentsStorages_CreateOrUpdate.json
*/
/**
@@ -4642,11 +5988,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,7 +6009,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironmentsStorages_Delete.json
*/
/**
@@ -4670,8 +6019,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,7 +6033,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironmentsStorages_Get.json
*/
/**
@@ -4694,12 +6043,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironmentsStorages_Get_NfsAzureFile.json
*/
/**
@@ -4709,8 +6058,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,7 +6072,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ManagedEnvironmentsStorages_List.json
*/
/**
@@ -4733,8 +6082,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,7 +6098,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* Certificates_CheckNameAvailability.json
*/
/**
@@ -4760,13 +6109,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* ContainerApps_CheckNameAvailability.json
*/
/**
@@ -4776,9 +6126,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);
}
}
```
@@ -4792,7 +6143,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
+ * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Operations_List.json
*/
/**
* Sample code: List all operations.
@@ -4813,7 +6164,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/
+ * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/
* Subscriptions_GetCustomDomainVerificationId.json
*/
/**
@@ -4836,7 +6187,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
+ * 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 +6195,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);
}
}
```
@@ -4859,7 +6210,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
+ * 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 72be1ed94c61..d871e4bf7748 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
@@ -48,6 +48,11 @@
true
+
+ com.azure
+ azure-json
+ 1.1.0
+
com.azure
azure-core
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..3d3693831419 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,32 @@
import com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsStoragesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsApiClientBuilder;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsAuthConfigsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsByContainerAppsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsDiagnosticsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsPatchesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionReplicasImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSessionPoolsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSourceControlsImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentResiliencyPoliciesImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprComponentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.DaprSubscriptionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.DotNetComponentsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.FunctionsExtensionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.JavaComponentsImpl;
import com.azure.resourcemanager.appcontainers.implementation.JobsExecutionsImpl;
import com.azure.resourcemanager.appcontainers.implementation.JobsImpl;
+import com.azure.resourcemanager.appcontainers.implementation.LogicAppsImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedCertificatesImpl;
import com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentDiagnosticsImpl;
-import com.azure.resourcemanager.appcontainers.implementation.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 +82,31 @@
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsStorages;
import com.azure.resourcemanager.appcontainers.models.ContainerApps;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsAuthConfigs;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuilds;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildsByContainerApps;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsDiagnostics;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatches;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisionReplicas;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsRevisions;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppsSessionPools;
import com.azure.resourcemanager.appcontainers.models.ContainerAppsSourceControls;
import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicies;
import com.azure.resourcemanager.appcontainers.models.DaprComponents;
import com.azure.resourcemanager.appcontainers.models.DaprSubscriptions;
import com.azure.resourcemanager.appcontainers.models.DotNetComponents;
+import com.azure.resourcemanager.appcontainers.models.FunctionsExtensions;
import com.azure.resourcemanager.appcontainers.models.JavaComponents;
import com.azure.resourcemanager.appcontainers.models.Jobs;
import com.azure.resourcemanager.appcontainers.models.JobsExecutions;
+import com.azure.resourcemanager.appcontainers.models.LogicApps;
import com.azure.resourcemanager.appcontainers.models.ManagedCertificates;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentDiagnostics;
-import com.azure.resourcemanager.appcontainers.models.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 +120,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 +155,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 +169,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 +187,10 @@ public final class ContainerAppsApiManager {
private Namespaces namespaces;
+ private ManagedEnvironmentPrivateEndpointConnections managedEnvironmentPrivateEndpointConnections;
+
+ private ManagedEnvironmentPrivateLinkResources managedEnvironmentPrivateLinkResources;
+
private DaprComponentResiliencyPolicies daprComponentResiliencyPolicies;
private DaprComponents daprComponents;
@@ -172,9 +205,11 @@ public final class ContainerAppsApiManager {
private ManagedEnvironmentUsages managedEnvironmentUsages;
- private JavaComponents javaComponents;
+ private FunctionsExtensions functionsExtensions;
- private DotNetComponents dotNetComponents;
+ private LogicApps logicApps;
+
+ private ContainerAppsSessionPools containerAppsSessionPools;
private final ContainerAppsApiClient clientObject;
@@ -182,8 +217,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 +371,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 +402,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 +609,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 +697,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 +721,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 +805,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 +921,40 @@ 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 LogicApps. It manages LogicApp.
*
- * @return Resource collection API of DotNetComponents.
+ * @return Resource collection API of LogicApps.
*/
- public DotNetComponents dotNetComponents() {
- if (this.dotNetComponents == null) {
- this.dotNetComponents = new DotNetComponentsImpl(clientObject.getDotNetComponents(), this);
+ public LogicApps logicApps() {
+ if (this.logicApps == null) {
+ this.logicApps = new LogicAppsImpl(clientObject.getLogicApps(), this);
}
- return dotNetComponents;
+ return logicApps;
+ }
+
+ /**
+ * Gets the resource collection API of ContainerAppsSessionPools. It manages SessionPool.
+ *
+ * @return Resource collection API of ContainerAppsSessionPools.
+ */
+ public ContainerAppsSessionPools containerAppsSessionPools() {
+ if (this.containerAppsSessionPools == null) {
+ this.containerAppsSessionPools
+ = new ContainerAppsSessionPoolsImpl(clientObject.getContainerAppsSessionPools(), this);
+ }
+ return containerAppsSessionPools;
}
/**
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..dffef6529c70 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,23 @@ 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 LogicAppsClient object to access its operations.
*
- * @return the DotNetComponentsClient object.
+ * @return the LogicAppsClient object.
*/
- DotNetComponentsClient getDotNetComponents();
+ LogicAppsClient getLogicApps();
+
+ /**
+ * Gets the ContainerAppsSessionPoolsClient object to access its operations.
+ *
+ * @return the ContainerAppsSessionPoolsClient object.
+ */
+ 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/JobsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java
index a0b37059995f..ea43c27efd1a 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java
@@ -12,7 +12,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppJobExecutionsInner;
-import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsCollectionInner;
import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsInner;
import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionBaseInner;
import com.azure.resourcemanager.appcontainers.fluent.models.JobInner;
@@ -31,16 +30,14 @@ public interface JobsClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param jobName Job Name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of diagnostics for a Container App Job along with {@link Response}.
+ * @return the list of diagnostics for a Container App Job as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listDetectorsWithResponse(String resourceGroupName, String jobName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDetectors(String resourceGroupName, String jobName);
/**
* Get the list of diagnostics for a given Container App Job.
@@ -49,14 +46,15 @@ Response listDetectorsWithResponse(String resourceGr
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param jobName Job Name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of diagnostics for a Container App Job.
+ * @return the list of diagnostics for a Container App Job as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DiagnosticsCollectionInner listDetectors(String resourceGroupName, String jobName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDetectors(String resourceGroupName, String jobName, Context context);
/**
* Get the diagnostics data for a given Container App Job.
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/LogicAppsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/LogicAppsClient.java
new file mode 100644
index 000000000000..1ee60bcd1b3c
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/LogicAppsClient.java
@@ -0,0 +1,288 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.LogicAppInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.WorkflowEnvelopeInner;
+import com.azure.resourcemanager.appcontainers.models.LogicAppsProxyMethod;
+import com.azure.resourcemanager.appcontainers.models.WorkflowArtifacts;
+
+/**
+ * An instance of this class provides access to all the operations defined in LogicAppsClient.
+ */
+public interface LogicAppsClient {
+ /**
+ * Gets a logic app extension resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a logic app extension resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String containerAppName, String logicAppName,
+ Context context);
+
+ /**
+ * Gets a logic app extension resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a logic app extension resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogicAppInner get(String resourceGroupName, String containerAppName, String logicAppName);
+
+ /**
+ * Create or update a Logic App extension resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @param resource Logic app resource properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a logic app extension resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName, String containerAppName,
+ String logicAppName, LogicAppInner resource, Context context);
+
+ /**
+ * Create or update a Logic App extension resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @param resource Logic app resource properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a logic app extension resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogicAppInner createOrUpdate(String resourceGroupName, String containerAppName, String logicAppName,
+ LogicAppInner resource);
+
+ /**
+ * Deletes a Logic App extension resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String containerAppName, String logicAppName,
+ Context context);
+
+ /**
+ * Deletes a Logic App extension resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerAppName, String logicAppName);
+
+ /**
+ * List the workflows for a logic app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of workflow information elements as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWorkflows(String resourceGroupName, String containerAppName,
+ String logicAppName);
+
+ /**
+ * List the workflows for a logic app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of workflow information elements as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWorkflows(String resourceGroupName, String containerAppName,
+ String logicAppName, Context context);
+
+ /**
+ * Get workflow information by its name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @param workflowName Workflow name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return workflow information by its name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWorkflowWithResponse(String resourceGroupName, String containerAppName,
+ String logicAppName, String workflowName, Context context);
+
+ /**
+ * Get workflow information by its name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @param workflowName Workflow name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return workflow information by its name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkflowEnvelopeInner getWorkflow(String resourceGroupName, String containerAppName, String logicAppName,
+ String workflowName);
+
+ /**
+ * Creates or updates the artifacts for the logic app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @param workflowArtifacts Application settings and files of the workflow.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deployWorkflowArtifactsWithResponse(String resourceGroupName, String containerAppName,
+ String logicAppName, WorkflowArtifacts workflowArtifacts, Context context);
+
+ /**
+ * Creates or updates the artifacts for the logic app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deployWorkflowArtifacts(String resourceGroupName, String containerAppName, String logicAppName);
+
+ /**
+ * Gets logic app's connections.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return logic app's connections along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWorkflowsConnectionsWithResponse(String resourceGroupName,
+ String containerAppName, String logicAppName, Context context);
+
+ /**
+ * Gets logic app's connections.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the Logic App, the extension resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return logic app's connections.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkflowEnvelopeInner listWorkflowsConnections(String resourceGroupName, String containerAppName,
+ String logicAppName);
+
+ /**
+ * Proxies a the API call to the logic app backed by the container app.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerAppName Name of the Container App.
+ * @param logicAppName Name of the LogicApp App, the extension resource.
+ * @param xMsLogicAppsProxyPath The proxy path for the API call.
+ * @param xMsLogicAppsProxyMethod The proxy method for the API call.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return any object along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response