, Void> beginDelete(String resourceGroupName, String jobName, Context context);
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @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 jobName);
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * 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 jobName, Context context);
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @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 Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, JobInner> beginUpdate(
+ String resourceGroupName, String jobName, JobPatchProperties jobEnvelope);
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, JobInner> beginUpdate(
+ String resourceGroupName, String jobName, JobPatchProperties jobEnvelope, Context context);
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @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 Job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JobInner update(String resourceGroupName, String jobName, JobPatchProperties jobEnvelope);
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ *
Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JobInner update(String resourceGroupName, String jobName, JobPatchProperties jobEnvelope, Context context);
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @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's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, JobExecutionBaseInner> beginRun(
+ String resourceGroupName, String jobName, JobExecutionTemplate template);
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @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's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, JobExecutionBaseInner> beginRun(
+ String resourceGroupName, String jobName, JobExecutionTemplate template, Context context);
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @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's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JobExecutionBaseInner run(String resourceGroupName, String jobName, JobExecutionTemplate template);
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @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's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JobExecutionBaseInner run(String resourceGroupName, String jobName, JobExecutionTemplate template, Context context);
+
+ /**
+ * Get a Container Apps Job's executions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @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 Container Apps Job's executions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable executions(String resourceGroupName, String jobName);
+
+ /**
+ * Get a Container Apps Job's executions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Job's executions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable executions(String resourceGroupName, String jobName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java
new file mode 100644
index 000000000000..44b47880513e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java
@@ -0,0 +1,229 @@
+// 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.ContainerAppJobExecutionsInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.JobInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.JobSecretsCollectionInner;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionNamesCollection;
+
+/** An instance of this class provides access to all the operations defined in JobsClient. */
+public interface JobsClient {
+ /**
+ * Get the Container Apps Jobs 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 Container Apps Jobs in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get the Container Apps Jobs 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 Container Apps Jobs in a given subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get the Container Apps Jobs in a given resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 Container Apps Jobs in a given resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get the Container Apps Jobs in a given resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 Container Apps Jobs in a given resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Terminates execution of a running container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobExecutionName Job execution 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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStopExecution(
+ String resourceGroupName, String jobName, String jobExecutionName);
+
+ /**
+ * Terminates execution of a running container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobExecutionName Job execution 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStopExecution(
+ String resourceGroupName, String jobName, String jobExecutionName, Context context);
+
+ /**
+ * Terminates execution of a running container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobExecutionName Job execution 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stopExecution(String resourceGroupName, String jobName, String jobExecutionName);
+
+ /**
+ * Terminates execution of a running container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobExecutionName Job execution 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stopExecution(String resourceGroupName, String jobName, String jobExecutionName, Context context);
+
+ /**
+ * Terminates execution of a running container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobExecutionName List of all job executions that should be stopped.
+ * @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 executions collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerAppJobExecutionsInner> beginStopMultipleExecutions(
+ String resourceGroupName, String jobName, JobExecutionNamesCollection jobExecutionName);
+
+ /**
+ * Terminates execution of a running container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobExecutionName List of all job executions that should be stopped.
+ * @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 executions collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerAppJobExecutionsInner> beginStopMultipleExecutions(
+ String resourceGroupName, String jobName, JobExecutionNamesCollection jobExecutionName, Context context);
+
+ /**
+ * Terminates execution of a running container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobExecutionName List of all job executions that should be stopped.
+ * @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 executions collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppJobExecutionsInner stopMultipleExecutions(
+ String resourceGroupName, String jobName, JobExecutionNamesCollection jobExecutionName);
+
+ /**
+ * Terminates execution of a running container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobExecutionName List of all job executions that should be stopped.
+ * @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 executions collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAppJobExecutionsInner stopMultipleExecutions(
+ String resourceGroupName, String jobName, JobExecutionNamesCollection jobExecutionName, Context context);
+
+ /**
+ * List secrets for a container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container Apps Job Secrets Collection ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listSecretsWithResponse(
+ String resourceGroupName, String jobName, Context context);
+
+ /**
+ * List secrets for a container apps job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @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 Apps Job Secrets Collection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ JobSecretsCollectionInner listSecrets(String resourceGroupName, String jobName);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedCertificatesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedCertificatesClient.java
new file mode 100644
index 000000000000..af9961b0d7f3
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedCertificatesClient.java
@@ -0,0 +1,231 @@
+// 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.ManagedCertificateInner;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificatePatch;
+
+/** An instance of this class provides access to all the operations defined in ManagedCertificatesClient. */
+public interface ManagedCertificatesClient {
+ /**
+ * Get the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Managed Certificate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String environmentName, String managedCertificateName, Context context);
+
+ /**
+ * Get the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Managed Certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedCertificateInner get(String resourceGroupName, String environmentName, String managedCertificateName);
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of managed certificates used for Custom Domain bindings of Container
+ * Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedCertificateInner> beginCreateOrUpdate(
+ String resourceGroupName, String environmentName, String managedCertificateName);
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 managed certificates used for Custom Domain bindings of Container
+ * Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedCertificateInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope,
+ Context context);
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedCertificateInner createOrUpdate(
+ String resourceGroupName, String environmentName, String managedCertificateName);
+
+ /**
+ * Create or Update a Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Managed Certificate to be created or updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedCertificateInner createOrUpdate(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificateInner managedCertificateEnvelope,
+ Context context);
+
+ /**
+ * Deletes the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String environmentName, String managedCertificateName, Context context);
+
+ /**
+ * Deletes the specified Managed Certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String environmentName, String managedCertificateName);
+
+ /**
+ * Update tags of a managed certificate
+ *
+ * Patches a managed certificate. Oly patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Properties of a managed certificate that need to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificatePatch managedCertificateEnvelope,
+ Context context);
+
+ /**
+ * Update tags of a managed certificate
+ *
+ * Patches a managed certificate. Oly patching of tags is supported.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param managedCertificateName Name of the Managed Certificate.
+ * @param managedCertificateEnvelope Properties of a managed certificate that need to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedCertificateInner update(
+ String resourceGroupName,
+ String environmentName,
+ String managedCertificateName,
+ ManagedCertificatePatch managedCertificateEnvelope);
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Managed Certificates in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the Managed Certificates in a given managed environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Managed Certificates in a given managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java
index 12bb72b96036..b2aa7dd53430 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentsClient.java
@@ -260,10 +260,10 @@ ManagedEnvironmentInner createOrUpdate(
* @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.
+ * @return the {@link SyncPoller} for polling of an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginUpdate(
+ SyncPoller, ManagedEnvironmentInner> beginUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
@@ -279,10 +279,10 @@ SyncPoller, Void> beginUpdate(
* @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.
+ * @return the {@link SyncPoller} for polling of an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginUpdate(
+ SyncPoller, ManagedEnvironmentInner> beginUpdate(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
@@ -297,9 +297,11 @@ SyncPoller, Void> beginUpdate(
* @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 an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
+ ManagedEnvironmentInner update(
+ String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope);
/**
* Update Managed Environment's properties.
@@ -314,9 +316,10 @@ SyncPoller, Void> beginUpdate(
* @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 an environment for hosting container apps.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(
+ ManagedEnvironmentInner update(
String resourceGroupName, String environmentName, ManagedEnvironmentInner environmentEnvelope, Context context);
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
index 0f37c337d055..3683a5040a31 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
@@ -32,6 +32,14 @@ public final class ContainerAppInner extends Resource {
@JsonProperty(value = "identity")
private ManagedServiceIdentity identity;
+ /*
+ * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is
+ * managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if
+ * it is removed from the template since it is managed by another resource.
+ */
+ @JsonProperty(value = "managedBy")
+ private String managedBy;
+
/*
* ContainerApp resource specific properties
*/
@@ -90,6 +98,30 @@ public ContainerAppInner withIdentity(ManagedServiceIdentity identity) {
return this;
}
+ /**
+ * Get the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates
+ * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not
+ * delete the resource if it is removed from the template since it is managed by another resource.
+ *
+ * @return the managedBy value.
+ */
+ public String managedBy() {
+ return this.managedBy;
+ }
+
+ /**
+ * Set the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates
+ * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not
+ * delete the resource if it is removed from the template since it is managed by another resource.
+ *
+ * @param managedBy the managedBy value to set.
+ * @return the ContainerAppInner object itself.
+ */
+ public ContainerAppInner withManagedBy(String managedBy) {
+ this.managedBy = managedBy;
+ return this;
+ }
+
/**
* Get the innerProperties property: ContainerApp resource specific properties.
*
@@ -209,6 +241,15 @@ public String latestRevisionName() {
return this.innerProperties() == null ? null : this.innerProperties().latestRevisionName();
}
+ /**
+ * Get the latestReadyRevisionName property: Name of the latest ready revision of the Container App.
+ *
+ * @return the latestReadyRevisionName value.
+ */
+ public String latestReadyRevisionName() {
+ return this.innerProperties() == null ? null : this.innerProperties().latestReadyRevisionName();
+ }
+
/**
* Get the latestRevisionFqdn property: Fully Qualified Domain Name of the latest revision of the Container App.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppJobExecutionsInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppJobExecutionsInner.java
new file mode 100644
index 000000000000..80a392e0d7c7
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppJobExecutionsInner.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Container App executions collection ARM resource. */
+@Fluent
+public final class ContainerAppJobExecutionsInner {
+ /*
+ * Collection of resources.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /*
+ * Link to next page of resources.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /** Creates an instance of ContainerAppJobExecutionsInner class. */
+ public ContainerAppJobExecutionsInner() {
+ }
+
+ /**
+ * Get the value property: Collection of resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of resources.
+ *
+ * @param value the value value to set.
+ * @return the ContainerAppJobExecutionsInner object itself.
+ */
+ public ContainerAppJobExecutionsInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: Link to next page of resources.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property value in model ContainerAppJobExecutionsInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerAppJobExecutionsInner.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
index b4f8ae444a42..68eda7b7394c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java
@@ -44,6 +44,12 @@ public final class ContainerAppProperties {
@JsonProperty(value = "latestRevisionName", access = JsonProperty.Access.WRITE_ONLY)
private String latestRevisionName;
+ /*
+ * Name of the latest ready revision of the Container App.
+ */
+ @JsonProperty(value = "latestReadyRevisionName", access = JsonProperty.Access.WRITE_ONLY)
+ private String latestReadyRevisionName;
+
/*
* Fully Qualified Domain Name of the latest revision of the Container App.
*/
@@ -162,6 +168,15 @@ public String latestRevisionName() {
return this.latestRevisionName;
}
+ /**
+ * Get the latestReadyRevisionName property: Name of the latest ready revision of the Container App.
+ *
+ * @return the latestReadyRevisionName value.
+ */
+ public String latestReadyRevisionName() {
+ return this.latestReadyRevisionName;
+ }
+
/**
* Get the latestRevisionFqdn property: Fully Qualified Domain Name of the latest revision of the Container App.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
index 340ba9e1b5ac..72cdffb68801 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSecretsCollectionInner.java
@@ -6,7 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.appcontainers.models.Secret;
+import com.azure.resourcemanager.appcontainers.models.DaprSecret;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -17,7 +17,7 @@ public final class DaprSecretsCollectionInner {
* Collection of secrets used by a Dapr component
*/
@JsonProperty(value = "value", required = true)
- private List value;
+ private List value;
/** Creates an instance of DaprSecretsCollectionInner class. */
public DaprSecretsCollectionInner() {
@@ -28,7 +28,7 @@ public DaprSecretsCollectionInner() {
*
* @return the value value.
*/
- public List value() {
+ public List value() {
return this.value;
}
@@ -38,7 +38,7 @@ public List value() {
* @param value the value value to set.
* @return the DaprSecretsCollectionInner object itself.
*/
- public DaprSecretsCollectionInner withValue(List value) {
+ public DaprSecretsCollectionInner withValue(List value) {
this.value = value;
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionBaseInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionBaseInner.java
new file mode 100644
index 000000000000..e8415f46c870
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionBaseInner.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Container App's Job execution name. */
+@Fluent
+public final class JobExecutionBaseInner {
+ /*
+ * Job execution name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Job execution Id.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /** Creates an instance of JobExecutionBaseInner class. */
+ public JobExecutionBaseInner() {
+ }
+
+ /**
+ * Get the name property: Job execution name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Job execution name.
+ *
+ * @param name the name value to set.
+ * @return the JobExecutionBaseInner object itself.
+ */
+ public JobExecutionBaseInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the id property: Job execution Id.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Job execution Id.
+ *
+ * @param id the id value to set.
+ * @return the JobExecutionBaseInner object itself.
+ */
+ public JobExecutionBaseInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionInner.java
new file mode 100644
index 000000000000..116681ecc04d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobExecutionInner.java
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionRunningState;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Container Apps Jobs execution. */
+@Fluent
+public final class JobExecutionInner {
+ /*
+ * Job execution Name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Job execution Id.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Job Type.
+ */
+ @JsonProperty(value = "type")
+ private String type;
+
+ /*
+ * Current running State of the job
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private JobExecutionRunningState status;
+
+ /*
+ * Job execution start time.
+ */
+ @JsonProperty(value = "startTime")
+ private OffsetDateTime startTime;
+
+ /*
+ * Job execution start time.
+ */
+ @JsonProperty(value = "endTime")
+ private OffsetDateTime endTime;
+
+ /*
+ * Job's execution container.
+ */
+ @JsonProperty(value = "template")
+ private JobExecutionTemplate template;
+
+ /** Creates an instance of JobExecutionInner class. */
+ public JobExecutionInner() {
+ }
+
+ /**
+ * Get the name property: Job execution Name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Job execution Name.
+ *
+ * @param name the name value to set.
+ * @return the JobExecutionInner object itself.
+ */
+ public JobExecutionInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the id property: Job execution Id.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Job execution Id.
+ *
+ * @param id the id value to set.
+ * @return the JobExecutionInner object itself.
+ */
+ public JobExecutionInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the type property: Job Type.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: Job Type.
+ *
+ * @param type the type value to set.
+ * @return the JobExecutionInner object itself.
+ */
+ public JobExecutionInner withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the status property: Current running State of the job.
+ *
+ * @return the status value.
+ */
+ public JobExecutionRunningState status() {
+ return this.status;
+ }
+
+ /**
+ * Get the startTime property: Job execution start time.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: Job execution start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the JobExecutionInner object itself.
+ */
+ public JobExecutionInner withStartTime(OffsetDateTime startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the endTime property: Job execution start time.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Set the endTime property: Job execution start time.
+ *
+ * @param endTime the endTime value to set.
+ * @return the JobExecutionInner object itself.
+ */
+ public JobExecutionInner withEndTime(OffsetDateTime endTime) {
+ this.endTime = endTime;
+ return this;
+ }
+
+ /**
+ * Get the template property: Job's execution container.
+ *
+ * @return the template value.
+ */
+ public JobExecutionTemplate template() {
+ return this.template;
+ }
+
+ /**
+ * Set the template property: Job's execution container.
+ *
+ * @param template the template value to set.
+ * @return the JobExecutionInner object itself.
+ */
+ public JobExecutionInner withTemplate(JobExecutionTemplate template) {
+ this.template = template;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (template() != null) {
+ template().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobInner.java
new file mode 100644
index 000000000000..751bbf35c1f8
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobInner.java
@@ -0,0 +1,237 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
+import com.azure.resourcemanager.appcontainers.models.JobConfiguration;
+import com.azure.resourcemanager.appcontainers.models.JobProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.JobTemplate;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Container App Job. */
+@Fluent
+public final class JobInner extends Resource {
+ /*
+ * The complex type of the extended location.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Managed identities needed by a container app job to interact with other Azure services to not maintain any
+ * secrets or credentials in code.
+ */
+ @JsonProperty(value = "identity")
+ private ManagedServiceIdentity identity;
+
+ /*
+ * ContainerApp resource specific properties.
+ */
+ @JsonProperty(value = "properties")
+ private JobProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of JobInner class. */
+ public JobInner() {
+ }
+
+ /**
+ * Get the extendedLocation property: The complex type of the extended location.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The complex type of the extended location.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the JobInner object itself.
+ */
+ public JobInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the identity property: Managed identities needed by a container app job to interact with other Azure services
+ * to not maintain any secrets or credentials in code.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Managed identities needed by a container app job to interact with other Azure services
+ * to not maintain any secrets or credentials in code.
+ *
+ * @param identity the identity value to set.
+ * @return the JobInner object itself.
+ */
+ public JobInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: ContainerApp resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private JobProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public JobInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public JobInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Container Apps Job.
+ *
+ * @return the provisioningState value.
+ */
+ public JobProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the environmentId property: Resource ID of environment.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.innerProperties() == null ? null : this.innerProperties().environmentId();
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of environment.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the JobInner object itself.
+ */
+ public JobInner withEnvironmentId(String environmentId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withEnvironmentId(environmentId);
+ return this;
+ }
+
+ /**
+ * Get the configuration property: Container Apps Job configuration properties.
+ *
+ * @return the configuration value.
+ */
+ public JobConfiguration configuration() {
+ return this.innerProperties() == null ? null : this.innerProperties().configuration();
+ }
+
+ /**
+ * Set the configuration property: Container Apps Job configuration properties.
+ *
+ * @param configuration the configuration value to set.
+ * @return the JobInner object itself.
+ */
+ public JobInner withConfiguration(JobConfiguration configuration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withConfiguration(configuration);
+ return this;
+ }
+
+ /**
+ * Get the template property: Container Apps job definition.
+ *
+ * @return the template value.
+ */
+ public JobTemplate template() {
+ return this.innerProperties() == null ? null : this.innerProperties().template();
+ }
+
+ /**
+ * Set the template property: Container Apps job definition.
+ *
+ * @param template the template value to set.
+ * @return the JobInner object itself.
+ */
+ public JobInner withTemplate(JobTemplate template) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withTemplate(template);
+ return this;
+ }
+
+ /**
+ * Get the outboundIpAddresses property: Outbound IP Addresses of a container apps job.
+ *
+ * @return the outboundIpAddresses value.
+ */
+ public List outboundIpAddresses() {
+ return this.innerProperties() == null ? null : this.innerProperties().outboundIpAddresses();
+ }
+
+ /**
+ * Get the eventStreamEndpoint property: The endpoint of the eventstream of the container apps job.
+ *
+ * @return the eventStreamEndpoint value.
+ */
+ public String eventStreamEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().eventStreamEndpoint();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobProperties.java
new file mode 100644
index 000000000000..d39d4304edc3
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobProperties.java
@@ -0,0 +1,157 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.JobConfiguration;
+import com.azure.resourcemanager.appcontainers.models.JobProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.JobTemplate;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** ContainerApp resource specific properties. */
+@Fluent
+public final class JobProperties {
+ /*
+ * Provisioning state of the Container Apps Job.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private JobProvisioningState provisioningState;
+
+ /*
+ * Resource ID of environment.
+ */
+ @JsonProperty(value = "environmentId")
+ private String environmentId;
+
+ /*
+ * Container Apps Job configuration properties.
+ */
+ @JsonProperty(value = "configuration")
+ private JobConfiguration configuration;
+
+ /*
+ * Container Apps job definition.
+ */
+ @JsonProperty(value = "template")
+ private JobTemplate template;
+
+ /*
+ * Outbound IP Addresses of a container apps job.
+ */
+ @JsonProperty(value = "outboundIpAddresses", access = JsonProperty.Access.WRITE_ONLY)
+ private List outboundIpAddresses;
+
+ /*
+ * The endpoint of the eventstream of the container apps job.
+ */
+ @JsonProperty(value = "eventStreamEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String eventStreamEndpoint;
+
+ /** Creates an instance of JobProperties class. */
+ public JobProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Container Apps Job.
+ *
+ * @return the provisioningState value.
+ */
+ public JobProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the environmentId property: Resource ID of environment.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.environmentId;
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of environment.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withEnvironmentId(String environmentId) {
+ this.environmentId = environmentId;
+ return this;
+ }
+
+ /**
+ * Get the configuration property: Container Apps Job configuration properties.
+ *
+ * @return the configuration value.
+ */
+ public JobConfiguration configuration() {
+ return this.configuration;
+ }
+
+ /**
+ * Set the configuration property: Container Apps Job configuration properties.
+ *
+ * @param configuration the configuration value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withConfiguration(JobConfiguration configuration) {
+ this.configuration = configuration;
+ return this;
+ }
+
+ /**
+ * Get the template property: Container Apps job definition.
+ *
+ * @return the template value.
+ */
+ public JobTemplate template() {
+ return this.template;
+ }
+
+ /**
+ * Set the template property: Container Apps job definition.
+ *
+ * @param template the template value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withTemplate(JobTemplate template) {
+ this.template = template;
+ return this;
+ }
+
+ /**
+ * Get the outboundIpAddresses property: Outbound IP Addresses of a container apps job.
+ *
+ * @return the outboundIpAddresses value.
+ */
+ public List outboundIpAddresses() {
+ return this.outboundIpAddresses;
+ }
+
+ /**
+ * Get the eventStreamEndpoint property: The endpoint of the eventstream of the container apps job.
+ *
+ * @return the eventStreamEndpoint value.
+ */
+ public String eventStreamEndpoint() {
+ return this.eventStreamEndpoint;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (configuration() != null) {
+ configuration().validate();
+ }
+ if (template() != null) {
+ template().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobSecretsCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobSecretsCollectionInner.java
new file mode 100644
index 000000000000..64d659c402ce
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobSecretsCollectionInner.java
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.models.Secret;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Container Apps Job Secrets Collection ARM resource. */
+@Fluent
+public final class JobSecretsCollectionInner {
+ /*
+ * Collection of resources.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /** Creates an instance of JobSecretsCollectionInner class. */
+ public JobSecretsCollectionInner() {
+ }
+
+ /**
+ * Get the value property: Collection of resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of resources.
+ *
+ * @param value the value value to set.
+ * @return the JobSecretsCollectionInner object itself.
+ */
+ public JobSecretsCollectionInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property value in model JobSecretsCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(JobSecretsCollectionInner.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedCertificateInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedCertificateInner.java
new file mode 100644
index 000000000000..4854ffb18f62
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedCertificateInner.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ManagedCertificateProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment. */
+@Fluent
+public final class ManagedCertificateInner extends Resource {
+ /*
+ * Certificate resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private ManagedCertificateProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of ManagedCertificateInner class. */
+ public ManagedCertificateInner() {
+ }
+
+ /**
+ * Get the properties property: Certificate resource specific properties.
+ *
+ * @return the properties value.
+ */
+ public ManagedCertificateProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Certificate resource specific properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ManagedCertificateInner object itself.
+ */
+ public ManagedCertificateInner withProperties(ManagedCertificateProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ManagedCertificateInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ManagedCertificateInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
index a75d12a08e15..fb094b5fba52 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentInner.java
@@ -9,8 +9,9 @@
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.models.AppLogsConfiguration;
import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
+import com.azure.resourcemanager.appcontainers.models.DaprConfiguration;
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
-import com.azure.resourcemanager.appcontainers.models.EnvironmentSkuProperties;
+import com.azure.resourcemanager.appcontainers.models.KedaConfiguration;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -21,10 +22,10 @@
@Fluent
public final class ManagedEnvironmentInner extends Resource {
/*
- * SKU properties of the Environment.
+ * Kind of the Environment.
*/
- @JsonProperty(value = "sku")
- private EnvironmentSkuProperties sku;
+ @JsonProperty(value = "kind")
+ private String kind;
/*
* Managed environment resource specific properties
@@ -43,22 +44,22 @@ public ManagedEnvironmentInner() {
}
/**
- * Get the sku property: SKU properties of the Environment.
+ * Get the kind property: Kind of the Environment.
*
- * @return the sku value.
+ * @return the kind value.
*/
- public EnvironmentSkuProperties sku() {
- return this.sku;
+ public String kind() {
+ return this.kind;
}
/**
- * Set the sku property: SKU properties of the Environment.
+ * Set the kind property: Kind of the Environment.
*
- * @param sku the sku value to set.
+ * @param kind the kind value to set.
* @return the ManagedEnvironmentInner object itself.
*/
- public ManagedEnvironmentInner withSku(EnvironmentSkuProperties sku) {
- this.sku = sku;
+ public ManagedEnvironmentInner withKind(String kind) {
+ this.kind = kind;
return this;
}
@@ -306,15 +307,58 @@ public ManagedEnvironmentInner withWorkloadProfiles(List worklo
return this;
}
+ /**
+ * Get the kedaConfiguration property: The configuration of Keda component.
+ *
+ * @return the kedaConfiguration value.
+ */
+ public KedaConfiguration kedaConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().kedaConfiguration();
+ }
+
+ /**
+ * Set the kedaConfiguration property: The configuration of Keda component.
+ *
+ * @param kedaConfiguration the kedaConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withKedaConfiguration(KedaConfiguration kedaConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withKedaConfiguration(kedaConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the daprConfiguration property: The configuration of Dapr component.
+ *
+ * @return the daprConfiguration value.
+ */
+ public DaprConfiguration daprConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().daprConfiguration();
+ }
+
+ /**
+ * Set the daprConfiguration property: The configuration of Dapr component.
+ *
+ * @param daprConfiguration the daprConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withDaprConfiguration(DaprConfiguration daprConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withDaprConfiguration(daprConfiguration);
+ return this;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (sku() != null) {
- sku().validate();
- }
if (innerProperties() != null) {
innerProperties().validate();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
index 78ef578717a0..7c191d714b68 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentProperties.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.appcontainers.models.AppLogsConfiguration;
import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration;
+import com.azure.resourcemanager.appcontainers.models.DaprConfiguration;
import com.azure.resourcemanager.appcontainers.models.EnvironmentProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.KedaConfiguration;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -90,6 +92,18 @@ public final class ManagedEnvironmentProperties {
@JsonProperty(value = "workloadProfiles")
private List workloadProfiles;
+ /*
+ * The configuration of Keda component.
+ */
+ @JsonProperty(value = "kedaConfiguration")
+ private KedaConfiguration kedaConfiguration;
+
+ /*
+ * The configuration of Dapr component.
+ */
+ @JsonProperty(value = "daprConfiguration")
+ private DaprConfiguration daprConfiguration;
+
/** Creates an instance of ManagedEnvironmentProperties class. */
public ManagedEnvironmentProperties() {
}
@@ -286,6 +300,46 @@ public ManagedEnvironmentProperties withWorkloadProfiles(List w
return this;
}
+ /**
+ * Get the kedaConfiguration property: The configuration of Keda component.
+ *
+ * @return the kedaConfiguration value.
+ */
+ public KedaConfiguration kedaConfiguration() {
+ return this.kedaConfiguration;
+ }
+
+ /**
+ * Set the kedaConfiguration property: The configuration of Keda component.
+ *
+ * @param kedaConfiguration the kedaConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withKedaConfiguration(KedaConfiguration kedaConfiguration) {
+ this.kedaConfiguration = kedaConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the daprConfiguration property: The configuration of Dapr component.
+ *
+ * @return the daprConfiguration value.
+ */
+ public DaprConfiguration daprConfiguration() {
+ return this.daprConfiguration;
+ }
+
+ /**
+ * Set the daprConfiguration property: The configuration of Dapr component.
+ *
+ * @param daprConfiguration the daprConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withDaprConfiguration(DaprConfiguration daprConfiguration) {
+ this.daprConfiguration = daprConfiguration;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -304,5 +358,11 @@ public void validate() {
if (workloadProfiles() != null) {
workloadProfiles().forEach(e -> e.validate());
}
+ if (kedaConfiguration() != null) {
+ kedaConfiguration().validate();
+ }
+ if (daprConfiguration() != null) {
+ daprConfiguration().validate();
+ }
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfilesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfilesClientImpl.java
index 8a3a3e3b2b10..121067742178 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfilesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfilesClientImpl.java
@@ -57,7 +57,7 @@ public final class AvailableWorkloadProfilesClientImpl implements AvailableWorkl
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface AvailableWorkloadProfilesService {
+ public interface AvailableWorkloadProfilesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java
index 98f328927105..ca38979de6dc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BillingMetersClientImpl.java
@@ -50,7 +50,7 @@ public final class BillingMetersClientImpl implements BillingMetersClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface BillingMetersService {
+ public interface BillingMetersService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters")
@ExpectedResponses({200})
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
index 0e95dfc5f011..2c083dfc0e7c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificateImpl.java
@@ -74,15 +74,15 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager(
private String resourceGroupName;
- private String environmentName;
+ private String connectedEnvironmentName;
private String certificateName;
private CertificatePatch updateCertificateEnvelope;
- public CertificateImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) {
+ public CertificateImpl withExistingConnectedEnvironment(String resourceGroupName, String connectedEnvironmentName) {
this.resourceGroupName = resourceGroupName;
- this.environmentName = environmentName;
+ this.connectedEnvironmentName = connectedEnvironmentName;
return this;
}
@@ -90,9 +90,9 @@ public Certificate create() {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
+ .getConnectedEnvironmentsCertificates()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, certificateName, this.innerModel(), Context.NONE)
+ resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(), Context.NONE)
.getValue();
return this;
}
@@ -101,9 +101,9 @@ public Certificate create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
+ .getConnectedEnvironmentsCertificates()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, certificateName, this.innerModel(), context)
+ resourceGroupName, connectedEnvironmentName, certificateName, this.innerModel(), context)
.getValue();
return this;
}
@@ -123,9 +123,13 @@ public Certificate apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
+ .getConnectedEnvironmentsCertificates()
.updateWithResponse(
- resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, Context.NONE)
+ resourceGroupName,
+ connectedEnvironmentName,
+ certificateName,
+ updateCertificateEnvelope,
+ Context.NONE)
.getValue();
return this;
}
@@ -134,9 +138,9 @@ public Certificate apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
+ .getConnectedEnvironmentsCertificates()
.updateWithResponse(
- resourceGroupName, environmentName, certificateName, updateCertificateEnvelope, context)
+ resourceGroupName, connectedEnvironmentName, certificateName, updateCertificateEnvelope, context)
.getValue();
return this;
}
@@ -146,7 +150,7 @@ public Certificate apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments");
+ this.connectedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "connectedEnvironments");
this.certificateName = Utils.getValueFromIdByName(innerObject.id(), "certificates");
}
@@ -154,8 +158,8 @@ public Certificate refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
- .getWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE)
+ .getConnectedEnvironmentsCertificates()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE)
.getValue();
return this;
}
@@ -164,8 +168,8 @@ public Certificate refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getCertificates()
- .getWithResponse(resourceGroupName, environmentName, certificateName, context)
+ .getConnectedEnvironmentsCertificates()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context)
.getValue();
return this;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
index b3ab88433a8d..a94614bf4a5b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesClientImpl.java
@@ -60,7 +60,7 @@ public final class CertificatesClientImpl implements CertificatesClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface CertificatesService {
+ public interface CertificatesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java
index 86498b92b8ee..9a24cb875758 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/CertificatesImpl.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.appcontainers.fluent.CertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
import com.azure.resourcemanager.appcontainers.models.Certificate;
+import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
import com.azure.resourcemanager.appcontainers.models.Certificates;
public final class CertificatesImpl implements Certificates {
@@ -62,6 +63,38 @@ public Certificate get(String resourceGroupName, String environmentName, String
}
}
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificateInner certificateEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(
+ resourceGroupName, environmentName, certificateName, certificateEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public Certificate createOrUpdate(String resourceGroupName, String environmentName, String certificateName) {
+ CertificateInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, environmentName, certificateName);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Response deleteWithResponse(
String resourceGroupName, String environmentName, String certificateName, Context context) {
return this.serviceClient().deleteWithResponse(resourceGroupName, environmentName, certificateName, context);
@@ -71,116 +104,39 @@ public void delete(String resourceGroupName, String environmentName, String cert
this.serviceClient().delete(resourceGroupName, environmentName, certificateName);
}
- public Certificate getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String certificateName = Utils.getValueFromIdByName(id, "certificates");
- if (certificateName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
- }
- return this.getWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String certificateName = Utils.getValueFromIdByName(id, "certificates");
- if (certificateName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
- }
- return this.getWithResponse(resourceGroupName, environmentName, certificateName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String certificateName = Utils.getValueFromIdByName(id, "certificates");
- if (certificateName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .updateWithResponse(resourceGroupName, environmentName, certificateName, certificateEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, environmentName, certificateName, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String certificateName = Utils.getValueFromIdByName(id, "certificates");
- if (certificateName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ public Certificate update(
+ String resourceGroupName,
+ String environmentName,
+ String certificateName,
+ CertificatePatch certificateEnvelope) {
+ CertificateInner inner =
+ this.serviceClient().update(resourceGroupName, environmentName, certificateName, certificateEnvelope);
+ if (inner != null) {
+ return new CertificateImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, environmentName, certificateName, context);
}
private CertificatesClient serviceClient() {
@@ -190,8 +146,4 @@ private CertificatesClient serviceClient() {
private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
return this.serviceManager;
}
-
- public CertificateImpl define(String name) {
- return new CertificateImpl(name, this.manager());
- }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
index 4b0c4f9f133e..d9e39127da08 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesClientImpl.java
@@ -66,7 +66,7 @@ public final class ConnectedEnvironmentsCertificatesClientImpl implements Connec
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ConnectedEnvironmentsCertificatesService {
+ public interface ConnectedEnvironmentsCertificatesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
index 851e48480365..6c5a00ced3de 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsCertificatesImpl.java
@@ -12,7 +12,6 @@
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsCertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.models.CertificateInner;
import com.azure.resourcemanager.appcontainers.models.Certificate;
-import com.azure.resourcemanager.appcontainers.models.CertificatePatch;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentsCertificates;
public final class ConnectedEnvironmentsCertificatesImpl implements ConnectedEnvironmentsCertificates {
@@ -64,39 +63,6 @@ public Certificate get(String resourceGroupName, String connectedEnvironmentName
}
}
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String connectedEnvironmentName,
- String certificateName,
- CertificateInner certificateEnvelope,
- Context context) {
- Response inner =
- this
- .serviceClient()
- .createOrUpdateWithResponse(
- resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new CertificateImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public Certificate createOrUpdate(
- String resourceGroupName, String connectedEnvironmentName, String certificateName) {
- CertificateInner inner =
- this.serviceClient().createOrUpdate(resourceGroupName, connectedEnvironmentName, certificateName);
- if (inner != null) {
- return new CertificateImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response deleteWithResponse(
String resourceGroupName, String connectedEnvironmentName, String certificateName, Context context) {
return this
@@ -108,42 +74,122 @@ public void delete(String resourceGroupName, String connectedEnvironmentName, St
this.serviceClient().delete(resourceGroupName, connectedEnvironmentName, certificateName);
}
- public Response updateWithResponse(
- String resourceGroupName,
- String connectedEnvironmentName,
- String certificateName,
- CertificatePatch certificateEnvelope,
- Context context) {
- Response inner =
- this
- .serviceClient()
- .updateWithResponse(
- resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new CertificateImpl(inner.getValue(), this.manager()));
- } else {
- return null;
+ public Certificate getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "certificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE)
+ .getValue();
}
- public Certificate update(
- String resourceGroupName,
- String connectedEnvironmentName,
- String certificateName,
- CertificatePatch certificateEnvelope) {
- CertificateInner inner =
- this
- .serviceClient()
- .update(resourceGroupName, connectedEnvironmentName, certificateName, certificateEnvelope);
- if (inner != null) {
- return new CertificateImpl(inner, this.manager());
- } else {
- return null;
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "certificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
}
+ return this.getWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "certificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "certificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, certificateName, context);
}
private ConnectedEnvironmentsCertificatesClient serviceClient() {
@@ -153,4 +199,8 @@ private ConnectedEnvironmentsCertificatesClient serviceClient() {
private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
return this.serviceManager;
}
+
+ public CertificateImpl define(String name) {
+ return new CertificateImpl(name, this.manager());
+ }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
index c19ba549ecf2..fbee79dd531b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsClientImpl.java
@@ -68,7 +68,7 @@ public final class ConnectedEnvironmentsClientImpl implements ConnectedEnvironme
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ConnectedEnvironmentsService {
+ public interface ConnectedEnvironmentsService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/connectedEnvironments")
@ExpectedResponses({200})
@@ -843,7 +843,8 @@ private PollerFlux, ConnectedEnvironmentIn
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ConnectedEnvironmentInner> beginCreateOrUpdate(
String resourceGroupName, String connectedEnvironmentName, ConnectedEnvironmentInner environmentEnvelope) {
- return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope)
.getSyncPoller();
}
@@ -866,7 +867,8 @@ public SyncPoller, ConnectedEnvironmentInn
String connectedEnvironmentName,
ConnectedEnvironmentInner environmentEnvelope,
Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, connectedEnvironmentName, environmentEnvelope, context)
.getSyncPoller();
}
@@ -1104,7 +1106,7 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String connectedEnvironmentName) {
- return beginDeleteAsync(resourceGroupName, connectedEnvironmentName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, connectedEnvironmentName).getSyncPoller();
}
/**
@@ -1121,7 +1123,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String connectedEnvironmentName, Context context) {
- return beginDeleteAsync(resourceGroupName, connectedEnvironmentName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, connectedEnvironmentName, context).getSyncPoller();
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
index bb0656b535b8..265101bc18ac 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsClientImpl.java
@@ -66,7 +66,7 @@ public final class ConnectedEnvironmentsDaprComponentsClientImpl implements Conn
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ConnectedEnvironmentsDaprComponentsService {
+ public interface ConnectedEnvironmentsDaprComponentsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java
index 14b9d452dbc3..a42732ed38b8 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsDaprComponentsImpl.java
@@ -67,44 +67,6 @@ public DaprComponent get(String resourceGroupName, String connectedEnvironmentNa
}
}
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String connectedEnvironmentName,
- String componentName,
- DaprComponentInner daprComponentEnvelope,
- Context context) {
- Response inner =
- this
- .serviceClient()
- .createOrUpdateWithResponse(
- resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new DaprComponentImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public DaprComponent createOrUpdate(
- String resourceGroupName,
- String connectedEnvironmentName,
- String componentName,
- DaprComponentInner daprComponentEnvelope) {
- DaprComponentInner inner =
- this
- .serviceClient()
- .createOrUpdate(resourceGroupName, connectedEnvironmentName, componentName, daprComponentEnvelope);
- if (inner != null) {
- return new DaprComponentImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response deleteWithResponse(
String resourceGroupName, String connectedEnvironmentName, String componentName, Context context) {
return this
@@ -144,6 +106,128 @@ public DaprSecretsCollection listSecrets(
}
}
+ public DaprComponent getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String componentName = Utils.getValueFromIdByName(id, "daprComponents");
+ if (componentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String componentName = Utils.getValueFromIdByName(id, "daprComponents");
+ if (componentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String componentName = Utils.getValueFromIdByName(id, "daprComponents");
+ if (componentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, componentName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String connectedEnvironmentName = Utils.getValueFromIdByName(id, "connectedEnvironments");
+ if (connectedEnvironmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'connectedEnvironments'.",
+ id)));
+ }
+ String componentName = Utils.getValueFromIdByName(id, "daprComponents");
+ if (componentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context);
+ }
+
private ConnectedEnvironmentsDaprComponentsClient serviceClient() {
return this.innerClient;
}
@@ -151,4 +235,8 @@ private ConnectedEnvironmentsDaprComponentsClient serviceClient() {
private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
return this.serviceManager;
}
+
+ public DaprComponentImpl define(String name) {
+ return new DaprComponentImpl(name, this.manager());
+ }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java
index b74dc46476d2..4d52f5e2c09c 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentsStoragesClientImpl.java
@@ -58,7 +58,7 @@ public final class ConnectedEnvironmentsStoragesClientImpl implements ConnectedE
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ConnectedEnvironmentsStoragesService {
+ public interface ConnectedEnvironmentsStoragesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java
index 26f5c8d21376..26380caabfb3 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java
@@ -60,6 +60,10 @@ public ManagedServiceIdentity identity() {
return this.innerModel().identity();
}
+ public String managedBy() {
+ return this.innerModel().managedBy();
+ }
+
public SystemData systemData() {
return this.innerModel().systemData();
}
@@ -84,6 +88,10 @@ public String latestRevisionName() {
return this.innerModel().latestRevisionName();
}
+ public String latestReadyRevisionName() {
+ return this.innerModel().latestReadyRevisionName();
+ }
+
public String latestRevisionFqdn() {
return this.innerModel().latestRevisionFqdn();
}
@@ -175,7 +183,7 @@ public ContainerApp apply() {
serviceManager
.serviceClient()
.getContainerApps()
- .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), Context.NONE);
+ .update(resourceGroupName, containerAppName, this.innerModel(), Context.NONE);
return this;
}
@@ -184,7 +192,7 @@ public ContainerApp apply(Context context) {
serviceManager
.serviceClient()
.getContainerApps()
- .createOrUpdate(resourceGroupName, containerAppName, this.innerModel(), context);
+ .update(resourceGroupName, containerAppName, this.innerModel(), context);
return this;
}
@@ -268,6 +276,11 @@ public ContainerAppImpl withIdentity(ManagedServiceIdentity identity) {
return this;
}
+ public ContainerAppImpl withManagedBy(String managedBy) {
+ this.innerModel().withManagedBy(managedBy);
+ return this;
+ }
+
public ContainerAppImpl withManagedEnvironmentId(String managedEnvironmentId) {
this.innerModel().withManagedEnvironmentId(managedEnvironmentId);
return this;
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppJobExecutionsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppJobExecutionsImpl.java
new file mode 100644
index 000000000000..4fb1bf711914
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppJobExecutionsImpl.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppJobExecutionsInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionInner;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppJobExecutions;
+import com.azure.resourcemanager.appcontainers.models.JobExecution;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.Collectors;
+
+public final class ContainerAppJobExecutionsImpl implements ContainerAppJobExecutions {
+ private ContainerAppJobExecutionsInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ ContainerAppJobExecutionsImpl(
+ ContainerAppJobExecutionsInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new JobExecutionImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String nextLink() {
+ return this.innerModel().nextLink();
+ }
+
+ public ContainerAppJobExecutionsInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
index ae4e2dfa8dc6..f9dacfb19559 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
@@ -37,6 +37,9 @@
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsRevisionsClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsSourceControlsClient;
import com.azure.resourcemanager.appcontainers.fluent.DaprComponentsClient;
+import com.azure.resourcemanager.appcontainers.fluent.JobOperationsClient;
+import com.azure.resourcemanager.appcontainers.fluent.JobsClient;
+import com.azure.resourcemanager.appcontainers.fluent.ManagedCertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentDiagnosticsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsDiagnosticsClient;
@@ -139,6 +142,78 @@ public ContainerAppsAuthConfigsClient getContainerAppsAuthConfigs() {
return this.containerAppsAuthConfigs;
}
+ /** The AvailableWorkloadProfilesClient object to access its operations. */
+ private final AvailableWorkloadProfilesClient availableWorkloadProfiles;
+
+ /**
+ * Gets the AvailableWorkloadProfilesClient object to access its operations.
+ *
+ * @return the AvailableWorkloadProfilesClient object.
+ */
+ public AvailableWorkloadProfilesClient getAvailableWorkloadProfiles() {
+ return this.availableWorkloadProfiles;
+ }
+
+ /** The BillingMetersClient object to access its operations. */
+ private final BillingMetersClient billingMeters;
+
+ /**
+ * Gets the BillingMetersClient object to access its operations.
+ *
+ * @return the BillingMetersClient object.
+ */
+ public BillingMetersClient getBillingMeters() {
+ return this.billingMeters;
+ }
+
+ /** The ConnectedEnvironmentsClient object to access its operations. */
+ private final ConnectedEnvironmentsClient connectedEnvironments;
+
+ /**
+ * Gets the ConnectedEnvironmentsClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsClient object.
+ */
+ public ConnectedEnvironmentsClient getConnectedEnvironments() {
+ return this.connectedEnvironments;
+ }
+
+ /** The ConnectedEnvironmentsCertificatesClient object to access its operations. */
+ private final ConnectedEnvironmentsCertificatesClient connectedEnvironmentsCertificates;
+
+ /**
+ * Gets the ConnectedEnvironmentsCertificatesClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsCertificatesClient object.
+ */
+ public ConnectedEnvironmentsCertificatesClient getConnectedEnvironmentsCertificates() {
+ return this.connectedEnvironmentsCertificates;
+ }
+
+ /** The ConnectedEnvironmentsDaprComponentsClient object to access its operations. */
+ private final ConnectedEnvironmentsDaprComponentsClient connectedEnvironmentsDaprComponents;
+
+ /**
+ * Gets the ConnectedEnvironmentsDaprComponentsClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsDaprComponentsClient object.
+ */
+ public ConnectedEnvironmentsDaprComponentsClient getConnectedEnvironmentsDaprComponents() {
+ return this.connectedEnvironmentsDaprComponents;
+ }
+
+ /** The ConnectedEnvironmentsStoragesClient object to access its operations. */
+ private final ConnectedEnvironmentsStoragesClient connectedEnvironmentsStorages;
+
+ /**
+ * Gets the ConnectedEnvironmentsStoragesClient object to access its operations.
+ *
+ * @return the ConnectedEnvironmentsStoragesClient object.
+ */
+ public ConnectedEnvironmentsStoragesClient getConnectedEnvironmentsStorages() {
+ return this.connectedEnvironmentsStorages;
+ }
+
/** The ContainerAppsClient object to access its operations. */
private final ContainerAppsClient containerApps;
@@ -151,6 +226,30 @@ public ContainerAppsClient getContainerApps() {
return this.containerApps;
}
+ /** The JobsClient object to access its operations. */
+ private final JobsClient jobs;
+
+ /**
+ * Gets the JobsClient object to access its operations.
+ *
+ * @return the JobsClient object.
+ */
+ public JobsClient getJobs() {
+ return this.jobs;
+ }
+
+ /** The JobOperationsClient object to access its operations. */
+ private final JobOperationsClient jobOperations;
+
+ /**
+ * Gets the JobOperationsClient object to access its operations.
+ *
+ * @return the JobOperationsClient object.
+ */
+ public JobOperationsClient getJobOperations() {
+ return this.jobOperations;
+ }
+
/** The ContainerAppsRevisionsClient object to access its operations. */
private final ContainerAppsRevisionsClient containerAppsRevisions;
@@ -175,18 +274,6 @@ public ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas() {
return this.containerAppsRevisionReplicas;
}
- /** The DaprComponentsClient object to access its operations. */
- private final DaprComponentsClient daprComponents;
-
- /**
- * Gets the DaprComponentsClient object to access its operations.
- *
- * @return the DaprComponentsClient object.
- */
- public DaprComponentsClient getDaprComponents() {
- return this.daprComponents;
- }
-
/** The ContainerAppsDiagnosticsClient object to access its operations. */
private final ContainerAppsDiagnosticsClient containerAppsDiagnostics;
@@ -259,6 +346,18 @@ public CertificatesClient getCertificates() {
return this.certificates;
}
+ /** The ManagedCertificatesClient object to access its operations. */
+ private final ManagedCertificatesClient managedCertificates;
+
+ /**
+ * Gets the ManagedCertificatesClient object to access its operations.
+ *
+ * @return the ManagedCertificatesClient object.
+ */
+ public ManagedCertificatesClient getManagedCertificates() {
+ return this.managedCertificates;
+ }
+
/** The NamespacesClient object to access its operations. */
private final NamespacesClient namespaces;
@@ -271,6 +370,18 @@ public NamespacesClient getNamespaces() {
return this.namespaces;
}
+ /** The DaprComponentsClient object to access its operations. */
+ private final DaprComponentsClient daprComponents;
+
+ /**
+ * Gets the DaprComponentsClient object to access its operations.
+ *
+ * @return the DaprComponentsClient object.
+ */
+ public DaprComponentsClient getDaprComponents() {
+ return this.daprComponents;
+ }
+
/** The ManagedEnvironmentsStoragesClient object to access its operations. */
private final ManagedEnvironmentsStoragesClient managedEnvironmentsStorages;
@@ -295,78 +406,6 @@ public ContainerAppsSourceControlsClient getContainerAppsSourceControls() {
return this.containerAppsSourceControls;
}
- /** The ConnectedEnvironmentsClient object to access its operations. */
- private final ConnectedEnvironmentsClient connectedEnvironments;
-
- /**
- * Gets the ConnectedEnvironmentsClient object to access its operations.
- *
- * @return the ConnectedEnvironmentsClient object.
- */
- public ConnectedEnvironmentsClient getConnectedEnvironments() {
- return this.connectedEnvironments;
- }
-
- /** The ConnectedEnvironmentsCertificatesClient object to access its operations. */
- private final ConnectedEnvironmentsCertificatesClient connectedEnvironmentsCertificates;
-
- /**
- * Gets the ConnectedEnvironmentsCertificatesClient object to access its operations.
- *
- * @return the ConnectedEnvironmentsCertificatesClient object.
- */
- public ConnectedEnvironmentsCertificatesClient getConnectedEnvironmentsCertificates() {
- return this.connectedEnvironmentsCertificates;
- }
-
- /** The ConnectedEnvironmentsDaprComponentsClient object to access its operations. */
- private final ConnectedEnvironmentsDaprComponentsClient connectedEnvironmentsDaprComponents;
-
- /**
- * Gets the ConnectedEnvironmentsDaprComponentsClient object to access its operations.
- *
- * @return the ConnectedEnvironmentsDaprComponentsClient object.
- */
- public ConnectedEnvironmentsDaprComponentsClient getConnectedEnvironmentsDaprComponents() {
- return this.connectedEnvironmentsDaprComponents;
- }
-
- /** The ConnectedEnvironmentsStoragesClient object to access its operations. */
- private final ConnectedEnvironmentsStoragesClient connectedEnvironmentsStorages;
-
- /**
- * Gets the ConnectedEnvironmentsStoragesClient object to access its operations.
- *
- * @return the ConnectedEnvironmentsStoragesClient object.
- */
- public ConnectedEnvironmentsStoragesClient getConnectedEnvironmentsStorages() {
- return this.connectedEnvironmentsStorages;
- }
-
- /** The AvailableWorkloadProfilesClient object to access its operations. */
- private final AvailableWorkloadProfilesClient availableWorkloadProfiles;
-
- /**
- * Gets the AvailableWorkloadProfilesClient object to access its operations.
- *
- * @return the AvailableWorkloadProfilesClient object.
- */
- public AvailableWorkloadProfilesClient getAvailableWorkloadProfiles() {
- return this.availableWorkloadProfiles;
- }
-
- /** The BillingMetersClient object to access its operations. */
- private final BillingMetersClient billingMeters;
-
- /**
- * Gets the BillingMetersClient object to access its operations.
- *
- * @return the BillingMetersClient object.
- */
- public BillingMetersClient getBillingMeters() {
- return this.billingMeters;
- }
-
/**
* Initializes an instance of ContainerAppsApiClient client.
*
@@ -389,27 +428,30 @@ public BillingMetersClient getBillingMeters() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-06-01-preview";
+ this.apiVersion = "2022-11-01-preview";
this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsClientImpl(this);
+ this.availableWorkloadProfiles = new AvailableWorkloadProfilesClientImpl(this);
+ this.billingMeters = new BillingMetersClientImpl(this);
+ this.connectedEnvironments = new ConnectedEnvironmentsClientImpl(this);
+ this.connectedEnvironmentsCertificates = new ConnectedEnvironmentsCertificatesClientImpl(this);
+ this.connectedEnvironmentsDaprComponents = new ConnectedEnvironmentsDaprComponentsClientImpl(this);
+ this.connectedEnvironmentsStorages = new ConnectedEnvironmentsStoragesClientImpl(this);
this.containerApps = new ContainerAppsClientImpl(this);
+ this.jobs = new JobsClientImpl(this);
+ this.jobOperations = new JobOperationsClientImpl(this);
this.containerAppsRevisions = new ContainerAppsRevisionsClientImpl(this);
this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasClientImpl(this);
- this.daprComponents = new DaprComponentsClientImpl(this);
this.containerAppsDiagnostics = new ContainerAppsDiagnosticsClientImpl(this);
this.managedEnvironmentDiagnostics = new ManagedEnvironmentDiagnosticsClientImpl(this);
this.managedEnvironmentsDiagnostics = new ManagedEnvironmentsDiagnosticsClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.managedEnvironments = new ManagedEnvironmentsClientImpl(this);
this.certificates = new CertificatesClientImpl(this);
+ this.managedCertificates = new ManagedCertificatesClientImpl(this);
this.namespaces = new NamespacesClientImpl(this);
+ this.daprComponents = new DaprComponentsClientImpl(this);
this.managedEnvironmentsStorages = new ManagedEnvironmentsStoragesClientImpl(this);
this.containerAppsSourceControls = new ContainerAppsSourceControlsClientImpl(this);
- this.connectedEnvironments = new ConnectedEnvironmentsClientImpl(this);
- this.connectedEnvironmentsCertificates = new ConnectedEnvironmentsCertificatesClientImpl(this);
- this.connectedEnvironmentsDaprComponents = new ConnectedEnvironmentsDaprComponentsClientImpl(this);
- this.connectedEnvironmentsStorages = new ConnectedEnvironmentsStoragesClientImpl(this);
- this.availableWorkloadProfiles = new AvailableWorkloadProfilesClientImpl(this);
- this.billingMeters = new BillingMetersClientImpl(this);
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java
index 7af8a2bde9c4..de270ec3acb3 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsAuthConfigsClientImpl.java
@@ -59,7 +59,7 @@ public final class ContainerAppsAuthConfigsClientImpl implements ContainerAppsAu
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsAuthConfigsService {
+ public interface ContainerAppsAuthConfigsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java
index 0aafa672aee8..e9c173e65712 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsClientImpl.java
@@ -69,7 +69,7 @@ public final class ContainerAppsClientImpl implements ContainerAppsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsService {
+ public interface ContainerAppsService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps")
@ExpectedResponses({200})
@@ -143,7 +143,7 @@ Mono>> delete(
@Patch(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
+ "/{containerAppName}")
- @ExpectedResponses({202})
+ @ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
Mono>> update(
@HostParam("$host") String endpoint,
@@ -850,7 +850,7 @@ private PollerFlux, ContainerAppInner> beginCreate
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ContainerAppInner> beginCreateOrUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
- return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller();
}
/**
@@ -868,7 +868,8 @@ public SyncPoller, ContainerAppInner> beginCreateO
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ContainerAppInner> beginCreateOrUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context)
.getSyncPoller();
}
@@ -1094,7 +1095,7 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName) {
- return beginDeleteAsync(resourceGroupName, containerAppName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, containerAppName).getSyncPoller();
}
/**
@@ -1111,7 +1112,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String containerAppName, Context context) {
- return beginDeleteAsync(resourceGroupName, containerAppName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, context).getSyncPoller();
}
/**
@@ -1189,7 +1190,7 @@ public void delete(String resourceGroupName, String containerAppName, Context co
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return container App along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1249,7 +1250,7 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return container App along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1305,17 +1306,21 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginUpdateAsync(
+ private PollerFlux, ContainerAppInner> beginUpdateAsync(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
Mono>> mono =
updateWithResponseAsync(resourceGroupName, containerAppName, containerAppEnvelope);
return this
.client
- .getLroResult(
- mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ContainerAppInner.class,
+ ContainerAppInner.class,
+ this.client.getContext());
}
/**
@@ -1330,17 +1335,18 @@ private PollerFlux, Void> beginUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginUpdateAsync(
+ private PollerFlux, ContainerAppInner> beginUpdateAsync(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
updateWithResponseAsync(resourceGroupName, containerAppName, containerAppEnvelope, context);
return this
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ContainerAppInner.class, ContainerAppInner.class, context);
}
/**
@@ -1354,12 +1360,12 @@ private PollerFlux, Void> beginUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginUpdate(
+ public SyncPoller, ContainerAppInner> beginUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
- return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope).getSyncPoller();
}
/**
@@ -1374,12 +1380,14 @@ public SyncPoller, Void> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of container App.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginUpdate(
+ public SyncPoller, ContainerAppInner> beginUpdate(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
- return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context).getSyncPoller();
+ return this
+ .beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context)
+ .getSyncPoller();
}
/**
@@ -1393,10 +1401,10 @@ public SyncPoller, Void> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return container App on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
+ private Mono updateAsync(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope)
.last()
@@ -1415,10 +1423,10 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return container App on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
+ private Mono updateAsync(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
return beginUpdateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context)
.last()
@@ -1436,10 +1444,12 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
- updateAsync(resourceGroupName, containerAppName, containerAppEnvelope).block();
+ public ContainerAppInner update(
+ String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
+ return updateAsync(resourceGroupName, containerAppName, containerAppEnvelope).block();
}
/**
@@ -1454,11 +1464,12 @@ public void update(String resourceGroupName, String containerAppName, ContainerA
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void update(
+ public ContainerAppInner update(
String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
- updateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context).block();
+ return updateAsync(resourceGroupName, containerAppName, containerAppEnvelope, context).block();
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsDiagnosticsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsDiagnosticsClientImpl.java
index fa0c2d32eb4a..7eda9e8c6737 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsDiagnosticsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsDiagnosticsClientImpl.java
@@ -60,7 +60,7 @@ public final class ContainerAppsDiagnosticsClientImpl implements ContainerAppsDi
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsDiagnosticsService {
+ public interface ContainerAppsDiagnosticsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java
index 10d93f3c80fc..2487493c7ff6 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsImpl.java
@@ -86,15 +86,6 @@ public void delete(String resourceGroupName, String containerAppName, Context co
this.serviceClient().delete(resourceGroupName, containerAppName, context);
}
- public void update(String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope) {
- this.serviceClient().update(resourceGroupName, containerAppName, containerAppEnvelope);
- }
-
- public void update(
- String resourceGroupName, String containerAppName, ContainerAppInner containerAppEnvelope, Context context) {
- this.serviceClient().update(resourceGroupName, containerAppName, containerAppEnvelope, context);
- }
-
public Response listCustomHostnameAnalysisWithResponse(
String resourceGroupName, String containerAppName, String customHostname, Context context) {
Response inner =
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java
index 6b7ce6545dd6..838278de24ee 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionReplicasClientImpl.java
@@ -55,7 +55,7 @@ public final class ContainerAppsRevisionReplicasClientImpl implements ContainerA
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsRevisionReplicasService {
+ public interface ContainerAppsRevisionReplicasService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java
index eb37e3d57d3a..d0bc07ba4ae1 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsRevisionsClientImpl.java
@@ -57,7 +57,7 @@ public final class ContainerAppsRevisionsClientImpl implements ContainerAppsRevi
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsRevisionsService {
+ public interface ContainerAppsRevisionsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java
index 2d24f2d839e3..72318a4ce368 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java
@@ -65,7 +65,7 @@ public final class ContainerAppsSourceControlsClientImpl implements ContainerApp
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface ContainerAppsSourceControlsService {
+ public interface ContainerAppsSourceControlsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps"
@@ -697,7 +697,8 @@ public SyncPoller, SourceControlInner> beginCreat
String containerAppName,
String sourceControlName,
SourceControlInner sourceControlEnvelope) {
- return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope)
.getSyncPoller();
}
@@ -721,7 +722,8 @@ public SyncPoller, SourceControlInner> beginCreat
String sourceControlName,
SourceControlInner sourceControlEnvelope,
Context context) {
- return beginCreateOrUpdateAsync(
+ return this
+ .beginCreateOrUpdateAsync(
resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, context)
.getSyncPoller();
}
@@ -989,7 +991,7 @@ private PollerFlux, Void> beginDeleteAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String containerAppName, String sourceControlName) {
- return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName).getSyncPoller();
}
/**
@@ -1007,7 +1009,7 @@ public SyncPoller, Void> beginDelete(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String containerAppName, String sourceControlName, Context context) {
- return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, context).getSyncPoller();
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java
index 0585f315609e..f4699fac8b92 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java
@@ -97,13 +97,14 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager(
private String resourceGroupName;
- private String environmentName;
+ private String connectedEnvironmentName;
private String componentName;
- public DaprComponentImpl withExistingManagedEnvironment(String resourceGroupName, String environmentName) {
+ public DaprComponentImpl withExistingConnectedEnvironment(
+ String resourceGroupName, String connectedEnvironmentName) {
this.resourceGroupName = resourceGroupName;
- this.environmentName = environmentName;
+ this.connectedEnvironmentName = connectedEnvironmentName;
return this;
}
@@ -111,9 +112,9 @@ public DaprComponent create() {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
+ .getConnectedEnvironmentsDaprComponents()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, componentName, this.innerModel(), Context.NONE)
+ resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), Context.NONE)
.getValue();
return this;
}
@@ -122,9 +123,9 @@ public DaprComponent create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
+ .getConnectedEnvironmentsDaprComponents()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, componentName, this.innerModel(), context)
+ resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), context)
.getValue();
return this;
}
@@ -143,9 +144,9 @@ public DaprComponent apply() {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
+ .getConnectedEnvironmentsDaprComponents()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, componentName, this.innerModel(), Context.NONE)
+ resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), Context.NONE)
.getValue();
return this;
}
@@ -154,9 +155,9 @@ public DaprComponent apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
+ .getConnectedEnvironmentsDaprComponents()
.createOrUpdateWithResponse(
- resourceGroupName, environmentName, componentName, this.innerModel(), context)
+ resourceGroupName, connectedEnvironmentName, componentName, this.innerModel(), context)
.getValue();
return this;
}
@@ -167,7 +168,7 @@ public DaprComponent apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.environmentName = Utils.getValueFromIdByName(innerObject.id(), "managedEnvironments");
+ this.connectedEnvironmentName = Utils.getValueFromIdByName(innerObject.id(), "connectedEnvironments");
this.componentName = Utils.getValueFromIdByName(innerObject.id(), "daprComponents");
}
@@ -175,8 +176,8 @@ public DaprComponent refresh() {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
- .getWithResponse(resourceGroupName, environmentName, componentName, Context.NONE)
+ .getConnectedEnvironmentsDaprComponents()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, Context.NONE)
.getValue();
return this;
}
@@ -185,20 +186,22 @@ public DaprComponent refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
- .getDaprComponents()
- .getWithResponse(resourceGroupName, environmentName, componentName, context)
+ .getConnectedEnvironmentsDaprComponents()
+ .getWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context)
.getValue();
return this;
}
public Response listSecretsWithResponse(Context context) {
return serviceManager
- .daprComponents()
- .listSecretsWithResponse(resourceGroupName, environmentName, componentName, context);
+ .connectedEnvironmentsDaprComponents()
+ .listSecretsWithResponse(resourceGroupName, connectedEnvironmentName, componentName, context);
}
public DaprSecretsCollection listSecrets() {
- return serviceManager.daprComponents().listSecrets(resourceGroupName, environmentName, componentName);
+ return serviceManager
+ .connectedEnvironmentsDaprComponents()
+ .listSecrets(resourceGroupName, connectedEnvironmentName, componentName);
}
public DaprComponentImpl withComponentType(String componentType) {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java
index 17ea587bad67..77a1262ca238 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsClientImpl.java
@@ -60,7 +60,7 @@ public final class DaprComponentsClientImpl implements DaprComponentsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ContainerAppsApiClie")
- private interface DaprComponentsService {
+ public interface DaprComponentsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java
index 0be16fce3137..516bc044c8fe 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentsImpl.java
@@ -65,6 +65,44 @@ public DaprComponent get(String resourceGroupName, String environmentName, Strin
}
}
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(
+ resourceGroupName, environmentName, componentName, daprComponentEnvelope, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DaprComponentImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DaprComponent createOrUpdate(
+ String resourceGroupName,
+ String environmentName,
+ String componentName,
+ DaprComponentInner daprComponentEnvelope) {
+ DaprComponentInner inner =
+ this
+ .serviceClient()
+ .createOrUpdate(resourceGroupName, environmentName, componentName, daprComponentEnvelope);
+ if (inner != null) {
+ return new DaprComponentImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Response deleteWithResponse(
String resourceGroupName, String environmentName, String componentName, Context context) {
return this.serviceClient().deleteWithResponse(resourceGroupName, environmentName, componentName, context);
@@ -99,122 +137,6 @@ public DaprSecretsCollection listSecrets(String resourceGroupName, String enviro
}
}
- public DaprComponent getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String componentName = Utils.getValueFromIdByName(id, "daprComponents");
- if (componentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
- }
- return this.getWithResponse(resourceGroupName, environmentName, componentName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String componentName = Utils.getValueFromIdByName(id, "daprComponents");
- if (componentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
- }
- return this.getWithResponse(resourceGroupName, environmentName, componentName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String componentName = Utils.getValueFromIdByName(id, "daprComponents");
- if (componentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
- }
- this.deleteWithResponse(resourceGroupName, environmentName, componentName, Context.NONE);
- }
-
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String environmentName = Utils.getValueFromIdByName(id, "managedEnvironments");
- if (environmentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format(
- "The resource ID '%s' is not valid. Missing path segment 'managedEnvironments'.", id)));
- }
- String componentName = Utils.getValueFromIdByName(id, "daprComponents");
- if (componentName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'daprComponents'.", id)));
- }
- return this.deleteWithResponse(resourceGroupName, environmentName, componentName, context);
- }
-
private DaprComponentsClient serviceClient() {
return this.innerClient;
}
@@ -222,8 +144,4 @@ private DaprComponentsClient serviceClient() {
private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
return this.serviceManager;
}
-
- public DaprComponentImpl define(String name) {
- return new DaprComponentImpl(name, this.manager());
- }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprSecretsCollectionImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprSecretsCollectionImpl.java
index e515816a4cfb..444784c197fe 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprSecretsCollectionImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprSecretsCollectionImpl.java
@@ -5,8 +5,8 @@
package com.azure.resourcemanager.appcontainers.implementation;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
+import com.azure.resourcemanager.appcontainers.models.DaprSecret;
import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection;
-import com.azure.resourcemanager.appcontainers.models.Secret;
import java.util.Collections;
import java.util.List;
@@ -22,8 +22,8 @@ public final class DaprSecretsCollectionImpl implements DaprSecretsCollection {
this.serviceManager = serviceManager;
}
- public List value() {
- List inner = this.innerModel().value();
+ public List value() {
+ List inner = this.innerModel().value();
if (inner != null) {
return Collections.unmodifiableList(inner);
} else {
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobExecutionBaseImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobExecutionBaseImpl.java
new file mode 100644
index 000000000000..78e2d345844d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobExecutionBaseImpl.java
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionBaseInner;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionBase;
+
+public final class JobExecutionBaseImpl implements JobExecutionBase {
+ private JobExecutionBaseInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ JobExecutionBaseImpl(
+ JobExecutionBaseInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public JobExecutionBaseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobExecutionImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobExecutionImpl.java
new file mode 100644
index 000000000000..16c34c6f7556
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobExecutionImpl.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionInner;
+import com.azure.resourcemanager.appcontainers.models.JobExecution;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionRunningState;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate;
+import java.time.OffsetDateTime;
+
+public final class JobExecutionImpl implements JobExecution {
+ private JobExecutionInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ JobExecutionImpl(
+ JobExecutionInner innerObject, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public JobExecutionRunningState status() {
+ return this.innerModel().status();
+ }
+
+ public OffsetDateTime startTime() {
+ return this.innerModel().startTime();
+ }
+
+ public OffsetDateTime endTime() {
+ return this.innerModel().endTime();
+ }
+
+ public JobExecutionTemplate template() {
+ return this.innerModel().template();
+ }
+
+ public JobExecutionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobImpl.java
new file mode 100644
index 000000000000..3ffb1fe353f0
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobImpl.java
@@ -0,0 +1,272 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.JobInner;
+import com.azure.resourcemanager.appcontainers.models.ExtendedLocation;
+import com.azure.resourcemanager.appcontainers.models.Job;
+import com.azure.resourcemanager.appcontainers.models.JobConfiguration;
+import com.azure.resourcemanager.appcontainers.models.JobExecution;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionBase;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate;
+import com.azure.resourcemanager.appcontainers.models.JobPatchProperties;
+import com.azure.resourcemanager.appcontainers.models.JobPatchPropertiesProperties;
+import com.azure.resourcemanager.appcontainers.models.JobProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.JobTemplate;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class JobImpl implements Job, Job.Definition, Job.Update {
+ private JobInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ExtendedLocation extendedLocation() {
+ return this.innerModel().extendedLocation();
+ }
+
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public JobProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String environmentId() {
+ return this.innerModel().environmentId();
+ }
+
+ public JobConfiguration configuration() {
+ return this.innerModel().configuration();
+ }
+
+ public JobTemplate template() {
+ return this.innerModel().template();
+ }
+
+ public List outboundIpAddresses() {
+ List inner = this.innerModel().outboundIpAddresses();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String eventStreamEndpoint() {
+ return this.innerModel().eventStreamEndpoint();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public JobInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String jobName;
+
+ private JobPatchProperties updateJobEnvelope;
+
+ public JobImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public Job create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getJobOperations()
+ .createOrUpdate(resourceGroupName, jobName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public Job create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getJobOperations()
+ .createOrUpdate(resourceGroupName, jobName, this.innerModel(), context);
+ return this;
+ }
+
+ JobImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new JobInner();
+ this.serviceManager = serviceManager;
+ this.jobName = name;
+ }
+
+ public JobImpl update() {
+ this.updateJobEnvelope = new JobPatchProperties();
+ return this;
+ }
+
+ public Job apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getJobOperations()
+ .update(resourceGroupName, jobName, updateJobEnvelope, Context.NONE);
+ return this;
+ }
+
+ public Job apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getJobOperations()
+ .update(resourceGroupName, jobName, updateJobEnvelope, context);
+ return this;
+ }
+
+ JobImpl(JobInner innerObject, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.jobName = Utils.getValueFromIdByName(innerObject.id(), "jobs");
+ }
+
+ public Job refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getJobOperations()
+ .getByResourceGroupWithResponse(resourceGroupName, jobName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Job refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getJobOperations()
+ .getByResourceGroupWithResponse(resourceGroupName, jobName, context)
+ .getValue();
+ return this;
+ }
+
+ public JobExecutionBase run(JobExecutionTemplate template) {
+ return serviceManager.jobOperations().run(resourceGroupName, jobName, template);
+ }
+
+ public JobExecutionBase run(JobExecutionTemplate template, Context context) {
+ return serviceManager.jobOperations().run(resourceGroupName, jobName, template, context);
+ }
+
+ public PagedIterable executions() {
+ return serviceManager.jobOperations().executions(resourceGroupName, jobName);
+ }
+
+ public PagedIterable executions(Context context) {
+ return serviceManager.jobOperations().executions(resourceGroupName, jobName, context);
+ }
+
+ public JobImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public JobImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public JobImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public JobImpl withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.innerModel().withExtendedLocation(extendedLocation);
+ return this;
+ }
+
+ public JobImpl withIdentity(ManagedServiceIdentity identity) {
+ if (isInCreateMode()) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ } else {
+ this.updateJobEnvelope.withIdentity(identity);
+ return this;
+ }
+ }
+
+ public JobImpl withEnvironmentId(String environmentId) {
+ this.innerModel().withEnvironmentId(environmentId);
+ return this;
+ }
+
+ public JobImpl withConfiguration(JobConfiguration configuration) {
+ this.innerModel().withConfiguration(configuration);
+ return this;
+ }
+
+ public JobImpl withTemplate(JobTemplate template) {
+ this.innerModel().withTemplate(template);
+ return this;
+ }
+
+ public JobImpl withProperties(JobPatchPropertiesProperties properties) {
+ this.updateJobEnvelope.withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobOperationsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobOperationsClientImpl.java
new file mode 100644
index 000000000000..7eeefa6d43bf
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobOperationsClientImpl.java
@@ -0,0 +1,1629 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.JobOperationsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppJobExecutionsInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionBaseInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.JobInner;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate;
+import com.azure.resourcemanager.appcontainers.models.JobPatchProperties;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in JobOperationsClient. */
+public final class JobOperationsClientImpl implements JobOperationsClient {
+ /** The proxy service used to perform REST calls. */
+ private final JobOperationsService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of JobOperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ JobOperationsClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy.create(JobOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientJobOperations to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface JobOperationsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> getByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("jobName") String jobName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("jobName") String jobName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") JobInner jobEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("jobName") String jobName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("jobName") String jobName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") JobPatchProperties jobEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}"
+ + "/start")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> run(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("jobName") String jobName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") JobExecutionTemplate template,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}"
+ + "/executions")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> executions(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("jobName") String jobName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> executionsNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the properties of a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container Apps Job along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String jobName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the properties of a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container Apps Job along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String jobName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get the properties of a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container Apps Job on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String jobName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, jobName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the properties of a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container Apps Job along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String jobName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, jobName, context).block();
+ }
+
+ /**
+ * Get the properties of a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a Container Apps Job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public JobInner getByResourceGroup(String resourceGroupName, String jobName) {
+ return getByResourceGroupWithResponse(resourceGroupName, jobName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String jobName, JobInner jobEnvelope) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ if (jobEnvelope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobEnvelope is required and cannot be null."));
+ } else {
+ jobEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ jobEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String jobName, JobInner jobEnvelope, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ if (jobEnvelope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobEnvelope is required and cannot be null."));
+ } else {
+ jobEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ jobEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, JobInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String jobName, JobInner jobEnvelope) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, jobName, jobEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, JobInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String jobName, JobInner jobEnvelope, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, jobName, jobEnvelope, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, context);
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, JobInner> beginCreateOrUpdate(
+ String resourceGroupName, String jobName, JobInner jobEnvelope) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, jobName, jobEnvelope).getSyncPoller();
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, JobInner> beginCreateOrUpdate(
+ String resourceGroupName, String jobName, JobInner jobEnvelope, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, jobName, jobEnvelope, context).getSyncPoller();
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String jobName, JobInner jobEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, jobName, jobEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String jobName, JobInner jobEnvelope, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, jobName, jobEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public JobInner createOrUpdate(String resourceGroupName, String jobName, JobInner jobEnvelope) {
+ return createOrUpdateAsync(resourceGroupName, jobName, jobEnvelope).block();
+ }
+
+ /**
+ * Create or Update a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public JobInner createOrUpdate(String resourceGroupName, String jobName, JobInner jobEnvelope, Context context) {
+ return createOrUpdateAsync(resourceGroupName, jobName, jobEnvelope, context).block();
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String jobName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String jobName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String jobName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, jobName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String jobName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, jobName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String jobName) {
+ return this.beginDeleteAsync(resourceGroupName, jobName).getSyncPoller();
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String jobName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, jobName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String jobName) {
+ return beginDeleteAsync(resourceGroupName, jobName).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String jobName, Context context) {
+ return beginDeleteAsync(resourceGroupName, jobName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String jobName) {
+ deleteAsync(resourceGroupName, jobName).block();
+ }
+
+ /**
+ * Delete a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String jobName, Context context) {
+ deleteAsync(resourceGroupName, jobName, context).block();
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String jobName, JobPatchProperties jobEnvelope) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ if (jobEnvelope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobEnvelope is required and cannot be null."));
+ } else {
+ jobEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ jobEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String jobName, JobPatchProperties jobEnvelope, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ if (jobEnvelope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobEnvelope is required and cannot be null."));
+ } else {
+ jobEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ jobEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, JobInner> beginUpdateAsync(
+ String resourceGroupName, String jobName, JobPatchProperties jobEnvelope) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, jobName, jobEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, this.client.getContext());
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, JobInner> beginUpdateAsync(
+ String resourceGroupName, String jobName, JobPatchProperties jobEnvelope, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, jobName, jobEnvelope, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), JobInner.class, JobInner.class, context);
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, JobInner> beginUpdate(
+ String resourceGroupName, String jobName, JobPatchProperties jobEnvelope) {
+ return this.beginUpdateAsync(resourceGroupName, jobName, jobEnvelope).getSyncPoller();
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, JobInner> beginUpdate(
+ String resourceGroupName, String jobName, JobPatchProperties jobEnvelope, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, jobName, jobEnvelope, context).getSyncPoller();
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String jobName, JobPatchProperties jobEnvelope) {
+ return beginUpdateAsync(resourceGroupName, jobName, jobEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String jobName, JobPatchProperties jobEnvelope, Context context) {
+ return beginUpdateAsync(resourceGroupName, jobName, jobEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ * Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public JobInner update(String resourceGroupName, String jobName, JobPatchProperties jobEnvelope) {
+ return updateAsync(resourceGroupName, jobName, jobEnvelope).block();
+ }
+
+ /**
+ * Update properties of a Container Apps Job
+ *
+ *
Patches a Container Apps Job using JSON Merge Patch.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param jobEnvelope Properties used to create a container apps job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App Job.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public JobInner update(String resourceGroupName, String jobName, JobPatchProperties jobEnvelope, Context context) {
+ return updateAsync(resourceGroupName, jobName, jobEnvelope, context).block();
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App's Job execution name along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> runWithResponseAsync(
+ String resourceGroupName, String jobName, JobExecutionTemplate template) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ if (template == null) {
+ return Mono.error(new IllegalArgumentException("Parameter template is required and cannot be null."));
+ } else {
+ template.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .run(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ template,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App's Job execution name along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> runWithResponseAsync(
+ String resourceGroupName, String jobName, JobExecutionTemplate template, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ if (template == null) {
+ return Mono.error(new IllegalArgumentException("Parameter template is required and cannot be null."));
+ } else {
+ template.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .run(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ template,
+ accept,
+ context);
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of container App's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, JobExecutionBaseInner> beginRunAsync(
+ String resourceGroupName, String jobName, JobExecutionTemplate template) {
+ Mono>> mono = runWithResponseAsync(resourceGroupName, jobName, template);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ JobExecutionBaseInner.class,
+ JobExecutionBaseInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of container App's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, JobExecutionBaseInner> beginRunAsync(
+ String resourceGroupName, String jobName, JobExecutionTemplate template, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = runWithResponseAsync(resourceGroupName, jobName, template, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), JobExecutionBaseInner.class, JobExecutionBaseInner.class, context);
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, JobExecutionBaseInner> beginRun(
+ String resourceGroupName, String jobName, JobExecutionTemplate template) {
+ return this.beginRunAsync(resourceGroupName, jobName, template).getSyncPoller();
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of container App's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, JobExecutionBaseInner> beginRun(
+ String resourceGroupName, String jobName, JobExecutionTemplate template, Context context) {
+ return this.beginRunAsync(resourceGroupName, jobName, template, context).getSyncPoller();
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App's Job execution name on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono runAsync(
+ String resourceGroupName, String jobName, JobExecutionTemplate template) {
+ return beginRunAsync(resourceGroupName, jobName, template)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App's Job execution name on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono runAsync(
+ String resourceGroupName, String jobName, JobExecutionTemplate template, Context context) {
+ return beginRunAsync(resourceGroupName, jobName, template, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public JobExecutionBaseInner run(String resourceGroupName, String jobName, JobExecutionTemplate template) {
+ return runAsync(resourceGroupName, jobName, template).block();
+ }
+
+ /**
+ * Runs a Container Apps Job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @param template Properties used to start a job instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return container App's Job execution name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public JobExecutionBaseInner run(
+ String resourceGroupName, String jobName, JobExecutionTemplate template, Context context) {
+ return runAsync(resourceGroupName, jobName, template, context).block();
+ }
+
+ /**
+ * Get a Container Apps Job's executions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param jobName Name of the Container Apps Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Job's executions along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> executionsSinglePageAsync(String resourceGroupName, String jobName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (jobName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> {
+ Mono>> mono =
+ service
+ .executions(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ jobName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .cache();
+ return Mono
+ .zip(
+ mono,
+ this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ContainerAppJobExecutionsInner.class,
+ ContainerAppJobExecutionsInner.class,
+ this.client.getContext())
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError));
+ })
+ .