, 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);
+
+ /**
+ * Start 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> beginStart(
+ String resourceGroupName, String jobName, JobExecutionTemplate template);
+
+ /**
+ * Start 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> beginStart(
+ String resourceGroupName, String jobName, JobExecutionTemplate template, Context context);
+
+ /**
+ * Start 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 start(String resourceGroupName, String jobName, JobExecutionTemplate template);
+
+ /**
+ * Start 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 start(
+ String resourceGroupName, String jobName, JobExecutionTemplate template, 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/JobsExecutionsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsExecutionsClient.java
new file mode 100644
index 000000000000..7b5284f29e51
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsExecutionsClient.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionInner;
+
+/** An instance of this class provides access to all the operations defined in JobsExecutionsClient. */
+public interface JobsExecutionsClient {
+ /**
+ * 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 list(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 filter The filter to apply on the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Container Apps Job's executions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String jobName, String filter, Context context);
+}
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..30113c809f0d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedCertificatesClient.java
@@ -0,0 +1,243 @@
+// 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.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 400.
+ * @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.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 400.
+ * @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.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 400.
+ * @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.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 400.
+ * @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..9631d1323e22 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);
/**
@@ -354,9 +357,9 @@ Response getAuthTokenWithResponse(
EnvironmentAuthTokenInner getAuthToken(String resourceGroupName, String environmentName);
/**
- * Get all workload Profile States for a Premium Managed Environment..
+ * Get all workload Profile States for a Managed Environment..
*
- * Get all workload Profile States for a Premium Managed Environment.
+ *
Get all workload Profile States for a Managed Environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -364,17 +367,16 @@ Response getAuthTokenWithResponse(
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all workload Profile States for a Premium Managed Environment as paginated response with {@link
- * PagedIterable}.
+ * @return all workload Profile States for a Managed Environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listWorkloadProfileStates(
String resourceGroupName, String environmentName);
/**
- * Get all workload Profile States for a Premium Managed Environment..
+ * Get all workload Profile States for a Managed Environment..
*
- * Get all workload Profile States for a Premium Managed Environment.
+ *
Get all workload Profile States for a Managed Environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param environmentName Name of the Managed Environment.
@@ -383,8 +385,7 @@ PagedIterable listWorkloadProfileStates(
* @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all workload Profile States for a Premium Managed Environment as paginated response with {@link
- * PagedIterable}.
+ * @return all workload Profile States for a Managed Environment as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listWorkloadProfileStates(
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AvailableWorkloadProfileInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AvailableWorkloadProfileInner.java
index 1982f7c7dde0..29bba9a50779 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AvailableWorkloadProfileInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AvailableWorkloadProfileInner.java
@@ -10,7 +10,7 @@
import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** A premium workload profile. */
+/** A workload profile with specific hardware configure to run container apps. */
@Fluent
public final class AvailableWorkloadProfileInner extends ProxyResource {
/*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java
index 236f663470d6..a6bb8d5efcdc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BillingMeterCollectionInner.java
@@ -10,7 +10,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Collection of premium workload billing meters. */
+/** Collection of billing meters. */
@Fluent
public final class BillingMeterCollectionInner {
/*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildProperties.java
new file mode 100644
index 000000000000..4650ac22873a
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildProperties.java
@@ -0,0 +1,132 @@
+// 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.BuildConfiguration;
+import com.azure.resourcemanager.appcontainers.models.BuildStatus;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+import com.azure.resourcemanager.appcontainers.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The build properties. */
+@Fluent
+public final class BuildProperties {
+ /*
+ * Build provisioning state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Status of the build once it has been provisioned.
+ */
+ @JsonProperty(value = "buildStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private BuildStatus buildStatus;
+
+ /*
+ * Container registry that the final image will be uploaded to.
+ */
+ @JsonProperty(value = "destinationContainerRegistry")
+ private ContainerRegistryWithCustomImage destinationContainerRegistry;
+
+ /*
+ * Configuration of the build.
+ */
+ @JsonProperty(value = "configuration")
+ private BuildConfiguration configuration;
+
+ /*
+ * Endpoint to which the source code should be uploaded.
+ */
+ @JsonProperty(value = "uploadEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String uploadEndpoint;
+
+ /** Creates an instance of BuildProperties class. */
+ public BuildProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Build provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the buildStatus property: Status of the build once it has been provisioned.
+ *
+ * @return the buildStatus value.
+ */
+ public BuildStatus buildStatus() {
+ return this.buildStatus;
+ }
+
+ /**
+ * Get the destinationContainerRegistry property: Container registry that the final image will be uploaded to.
+ *
+ * @return the destinationContainerRegistry value.
+ */
+ public ContainerRegistryWithCustomImage destinationContainerRegistry() {
+ return this.destinationContainerRegistry;
+ }
+
+ /**
+ * Set the destinationContainerRegistry property: Container registry that the final image will be uploaded to.
+ *
+ * @param destinationContainerRegistry the destinationContainerRegistry value to set.
+ * @return the BuildProperties object itself.
+ */
+ public BuildProperties withDestinationContainerRegistry(
+ ContainerRegistryWithCustomImage destinationContainerRegistry) {
+ this.destinationContainerRegistry = destinationContainerRegistry;
+ return this;
+ }
+
+ /**
+ * Get the configuration property: Configuration of the build.
+ *
+ * @return the configuration value.
+ */
+ public BuildConfiguration configuration() {
+ return this.configuration;
+ }
+
+ /**
+ * Set the configuration property: Configuration of the build.
+ *
+ * @param configuration the configuration value to set.
+ * @return the BuildProperties object itself.
+ */
+ public BuildProperties withConfiguration(BuildConfiguration configuration) {
+ this.configuration = configuration;
+ return this;
+ }
+
+ /**
+ * Get the uploadEndpoint property: Endpoint to which the source code should be uploaded.
+ *
+ * @return the uploadEndpoint value.
+ */
+ public String uploadEndpoint() {
+ return this.uploadEndpoint;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (destinationContainerRegistry() != null) {
+ destinationContainerRegistry().validate();
+ }
+ if (configuration() != null) {
+ configuration().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildResourceInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildResourceInner.java
new file mode 100644
index 000000000000..546211d4213b
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildResourceInner.java
@@ -0,0 +1,137 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.BuildConfiguration;
+import com.azure.resourcemanager.appcontainers.models.BuildStatus;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+import com.azure.resourcemanager.appcontainers.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Information pertaining to an individual build. */
+@Fluent
+public final class BuildResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ @JsonProperty(value = "properties")
+ private BuildProperties 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 BuildResourceInner class. */
+ public BuildResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The resource-specific properties for this resource.
+ *
+ * @return the innerProperties value.
+ */
+ private BuildProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the provisioningState property: Build provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the buildStatus property: Status of the build once it has been provisioned.
+ *
+ * @return the buildStatus value.
+ */
+ public BuildStatus buildStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().buildStatus();
+ }
+
+ /**
+ * Get the destinationContainerRegistry property: Container registry that the final image will be uploaded to.
+ *
+ * @return the destinationContainerRegistry value.
+ */
+ public ContainerRegistryWithCustomImage destinationContainerRegistry() {
+ return this.innerProperties() == null ? null : this.innerProperties().destinationContainerRegistry();
+ }
+
+ /**
+ * Set the destinationContainerRegistry property: Container registry that the final image will be uploaded to.
+ *
+ * @param destinationContainerRegistry the destinationContainerRegistry value to set.
+ * @return the BuildResourceInner object itself.
+ */
+ public BuildResourceInner withDestinationContainerRegistry(
+ ContainerRegistryWithCustomImage destinationContainerRegistry) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BuildProperties();
+ }
+ this.innerProperties().withDestinationContainerRegistry(destinationContainerRegistry);
+ return this;
+ }
+
+ /**
+ * Get the configuration property: Configuration of the build.
+ *
+ * @return the configuration value.
+ */
+ public BuildConfiguration configuration() {
+ return this.innerProperties() == null ? null : this.innerProperties().configuration();
+ }
+
+ /**
+ * Set the configuration property: Configuration of the build.
+ *
+ * @param configuration the configuration value to set.
+ * @return the BuildResourceInner object itself.
+ */
+ public BuildResourceInner withConfiguration(BuildConfiguration configuration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BuildProperties();
+ }
+ this.innerProperties().withConfiguration(configuration);
+ return this;
+ }
+
+ /**
+ * Get the uploadEndpoint property: Endpoint to which the source code should be uploaded.
+ *
+ * @return the uploadEndpoint value.
+ */
+ public String uploadEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().uploadEndpoint();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderProperties.java
new file mode 100644
index 000000000000..d44b11e167ab
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderProperties.java
@@ -0,0 +1,106 @@
+// 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.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The builder properties. */
+@Fluent
+public final class BuilderProperties {
+ /*
+ * Provisioning state of a builder resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Resource ID of the container apps environment that the builder is associated with.
+ */
+ @JsonProperty(value = "environmentId", required = true)
+ private String environmentId;
+
+ /*
+ * Resource ID of the compute that the builds will be performed on.
+ */
+ @JsonProperty(value = "buildComputeId", access = JsonProperty.Access.WRITE_ONLY)
+ private String buildComputeId;
+
+ /*
+ * Resource ID of the compute that the patching will be performed on.
+ */
+ @JsonProperty(value = "patchComputeId", access = JsonProperty.Access.WRITE_ONLY)
+ private String patchComputeId;
+
+ /** Creates an instance of BuilderProperties class. */
+ public BuilderProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of a builder resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the environmentId property: Resource ID of the container apps environment that the builder is associated
+ * with.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.environmentId;
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of the container apps environment that the builder is associated
+ * with.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the BuilderProperties object itself.
+ */
+ public BuilderProperties withEnvironmentId(String environmentId) {
+ this.environmentId = environmentId;
+ return this;
+ }
+
+ /**
+ * Get the buildComputeId property: Resource ID of the compute that the builds will be performed on.
+ *
+ * @return the buildComputeId value.
+ */
+ public String buildComputeId() {
+ return this.buildComputeId;
+ }
+
+ /**
+ * Get the patchComputeId property: Resource ID of the compute that the patching will be performed on.
+ *
+ * @return the patchComputeId value.
+ */
+ public String patchComputeId() {
+ return this.patchComputeId;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (environmentId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property environmentId in model BuilderProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(BuilderProperties.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderResourceInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderResourceInner.java
new file mode 100644
index 000000000000..b4bc2d065b9d
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderResourceInner.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.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.appcontainers.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Information about the SourceToCloud builder resource. */
+@Fluent
+public final class BuilderResourceInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ @JsonProperty(value = "properties")
+ private BuilderProperties innerProperties;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ @JsonProperty(value = "identity")
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of BuilderResourceInner class. */
+ public BuilderResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The resource-specific properties for this resource.
+ *
+ * @return the innerProperties value.
+ */
+ private BuilderProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the BuilderResourceInner object itself.
+ */
+ public BuilderResourceInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ 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 BuilderResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public BuilderResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of a builder resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the environmentId property: Resource ID of the container apps environment that the builder is associated
+ * with.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.innerProperties() == null ? null : this.innerProperties().environmentId();
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of the container apps environment that the builder is associated
+ * with.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the BuilderResourceInner object itself.
+ */
+ public BuilderResourceInner withEnvironmentId(String environmentId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BuilderProperties();
+ }
+ this.innerProperties().withEnvironmentId(environmentId);
+ return this;
+ }
+
+ /**
+ * Get the buildComputeId property: Resource ID of the compute that the builds will be performed on.
+ *
+ * @return the buildComputeId value.
+ */
+ public String buildComputeId() {
+ return this.innerProperties() == null ? null : this.innerProperties().buildComputeId();
+ }
+
+ /**
+ * Get the patchComputeId property: Resource ID of the compute that the patching will be performed on.
+ *
+ * @return the patchComputeId value.
+ */
+ public String patchComputeId() {
+ return this.innerProperties() == null ? null : this.innerProperties().patchComputeId();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderResourceUpdateProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderResourceUpdateProperties.java
new file mode 100644
index 000000000000..0a866e8d761c
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderResourceUpdateProperties.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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The updatable properties of the BuilderResource. */
+@Fluent
+public final class BuilderResourceUpdateProperties {
+ /*
+ * Resource ID of the container apps environment that the builder is associated with.
+ */
+ @JsonProperty(value = "environmentId")
+ private String environmentId;
+
+ /** Creates an instance of BuilderResourceUpdateProperties class. */
+ public BuilderResourceUpdateProperties() {
+ }
+
+ /**
+ * Get the environmentId property: Resource ID of the container apps environment that the builder is associated
+ * with.
+ *
+ * @return the environmentId value.
+ */
+ public String environmentId() {
+ return this.environmentId;
+ }
+
+ /**
+ * Set the environmentId property: Resource ID of the container apps environment that the builder is associated
+ * with.
+ *
+ * @param environmentId the environmentId value to set.
+ * @return the BuilderResourceUpdateProperties object itself.
+ */
+ public BuilderResourceUpdateProperties withEnvironmentId(String environmentId) {
+ this.environmentId = environmentId;
+ 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/ContainerAppInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java
index 0f37c337d055..aa0e8dae7598 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.
*
@@ -178,25 +210,25 @@ public ContainerAppInner withEnvironmentId(String environmentId) {
}
/**
- * Get the workloadProfileType property: Workload profile type to pin for container app execution.
+ * Get the workloadProfileName property: Workload profile name to pin for container app execution.
*
- * @return the workloadProfileType value.
+ * @return the workloadProfileName value.
*/
- public String workloadProfileType() {
- return this.innerProperties() == null ? null : this.innerProperties().workloadProfileType();
+ public String workloadProfileName() {
+ return this.innerProperties() == null ? null : this.innerProperties().workloadProfileName();
}
/**
- * Set the workloadProfileType property: Workload profile type to pin for container app execution.
+ * Set the workloadProfileName property: Workload profile name to pin for container app execution.
*
- * @param workloadProfileType the workloadProfileType value to set.
+ * @param workloadProfileName the workloadProfileName value to set.
* @return the ContainerAppInner object itself.
*/
- public ContainerAppInner withWorkloadProfileType(String workloadProfileType) {
+ public ContainerAppInner withWorkloadProfileName(String workloadProfileName) {
if (this.innerProperties() == null) {
this.innerProperties = new ContainerAppProperties();
}
- this.innerProperties().withWorkloadProfileType(workloadProfileType);
+ this.innerProperties().withWorkloadProfileName(workloadProfileName);
return this;
}
@@ -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..1429f8f7e5f4 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
@@ -33,10 +33,10 @@ public final class ContainerAppProperties {
private String environmentId;
/*
- * Workload profile type to pin for container app execution.
+ * Workload profile name to pin for container app execution.
*/
- @JsonProperty(value = "workloadProfileType")
- private String workloadProfileType;
+ @JsonProperty(value = "workloadProfileName")
+ private String workloadProfileName;
/*
* Name of the latest revision of the Container App.
@@ -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.
*/
@@ -134,22 +140,22 @@ public ContainerAppProperties withEnvironmentId(String environmentId) {
}
/**
- * Get the workloadProfileType property: Workload profile type to pin for container app execution.
+ * Get the workloadProfileName property: Workload profile name to pin for container app execution.
*
- * @return the workloadProfileType value.
+ * @return the workloadProfileName value.
*/
- public String workloadProfileType() {
- return this.workloadProfileType;
+ public String workloadProfileName() {
+ return this.workloadProfileName;
}
/**
- * Set the workloadProfileType property: Workload profile type to pin for container app execution.
+ * Set the workloadProfileName property: Workload profile name to pin for container app execution.
*
- * @param workloadProfileType the workloadProfileType value to set.
+ * @param workloadProfileName the workloadProfileName value to set.
* @return the ContainerAppProperties object itself.
*/
- public ContainerAppProperties withWorkloadProfileType(String workloadProfileType) {
- this.workloadProfileType = workloadProfileType;
+ public ContainerAppProperties withWorkloadProfileName(String workloadProfileName) {
+ this.workloadProfileName = workloadProfileName;
return this;
}
@@ -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..c8aa364ef3f4
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobInner.java
@@ -0,0 +1,230 @@
+// 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.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 {
+ /*
+ * 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;
+
+ /*
+ * Container Apps Job 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 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: Container Apps Job 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 workloadProfileName property: Workload profile name to pin for container apps job execution.
+ *
+ * @return the workloadProfileName value.
+ */
+ public String workloadProfileName() {
+ return this.innerProperties() == null ? null : this.innerProperties().workloadProfileName();
+ }
+
+ /**
+ * Set the workloadProfileName property: Workload profile name to pin for container apps job execution.
+ *
+ * @param workloadProfileName the workloadProfileName value to set.
+ * @return the JobInner object itself.
+ */
+ public JobInner withWorkloadProfileName(String workloadProfileName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withWorkloadProfileName(workloadProfileName);
+ 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 (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..7787e3d8147b
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/JobProperties.java
@@ -0,0 +1,183 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.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;
+
+/** Container Apps Job 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;
+
+ /*
+ * Workload profile name to pin for container apps job execution.
+ */
+ @JsonProperty(value = "workloadProfileName")
+ private String workloadProfileName;
+
+ /*
+ * 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 workloadProfileName property: Workload profile name to pin for container apps job execution.
+ *
+ * @return the workloadProfileName value.
+ */
+ public String workloadProfileName() {
+ return this.workloadProfileName;
+ }
+
+ /**
+ * Set the workloadProfileName property: Workload profile name to pin for container apps job execution.
+ *
+ * @param workloadProfileName the workloadProfileName value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withWorkloadProfileName(String workloadProfileName) {
+ this.workloadProfileName = workloadProfileName;
+ 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..f3c137f21723 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,85 @@ 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;
+ }
+
+ /**
+ * Get the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed
+ * Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in
+ * the same subscription as the subnet.
+ *
+ * @return the infrastructureResourceGroup value.
+ */
+ public String infrastructureResourceGroup() {
+ return this.innerProperties() == null ? null : this.innerProperties().infrastructureResourceGroup();
+ }
+
+ /**
+ * Set the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed
+ * Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in
+ * the same subscription as the subnet.
+ *
+ * @param infrastructureResourceGroup the infrastructureResourceGroup value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withInfrastructureResourceGroup(String infrastructureResourceGroup) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withInfrastructureResourceGroup(infrastructureResourceGroup);
+ 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..d36af4c8d7ae 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,26 @@ 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;
+
+ /*
+ * Name of the platform-managed resource group created for the Managed Environment to host infrastructure
+ * resources. If a subnet ID is provided, this resource group will be created in the same subscription as the
+ * subnet.
+ */
+ @JsonProperty(value = "infrastructureResourceGroup")
+ private String infrastructureResourceGroup;
+
/** Creates an instance of ManagedEnvironmentProperties class. */
public ManagedEnvironmentProperties() {
}
@@ -286,6 +308,70 @@ 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;
+ }
+
+ /**
+ * Get the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed
+ * Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in
+ * the same subscription as the subnet.
+ *
+ * @return the infrastructureResourceGroup value.
+ */
+ public String infrastructureResourceGroup() {
+ return this.infrastructureResourceGroup;
+ }
+
+ /**
+ * Set the infrastructureResourceGroup property: Name of the platform-managed resource group created for the Managed
+ * Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in
+ * the same subscription as the subnet.
+ *
+ * @param infrastructureResourceGroup the infrastructureResourceGroup value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withInfrastructureResourceGroup(String infrastructureResourceGroup) {
+ this.infrastructureResourceGroup = infrastructureResourceGroup;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -304,5 +390,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/fluent/models/ReplicaInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaInner.java
index 5dfd65482343..4238788b5f09 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaInner.java
@@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppReplicaRunningState;
import com.azure.resourcemanager.appcontainers.models.ReplicaContainer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -58,6 +59,24 @@ public OffsetDateTime createdTime() {
return this.innerProperties() == null ? null : this.innerProperties().createdTime();
}
+ /**
+ * Get the runningState property: Current running state of the replica.
+ *
+ * @return the runningState value.
+ */
+ public ContainerAppReplicaRunningState runningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().runningState();
+ }
+
+ /**
+ * Get the runningStateDetails property: The details of replica current running state.
+ *
+ * @return the runningStateDetails value.
+ */
+ public String runningStateDetails() {
+ return this.innerProperties() == null ? null : this.innerProperties().runningStateDetails();
+ }
+
/**
* Get the containers property: The containers collection under a replica.
*
@@ -81,6 +100,29 @@ public ReplicaInner withContainers(List containers) {
return this;
}
+ /**
+ * Get the initContainers property: The init containers collection under a replica.
+ *
+ * @return the initContainers value.
+ */
+ public List initContainers() {
+ return this.innerProperties() == null ? null : this.innerProperties().initContainers();
+ }
+
+ /**
+ * Set the initContainers property: The init containers collection under a replica.
+ *
+ * @param initContainers the initContainers value to set.
+ * @return the ReplicaInner object itself.
+ */
+ public ReplicaInner withInitContainers(List initContainers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ReplicaProperties();
+ }
+ this.innerProperties().withInitContainers(initContainers);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaProperties.java
index 1ddc5027cdc9..0d3eed1784a7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaProperties.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.appcontainers.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.ContainerAppReplicaRunningState;
import com.azure.resourcemanager.appcontainers.models.ReplicaContainer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -19,12 +20,30 @@ public final class ReplicaProperties {
@JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime createdTime;
+ /*
+ * Current running state of the replica
+ */
+ @JsonProperty(value = "runningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ContainerAppReplicaRunningState runningState;
+
+ /*
+ * The details of replica current running state
+ */
+ @JsonProperty(value = "runningStateDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private String runningStateDetails;
+
/*
* The containers collection under a replica.
*/
@JsonProperty(value = "containers")
private List containers;
+ /*
+ * The init containers collection under a replica.
+ */
+ @JsonProperty(value = "initContainers")
+ private List initContainers;
+
/** Creates an instance of ReplicaProperties class. */
public ReplicaProperties() {
}
@@ -38,6 +57,24 @@ public OffsetDateTime createdTime() {
return this.createdTime;
}
+ /**
+ * Get the runningState property: Current running state of the replica.
+ *
+ * @return the runningState value.
+ */
+ public ContainerAppReplicaRunningState runningState() {
+ return this.runningState;
+ }
+
+ /**
+ * Get the runningStateDetails property: The details of replica current running state.
+ *
+ * @return the runningStateDetails value.
+ */
+ public String runningStateDetails() {
+ return this.runningStateDetails;
+ }
+
/**
* Get the containers property: The containers collection under a replica.
*
@@ -58,6 +95,26 @@ public ReplicaProperties withContainers(List containers) {
return this;
}
+ /**
+ * Get the initContainers property: The init containers collection under a replica.
+ *
+ * @return the initContainers value.
+ */
+ public List initContainers() {
+ return this.initContainers;
+ }
+
+ /**
+ * Set the initContainers property: The init containers collection under a replica.
+ *
+ * @param initContainers the initContainers value to set.
+ * @return the ReplicaProperties object itself.
+ */
+ public ReplicaProperties withInitContainers(List initContainers) {
+ this.initContainers = initContainers;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -67,5 +124,8 @@ public void validate() {
if (containers() != null) {
containers().forEach(e -> e.validate());
}
+ if (initContainers() != null) {
+ initContainers().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/WorkloadProfileStatesInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/WorkloadProfileStatesInner.java
index 94e932f257de..9a0c03e9dead 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/WorkloadProfileStatesInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/WorkloadProfileStatesInner.java
@@ -10,7 +10,7 @@
import com.azure.resourcemanager.appcontainers.models.WorkloadProfileStatesProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Collection of all the workload Profile States for a Premium Managed Environment.. */
+/** Collection of all the workload Profile States for a Managed Environment.. */
@Fluent
public final class WorkloadProfileStatesInner extends ProxyResource {
/*
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..15172ec96e9c 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,11 +57,10 @@ 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}"
- + "/availableManagedEnvironmentsWorkloadProfileTypes")
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
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/BuildResourceImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildResourceImpl.java
new file mode 100644
index 000000000000..93a365bac3a2
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildResourceImpl.java
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuildConfiguration;
+import com.azure.resourcemanager.appcontainers.models.BuildResource;
+import com.azure.resourcemanager.appcontainers.models.BuildStatus;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+import com.azure.resourcemanager.appcontainers.models.ProvisioningState;
+
+public final class BuildResourceImpl implements BuildResource, BuildResource.Definition, BuildResource.Update {
+ private BuildResourceInner 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 SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public BuildStatus buildStatus() {
+ return this.innerModel().buildStatus();
+ }
+
+ public ContainerRegistryWithCustomImage destinationContainerRegistry() {
+ return this.innerModel().destinationContainerRegistry();
+ }
+
+ public BuildConfiguration configuration() {
+ return this.innerModel().configuration();
+ }
+
+ public String uploadEndpoint() {
+ return this.innerModel().uploadEndpoint();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public BuildResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String builderName;
+
+ private String buildName;
+
+ public BuildResourceImpl withExistingBuilder(String resourceGroupName, String builderName) {
+ this.resourceGroupName = resourceGroupName;
+ this.builderName = builderName;
+ return this;
+ }
+
+ public BuildResource create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilds()
+ .createOrUpdate(resourceGroupName, builderName, buildName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public BuildResource create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilds()
+ .createOrUpdate(resourceGroupName, builderName, buildName, this.innerModel(), context);
+ return this;
+ }
+
+ BuildResourceImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new BuildResourceInner();
+ this.serviceManager = serviceManager;
+ this.buildName = name;
+ }
+
+ public BuildResourceImpl update() {
+ return this;
+ }
+
+ public BuildResource apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilds()
+ .createOrUpdate(resourceGroupName, builderName, buildName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public BuildResource apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilds()
+ .createOrUpdate(resourceGroupName, builderName, buildName, this.innerModel(), context);
+ return this;
+ }
+
+ BuildResourceImpl(
+ BuildResourceInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.builderName = Utils.getValueFromIdByName(innerObject.id(), "builders");
+ this.buildName = Utils.getValueFromIdByName(innerObject.id(), "builds");
+ }
+
+ public BuildResource refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilds()
+ .getWithResponse(resourceGroupName, builderName, buildName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public BuildResource refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilds()
+ .getWithResponse(resourceGroupName, builderName, buildName, context)
+ .getValue();
+ return this;
+ }
+
+ public BuildResourceImpl withDestinationContainerRegistry(
+ ContainerRegistryWithCustomImage destinationContainerRegistry) {
+ this.innerModel().withDestinationContainerRegistry(destinationContainerRegistry);
+ return this;
+ }
+
+ public BuildResourceImpl withConfiguration(BuildConfiguration configuration) {
+ this.innerModel().withConfiguration(configuration);
+ return this;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.java
new file mode 100644
index 000000000000..55909b0c7dd2
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.java
@@ -0,0 +1,222 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuilderResource;
+import com.azure.resourcemanager.appcontainers.models.BuilderResourceUpdate;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.appcontainers.models.ProvisioningState;
+import java.util.Collections;
+import java.util.Map;
+
+public final class BuilderResourceImpl implements BuilderResource, BuilderResource.Definition, BuilderResource.Update {
+ private BuilderResourceInner 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 ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String environmentId() {
+ return this.innerModel().environmentId();
+ }
+
+ public String buildComputeId() {
+ return this.innerModel().buildComputeId();
+ }
+
+ public String patchComputeId() {
+ return this.innerModel().patchComputeId();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public BuilderResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String builderName;
+
+ private BuilderResourceUpdate updateBuilderEnvelope;
+
+ public BuilderResourceImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public BuilderResource create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilders()
+ .createOrUpdate(resourceGroupName, builderName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public BuilderResource create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilders()
+ .createOrUpdate(resourceGroupName, builderName, this.innerModel(), context);
+ return this;
+ }
+
+ BuilderResourceImpl(String name, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = new BuilderResourceInner();
+ this.serviceManager = serviceManager;
+ this.builderName = name;
+ }
+
+ public BuilderResourceImpl update() {
+ this.updateBuilderEnvelope = new BuilderResourceUpdate();
+ return this;
+ }
+
+ public BuilderResource apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilders()
+ .update(resourceGroupName, builderName, updateBuilderEnvelope, Context.NONE);
+ return this;
+ }
+
+ public BuilderResource apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilders()
+ .update(resourceGroupName, builderName, updateBuilderEnvelope, context);
+ return this;
+ }
+
+ BuilderResourceImpl(
+ BuilderResourceInner innerObject,
+ com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.builderName = Utils.getValueFromIdByName(innerObject.id(), "builders");
+ }
+
+ public BuilderResource refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilders()
+ .getByResourceGroupWithResponse(resourceGroupName, builderName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public BuilderResource refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getBuilders()
+ .getByResourceGroupWithResponse(resourceGroupName, builderName, context)
+ .getValue();
+ return this;
+ }
+
+ public BuilderResourceImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public BuilderResourceImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public BuilderResourceImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateBuilderEnvelope.withTags(tags);
+ return this;
+ }
+ }
+
+ public BuilderResourceImpl withIdentity(ManagedServiceIdentity identity) {
+ if (isInCreateMode()) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ } else {
+ this.updateBuilderEnvelope.withIdentity(identity);
+ return this;
+ }
+ }
+
+ public BuilderResourceImpl withEnvironmentId(String environmentId) {
+ if (isInCreateMode()) {
+ this.innerModel().withEnvironmentId(environmentId);
+ return this;
+ } else {
+ this.updateBuilderEnvelope.withEnvironmentId(environmentId);
+ 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/BuildersClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildersClientImpl.java
new file mode 100644
index 000000000000..a1a7a4d7563e
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildersClientImpl.java
@@ -0,0 +1,1542 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.BuildersClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuilderCollection;
+import com.azure.resourcemanager.appcontainers.models.BuilderResourceUpdate;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+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 BuildersClient. */
+public final class BuildersClientImpl implements BuildersClient {
+ /** The proxy service used to perform REST calls. */
+ private final BuildersService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of BuildersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ BuildersClientImpl(ContainerAppsApiClientImpl client) {
+ this.service = RestProxy.create(BuildersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientBuilders to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface BuildersService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.App/builders")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> getByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @BodyParam("application/json") BuilderResourceInner builderEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @BodyParam("application/json") BuilderResourceUpdate builderEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List BuilderResource resources by subscription ID.
+ *
+ * @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 response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List BuilderResource resources by subscription ID.
+ *
+ * @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 response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List BuilderResource resources by subscription ID.
+ *
+ * @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 response of a BuilderResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List BuilderResource resources by subscription ID.
+ *
+ * @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 response of a BuilderResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List BuilderResource resources by subscription ID.
+ *
+ * @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 response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * List BuilderResource resources by subscription ID.
+ *
+ * @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 response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * List BuilderResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List BuilderResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List BuilderResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List BuilderResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List BuilderResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * List BuilderResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * Get a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuilderResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String builderName) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuilderResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String builderName, 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuilderResource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String builderName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, builderName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuilderResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String builderName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, builderName, context).block();
+ }
+
+ /**
+ * Get a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuilderResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuilderResourceInner getByResourceGroup(String resourceGroupName, String builderName) {
+ return getByResourceGroupWithResponse(resourceGroupName, builderName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (builderEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter builderEnvelope is required and cannot be null."));
+ } else {
+ builderEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ builderEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope, 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (builderEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter builderEnvelope is required and cannot be null."));
+ } else {
+ builderEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ builderEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BuilderResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, builderName, builderEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ BuilderResourceInner.class,
+ BuilderResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BuilderResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, builderName, builderEnvelope, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), BuilderResourceInner.class, BuilderResourceInner.class, context);
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BuilderResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, builderName, builderEnvelope).getSyncPoller();
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BuilderResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, builderName, builderEnvelope, context).getSyncPoller();
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, builderName, builderEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, builderName, builderEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuilderResourceInner createOrUpdate(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope) {
+ return createOrUpdateAsync(resourceGroupName, builderName, builderEnvelope).block();
+ }
+
+ /**
+ * Create or update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuilderResourceInner createOrUpdate(
+ String resourceGroupName, String builderName, BuilderResourceInner builderEnvelope, Context context) {
+ return createOrUpdateAsync(resourceGroupName, builderName, builderEnvelope, context).block();
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (builderEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter builderEnvelope is required and cannot be null."));
+ } else {
+ builderEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ builderEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope, 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (builderEnvelope == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter builderEnvelope is required and cannot be null."));
+ } else {
+ builderEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ builderEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BuilderResourceInner> beginUpdateAsync(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, builderName, builderEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ BuilderResourceInner.class,
+ BuilderResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BuilderResourceInner> beginUpdateAsync(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, builderName, builderEnvelope, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), BuilderResourceInner.class, BuilderResourceInner.class, context);
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BuilderResourceInner> beginUpdate(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope) {
+ return this.beginUpdateAsync(resourceGroupName, builderName, builderEnvelope).getSyncPoller();
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BuilderResourceInner> beginUpdate(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, builderName, builderEnvelope, context).getSyncPoller();
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope) {
+ return beginUpdateAsync(resourceGroupName, builderName, builderEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope, Context context) {
+ return beginUpdateAsync(resourceGroupName, builderName, builderEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuilderResourceInner update(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope) {
+ return updateAsync(resourceGroupName, builderName, builderEnvelope).block();
+ }
+
+ /**
+ * Update a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param builderEnvelope The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the SourceToCloud builder resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuilderResourceInner update(
+ String resourceGroupName, String builderName, BuilderResourceUpdate builderEnvelope, Context context) {
+ return updateAsync(resourceGroupName, builderName, builderEnvelope, context).block();
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName, 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ accept,
+ context);
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, builderName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, builderName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName) {
+ return this.beginDeleteAsync(resourceGroupName, builderName).getSyncPoller();
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, builderName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName) {
+ return beginDeleteAsync(resourceGroupName, builderName).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName, Context context) {
+ return beginDeleteAsync(resourceGroupName, builderName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName) {
+ deleteAsync(resourceGroupName, builderName).block();
+ }
+
+ /**
+ * Delete a BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName, Context context) {
+ deleteAsync(resourceGroupName, builderName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuilderResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildersImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildersImpl.java
new file mode 100644
index 000000000000..4d4d2f127670
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildersImpl.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.fluent.BuildersClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuilderResource;
+import com.azure.resourcemanager.appcontainers.models.Builders;
+
+public final class BuildersImpl implements Builders {
+ private static final ClientLogger LOGGER = new ClientLogger(BuildersImpl.class);
+
+ private final BuildersClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public BuildersImpl(
+ BuildersClient innerClient, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new BuilderResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return Utils.mapPage(inner, inner1 -> new BuilderResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return Utils.mapPage(inner, inner1 -> new BuilderResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByResourceGroup(resourceGroupName, context);
+ return Utils.mapPage(inner, inner1 -> new BuilderResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String builderName, Context context) {
+ Response inner =
+ this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, builderName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new BuilderResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public BuilderResource getByResourceGroup(String resourceGroupName, String builderName) {
+ BuilderResourceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, builderName);
+ if (inner != null) {
+ return new BuilderResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String builderName) {
+ this.serviceClient().delete(resourceGroupName, builderName);
+ }
+
+ public void delete(String resourceGroupName, String builderName, Context context) {
+ this.serviceClient().delete(resourceGroupName, builderName, context);
+ }
+
+ public BuilderResource 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 builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, builderName, 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 builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, builderName, 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 builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ this.delete(resourceGroupName, builderName, Context.NONE);
+ }
+
+ public void 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 builderName = Utils.getValueFromIdByName(id, "builders");
+ if (builderName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builders'.", id)));
+ }
+ this.delete(resourceGroupName, builderName, context);
+ }
+
+ private BuildersClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ public BuilderResourceImpl define(String name) {
+ return new BuilderResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsClientImpl.java
new file mode 100644
index 000000000000..5eec8852b340
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsClientImpl.java
@@ -0,0 +1,1110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.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.BuildsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuildCollection;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+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 BuildsClient. */
+public final class BuildsClientImpl implements BuildsClient {
+ /** The proxy service used to perform REST calls. */
+ private final BuildsService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of BuildsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ BuildsClientImpl(ContainerAppsApiClientImpl client) {
+ this.service = RestProxy.create(BuildsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientBuilds to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface BuildsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByBuilderResource(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @PathParam("buildName") String buildName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @PathParam("buildName") String buildName,
+ @BodyParam("application/json") BuildResourceInner buildEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("builderName") String builderName,
+ @PathParam("buildName") String buildName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listByBuilderResourceNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByBuilderResourceSinglePageAsync(
+ String resourceGroupName, String builderName) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByBuilderResource(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByBuilderResourceSinglePageAsync(
+ String resourceGroupName, String builderName, 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByBuilderResource(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByBuilderResourceAsync(String resourceGroupName, String builderName) {
+ return new PagedFlux<>(
+ () -> listByBuilderResourceSinglePageAsync(resourceGroupName, builderName),
+ nextLink -> listByBuilderResourceNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByBuilderResourceAsync(
+ String resourceGroupName, String builderName, Context context) {
+ return new PagedFlux<>(
+ () -> listByBuilderResourceSinglePageAsync(resourceGroupName, builderName, context),
+ nextLink -> listByBuilderResourceNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByBuilderResource(String resourceGroupName, String builderName) {
+ return new PagedIterable<>(listByBuilderResourceAsync(resourceGroupName, builderName));
+ }
+
+ /**
+ * List BuildResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a BuildResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByBuilderResource(
+ String resourceGroupName, String builderName, Context context) {
+ return new PagedIterable<>(listByBuilderResourceAsync(resourceGroupName, builderName, context));
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuildResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String builderName, String buildName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuildResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuildResource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String builderName, String buildName) {
+ return getWithResponseAsync(resourceGroupName, builderName, buildName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuildResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ return getWithResponseAsync(resourceGroupName, builderName, buildName, context).block();
+ }
+
+ /**
+ * Get a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 BuildResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuildResourceInner get(String resourceGroupName, String builderName, String buildName) {
+ return getWithResponse(resourceGroupName, builderName, buildName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ if (buildEnvelope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildEnvelope is required and cannot be null."));
+ } else {
+ buildEnvelope.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ buildEnvelope,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ 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 (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ if (buildEnvelope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildEnvelope is required and cannot be null."));
+ } else {
+ buildEnvelope.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ buildEnvelope,
+ accept,
+ context);
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BuildResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, builderName, buildName, buildEnvelope);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ BuildResourceInner.class,
+ BuildResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BuildResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, builderName, buildName, buildEnvelope, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), BuildResourceInner.class, BuildResourceInner.class, context);
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BuildResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope).getSyncPoller();
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BuildResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ Context context) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ return beginCreateOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuildResourceInner createOrUpdate(
+ String resourceGroupName, String builderName, String buildName, BuildResourceInner buildEnvelope) {
+ return createOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope).block();
+ }
+
+ /**
+ * Create a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param buildEnvelope Resource create or update parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information pertaining to an individual build.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuildResourceInner createOrUpdate(
+ String resourceGroupName,
+ String builderName,
+ String buildName,
+ BuildResourceInner buildEnvelope,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, builderName, buildName, buildEnvelope, context).block();
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 builderName, String buildName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ if (buildName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter buildName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a BuildResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param buildName The name of a build.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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