getWithResponse(
+ String resourceGroupName, String environmentName, String componentName, String name, Context context);
+
+ /**
+ * Get a Dapr component resiliency policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @param name Name of the Dapr Component Resiliency Policy.
+ * @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 Dapr component resiliency policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprComponentResiliencyPolicyInner get(
+ String resourceGroupName, String environmentName, String componentName, String name);
+
+ /**
+ * Creates or updates a Dapr component resiliency policy.
+ *
+ * Creates or updates a resiliency policy for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @param name Name of the Dapr Component Resiliency Policy.
+ * @param daprComponentResiliencyPolicyEnvelope Configuration details of the Dapr Component Resiliency Policy.
+ * @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 dapr Component Resiliency Policy along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String componentName,
+ String name,
+ DaprComponentResiliencyPolicyInner daprComponentResiliencyPolicyEnvelope,
+ Context context);
+
+ /**
+ * Creates or updates a Dapr component resiliency policy.
+ *
+ * Creates or updates a resiliency policy for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @param name Name of the Dapr Component Resiliency Policy.
+ * @param daprComponentResiliencyPolicyEnvelope Configuration details of the Dapr Component Resiliency Policy.
+ * @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 dapr Component Resiliency Policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprComponentResiliencyPolicyInner createOrUpdate(
+ String resourceGroupName,
+ String environmentName,
+ String componentName,
+ String name,
+ DaprComponentResiliencyPolicyInner daprComponentResiliencyPolicyEnvelope);
+
+ /**
+ * Delete a Dapr component resiliency policy.
+ *
+ *
Delete a resiliency policy for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @param name Name of the Dapr Component Resiliency Policy.
+ * @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 componentName, String name, Context context);
+
+ /**
+ * Delete a Dapr component resiliency policy.
+ *
+ * Delete a resiliency policy for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @param name Name of the Dapr Component Resiliency Policy.
+ * @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 componentName, String name);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprSubscriptionsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprSubscriptionsClient.java
new file mode 100644
index 0000000000000..1ddca940606e1
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/DaprSubscriptionsClient.java
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprSubscriptionInner;
+
+/** An instance of this class provides access to all the operations defined in DaprSubscriptionsClient. */
+public interface DaprSubscriptionsClient {
+ /**
+ * Get the Dapr subscriptions for a 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 Dapr subscriptions for a managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * Get the Dapr subscriptions for a 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 Dapr subscriptions for a managed environment as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName, Context context);
+
+ /**
+ * Get a dapr subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr subscription.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a dapr subscription along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String environmentName, String name, Context context);
+
+ /**
+ * Get a dapr subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr subscription.
+ * @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 dapr subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprSubscriptionInner get(String resourceGroupName, String environmentName, String name);
+
+ /**
+ * Creates or updates a Dapr subscription.
+ *
+ * Creates or updates a Dapr subscription in a Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr subscription.
+ * @param daprSubscriptionEnvelope Configuration details of the Dapr subscription.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dapr PubSub Event Subscription along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String environmentName,
+ String name,
+ DaprSubscriptionInner daprSubscriptionEnvelope,
+ Context context);
+
+ /**
+ * Creates or updates a Dapr subscription.
+ *
+ * Creates or updates a Dapr subscription in a Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr subscription.
+ * @param daprSubscriptionEnvelope Configuration details of the Dapr subscription.
+ * @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 dapr PubSub Event Subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DaprSubscriptionInner createOrUpdate(
+ String resourceGroupName, String environmentName, String name, DaprSubscriptionInner daprSubscriptionEnvelope);
+
+ /**
+ * Delete a Dapr subscription.
+ *
+ *
Delete a Dapr subscription from a Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr subscription.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String environmentName, String name, Context context);
+
+ /**
+ * Delete a Dapr subscription.
+ *
+ * Delete a Dapr subscription from a Managed Environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param name Name of the Dapr subscription.
+ * @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 name);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentUsagesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentUsagesClient.java
new file mode 100644
index 0000000000000..87f185fd1c39f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ManagedEnvironmentUsagesClient.java
@@ -0,0 +1,45 @@
+// 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.UsageInner;
+
+/** An instance of this class provides access to all the operations defined in ManagedEnvironmentUsagesClient. */
+public interface ManagedEnvironmentUsagesClient {
+ /**
+ * Gets the current usage information as well as the limits for environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the 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 current usage information as well as the limits for environment as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String environmentName);
+
+ /**
+ * Gets the current usage information as well as the limits for environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the 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 current usage information as well as the limits for 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/PatchesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/PatchesClient.java
new file mode 100644
index 0000000000000..06ff15b679b50
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/PatchesClient.java
@@ -0,0 +1,272 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appcontainers.fluent.models.PatchCollectionInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.PatchResourceInner;
+
+/** An instance of this class provides access to all the operations defined in PatchesClient. */
+public interface PatchesClient {
+ /**
+ * List PatchResource resources by BuilderResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @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 container App SourceToCloud patch collection along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listByBuilderResourceWithResponse(
+ String resourceGroupName, String builderName, String filter, Context context);
+
+ /**
+ * List PatchResource 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 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 SourceToCloud patch collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PatchCollectionInner listByBuilderResource(String resourceGroupName, String builderName);
+
+ /**
+ * Get details for specific patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 details for specific patch by patch name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String builderName, String patchName, Context context);
+
+ /**
+ * Get details for specific patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @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 details for specific patch by patch name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PatchResourceInner get(String resourceGroupName, String builderName, String patchName);
+
+ /**
+ * Delete specific patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String builderName, String patchName);
+
+ /**
+ * Delete specific patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request
+ * is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String builderName, String patchName, Context context);
+
+ /**
+ * Delete specific patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @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 builderName, String patchName);
+
+ /**
+ * Delete specific patch by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 builderName, String patchName, Context context);
+
+ /**
+ * Configure the patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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> beginSkipConfigure(
+ String resourceGroupName, String builderName, String patchName, boolean patchSkipConfig);
+
+ /**
+ * Configure the patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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> beginSkipConfigure(
+ String resourceGroupName, String builderName, String patchName, boolean patchSkipConfig, Context context);
+
+ /**
+ * Configure the patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 skipConfigure(String resourceGroupName, String builderName, String patchName, boolean patchSkipConfig);
+
+ /**
+ * Configure the patch skip option by patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @param patchSkipConfig Configure patcher to skip a patch or not.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 skipConfigure(
+ String resourceGroupName, String builderName, String patchName, boolean patchSkipConfig, Context context);
+
+ /**
+ * Apply a PatchResource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @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 Patch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PatchResourceInner> beginApply(
+ String resourceGroupName, String builderName, String patchName);
+
+ /**
+ * Apply a PatchResource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 Patch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PatchResourceInner> beginApply(
+ String resourceGroupName, String builderName, String patchName, Context context);
+
+ /**
+ * Apply a PatchResource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @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 Patch.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PatchResourceInner apply(String resourceGroupName, String builderName, String patchName);
+
+ /**
+ * Apply a PatchResource with patch name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param builderName The name of the builder.
+ * @param patchName The name of the patch.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 Patch.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PatchResourceInner apply(String resourceGroupName, String builderName, String patchName, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ResourceProvidersClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ResourceProvidersClient.java
index 9b59268f6d084..01f24b00b3efc 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ResourceProvidersClient.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ResourceProvidersClient.java
@@ -43,4 +43,28 @@ Response jobExecutionWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
JobExecutionInner jobExecution(String resourceGroupName, String jobName, String jobExecutionName);
+
+ /**
+ * Get the verification id of a subscription used for verifying custom domains.
+ *
+ * @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 verification id of a subscription used for verifying custom domains along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getCustomDomainVerificationIdWithResponse(Context context);
+
+ /**
+ * Get the verification id of a subscription used for verifying custom domains.
+ *
+ * @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 verification id of a subscription used for verifying custom domains.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ String getCustomDomainVerificationId();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/UsagesClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/UsagesClient.java
new file mode 100644
index 0000000000000..fc76f574171f6
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/UsagesClient.java
@@ -0,0 +1,43 @@
+// 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.UsageInner;
+
+/** An instance of this class provides access to all the operations defined in UsagesClient. */
+public interface UsagesClient {
+ /**
+ * Gets, for the specified location, the current resource usage information as well as the limits under the
+ * subscription.
+ *
+ * @param location The location for which resource usage is queried.
+ * @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 paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location);
+
+ /**
+ * Gets, for the specified location, the current resource usage information as well as the limits under the
+ * subscription.
+ *
+ * @param location The location for which resource usage is queried.
+ * @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 paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location, Context context);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigInner.java
index 7a3c141ee7e55..9dd895de50a70 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigInner.java
@@ -8,6 +8,7 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
+import com.azure.resourcemanager.appcontainers.models.EncryptionSettings;
import com.azure.resourcemanager.appcontainers.models.GlobalValidation;
import com.azure.resourcemanager.appcontainers.models.HttpSettings;
import com.azure.resourcemanager.appcontainers.models.IdentityProviders;
@@ -176,6 +177,31 @@ public AuthConfigInner withHttpSettings(HttpSettings httpSettings) {
return this;
}
+ /**
+ * Get the encryptionSettings property: The configuration settings of the secrets references of encryption key and
+ * signing key for ContainerApp Service Authentication/Authorization.
+ *
+ * @return the encryptionSettings value.
+ */
+ public EncryptionSettings encryptionSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionSettings();
+ }
+
+ /**
+ * Set the encryptionSettings property: The configuration settings of the secrets references of encryption key and
+ * signing key for ContainerApp Service Authentication/Authorization.
+ *
+ * @param encryptionSettings the encryptionSettings value to set.
+ * @return the AuthConfigInner object itself.
+ */
+ public AuthConfigInner withEncryptionSettings(EncryptionSettings encryptionSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AuthConfigProperties();
+ }
+ this.innerProperties().withEncryptionSettings(encryptionSettings);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java
index 9562abcf1c1de..d1483c9f407d3 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/AuthConfigProperties.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
+import com.azure.resourcemanager.appcontainers.models.EncryptionSettings;
import com.azure.resourcemanager.appcontainers.models.GlobalValidation;
import com.azure.resourcemanager.appcontainers.models.HttpSettings;
import com.azure.resourcemanager.appcontainers.models.IdentityProviders;
@@ -48,6 +49,13 @@ public final class AuthConfigProperties {
@JsonProperty(value = "httpSettings")
private HttpSettings httpSettings;
+ /*
+ * The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service
+ * Authentication/Authorization.
+ */
+ @JsonProperty(value = "encryptionSettings")
+ private EncryptionSettings encryptionSettings;
+
/** Creates an instance of AuthConfigProperties class. */
public AuthConfigProperties() {
}
@@ -162,6 +170,28 @@ public AuthConfigProperties withHttpSettings(HttpSettings httpSettings) {
return this;
}
+ /**
+ * Get the encryptionSettings property: The configuration settings of the secrets references of encryption key and
+ * signing key for ContainerApp Service Authentication/Authorization.
+ *
+ * @return the encryptionSettings value.
+ */
+ public EncryptionSettings encryptionSettings() {
+ return this.encryptionSettings;
+ }
+
+ /**
+ * Set the encryptionSettings property: The configuration settings of the secrets references of encryption key and
+ * signing key for ContainerApp Service Authentication/Authorization.
+ *
+ * @param encryptionSettings the encryptionSettings value to set.
+ * @return the AuthConfigProperties object itself.
+ */
+ public AuthConfigProperties withEncryptionSettings(EncryptionSettings encryptionSettings) {
+ this.encryptionSettings = encryptionSettings;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -183,5 +213,8 @@ public void validate() {
if (httpSettings() != null) {
httpSettings().validate();
}
+ if (encryptionSettings() != null) {
+ encryptionSettings().validate();
+ }
}
}
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 ad62df22ee74b..29bba9a507794 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
@@ -6,6 +6,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.AvailableWorkloadProfileProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,6 +25,12 @@ public final class AvailableWorkloadProfileInner extends ProxyResource {
@JsonProperty(value = "properties")
private AvailableWorkloadProfileProperties 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 AvailableWorkloadProfileInner class. */
public AvailableWorkloadProfileInner() {
}
@@ -68,6 +75,15 @@ public AvailableWorkloadProfileInner withProperties(AvailableWorkloadProfileProp
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;
+ }
+
/**
* Validates the instance.
*
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 0000000000000..16032cc061428
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildProperties.java
@@ -0,0 +1,163 @@
+// 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.BuildProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.BuildStatus;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+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 BuildProvisioningState provisioningState;
+
+ /*
+ * Status of the build once it has been provisioned.
+ */
+ @JsonProperty(value = "buildStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private BuildStatus buildStatus;
+
+ /*
+ * Container registry that the final image will be uploaded to.
+ */
+ @JsonProperty(value = "destinationContainerRegistry")
+ 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;
+
+ /*
+ * Endpoint from which the build logs can be streamed.
+ */
+ @JsonProperty(value = "logStreamEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String logStreamEndpoint;
+
+ /*
+ * Endpoint to use to retrieve an authentication token for log streaming and uploading source code.
+ */
+ @JsonProperty(value = "tokenEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String tokenEndpoint;
+
+ /** Creates an instance of BuildProperties class. */
+ public BuildProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Build provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public BuildProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the buildStatus property: Status of the build once it has been provisioned.
+ *
+ * @return the buildStatus value.
+ */
+ public BuildStatus buildStatus() {
+ return this.buildStatus;
+ }
+
+ /**
+ * Get the destinationContainerRegistry property: Container registry that the final image will be uploaded to.
+ *
+ * @return the destinationContainerRegistry value.
+ */
+ public ContainerRegistryWithCustomImage destinationContainerRegistry() {
+ return this.destinationContainerRegistry;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Get the logStreamEndpoint property: Endpoint from which the build logs can be streamed.
+ *
+ * @return the logStreamEndpoint value.
+ */
+ public String logStreamEndpoint() {
+ return this.logStreamEndpoint;
+ }
+
+ /**
+ * Get the tokenEndpoint property: Endpoint to use to retrieve an authentication token for log streaming and
+ * uploading source code.
+ *
+ * @return the tokenEndpoint value.
+ */
+ public String tokenEndpoint() {
+ return this.tokenEndpoint;
+ }
+
+ /**
+ * 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 0000000000000..2ab88741367a6
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildResourceInner.java
@@ -0,0 +1,156 @@
+// 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.BuildProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.BuildStatus;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+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 BuildProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the buildStatus property: Status of the build once it has been provisioned.
+ *
+ * @return the buildStatus value.
+ */
+ public BuildStatus buildStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().buildStatus();
+ }
+
+ /**
+ * Get the destinationContainerRegistry property: Container registry that the final image will be uploaded to.
+ *
+ * @return the destinationContainerRegistry value.
+ */
+ public ContainerRegistryWithCustomImage destinationContainerRegistry() {
+ return this.innerProperties() == null ? null : this.innerProperties().destinationContainerRegistry();
+ }
+
+ /**
+ * 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();
+ }
+
+ /**
+ * Get the logStreamEndpoint property: Endpoint from which the build logs can be streamed.
+ *
+ * @return the logStreamEndpoint value.
+ */
+ public String logStreamEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().logStreamEndpoint();
+ }
+
+ /**
+ * Get the tokenEndpoint property: Endpoint to use to retrieve an authentication token for log streaming and
+ * uploading source code.
+ *
+ * @return the tokenEndpoint value.
+ */
+ public String tokenEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().tokenEndpoint();
+ }
+
+ /**
+ * 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/BuildTokenInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildTokenInner.java
new file mode 100644
index 0000000000000..6c60bf4ec063b
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuildTokenInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Build Auth Token. */
+@Immutable
+public final class BuildTokenInner {
+ /*
+ * Authentication token.
+ */
+ @JsonProperty(value = "token", access = JsonProperty.Access.WRITE_ONLY)
+ private String token;
+
+ /*
+ * Token expiration date.
+ */
+ @JsonProperty(value = "expires", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime expires;
+
+ /** Creates an instance of BuildTokenInner class. */
+ public BuildTokenInner() {
+ }
+
+ /**
+ * Get the token property: Authentication token.
+ *
+ * @return the token value.
+ */
+ public String token() {
+ return this.token;
+ }
+
+ /**
+ * Get the expires property: Token expiration date.
+ *
+ * @return the expires value.
+ */
+ public OffsetDateTime expires() {
+ return this.expires;
+ }
+
+ /**
+ * 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/BuilderProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderProperties.java
new file mode 100644
index 0000000000000..922986ad02e60
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderProperties.java
@@ -0,0 +1,109 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appcontainers.models.BuilderProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistry;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The builder properties. */
+@Fluent
+public final class BuilderProperties {
+ /*
+ * Provisioning state of a builder resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private BuilderProvisioningState provisioningState;
+
+ /*
+ * Resource ID of the container apps environment that the builder is associated with.
+ */
+ @JsonProperty(value = "environmentId", required = true)
+ private String environmentId;
+
+ /*
+ * List of mappings of container registries and the managed identity used to connect to it.
+ */
+ @JsonProperty(value = "containerRegistries")
+ private List containerRegistries;
+
+ /** Creates an instance of BuilderProperties class. */
+ public BuilderProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of a builder resource.
+ *
+ * @return the provisioningState value.
+ */
+ public BuilderProvisioningState 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 containerRegistries property: List of mappings of container registries and the managed identity used to
+ * connect to it.
+ *
+ * @return the containerRegistries value.
+ */
+ public List containerRegistries() {
+ return this.containerRegistries;
+ }
+
+ /**
+ * Set the containerRegistries property: List of mappings of container registries and the managed identity used to
+ * connect to it.
+ *
+ * @param containerRegistries the containerRegistries value to set.
+ * @return the BuilderProperties object itself.
+ */
+ public BuilderProperties withContainerRegistries(List containerRegistries) {
+ this.containerRegistries = containerRegistries;
+ return this;
+ }
+
+ /**
+ * 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"));
+ }
+ if (containerRegistries() != null) {
+ containerRegistries().forEach(e -> e.validate());
+ }
+ }
+
+ 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 0000000000000..23a55a24e9104
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/BuilderResourceInner.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.BuilderProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistry;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+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 BuilderProvisioningState 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 containerRegistries property: List of mappings of container registries and the managed identity used to
+ * connect to it.
+ *
+ * @return the containerRegistries value.
+ */
+ public List containerRegistries() {
+ return this.innerProperties() == null ? null : this.innerProperties().containerRegistries();
+ }
+
+ /**
+ * Set the containerRegistries property: List of mappings of container registries and the managed identity used to
+ * connect to it.
+ *
+ * @param containerRegistries the containerRegistries value to set.
+ * @return the BuilderResourceInner object itself.
+ */
+ public BuilderResourceInner withContainerRegistries(List containerRegistries) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BuilderProperties();
+ }
+ this.innerProperties().withContainerRegistries(containerRegistries);
+ return this;
+ }
+
+ /**
+ * 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 0000000000000..0a866e8d761cf
--- /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/ConnectedEnvironmentStorageInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStorageInner.java
index 4114a1b4e7322..bbbf23cc740d7 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStorageInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ConnectedEnvironmentStorageInner.java
@@ -6,6 +6,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.ConnectedEnvironmentStorageProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -18,6 +19,12 @@ public final class ConnectedEnvironmentStorageInner extends ProxyResource {
@JsonProperty(value = "properties")
private ConnectedEnvironmentStorageProperties 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 ConnectedEnvironmentStorageInner class. */
public ConnectedEnvironmentStorageInner() {
}
@@ -42,6 +49,15 @@ public ConnectedEnvironmentStorageInner withProperties(ConnectedEnvironmentStora
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;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentInner.java
index bb777312434d7..d81b68cf23bc6 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentInner.java
@@ -6,6 +6,8 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.DaprComponentServiceBinding;
import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
import com.azure.resourcemanager.appcontainers.models.Secret;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -20,6 +22,12 @@ public final class DaprComponentInner extends ProxyResource {
@JsonProperty(value = "properties")
private DaprComponentProperties 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 DaprComponentInner class. */
public DaprComponentInner() {
}
@@ -33,6 +41,15 @@ private DaprComponentProperties 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 componentType property: Component type.
*
@@ -217,6 +234,29 @@ public DaprComponentInner withScopes(List scopes) {
return this;
}
+ /**
+ * Get the serviceComponentBind property: List of container app services that are bound to the Dapr component.
+ *
+ * @return the serviceComponentBind value.
+ */
+ public List serviceComponentBind() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceComponentBind();
+ }
+
+ /**
+ * Set the serviceComponentBind property: List of container app services that are bound to the Dapr component.
+ *
+ * @param serviceComponentBind the serviceComponentBind value to set.
+ * @return the DaprComponentInner object itself.
+ */
+ public DaprComponentInner withServiceComponentBind(List serviceComponentBind) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentProperties();
+ }
+ this.innerProperties().withServiceComponentBind(serviceComponentBind);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java
index 5ea576bbf7406..e309fcae39cf0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentProperties.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.appcontainers.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.DaprComponentServiceBinding;
import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
import com.azure.resourcemanager.appcontainers.models.Secret;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -61,6 +62,12 @@ public final class DaprComponentProperties {
@JsonProperty(value = "scopes")
private List scopes;
+ /*
+ * List of container app services that are bound to the Dapr component
+ */
+ @JsonProperty(value = "serviceComponentBind")
+ private List serviceComponentBind;
+
/** Creates an instance of DaprComponentProperties class. */
public DaprComponentProperties() {
}
@@ -225,6 +232,26 @@ public DaprComponentProperties withScopes(List scopes) {
return this;
}
+ /**
+ * Get the serviceComponentBind property: List of container app services that are bound to the Dapr component.
+ *
+ * @return the serviceComponentBind value.
+ */
+ public List serviceComponentBind() {
+ return this.serviceComponentBind;
+ }
+
+ /**
+ * Set the serviceComponentBind property: List of container app services that are bound to the Dapr component.
+ *
+ * @param serviceComponentBind the serviceComponentBind value to set.
+ * @return the DaprComponentProperties object itself.
+ */
+ public DaprComponentProperties withServiceComponentBind(List serviceComponentBind) {
+ this.serviceComponentBind = serviceComponentBind;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -237,5 +264,8 @@ public void validate() {
if (metadata() != null) {
metadata().forEach(e -> e.validate());
}
+ if (serviceComponentBind() != null) {
+ serviceComponentBind().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentResiliencyPolicyInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentResiliencyPolicyInner.java
new file mode 100644
index 0000000000000..48582c076bdcf
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentResiliencyPolicyInner.java
@@ -0,0 +1,108 @@
+// 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.DaprComponentResiliencyPolicyConfiguration;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Dapr Component Resiliency Policy. */
+@Fluent
+public final class DaprComponentResiliencyPolicyInner extends ProxyResource {
+ /*
+ * Dapr Component Resiliency Policy resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private DaprComponentResiliencyPolicyProperties 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 DaprComponentResiliencyPolicyInner class. */
+ public DaprComponentResiliencyPolicyInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Dapr Component Resiliency Policy resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private DaprComponentResiliencyPolicyProperties 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 inboundPolicy property: The optional inbound component resiliency policy configuration.
+ *
+ * @return the inboundPolicy value.
+ */
+ public DaprComponentResiliencyPolicyConfiguration inboundPolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().inboundPolicy();
+ }
+
+ /**
+ * Set the inboundPolicy property: The optional inbound component resiliency policy configuration.
+ *
+ * @param inboundPolicy the inboundPolicy value to set.
+ * @return the DaprComponentResiliencyPolicyInner object itself.
+ */
+ public DaprComponentResiliencyPolicyInner withInboundPolicy(
+ DaprComponentResiliencyPolicyConfiguration inboundPolicy) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentResiliencyPolicyProperties();
+ }
+ this.innerProperties().withInboundPolicy(inboundPolicy);
+ return this;
+ }
+
+ /**
+ * Get the outboundPolicy property: The optional outbound component resiliency policy configuration.
+ *
+ * @return the outboundPolicy value.
+ */
+ public DaprComponentResiliencyPolicyConfiguration outboundPolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().outboundPolicy();
+ }
+
+ /**
+ * Set the outboundPolicy property: The optional outbound component resiliency policy configuration.
+ *
+ * @param outboundPolicy the outboundPolicy value to set.
+ * @return the DaprComponentResiliencyPolicyInner object itself.
+ */
+ public DaprComponentResiliencyPolicyInner withOutboundPolicy(
+ DaprComponentResiliencyPolicyConfiguration outboundPolicy) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprComponentResiliencyPolicyProperties();
+ }
+ this.innerProperties().withOutboundPolicy(outboundPolicy);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentResiliencyPolicyProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentResiliencyPolicyProperties.java
new file mode 100644
index 0000000000000..fe10654f39409
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprComponentResiliencyPolicyProperties.java
@@ -0,0 +1,85 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyConfiguration;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Dapr Component Resiliency Policy resource specific properties. */
+@Fluent
+public final class DaprComponentResiliencyPolicyProperties {
+ /*
+ * The optional inbound component resiliency policy configuration
+ */
+ @JsonProperty(value = "inboundPolicy")
+ private DaprComponentResiliencyPolicyConfiguration inboundPolicy;
+
+ /*
+ * The optional outbound component resiliency policy configuration
+ */
+ @JsonProperty(value = "outboundPolicy")
+ private DaprComponentResiliencyPolicyConfiguration outboundPolicy;
+
+ /** Creates an instance of DaprComponentResiliencyPolicyProperties class. */
+ public DaprComponentResiliencyPolicyProperties() {
+ }
+
+ /**
+ * Get the inboundPolicy property: The optional inbound component resiliency policy configuration.
+ *
+ * @return the inboundPolicy value.
+ */
+ public DaprComponentResiliencyPolicyConfiguration inboundPolicy() {
+ return this.inboundPolicy;
+ }
+
+ /**
+ * Set the inboundPolicy property: The optional inbound component resiliency policy configuration.
+ *
+ * @param inboundPolicy the inboundPolicy value to set.
+ * @return the DaprComponentResiliencyPolicyProperties object itself.
+ */
+ public DaprComponentResiliencyPolicyProperties withInboundPolicy(
+ DaprComponentResiliencyPolicyConfiguration inboundPolicy) {
+ this.inboundPolicy = inboundPolicy;
+ return this;
+ }
+
+ /**
+ * Get the outboundPolicy property: The optional outbound component resiliency policy configuration.
+ *
+ * @return the outboundPolicy value.
+ */
+ public DaprComponentResiliencyPolicyConfiguration outboundPolicy() {
+ return this.outboundPolicy;
+ }
+
+ /**
+ * Set the outboundPolicy property: The optional outbound component resiliency policy configuration.
+ *
+ * @param outboundPolicy the outboundPolicy value to set.
+ * @return the DaprComponentResiliencyPolicyProperties object itself.
+ */
+ public DaprComponentResiliencyPolicyProperties withOutboundPolicy(
+ DaprComponentResiliencyPolicyConfiguration outboundPolicy) {
+ this.outboundPolicy = outboundPolicy;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (inboundPolicy() != null) {
+ inboundPolicy().validate();
+ }
+ if (outboundPolicy() != null) {
+ outboundPolicy().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSubscriptionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSubscriptionInner.java
new file mode 100644
index 0000000000000..d16d953256a45
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSubscriptionInner.java
@@ -0,0 +1,224 @@
+// 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.DaprSubscriptionBulkSubscribeOptions;
+import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRoutes;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Dapr PubSub Event Subscription. */
+@Fluent
+public final class DaprSubscriptionInner extends ProxyResource {
+ /*
+ * Dapr PubSub Event Subscription resource specific properties
+ */
+ @JsonProperty(value = "properties")
+ private DaprSubscriptionProperties 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 DaprSubscriptionInner class. */
+ public DaprSubscriptionInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Dapr PubSub Event Subscription resource specific properties.
+ *
+ * @return the innerProperties value.
+ */
+ private DaprSubscriptionProperties 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 pubsubName property: Dapr PubSub component name.
+ *
+ * @return the pubsubName value.
+ */
+ public String pubsubName() {
+ return this.innerProperties() == null ? null : this.innerProperties().pubsubName();
+ }
+
+ /**
+ * Set the pubsubName property: Dapr PubSub component name.
+ *
+ * @param pubsubName the pubsubName value to set.
+ * @return the DaprSubscriptionInner object itself.
+ */
+ public DaprSubscriptionInner withPubsubName(String pubsubName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprSubscriptionProperties();
+ }
+ this.innerProperties().withPubsubName(pubsubName);
+ return this;
+ }
+
+ /**
+ * Get the topic property: Topic name.
+ *
+ * @return the topic value.
+ */
+ public String topic() {
+ return this.innerProperties() == null ? null : this.innerProperties().topic();
+ }
+
+ /**
+ * Set the topic property: Topic name.
+ *
+ * @param topic the topic value to set.
+ * @return the DaprSubscriptionInner object itself.
+ */
+ public DaprSubscriptionInner withTopic(String topic) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprSubscriptionProperties();
+ }
+ this.innerProperties().withTopic(topic);
+ return this;
+ }
+
+ /**
+ * Get the deadLetterTopic property: Deadletter topic name.
+ *
+ * @return the deadLetterTopic value.
+ */
+ public String deadLetterTopic() {
+ return this.innerProperties() == null ? null : this.innerProperties().deadLetterTopic();
+ }
+
+ /**
+ * Set the deadLetterTopic property: Deadletter topic name.
+ *
+ * @param deadLetterTopic the deadLetterTopic value to set.
+ * @return the DaprSubscriptionInner object itself.
+ */
+ public DaprSubscriptionInner withDeadLetterTopic(String deadLetterTopic) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprSubscriptionProperties();
+ }
+ this.innerProperties().withDeadLetterTopic(deadLetterTopic);
+ return this;
+ }
+
+ /**
+ * Get the routes property: Subscription routes.
+ *
+ * @return the routes value.
+ */
+ public DaprSubscriptionRoutes routes() {
+ return this.innerProperties() == null ? null : this.innerProperties().routes();
+ }
+
+ /**
+ * Set the routes property: Subscription routes.
+ *
+ * @param routes the routes value to set.
+ * @return the DaprSubscriptionInner object itself.
+ */
+ public DaprSubscriptionInner withRoutes(DaprSubscriptionRoutes routes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprSubscriptionProperties();
+ }
+ this.innerProperties().withRoutes(routes);
+ return this;
+ }
+
+ /**
+ * Get the scopes property: Application scopes to restrict the subscription to specific apps.
+ *
+ * @return the scopes value.
+ */
+ public List scopes() {
+ return this.innerProperties() == null ? null : this.innerProperties().scopes();
+ }
+
+ /**
+ * Set the scopes property: Application scopes to restrict the subscription to specific apps.
+ *
+ * @param scopes the scopes value to set.
+ * @return the DaprSubscriptionInner object itself.
+ */
+ public DaprSubscriptionInner withScopes(List scopes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprSubscriptionProperties();
+ }
+ this.innerProperties().withScopes(scopes);
+ return this;
+ }
+
+ /**
+ * Get the metadata property: Subscription metadata.
+ *
+ * @return the metadata value.
+ */
+ public Map metadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().metadata();
+ }
+
+ /**
+ * Set the metadata property: Subscription metadata.
+ *
+ * @param metadata the metadata value to set.
+ * @return the DaprSubscriptionInner object itself.
+ */
+ public DaprSubscriptionInner withMetadata(Map metadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprSubscriptionProperties();
+ }
+ this.innerProperties().withMetadata(metadata);
+ return this;
+ }
+
+ /**
+ * Get the bulkSubscribe property: Bulk subscription options.
+ *
+ * @return the bulkSubscribe value.
+ */
+ public DaprSubscriptionBulkSubscribeOptions bulkSubscribe() {
+ return this.innerProperties() == null ? null : this.innerProperties().bulkSubscribe();
+ }
+
+ /**
+ * Set the bulkSubscribe property: Bulk subscription options.
+ *
+ * @param bulkSubscribe the bulkSubscribe value to set.
+ * @return the DaprSubscriptionInner object itself.
+ */
+ public DaprSubscriptionInner withBulkSubscribe(DaprSubscriptionBulkSubscribeOptions bulkSubscribe) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DaprSubscriptionProperties();
+ }
+ this.innerProperties().withBulkSubscribe(bulkSubscribe);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSubscriptionProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSubscriptionProperties.java
new file mode 100644
index 0000000000000..accf3e0e98b7a
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DaprSubscriptionProperties.java
@@ -0,0 +1,218 @@
+// 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.DaprSubscriptionBulkSubscribeOptions;
+import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRoutes;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Dapr PubSub Event Subscription resource specific properties. */
+@Fluent
+public final class DaprSubscriptionProperties {
+ /*
+ * Dapr PubSub component name
+ */
+ @JsonProperty(value = "pubsubName")
+ private String pubsubName;
+
+ /*
+ * Topic name
+ */
+ @JsonProperty(value = "topic")
+ private String topic;
+
+ /*
+ * Deadletter topic name
+ */
+ @JsonProperty(value = "deadLetterTopic")
+ private String deadLetterTopic;
+
+ /*
+ * Subscription routes
+ */
+ @JsonProperty(value = "routes")
+ private DaprSubscriptionRoutes routes;
+
+ /*
+ * Application scopes to restrict the subscription to specific apps.
+ */
+ @JsonProperty(value = "scopes")
+ private List scopes;
+
+ /*
+ * Subscription metadata
+ */
+ @JsonProperty(value = "metadata")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map metadata;
+
+ /*
+ * Bulk subscription options
+ */
+ @JsonProperty(value = "bulkSubscribe")
+ private DaprSubscriptionBulkSubscribeOptions bulkSubscribe;
+
+ /** Creates an instance of DaprSubscriptionProperties class. */
+ public DaprSubscriptionProperties() {
+ }
+
+ /**
+ * Get the pubsubName property: Dapr PubSub component name.
+ *
+ * @return the pubsubName value.
+ */
+ public String pubsubName() {
+ return this.pubsubName;
+ }
+
+ /**
+ * Set the pubsubName property: Dapr PubSub component name.
+ *
+ * @param pubsubName the pubsubName value to set.
+ * @return the DaprSubscriptionProperties object itself.
+ */
+ public DaprSubscriptionProperties withPubsubName(String pubsubName) {
+ this.pubsubName = pubsubName;
+ return this;
+ }
+
+ /**
+ * Get the topic property: Topic name.
+ *
+ * @return the topic value.
+ */
+ public String topic() {
+ return this.topic;
+ }
+
+ /**
+ * Set the topic property: Topic name.
+ *
+ * @param topic the topic value to set.
+ * @return the DaprSubscriptionProperties object itself.
+ */
+ public DaprSubscriptionProperties withTopic(String topic) {
+ this.topic = topic;
+ return this;
+ }
+
+ /**
+ * Get the deadLetterTopic property: Deadletter topic name.
+ *
+ * @return the deadLetterTopic value.
+ */
+ public String deadLetterTopic() {
+ return this.deadLetterTopic;
+ }
+
+ /**
+ * Set the deadLetterTopic property: Deadletter topic name.
+ *
+ * @param deadLetterTopic the deadLetterTopic value to set.
+ * @return the DaprSubscriptionProperties object itself.
+ */
+ public DaprSubscriptionProperties withDeadLetterTopic(String deadLetterTopic) {
+ this.deadLetterTopic = deadLetterTopic;
+ return this;
+ }
+
+ /**
+ * Get the routes property: Subscription routes.
+ *
+ * @return the routes value.
+ */
+ public DaprSubscriptionRoutes routes() {
+ return this.routes;
+ }
+
+ /**
+ * Set the routes property: Subscription routes.
+ *
+ * @param routes the routes value to set.
+ * @return the DaprSubscriptionProperties object itself.
+ */
+ public DaprSubscriptionProperties withRoutes(DaprSubscriptionRoutes routes) {
+ this.routes = routes;
+ return this;
+ }
+
+ /**
+ * Get the scopes property: Application scopes to restrict the subscription to specific apps.
+ *
+ * @return the scopes value.
+ */
+ public List scopes() {
+ return this.scopes;
+ }
+
+ /**
+ * Set the scopes property: Application scopes to restrict the subscription to specific apps.
+ *
+ * @param scopes the scopes value to set.
+ * @return the DaprSubscriptionProperties object itself.
+ */
+ public DaprSubscriptionProperties withScopes(List scopes) {
+ this.scopes = scopes;
+ return this;
+ }
+
+ /**
+ * Get the metadata property: Subscription metadata.
+ *
+ * @return the metadata value.
+ */
+ public Map metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Set the metadata property: Subscription metadata.
+ *
+ * @param metadata the metadata value to set.
+ * @return the DaprSubscriptionProperties object itself.
+ */
+ public DaprSubscriptionProperties withMetadata(Map metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get the bulkSubscribe property: Bulk subscription options.
+ *
+ * @return the bulkSubscribe value.
+ */
+ public DaprSubscriptionBulkSubscribeOptions bulkSubscribe() {
+ return this.bulkSubscribe;
+ }
+
+ /**
+ * Set the bulkSubscribe property: Bulk subscription options.
+ *
+ * @param bulkSubscribe the bulkSubscribe value to set.
+ * @return the DaprSubscriptionProperties object itself.
+ */
+ public DaprSubscriptionProperties withBulkSubscribe(DaprSubscriptionBulkSubscribeOptions bulkSubscribe) {
+ this.bulkSubscribe = bulkSubscribe;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (routes() != null) {
+ routes().validate();
+ }
+ if (bulkSubscribe() != null) {
+ bulkSubscribe().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java
index 8bd178e635bb0..1c590f86793df 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/DiagnosticsInner.java
@@ -6,6 +6,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.DiagnosticsProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -18,6 +19,12 @@ public final class DiagnosticsInner extends ProxyResource {
@JsonProperty(value = "properties")
private DiagnosticsProperties 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 DiagnosticsInner class. */
public DiagnosticsInner() {
}
@@ -42,6 +49,15 @@ public DiagnosticsInner withProperties(DiagnosticsProperties 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;
+ }
+
/**
* Validates the instance.
*
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 897faf511a692..93cd42fe1d688 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
@@ -7,12 +7,14 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.AppInsightsConfiguration;
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.ManagedEnvironmentPropertiesPeerAuthentication;
+import com.azure.resourcemanager.appcontainers.models.OpenTelemetryConfiguration;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -230,6 +232,53 @@ public ManagedEnvironmentInner withAppLogsConfiguration(AppLogsConfiguration app
return this;
}
+ /**
+ * Get the appInsightsConfiguration property: Environment level Application Insights configuration.
+ *
+ * @return the appInsightsConfiguration value.
+ */
+ public AppInsightsConfiguration appInsightsConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().appInsightsConfiguration();
+ }
+
+ /**
+ * Set the appInsightsConfiguration property: Environment level Application Insights configuration.
+ *
+ * @param appInsightsConfiguration the appInsightsConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withAppInsightsConfiguration(AppInsightsConfiguration appInsightsConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withAppInsightsConfiguration(appInsightsConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the openTelemetryConfiguration property: Environment Open Telemetry configuration.
+ *
+ * @return the openTelemetryConfiguration value.
+ */
+ public OpenTelemetryConfiguration openTelemetryConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().openTelemetryConfiguration();
+ }
+
+ /**
+ * Set the openTelemetryConfiguration property: Environment Open Telemetry configuration.
+ *
+ * @param openTelemetryConfiguration the openTelemetryConfiguration value to set.
+ * @return the ManagedEnvironmentInner object itself.
+ */
+ public ManagedEnvironmentInner withOpenTelemetryConfiguration(
+ OpenTelemetryConfiguration openTelemetryConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagedEnvironmentProperties();
+ }
+ this.innerProperties().withOpenTelemetryConfiguration(openTelemetryConfiguration);
+ return this;
+ }
+
/**
* Get the zoneRedundant property: Whether or not this Managed Environment is zone-redundant.
*
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 f14479db3aa57..030cd0263c975 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
@@ -5,12 +5,14 @@
package com.azure.resourcemanager.appcontainers.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.appcontainers.models.AppInsightsConfiguration;
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.ManagedEnvironmentPropertiesPeerAuthentication;
+import com.azure.resourcemanager.appcontainers.models.OpenTelemetryConfiguration;
import com.azure.resourcemanager.appcontainers.models.VnetConfiguration;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -69,6 +71,18 @@ public final class ManagedEnvironmentProperties {
@JsonProperty(value = "appLogsConfiguration")
private AppLogsConfiguration appLogsConfiguration;
+ /*
+ * Environment level Application Insights configuration
+ */
+ @JsonProperty(value = "appInsightsConfiguration")
+ private AppInsightsConfiguration appInsightsConfiguration;
+
+ /*
+ * Environment Open Telemetry configuration
+ */
+ @JsonProperty(value = "openTelemetryConfiguration")
+ private OpenTelemetryConfiguration openTelemetryConfiguration;
+
/*
* Whether or not this Managed Environment is zone-redundant.
*/
@@ -245,6 +259,48 @@ public ManagedEnvironmentProperties withAppLogsConfiguration(AppLogsConfiguratio
return this;
}
+ /**
+ * Get the appInsightsConfiguration property: Environment level Application Insights configuration.
+ *
+ * @return the appInsightsConfiguration value.
+ */
+ public AppInsightsConfiguration appInsightsConfiguration() {
+ return this.appInsightsConfiguration;
+ }
+
+ /**
+ * Set the appInsightsConfiguration property: Environment level Application Insights configuration.
+ *
+ * @param appInsightsConfiguration the appInsightsConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withAppInsightsConfiguration(
+ AppInsightsConfiguration appInsightsConfiguration) {
+ this.appInsightsConfiguration = appInsightsConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the openTelemetryConfiguration property: Environment Open Telemetry configuration.
+ *
+ * @return the openTelemetryConfiguration value.
+ */
+ public OpenTelemetryConfiguration openTelemetryConfiguration() {
+ return this.openTelemetryConfiguration;
+ }
+
+ /**
+ * Set the openTelemetryConfiguration property: Environment Open Telemetry configuration.
+ *
+ * @param openTelemetryConfiguration the openTelemetryConfiguration value to set.
+ * @return the ManagedEnvironmentProperties object itself.
+ */
+ public ManagedEnvironmentProperties withOpenTelemetryConfiguration(
+ OpenTelemetryConfiguration openTelemetryConfiguration) {
+ this.openTelemetryConfiguration = openTelemetryConfiguration;
+ return this;
+ }
+
/**
* Get the zoneRedundant property: Whether or not this Managed Environment is zone-redundant.
*
@@ -412,6 +468,12 @@ public void validate() {
if (appLogsConfiguration() != null) {
appLogsConfiguration().validate();
}
+ if (appInsightsConfiguration() != null) {
+ appInsightsConfiguration().validate();
+ }
+ if (openTelemetryConfiguration() != null) {
+ openTelemetryConfiguration().validate();
+ }
if (customDomainConfiguration() != null) {
customDomainConfiguration().validate();
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStorageInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStorageInner.java
index 5b01b9826d61f..cf04d189ef98f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStorageInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ManagedEnvironmentStorageInner.java
@@ -6,6 +6,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.ManagedEnvironmentStorageProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -18,6 +19,12 @@ public final class ManagedEnvironmentStorageInner extends ProxyResource {
@JsonProperty(value = "properties")
private ManagedEnvironmentStorageProperties 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 ManagedEnvironmentStorageInner class. */
public ManagedEnvironmentStorageInner() {
}
@@ -42,6 +49,15 @@ public ManagedEnvironmentStorageInner withProperties(ManagedEnvironmentStoragePr
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;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PatchCollectionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PatchCollectionInner.java
new file mode 100644
index 0000000000000..632c59806f8d5
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PatchCollectionInner.java
@@ -0,0 +1,87 @@
+// 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 SourceToCloud patch collection. */
+@Fluent
+public final class PatchCollectionInner {
+ /*
+ * Collection of patch resources.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /*
+ * the link to the next page of items
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /** Creates an instance of PatchCollectionInner class. */
+ public PatchCollectionInner() {
+ }
+
+ /**
+ * Get the value property: Collection of patch resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Collection of patch resources.
+ *
+ * @param value the value value to set.
+ * @return the PatchCollectionInner object itself.
+ */
+ public PatchCollectionInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: the link to the next page of items.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: the link to the next page of items.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the PatchCollectionInner object itself.
+ */
+ public PatchCollectionInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ 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 PatchCollectionInner"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PatchCollectionInner.class);
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PatchResourceInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PatchResourceInner.java
new file mode 100644
index 0000000000000..c4ff8aa2001a0
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/PatchResourceInner.java
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appcontainers.models.PatchProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Container App Patch. */
+@Immutable
+public final class PatchResourceInner extends ProxyResource {
+ /*
+ * Properties that describes current states of the patch resource.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private PatchProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of PatchResourceInner class. */
+ public PatchResourceInner() {
+ }
+
+ /**
+ * Get the properties property: Properties that describes current states of the patch resource.
+ *
+ * @return the properties value.
+ */
+ public PatchProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ReplicaInner.java
index 503299ffa44f8..4238788b5f097 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
@@ -6,6 +6,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;
@@ -21,6 +22,12 @@ public final class ReplicaInner extends ProxyResource {
@JsonProperty(value = "properties")
private ReplicaProperties 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 ReplicaInner class. */
public ReplicaInner() {
}
@@ -34,6 +41,15 @@ private ReplicaProperties 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 createdTime property: Timestamp describing when the pod was created by controller.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
index 178306f4e3f2e..5d542a067ba11 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/RevisionInner.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.models.RevisionHealthState;
import com.azure.resourcemanager.appcontainers.models.RevisionProvisioningState;
import com.azure.resourcemanager.appcontainers.models.RevisionRunningState;
@@ -22,6 +23,12 @@ public final class RevisionInner extends ProxyResource {
@JsonProperty(value = "properties")
private RevisionProperties 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 RevisionInner class. */
public RevisionInner() {
}
@@ -35,6 +42,15 @@ private RevisionProperties 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 createdTime property: Timestamp describing when the revision was created by controller.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SourceControlInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SourceControlInner.java
index 74f9577011f61..401141b646ef0 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SourceControlInner.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/SourceControlInner.java
@@ -6,6 +6,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.GithubActionConfiguration;
import com.azure.resourcemanager.appcontainers.models.SourceControlOperationState;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -19,6 +20,12 @@ public final class SourceControlInner extends ProxyResource {
@JsonProperty(value = "properties")
private SourceControlProperties 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 SourceControlInner class. */
public SourceControlInner() {
}
@@ -32,6 +39,15 @@ private SourceControlProperties 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 operationState property: Current provisioning State of the operation.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/UsageInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/UsageInner.java
new file mode 100644
index 0000000000000..f3e4a57c8db8f
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/UsageInner.java
@@ -0,0 +1,140 @@
+// 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.UsageName;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes Compute Resource Usage. */
+@Fluent
+public final class UsageInner {
+ /*
+ * An enum describing the unit of usage measurement.
+ */
+ @JsonProperty(value = "unit", required = true)
+ private String unit = "Count";
+
+ /*
+ * The current usage of the resource.
+ */
+ @JsonProperty(value = "currentValue", required = true)
+ private int currentValue;
+
+ /*
+ * The maximum permitted usage of the resource.
+ */
+ @JsonProperty(value = "limit", required = true)
+ private long limit;
+
+ /*
+ * The name of the type of usage.
+ */
+ @JsonProperty(value = "name", required = true)
+ private UsageName name;
+
+ /** Creates an instance of UsageInner class. */
+ public UsageInner() {
+ unit = "Count";
+ }
+
+ /**
+ * Get the unit property: An enum describing the unit of usage measurement.
+ *
+ * @return the unit value.
+ */
+ public String unit() {
+ return this.unit;
+ }
+
+ /**
+ * Set the unit property: An enum describing the unit of usage measurement.
+ *
+ * @param unit the unit value to set.
+ * @return the UsageInner object itself.
+ */
+ public UsageInner withUnit(String unit) {
+ this.unit = unit;
+ return this;
+ }
+
+ /**
+ * Get the currentValue property: The current usage of the resource.
+ *
+ * @return the currentValue value.
+ */
+ public int currentValue() {
+ return this.currentValue;
+ }
+
+ /**
+ * Set the currentValue property: The current usage of the resource.
+ *
+ * @param currentValue the currentValue value to set.
+ * @return the UsageInner object itself.
+ */
+ public UsageInner withCurrentValue(int currentValue) {
+ this.currentValue = currentValue;
+ return this;
+ }
+
+ /**
+ * Get the limit property: The maximum permitted usage of the resource.
+ *
+ * @return the limit value.
+ */
+ public long limit() {
+ return this.limit;
+ }
+
+ /**
+ * Set the limit property: The maximum permitted usage of the resource.
+ *
+ * @param limit the limit value to set.
+ * @return the UsageInner object itself.
+ */
+ public UsageInner withLimit(long limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ /**
+ * Get the name property: The name of the type of usage.
+ *
+ * @return the name value.
+ */
+ public UsageName name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the type of usage.
+ *
+ * @param name the name value to set.
+ * @return the UsageInner object itself.
+ */
+ public UsageInner withName(UsageName name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property name in model UsageInner"));
+ } else {
+ name().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(UsageInner.class);
+}
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 825cf626a1bfd..9a0c03e9dead0 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
@@ -6,6 +6,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.WorkloadProfileStatesProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -18,6 +19,12 @@ public final class WorkloadProfileStatesInner extends ProxyResource {
@JsonProperty(value = "properties")
private WorkloadProfileStatesProperties 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 WorkloadProfileStatesInner class. */
public WorkloadProfileStatesInner() {
}
@@ -42,6 +49,15 @@ public WorkloadProfileStatesInner withProperties(WorkloadProfileStatesProperties
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;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
index 9db849c965eb3..b6ea9f2a352ae 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AuthConfigImpl.java
@@ -9,6 +9,7 @@
import com.azure.resourcemanager.appcontainers.fluent.models.AuthConfigInner;
import com.azure.resourcemanager.appcontainers.models.AuthConfig;
import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
+import com.azure.resourcemanager.appcontainers.models.EncryptionSettings;
import com.azure.resourcemanager.appcontainers.models.GlobalValidation;
import com.azure.resourcemanager.appcontainers.models.HttpSettings;
import com.azure.resourcemanager.appcontainers.models.IdentityProviders;
@@ -55,6 +56,10 @@ public HttpSettings httpSettings() {
return this.innerModel().httpSettings();
}
+ public EncryptionSettings encryptionSettings() {
+ return this.innerModel().encryptionSettings();
+ }
+
public String resourceGroupName() {
return resourceGroupName;
}
@@ -186,4 +191,9 @@ public AuthConfigImpl withHttpSettings(HttpSettings httpSettings) {
this.innerModel().withHttpSettings(httpSettings);
return this;
}
+
+ public AuthConfigImpl withEncryptionSettings(EncryptionSettings encryptionSettings) {
+ this.innerModel().withEncryptionSettings(encryptionSettings);
+ return this;
+ }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfileImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfileImpl.java
index c43cffd130a17..6426657e43c34 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfileImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/AvailableWorkloadProfileImpl.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.appcontainers.implementation;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.fluent.models.AvailableWorkloadProfileInner;
import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfile;
import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties;
@@ -40,6 +41,10 @@ public AvailableWorkloadProfileProperties properties() {
return this.innerModel().properties();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public AvailableWorkloadProfileInner innerModel() {
return this.innerObject;
}
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 0000000000000..5a530ff842636
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildResourceImpl.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
+import com.azure.resourcemanager.appcontainers.models.BuildConfiguration;
+import com.azure.resourcemanager.appcontainers.models.BuildProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.BuildResource;
+import com.azure.resourcemanager.appcontainers.models.BuildStatus;
+import com.azure.resourcemanager.appcontainers.models.BuildToken;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage;
+
+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 BuildProvisioningState 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 logStreamEndpoint() {
+ return this.innerModel().logStreamEndpoint();
+ }
+
+ public String tokenEndpoint() {
+ return this.innerModel().tokenEndpoint();
+ }
+
+ 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 Response listAuthTokenWithResponse(Context context) {
+ return serviceManager.builds().listAuthTokenWithResponse(resourceGroupName, builderName, buildName, context);
+ }
+
+ public BuildToken listAuthToken() {
+ return serviceManager.builds().listAuthToken(resourceGroupName, builderName, buildName);
+ }
+
+ 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/BuildTokenImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildTokenImpl.java
new file mode 100644
index 0000000000000..629c15fc919d5
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildTokenImpl.java
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildTokenInner;
+import com.azure.resourcemanager.appcontainers.models.BuildToken;
+import java.time.OffsetDateTime;
+
+public final class BuildTokenImpl implements BuildToken {
+ private BuildTokenInner innerObject;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ BuildTokenImpl(
+ BuildTokenInner innerObject, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String token() {
+ return this.innerModel().token();
+ }
+
+ public OffsetDateTime expires() {
+ return this.innerModel().expires();
+ }
+
+ public BuildTokenInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.java
new file mode 100644
index 0000000000000..9457242585758
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuilderResourceImpl.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.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.BuilderProvisioningState;
+import com.azure.resourcemanager.appcontainers.models.BuilderResource;
+import com.azure.resourcemanager.appcontainers.models.BuilderResourceUpdate;
+import com.azure.resourcemanager.appcontainers.models.ContainerRegistry;
+import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity;
+import java.util.Collections;
+import java.util.List;
+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 BuilderProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String environmentId() {
+ return this.innerModel().environmentId();
+ }
+
+ public List containerRegistries() {
+ List inner = this.innerModel().containerRegistries();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ 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;
+ }
+ }
+
+ public BuilderResourceImpl withContainerRegistries(List containerRegistries) {
+ this.innerModel().withContainerRegistries(containerRegistries);
+ 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 0000000000000..a1a7a4d7563eb
--- /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 0000000000000..4d4d2f1276700
--- /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 0000000000000..2eb2e1df76423
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsClientImpl.java
@@ -0,0 +1,1286 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appcontainers.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.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.fluent.models.BuildTokenInner;
+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"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}/listAuthToken")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listAuthToken(
+ @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>> deleteWithResponseAsync(
+ 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
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context);
+ }
+
+ /**
+ * 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String builderName, String buildName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, builderName, buildName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, builderName, buildName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * 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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String builderName, String buildName) {
+ return this.beginDeleteAsync(resourceGroupName, builderName, buildName).getSyncPoller();
+ }
+
+ /**
+ * 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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, builderName, buildName, context).getSyncPoller();
+ }
+
+ /**
+ * 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String builderName, String buildName) {
+ return beginDeleteAsync(resourceGroupName, builderName, buildName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String builderName, String buildName, Context context) {
+ return beginDeleteAsync(resourceGroupName, builderName, buildName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String builderName, String buildName) {
+ deleteAsync(resourceGroupName, builderName, buildName).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.
+ * @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, String buildName, Context context) {
+ deleteAsync(resourceGroupName, builderName, buildName, context).block();
+ }
+
+ /**
+ * Gets the token used to connect to the endpoint where source code can be uploaded for a build.
+ *
+ * @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 token used to connect to the endpoint where source code can be uploaded for a build along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAuthTokenWithResponseAsync(
+ 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
+ .listAuthToken(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the token used to connect to the endpoint where source code can be uploaded for a build.
+ *
+ * @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 token used to connect to the endpoint where source code can be uploaded for a build along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAuthTokenWithResponseAsync(
+ 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
+ .listAuthToken(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ builderName,
+ buildName,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the token used to connect to the endpoint where source code can be uploaded for a build.
+ *
+ * @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 token used to connect to the endpoint where source code can be uploaded for a build on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listAuthTokenAsync(String resourceGroupName, String builderName, String buildName) {
+ return listAuthTokenWithResponseAsync(resourceGroupName, builderName, buildName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets the token used to connect to the endpoint where source code can be uploaded for a build.
+ *
+ * @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 token used to connect to the endpoint where source code can be uploaded for a build along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listAuthTokenWithResponse(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ return listAuthTokenWithResponseAsync(resourceGroupName, builderName, buildName, context).block();
+ }
+
+ /**
+ * Gets the token used to connect to the endpoint where source code can be uploaded for a build.
+ *
+ * @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 token used to connect to the endpoint where source code can be uploaded for a build.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BuildTokenInner listAuthToken(String resourceGroupName, String builderName, String buildName) {
+ return listAuthTokenWithResponse(resourceGroupName, builderName, buildName, Context.NONE).getValue();
+ }
+
+ /**
+ * 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 BuildResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByBuilderResourceNextSinglePageAsync(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.listByBuilderResourceNext(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 BuildResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByBuilderResourceNextSinglePageAsync(
+ 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
+ .listByBuilderResourceNext(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/BuildsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsImpl.java
new file mode 100644
index 0000000000000..634f9ebba9927
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/BuildsImpl.java
@@ -0,0 +1,216 @@
+// 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.BuildsClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildResourceInner;
+import com.azure.resourcemanager.appcontainers.fluent.models.BuildTokenInner;
+import com.azure.resourcemanager.appcontainers.models.BuildResource;
+import com.azure.resourcemanager.appcontainers.models.BuildToken;
+import com.azure.resourcemanager.appcontainers.models.Builds;
+
+public final class BuildsImpl implements Builds {
+ private static final ClientLogger LOGGER = new ClientLogger(BuildsImpl.class);
+
+ private final BuildsClient innerClient;
+
+ private final com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager;
+
+ public BuildsImpl(
+ BuildsClient innerClient, com.azure.resourcemanager.appcontainers.ContainerAppsApiManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByBuilderResource(String resourceGroupName, String builderName) {
+ PagedIterable inner =
+ this.serviceClient().listByBuilderResource(resourceGroupName, builderName);
+ return Utils.mapPage(inner, inner1 -> new BuildResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByBuilderResource(
+ String resourceGroupName, String builderName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByBuilderResource(resourceGroupName, builderName, context);
+ return Utils.mapPage(inner, inner1 -> new BuildResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, builderName, buildName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new BuildResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public BuildResource get(String resourceGroupName, String builderName, String buildName) {
+ BuildResourceInner inner = this.serviceClient().get(resourceGroupName, builderName, buildName);
+ if (inner != null) {
+ return new BuildResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String builderName, String buildName) {
+ this.serviceClient().delete(resourceGroupName, builderName, buildName);
+ }
+
+ public void delete(String resourceGroupName, String builderName, String buildName, Context context) {
+ this.serviceClient().delete(resourceGroupName, builderName, buildName, context);
+ }
+
+ public Response listAuthTokenWithResponse(
+ String resourceGroupName, String builderName, String buildName, Context context) {
+ Response inner =
+ this.serviceClient().listAuthTokenWithResponse(resourceGroupName, builderName, buildName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new BuildTokenImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public BuildToken listAuthToken(String resourceGroupName, String builderName, String buildName) {
+ BuildTokenInner inner = this.serviceClient().listAuthToken(resourceGroupName, builderName, buildName);
+ if (inner != null) {
+ return new BuildTokenImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public BuildResource 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)));
+ }
+ String buildName = Utils.getValueFromIdByName(id, "builds");
+ if (buildName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builds'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, builderName, buildName, 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)));
+ }
+ String buildName = Utils.getValueFromIdByName(id, "builds");
+ if (buildName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builds'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, builderName, buildName, 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)));
+ }
+ String buildName = Utils.getValueFromIdByName(id, "builds");
+ if (buildName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builds'.", id)));
+ }
+ this.delete(resourceGroupName, builderName, buildName, 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)));
+ }
+ String buildName = Utils.getValueFromIdByName(id, "builds");
+ if (buildName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'builds'.", id)));
+ }
+ this.delete(resourceGroupName, builderName, buildName, context);
+ }
+
+ private BuildsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager() {
+ return this.serviceManager;
+ }
+
+ public BuildResourceImpl define(String name) {
+ return new BuildResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
index 4e0adba8acb47..6b49e3cdead7f 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ConnectedEnvironmentStorageImpl.java
@@ -4,6 +4,7 @@
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.ConnectedEnvironmentStorageInner;
import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorage;
@@ -31,6 +32,10 @@ public ConnectedEnvironmentStorageProperties properties() {
return this.innerModel().properties();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String resourceGroupName() {
return resourceGroupName;
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
index 3289bbba92736..11f2e9b54ba7b 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java
@@ -24,6 +24,8 @@
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.appcontainers.fluent.AvailableWorkloadProfilesClient;
import com.azure.resourcemanager.appcontainers.fluent.BillingMetersClient;
+import com.azure.resourcemanager.appcontainers.fluent.BuildersClient;
+import com.azure.resourcemanager.appcontainers.fluent.BuildsClient;
import com.azure.resourcemanager.appcontainers.fluent.CertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsCertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.ConnectedEnvironmentsClient;
@@ -36,17 +38,22 @@
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsRevisionReplicasClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsRevisionsClient;
import com.azure.resourcemanager.appcontainers.fluent.ContainerAppsSourceControlsClient;
+import com.azure.resourcemanager.appcontainers.fluent.DaprComponentResiliencyPoliciesClient;
import com.azure.resourcemanager.appcontainers.fluent.DaprComponentsClient;
+import com.azure.resourcemanager.appcontainers.fluent.DaprSubscriptionsClient;
import com.azure.resourcemanager.appcontainers.fluent.JobsClient;
import com.azure.resourcemanager.appcontainers.fluent.JobsExecutionsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedCertificatesClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentDiagnosticsClient;
+import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentUsagesClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsDiagnosticsClient;
import com.azure.resourcemanager.appcontainers.fluent.ManagedEnvironmentsStoragesClient;
import com.azure.resourcemanager.appcontainers.fluent.NamespacesClient;
import com.azure.resourcemanager.appcontainers.fluent.OperationsClient;
+import com.azure.resourcemanager.appcontainers.fluent.PatchesClient;
import com.azure.resourcemanager.appcontainers.fluent.ResourceProvidersClient;
+import com.azure.resourcemanager.appcontainers.fluent.UsagesClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -167,6 +174,30 @@ public BillingMetersClient getBillingMeters() {
return this.billingMeters;
}
+ /** The BuildersClient object to access its operations. */
+ private final BuildersClient builders;
+
+ /**
+ * Gets the BuildersClient object to access its operations.
+ *
+ * @return the BuildersClient object.
+ */
+ public BuildersClient getBuilders() {
+ return this.builders;
+ }
+
+ /** The BuildsClient object to access its operations. */
+ private final BuildsClient builds;
+
+ /**
+ * Gets the BuildsClient object to access its operations.
+ *
+ * @return the BuildsClient object.
+ */
+ public BuildsClient getBuilds() {
+ return this.builds;
+ }
+
/** The ConnectedEnvironmentsClient object to access its operations. */
private final ConnectedEnvironmentsClient connectedEnvironments;
@@ -395,6 +426,30 @@ public DaprComponentsClient getDaprComponents() {
return this.daprComponents;
}
+ /** The DaprComponentResiliencyPoliciesClient object to access its operations. */
+ private final DaprComponentResiliencyPoliciesClient daprComponentResiliencyPolicies;
+
+ /**
+ * Gets the DaprComponentResiliencyPoliciesClient object to access its operations.
+ *
+ * @return the DaprComponentResiliencyPoliciesClient object.
+ */
+ public DaprComponentResiliencyPoliciesClient getDaprComponentResiliencyPolicies() {
+ return this.daprComponentResiliencyPolicies;
+ }
+
+ /** The DaprSubscriptionsClient object to access its operations. */
+ private final DaprSubscriptionsClient daprSubscriptions;
+
+ /**
+ * Gets the DaprSubscriptionsClient object to access its operations.
+ *
+ * @return the DaprSubscriptionsClient object.
+ */
+ public DaprSubscriptionsClient getDaprSubscriptions() {
+ return this.daprSubscriptions;
+ }
+
/** The ManagedEnvironmentsStoragesClient object to access its operations. */
private final ManagedEnvironmentsStoragesClient managedEnvironmentsStorages;
@@ -407,6 +462,18 @@ public ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages() {
return this.managedEnvironmentsStorages;
}
+ /** The PatchesClient object to access its operations. */
+ private final PatchesClient patches;
+
+ /**
+ * Gets the PatchesClient object to access its operations.
+ *
+ * @return the PatchesClient object.
+ */
+ public PatchesClient getPatches() {
+ return this.patches;
+ }
+
/** The ContainerAppsSourceControlsClient object to access its operations. */
private final ContainerAppsSourceControlsClient containerAppsSourceControls;
@@ -419,6 +486,30 @@ public ContainerAppsSourceControlsClient getContainerAppsSourceControls() {
return this.containerAppsSourceControls;
}
+ /** The UsagesClient object to access its operations. */
+ private final UsagesClient usages;
+
+ /**
+ * Gets the UsagesClient object to access its operations.
+ *
+ * @return the UsagesClient object.
+ */
+ public UsagesClient getUsages() {
+ return this.usages;
+ }
+
+ /** The ManagedEnvironmentUsagesClient object to access its operations. */
+ private final ManagedEnvironmentUsagesClient managedEnvironmentUsages;
+
+ /**
+ * Gets the ManagedEnvironmentUsagesClient object to access its operations.
+ *
+ * @return the ManagedEnvironmentUsagesClient object.
+ */
+ public ManagedEnvironmentUsagesClient getManagedEnvironmentUsages() {
+ return this.managedEnvironmentUsages;
+ }
+
/**
* Initializes an instance of ContainerAppsApiClient client.
*
@@ -441,10 +532,12 @@ public ContainerAppsSourceControlsClient getContainerAppsSourceControls() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-05-01";
+ this.apiVersion = "2023-08-01-preview";
this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsClientImpl(this);
this.availableWorkloadProfiles = new AvailableWorkloadProfilesClientImpl(this);
this.billingMeters = new BillingMetersClientImpl(this);
+ this.builders = new BuildersClientImpl(this);
+ this.builds = new BuildsClientImpl(this);
this.connectedEnvironments = new ConnectedEnvironmentsClientImpl(this);
this.connectedEnvironmentsCertificates = new ConnectedEnvironmentsCertificatesClientImpl(this);
this.connectedEnvironmentsDaprComponents = new ConnectedEnvironmentsDaprComponentsClientImpl(this);
@@ -464,8 +557,13 @@ public ContainerAppsSourceControlsClient getContainerAppsSourceControls() {
this.managedCertificates = new ManagedCertificatesClientImpl(this);
this.namespaces = new NamespacesClientImpl(this);
this.daprComponents = new DaprComponentsClientImpl(this);
+ this.daprComponentResiliencyPolicies = new DaprComponentResiliencyPoliciesClientImpl(this);
+ this.daprSubscriptions = new DaprSubscriptionsClientImpl(this);
this.managedEnvironmentsStorages = new ManagedEnvironmentsStoragesClientImpl(this);
+ this.patches = new PatchesClientImpl(this);
this.containerAppsSourceControls = new ContainerAppsSourceControlsClientImpl(this);
+ this.usages = new UsagesClientImpl(this);
+ this.managedEnvironmentUsages = new ManagedEnvironmentUsagesClientImpl(this);
}
/**
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java
index 9afafdafa4c73..f397f21dd8e33 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentImpl.java
@@ -5,9 +5,11 @@
package com.azure.resourcemanager.appcontainers.implementation;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentInner;
import com.azure.resourcemanager.appcontainers.models.DaprComponent;
+import com.azure.resourcemanager.appcontainers.models.DaprComponentServiceBinding;
import com.azure.resourcemanager.appcontainers.models.DaprMetadata;
import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection;
import com.azure.resourcemanager.appcontainers.models.Secret;
@@ -31,6 +33,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String componentType() {
return this.innerModel().componentType();
}
@@ -78,6 +84,15 @@ public List scopes() {
}
}
+ public List serviceComponentBind() {
+ List inner = this.innerModel().serviceComponentBind();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
public String resourceGroupName() {
return resourceGroupName;
}
@@ -238,4 +253,9 @@ public DaprComponentImpl withScopes(List scopes) {
this.innerModel().withScopes(scopes);
return this;
}
+
+ public DaprComponentImpl withServiceComponentBind(List serviceComponentBind) {
+ this.innerModel().withServiceComponentBind(serviceComponentBind);
+ return this;
+ }
}
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentResiliencyPoliciesClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentResiliencyPoliciesClientImpl.java
new file mode 100644
index 0000000000000..9e84c0bde091a
--- /dev/null
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/DaprComponentResiliencyPoliciesClientImpl.java
@@ -0,0 +1,1005 @@
+// 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.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.appcontainers.fluent.DaprComponentResiliencyPoliciesClient;
+import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentResiliencyPolicyInner;
+import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPoliciesCollection;
+import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in DaprComponentResiliencyPoliciesClient. */
+public final class DaprComponentResiliencyPoliciesClientImpl implements DaprComponentResiliencyPoliciesClient {
+ /** The proxy service used to perform REST calls. */
+ private final DaprComponentResiliencyPoliciesService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerAppsApiClientImpl client;
+
+ /**
+ * Initializes an instance of DaprComponentResiliencyPoliciesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DaprComponentResiliencyPoliciesClientImpl(ContainerAppsApiClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ DaprComponentResiliencyPoliciesService.class,
+ client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerAppsApiClientDaprComponentResiliencyPolicies to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerAppsApiClie")
+ public interface DaprComponentResiliencyPoliciesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("componentName") String componentName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("componentName") String componentName,
+ @PathParam("name") String name,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("componentName") String componentName,
+ @PathParam("name") String name,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DaprComponentResiliencyPolicyInner daprComponentResiliencyPolicyEnvelope,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("environmentName") String environmentName,
+ @PathParam("componentName") String componentName,
+ @PathParam("name") String name,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the resiliency policies for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the resiliency policies for a Dapr component along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String environmentName, String componentName) {
+ 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 (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ componentName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the resiliency policies for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 resiliency policies for a Dapr component along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String environmentName, String componentName, 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 (environmentName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
+ }
+ if (componentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter componentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ environmentName,
+ componentName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the resiliency policies for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the resiliency policies for a Dapr component as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String environmentName, String componentName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, environmentName, componentName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get the resiliency policies for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 resiliency policies for a Dapr component as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String environmentName, String componentName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, environmentName, componentName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get the resiliency policies for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the resiliency policies for a Dapr component as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String environmentName, String componentName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, environmentName, componentName));
+ }
+
+ /**
+ * Get the resiliency policies for a Dapr component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param environmentName Name of the Managed Environment.
+ * @param componentName Name of the Dapr Component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 resiliency policies for a Dapr component as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable