diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index d2ece6aac488..9dacb8a80f13 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -318,6 +318,7 @@ com.azure.resourcemanager:azure-resourcemanager-mysqlflexibleserver;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-baremetalinfrastructure;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-quota;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-extendedlocation;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-containerregistry-generated;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/CHANGELOG.md b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/CHANGELOG.md
new file mode 100644
index 000000000000..e251816cad25
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-09-30)
+
+- Azure Resource Manager ContainerRegistry client library for Java. This package contains Microsoft Azure SDK for ContainerRegistry Management SDK. Package tag package-2021-08-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/README.md b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/README.md
new file mode 100644
index 000000000000..e6d853eb3953
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/README.md
@@ -0,0 +1,101 @@
+# Azure Resource Manager ContainerRegistry client library for Java
+
+Azure Resource Manager ContainerRegistry client library for Java.
+
+This package contains Microsoft Azure SDK for ContainerRegistry Management SDK. Package tag package-2021-08-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-containerregistry-generated;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-containerregistry-generated
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+ContainerRegistryManager manager = ContainerRegistryManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/pom.xml b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/pom.xml
new file mode 100644
index 000000000000..335562413756
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/pom.xml
@@ -0,0 +1,86 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-containerregistry-generated
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for ContainerRegistry Management
+ This package contains Microsoft Azure SDK for ContainerRegistry Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-08-preview.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core
+ 1.20.0
+
+
+ com.azure
+ azure-core-management
+ 1.4.1
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.7
+
+ true
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
+
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/ContainerRegistryManager.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/ContainerRegistryManager.java
new file mode 100644
index 000000000000..48b70467e23f
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/ContainerRegistryManager.java
@@ -0,0 +1,396 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.fluent.ContainerRegistryManagementClient;
+import com.azure.resourcemanager.containerregistry.generated.implementation.AgentPoolsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ConnectedRegistriesImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ContainerRegistryManagementClientBuilder;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ExportPipelinesImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ImportPipelinesImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.OperationsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.PipelineRunsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.RegistriesImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ReplicationsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.RunsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.ScopeMapsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.TaskRunsImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.TasksImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.TokensImpl;
+import com.azure.resourcemanager.containerregistry.generated.implementation.WebhooksImpl;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPools;
+import com.azure.resourcemanager.containerregistry.generated.models.ConnectedRegistries;
+import com.azure.resourcemanager.containerregistry.generated.models.ExportPipelines;
+import com.azure.resourcemanager.containerregistry.generated.models.ImportPipelines;
+import com.azure.resourcemanager.containerregistry.generated.models.Operations;
+import com.azure.resourcemanager.containerregistry.generated.models.PipelineRuns;
+import com.azure.resourcemanager.containerregistry.generated.models.PrivateEndpointConnections;
+import com.azure.resourcemanager.containerregistry.generated.models.Registries;
+import com.azure.resourcemanager.containerregistry.generated.models.Replications;
+import com.azure.resourcemanager.containerregistry.generated.models.Runs;
+import com.azure.resourcemanager.containerregistry.generated.models.ScopeMaps;
+import com.azure.resourcemanager.containerregistry.generated.models.TaskRuns;
+import com.azure.resourcemanager.containerregistry.generated.models.Tasks;
+import com.azure.resourcemanager.containerregistry.generated.models.Tokens;
+import com.azure.resourcemanager.containerregistry.generated.models.Webhooks;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to ContainerRegistryManager. */
+public final class ContainerRegistryManager {
+ private ConnectedRegistries connectedRegistries;
+
+ private ExportPipelines exportPipelines;
+
+ private Registries registries;
+
+ private ImportPipelines importPipelines;
+
+ private Operations operations;
+
+ private PipelineRuns pipelineRuns;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private Replications replications;
+
+ private ScopeMaps scopeMaps;
+
+ private Tokens tokens;
+
+ private Webhooks webhooks;
+
+ private AgentPools agentPools;
+
+ private Runs runs;
+
+ private TaskRuns taskRuns;
+
+ private Tasks tasks;
+
+ private final ContainerRegistryManagementClient clientObject;
+
+ private ContainerRegistryManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new ContainerRegistryManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of ContainerRegistry service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ContainerRegistry service API instance.
+ */
+ public static ContainerRegistryManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create ContainerRegistryManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new ContainerRegistryManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of ContainerRegistry service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ContainerRegistry service API instance.
+ */
+ public ContainerRegistryManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.containerregistry.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies);
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ContainerRegistryManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of ConnectedRegistries. */
+ public ConnectedRegistries connectedRegistries() {
+ if (this.connectedRegistries == null) {
+ this.connectedRegistries = new ConnectedRegistriesImpl(clientObject.getConnectedRegistries(), this);
+ }
+ return connectedRegistries;
+ }
+
+ /** @return Resource collection API of ExportPipelines. */
+ public ExportPipelines exportPipelines() {
+ if (this.exportPipelines == null) {
+ this.exportPipelines = new ExportPipelinesImpl(clientObject.getExportPipelines(), this);
+ }
+ return exportPipelines;
+ }
+
+ /** @return Resource collection API of Registries. */
+ public Registries registries() {
+ if (this.registries == null) {
+ this.registries = new RegistriesImpl(clientObject.getRegistries(), this);
+ }
+ return registries;
+ }
+
+ /** @return Resource collection API of ImportPipelines. */
+ public ImportPipelines importPipelines() {
+ if (this.importPipelines == null) {
+ this.importPipelines = new ImportPipelinesImpl(clientObject.getImportPipelines(), this);
+ }
+ return importPipelines;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of PipelineRuns. */
+ public PipelineRuns pipelineRuns() {
+ if (this.pipelineRuns == null) {
+ this.pipelineRuns = new PipelineRunsImpl(clientObject.getPipelineRuns(), this);
+ }
+ return pipelineRuns;
+ }
+
+ /** @return Resource collection API of PrivateEndpointConnections. */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /** @return Resource collection API of Replications. */
+ public Replications replications() {
+ if (this.replications == null) {
+ this.replications = new ReplicationsImpl(clientObject.getReplications(), this);
+ }
+ return replications;
+ }
+
+ /** @return Resource collection API of ScopeMaps. */
+ public ScopeMaps scopeMaps() {
+ if (this.scopeMaps == null) {
+ this.scopeMaps = new ScopeMapsImpl(clientObject.getScopeMaps(), this);
+ }
+ return scopeMaps;
+ }
+
+ /** @return Resource collection API of Tokens. */
+ public Tokens tokens() {
+ if (this.tokens == null) {
+ this.tokens = new TokensImpl(clientObject.getTokens(), this);
+ }
+ return tokens;
+ }
+
+ /** @return Resource collection API of Webhooks. */
+ public Webhooks webhooks() {
+ if (this.webhooks == null) {
+ this.webhooks = new WebhooksImpl(clientObject.getWebhooks(), this);
+ }
+ return webhooks;
+ }
+
+ /** @return Resource collection API of AgentPools. */
+ public AgentPools agentPools() {
+ if (this.agentPools == null) {
+ this.agentPools = new AgentPoolsImpl(clientObject.getAgentPools(), this);
+ }
+ return agentPools;
+ }
+
+ /** @return Resource collection API of Runs. */
+ public Runs runs() {
+ if (this.runs == null) {
+ this.runs = new RunsImpl(clientObject.getRuns(), this);
+ }
+ return runs;
+ }
+
+ /** @return Resource collection API of TaskRuns. */
+ public TaskRuns taskRuns() {
+ if (this.taskRuns == null) {
+ this.taskRuns = new TaskRunsImpl(clientObject.getTaskRuns(), this);
+ }
+ return taskRuns;
+ }
+
+ /** @return Resource collection API of Tasks. */
+ public Tasks tasks() {
+ if (this.tasks == null) {
+ this.tasks = new TasksImpl(clientObject.getTasks(), this);
+ }
+ return tasks;
+ }
+
+ /**
+ * @return Wrapped service client ContainerRegistryManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ */
+ public ContainerRegistryManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/AgentPoolsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/AgentPoolsClient.java
new file mode 100644
index 000000000000..8c6df16dd11d
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/AgentPoolsClient.java
@@ -0,0 +1,309 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.AgentPoolInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.AgentPoolQueueStatusInner;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPoolUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in AgentPoolsClient. */
+public interface AgentPoolsClient {
+ /**
+ * Gets the detailed information for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner get(String resourceGroupName, String registryName, String agentPoolName);
+
+ /**
+ * Gets the detailed information for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String agentPoolName, Context context);
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AgentPoolInner> beginCreate(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool);
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AgentPoolInner> beginCreate(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool, Context context);
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner create(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool);
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner create(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool, Context context);
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String agentPoolName);
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String agentPoolName, Context context);
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String agentPoolName);
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String agentPoolName, Context context);
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AgentPoolInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters);
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, AgentPoolInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner update(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters);
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolInner update(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Lists all the agent pools for a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collection of agent pools.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the agent pools for a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collection of agent pools.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Gets the count of queued runs for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the count of queued runs for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentPoolQueueStatusInner getQueueStatus(String resourceGroupName, String registryName, String agentPoolName);
+
+ /**
+ * Gets the count of queued runs for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the count of queued runs for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getQueueStatusWithResponse(
+ String resourceGroupName, String registryName, String agentPoolName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ConnectedRegistriesClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ConnectedRegistriesClient.java
new file mode 100644
index 000000000000..2bbad380f5e5
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ConnectedRegistriesClient.java
@@ -0,0 +1,355 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ConnectedRegistryInner;
+import com.azure.resourcemanager.containerregistry.generated.models.ConnectedRegistryUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in ConnectedRegistriesClient. */
+public interface ConnectedRegistriesClient {
+ /**
+ * Lists all connected registries for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list connected registries for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all connected registries for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param filter An OData filter expression that describes a subset of connectedRegistries to return. The parameters
+ * that can be filtered are parent.id (the resource id of the connectedRegistry parent), mode, and
+ * connectionState. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list connected registries for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String registryName, String filter, Context context);
+
+ /**
+ * Gets the properties of the connected registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the connected registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner get(String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Gets the properties of the connected registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the connected registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+
+ /**
+ * Creates a connected registry for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ConnectedRegistryInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryInner connectedRegistryCreateParameters);
+
+ /**
+ * Creates a connected registry for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ConnectedRegistryInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryInner connectedRegistryCreateParameters,
+ Context context);
+
+ /**
+ * Creates a connected registry for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner create(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryInner connectedRegistryCreateParameters);
+
+ /**
+ * Creates a connected registry for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner create(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryInner connectedRegistryCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a connected registry from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Deletes a connected registry from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+
+ /**
+ * Deletes a connected registry from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Deletes a connected registry from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+
+ /**
+ * Updates a connected registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ConnectedRegistryInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryUpdateParameters connectedRegistryUpdateParameters);
+
+ /**
+ * Updates a connected registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ConnectedRegistryInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryUpdateParameters connectedRegistryUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a connected registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner update(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryUpdateParameters connectedRegistryUpdateParameters);
+
+ /**
+ * Updates a connected registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a connected registry for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectedRegistryInner update(
+ String resourceGroupName,
+ String registryName,
+ String connectedRegistryName,
+ ConnectedRegistryUpdateParameters connectedRegistryUpdateParameters,
+ Context context);
+
+ /**
+ * Deactivates the connected registry instance.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeactivate(
+ String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Deactivates the connected registry instance.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeactivate(
+ String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+
+ /**
+ * Deactivates the connected registry instance.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deactivate(String resourceGroupName, String registryName, String connectedRegistryName);
+
+ /**
+ * Deactivates the connected registry instance.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param connectedRegistryName The name of the connected registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deactivate(String resourceGroupName, String registryName, String connectedRegistryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ContainerRegistryManagementClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ContainerRegistryManagementClient.java
new file mode 100644
index 000000000000..07ca795007c9
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ContainerRegistryManagementClient.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for ContainerRegistryManagementClient class. */
+public interface ContainerRegistryManagementClient {
+ /**
+ * Gets The Microsoft Azure subscription ID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the ConnectedRegistriesClient object to access its operations.
+ *
+ * @return the ConnectedRegistriesClient object.
+ */
+ ConnectedRegistriesClient getConnectedRegistries();
+
+ /**
+ * Gets the ExportPipelinesClient object to access its operations.
+ *
+ * @return the ExportPipelinesClient object.
+ */
+ ExportPipelinesClient getExportPipelines();
+
+ /**
+ * Gets the RegistriesClient object to access its operations.
+ *
+ * @return the RegistriesClient object.
+ */
+ RegistriesClient getRegistries();
+
+ /**
+ * Gets the ImportPipelinesClient object to access its operations.
+ *
+ * @return the ImportPipelinesClient object.
+ */
+ ImportPipelinesClient getImportPipelines();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the PipelineRunsClient object to access its operations.
+ *
+ * @return the PipelineRunsClient object.
+ */
+ PipelineRunsClient getPipelineRuns();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the ReplicationsClient object to access its operations.
+ *
+ * @return the ReplicationsClient object.
+ */
+ ReplicationsClient getReplications();
+
+ /**
+ * Gets the ScopeMapsClient object to access its operations.
+ *
+ * @return the ScopeMapsClient object.
+ */
+ ScopeMapsClient getScopeMaps();
+
+ /**
+ * Gets the TokensClient object to access its operations.
+ *
+ * @return the TokensClient object.
+ */
+ TokensClient getTokens();
+
+ /**
+ * Gets the WebhooksClient object to access its operations.
+ *
+ * @return the WebhooksClient object.
+ */
+ WebhooksClient getWebhooks();
+
+ /**
+ * Gets the AgentPoolsClient object to access its operations.
+ *
+ * @return the AgentPoolsClient object.
+ */
+ AgentPoolsClient getAgentPools();
+
+ /**
+ * Gets the RunsClient object to access its operations.
+ *
+ * @return the RunsClient object.
+ */
+ RunsClient getRuns();
+
+ /**
+ * Gets the TaskRunsClient object to access its operations.
+ *
+ * @return the TaskRunsClient object.
+ */
+ TaskRunsClient getTaskRuns();
+
+ /**
+ * Gets the TasksClient object to access its operations.
+ *
+ * @return the TasksClient object.
+ */
+ TasksClient getTasks();
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ExportPipelinesClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ExportPipelinesClient.java
new file mode 100644
index 000000000000..9526ab71df5f
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ExportPipelinesClient.java
@@ -0,0 +1,212 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ExportPipelineInner;
+
+/** An instance of this class provides access to all the operations defined in ExportPipelinesClient. */
+public interface ExportPipelinesClient {
+ /**
+ * Lists all export pipelines for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list export pipelines for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all export pipelines for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list export pipelines for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Gets the properties of the export pipeline.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the export pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportPipelineInner get(String resourceGroupName, String registryName, String exportPipelineName);
+
+ /**
+ * Gets the properties of the export pipeline.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the export pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String exportPipelineName, Context context);
+
+ /**
+ * Creates an export pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param exportPipelineCreateParameters The parameters for creating an export pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents an export pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ExportPipelineInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String exportPipelineName,
+ ExportPipelineInner exportPipelineCreateParameters);
+
+ /**
+ * Creates an export pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param exportPipelineCreateParameters The parameters for creating an export pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents an export pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ExportPipelineInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String exportPipelineName,
+ ExportPipelineInner exportPipelineCreateParameters,
+ Context context);
+
+ /**
+ * Creates an export pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param exportPipelineCreateParameters The parameters for creating an export pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents an export pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportPipelineInner create(
+ String resourceGroupName,
+ String registryName,
+ String exportPipelineName,
+ ExportPipelineInner exportPipelineCreateParameters);
+
+ /**
+ * Creates an export pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param exportPipelineCreateParameters The parameters for creating an export pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents an export pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExportPipelineInner create(
+ String resourceGroupName,
+ String registryName,
+ String exportPipelineName,
+ ExportPipelineInner exportPipelineCreateParameters,
+ Context context);
+
+ /**
+ * Deletes an export pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String exportPipelineName);
+
+ /**
+ * Deletes an export pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String exportPipelineName, Context context);
+
+ /**
+ * Deletes an export pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String exportPipelineName);
+
+ /**
+ * Deletes an export pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param exportPipelineName The name of the export pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String exportPipelineName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ImportPipelinesClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ImportPipelinesClient.java
new file mode 100644
index 000000000000..2ce8a040cde9
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ImportPipelinesClient.java
@@ -0,0 +1,212 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ImportPipelineInner;
+
+/** An instance of this class provides access to all the operations defined in ImportPipelinesClient. */
+public interface ImportPipelinesClient {
+ /**
+ * Lists all import pipelines for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list import pipelines for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all import pipelines for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list import pipelines for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Gets the properties of the import pipeline.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the import pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImportPipelineInner get(String resourceGroupName, String registryName, String importPipelineName);
+
+ /**
+ * Gets the properties of the import pipeline.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the import pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String importPipelineName, Context context);
+
+ /**
+ * Creates an import pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param importPipelineCreateParameters The parameters for creating an import pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents an import pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ImportPipelineInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String importPipelineName,
+ ImportPipelineInner importPipelineCreateParameters);
+
+ /**
+ * Creates an import pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param importPipelineCreateParameters The parameters for creating an import pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents an import pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ImportPipelineInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String importPipelineName,
+ ImportPipelineInner importPipelineCreateParameters,
+ Context context);
+
+ /**
+ * Creates an import pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param importPipelineCreateParameters The parameters for creating an import pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents an import pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImportPipelineInner create(
+ String resourceGroupName,
+ String registryName,
+ String importPipelineName,
+ ImportPipelineInner importPipelineCreateParameters);
+
+ /**
+ * Creates an import pipeline for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param importPipelineCreateParameters The parameters for creating an import pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents an import pipeline for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImportPipelineInner create(
+ String resourceGroupName,
+ String registryName,
+ String importPipelineName,
+ ImportPipelineInner importPipelineCreateParameters,
+ Context context);
+
+ /**
+ * Deletes an import pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String importPipelineName);
+
+ /**
+ * Deletes an import pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String importPipelineName, Context context);
+
+ /**
+ * Deletes an import pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String importPipelineName);
+
+ /**
+ * Deletes an import pipeline from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param importPipelineName The name of the import pipeline.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String importPipelineName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/OperationsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/OperationsClient.java
new file mode 100644
index 000000000000..91c3ec8fd033
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.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.containerregistry.generated.fluent.models.OperationDefinitionInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available Azure Container Registry REST API operations.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list container registry operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available Azure Container Registry REST API operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list container registry operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PipelineRunsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PipelineRunsClient.java
new file mode 100644
index 000000000000..c8d2ce9e0635
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PipelineRunsClient.java
@@ -0,0 +1,212 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.PipelineRunInner;
+
+/** An instance of this class provides access to all the operations defined in PipelineRunsClient. */
+public interface PipelineRunsClient {
+ /**
+ * Lists all the pipeline runs for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list pipeline runs for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the pipeline runs for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list pipeline runs for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Gets the detailed information for a given pipeline run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given pipeline run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineRunInner get(String resourceGroupName, String registryName, String pipelineRunName);
+
+ /**
+ * Gets the detailed information for a given pipeline run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given pipeline run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String pipelineRunName, Context context);
+
+ /**
+ * Creates a pipeline run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a pipeline run for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PipelineRunInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String pipelineRunName,
+ PipelineRunInner pipelineRunCreateParameters);
+
+ /**
+ * Creates a pipeline run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a pipeline run for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PipelineRunInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String pipelineRunName,
+ PipelineRunInner pipelineRunCreateParameters,
+ Context context);
+
+ /**
+ * Creates a pipeline run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a pipeline run for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineRunInner create(
+ String resourceGroupName,
+ String registryName,
+ String pipelineRunName,
+ PipelineRunInner pipelineRunCreateParameters);
+
+ /**
+ * Creates a pipeline run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a pipeline run for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineRunInner create(
+ String resourceGroupName,
+ String registryName,
+ String pipelineRunName,
+ PipelineRunInner pipelineRunCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a pipeline run from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String pipelineRunName);
+
+ /**
+ * Deletes a pipeline run from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String pipelineRunName, Context context);
+
+ /**
+ * Deletes a pipeline run from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String pipelineRunName);
+
+ /**
+ * Deletes a pipeline run from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param pipelineRunName The name of the pipeline run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String pipelineRunName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PrivateEndpointConnectionsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 000000000000..4e9eb835d104
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,213 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.PrivateEndpointConnectionInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * List all private endpoint connections in a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list private endpoint connections for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * List all private endpoint connections in a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list private endpoint connections for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Get the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection associated with the container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String registryName, String privateEndpointConnectionName);
+
+ /**
+ * Get the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection associated with the container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnection The parameters for creating a private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a private endpoint connection for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnection The parameters for creating a private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a private endpoint connection for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnection The parameters for creating a private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a private endpoint connection for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param privateEndpointConnection The parameters for creating a private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a private endpoint connection for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String registryName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String privateEndpointConnectionName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RegistriesClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RegistriesClient.java
new file mode 100644
index 000000000000..f0d3f6376edd
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RegistriesClient.java
@@ -0,0 +1,647 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.GenerateCredentialsResultInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.PrivateLinkResourceInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RegistryInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RegistryListCredentialsResultInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RegistryNameStatusInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RegistryUsageListResultInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RunInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.SourceUploadDefinitionInner;
+import com.azure.resourcemanager.containerregistry.generated.models.GenerateCredentialsParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.ImportImageParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.RegenerateCredentialParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.RegistryNameCheckRequest;
+import com.azure.resourcemanager.containerregistry.generated.models.RegistryUpdateParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.RunRequest;
+
+/** An instance of this class provides access to all the operations defined in RegistriesClient. */
+public interface RegistriesClient {
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginImportImage(
+ String resourceGroupName, String registryName, ImportImageParameters parameters);
+
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginImportImage(
+ String resourceGroupName, String registryName, ImportImageParameters parameters, Context context);
+
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void importImage(String resourceGroupName, String registryName, ImportImageParameters parameters);
+
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void importImage(String resourceGroupName, String registryName, ImportImageParameters parameters, Context context);
+
+ /**
+ * Checks whether the container registry name is available for use. The name must contain only alphanumeric
+ * characters, be globally unique, and between 5 and 50 characters in length.
+ *
+ * @param registryNameCheckRequest The object containing information for the availability request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to check the availability of a container registry name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryNameStatusInner checkNameAvailability(RegistryNameCheckRequest registryNameCheckRequest);
+
+ /**
+ * Checks whether the container registry name is available for use. The name must contain only alphanumeric
+ * characters, be globally unique, and between 5 and 50 characters in length.
+ *
+ * @param registryNameCheckRequest The object containing information for the availability request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to check the availability of a container registry name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ RegistryNameCheckRequest registryNameCheckRequest, Context context);
+
+ /**
+ * Lists all the container registries under the specified subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list container registries.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all the container registries under the specified subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list container registries.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Lists all the container registries under the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list container registries.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all the container registries under the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list container registries.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Gets the properties of the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner getByResourceGroup(String resourceGroupName, String registryName);
+
+ /**
+ * Gets the properties of the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Creates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegistryInner> beginCreate(
+ String resourceGroupName, String registryName, RegistryInner registry);
+
+ /**
+ * Creates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegistryInner> beginCreate(
+ String resourceGroupName, String registryName, RegistryInner registry, Context context);
+
+ /**
+ * Creates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner create(String resourceGroupName, String registryName, RegistryInner registry);
+
+ /**
+ * Creates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner create(String resourceGroupName, String registryName, RegistryInner registry, Context context);
+
+ /**
+ * Deletes a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName);
+
+ /**
+ * Deletes a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Deletes a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName);
+
+ /**
+ * Deletes a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Updates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegistryInner> beginUpdate(
+ String resourceGroupName, String registryName, RegistryUpdateParameters registryUpdateParameters);
+
+ /**
+ * Updates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegistryInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ RegistryUpdateParameters registryUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner update(
+ String resourceGroupName, String registryName, RegistryUpdateParameters registryUpdateParameters);
+
+ /**
+ * Updates a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryInner update(
+ String resourceGroupName,
+ String registryName,
+ RegistryUpdateParameters registryUpdateParameters,
+ Context context);
+
+ /**
+ * Gets the quota usages for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the quota usages for the specified container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryUsageListResultInner listUsages(String resourceGroupName, String registryName);
+
+ /**
+ * Gets the quota usages for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the quota usages for the specified container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listUsagesWithResponse(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Lists the private link resources for a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list private link resources for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listPrivateLinkResources(String resourceGroupName, String registryName);
+
+ /**
+ * Lists the private link resources for a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list private link resources for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listPrivateLinkResources(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Lists the login credentials for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the ListCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryListCredentialsResultInner listCredentials(String resourceGroupName, String registryName);
+
+ /**
+ * Lists the login credentials for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the ListCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listCredentialsWithResponse(
+ String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Regenerates one of the login credentials for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param regenerateCredentialParameters Specifies name of the password which should be regenerated -- password or
+ * password2.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the ListCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistryListCredentialsResultInner regenerateCredential(
+ String resourceGroupName, String registryName, RegenerateCredentialParameters regenerateCredentialParameters);
+
+ /**
+ * Regenerates one of the login credentials for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param regenerateCredentialParameters Specifies name of the password which should be regenerated -- password or
+ * password2.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the ListCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response regenerateCredentialWithResponse(
+ String resourceGroupName,
+ String registryName,
+ RegenerateCredentialParameters regenerateCredentialParameters,
+ Context context);
+
+ /**
+ * Generate keys for a token of a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param generateCredentialsParameters The parameters for generating credentials.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the GenerateCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, GenerateCredentialsResultInner> beginGenerateCredentials(
+ String resourceGroupName, String registryName, GenerateCredentialsParameters generateCredentialsParameters);
+
+ /**
+ * Generate keys for a token of a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param generateCredentialsParameters The parameters for generating credentials.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the GenerateCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, GenerateCredentialsResultInner> beginGenerateCredentials(
+ String resourceGroupName,
+ String registryName,
+ GenerateCredentialsParameters generateCredentialsParameters,
+ Context context);
+
+ /**
+ * Generate keys for a token of a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param generateCredentialsParameters The parameters for generating credentials.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the GenerateCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenerateCredentialsResultInner generateCredentials(
+ String resourceGroupName, String registryName, GenerateCredentialsParameters generateCredentialsParameters);
+
+ /**
+ * Generate keys for a token of a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param generateCredentialsParameters The parameters for generating credentials.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the GenerateCredentials operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenerateCredentialsResultInner generateCredentials(
+ String resourceGroupName,
+ String registryName,
+ GenerateCredentialsParameters generateCredentialsParameters,
+ Context context);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RunInner> beginScheduleRun(
+ String resourceGroupName, String registryName, RunRequest runRequest);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RunInner> beginScheduleRun(
+ String resourceGroupName, String registryName, RunRequest runRequest, Context context);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunInner scheduleRun(String resourceGroupName, String registryName, RunRequest runRequest, Context context);
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SourceUploadDefinitionInner getBuildSourceUploadUrl(String resourceGroupName, String registryName);
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the upload location for the user to be able to upload the source.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getBuildSourceUploadUrlWithResponse(
+ String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ReplicationsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ReplicationsClient.java
new file mode 100644
index 000000000000..ab0bddc05159
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ReplicationsClient.java
@@ -0,0 +1,287 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ReplicationInner;
+import com.azure.resourcemanager.containerregistry.generated.models.ReplicationUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in ReplicationsClient. */
+public interface ReplicationsClient {
+ /**
+ * Lists all the replications for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list replications for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the replications for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list replications for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Gets the properties of the specified replication.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified replication.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner get(String resourceGroupName, String registryName, String replicationName);
+
+ /**
+ * Gets the properties of the specified replication.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified replication.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String replicationName, Context context);
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ReplicationInner> beginCreate(
+ String resourceGroupName, String registryName, String replicationName, ReplicationInner replication);
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ReplicationInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationInner replication,
+ Context context);
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner create(
+ String resourceGroupName, String registryName, String replicationName, ReplicationInner replication);
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner create(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationInner replication,
+ Context context);
+
+ /**
+ * Deletes a replication from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String replicationName);
+
+ /**
+ * Deletes a replication from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String replicationName, Context context);
+
+ /**
+ * Deletes a replication from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String replicationName);
+
+ /**
+ * Deletes a replication from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String replicationName, Context context);
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ReplicationInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationUpdateParameters replicationUpdateParameters);
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ReplicationInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationUpdateParameters replicationUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner update(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationUpdateParameters replicationUpdateParameters);
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a replication for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReplicationInner update(
+ String resourceGroupName,
+ String registryName,
+ String replicationName,
+ ReplicationUpdateParameters replicationUpdateParameters,
+ Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RunsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RunsClient.java
new file mode 100644
index 000000000000..18901f2a284f
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/RunsClient.java
@@ -0,0 +1,240 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RunGetLogResultInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.RunInner;
+import com.azure.resourcemanager.containerregistry.generated.models.RunUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in RunsClient. */
+public interface RunsClient {
+ /**
+ * Gets all the runs for a registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the runs for a registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Gets all the runs for a registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param filter The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed
+ * string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed.
+ * @param top $top is supported for get list of runs, which limits the maximum number of runs to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the runs for a registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String registryName, String filter, Integer top, Context context);
+
+ /**
+ * Gets the detailed information for a given run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunInner get(String resourceGroupName, String registryName, String runId);
+
+ /**
+ * Gets the detailed information for a given run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String registryName, String runId, Context context);
+
+ /**
+ * Patch the run properties.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RunInner> beginUpdate(
+ String resourceGroupName, String registryName, String runId, RunUpdateParameters runUpdateParameters);
+
+ /**
+ * Patch the run properties.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RunInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String runId,
+ RunUpdateParameters runUpdateParameters,
+ Context context);
+
+ /**
+ * Patch the run properties.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunInner update(
+ String resourceGroupName, String registryName, String runId, RunUpdateParameters runUpdateParameters);
+
+ /**
+ * Patch the run properties.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return run resource properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunInner update(
+ String resourceGroupName,
+ String registryName,
+ String runId,
+ RunUpdateParameters runUpdateParameters,
+ Context context);
+
+ /**
+ * Gets a link to download the run logs.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a link to download the run logs.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunGetLogResultInner getLogSasUrl(String resourceGroupName, String registryName, String runId);
+
+ /**
+ * Gets a link to download the run logs.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a link to download the run logs.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getLogSasUrlWithResponse(
+ String resourceGroupName, String registryName, String runId, Context context);
+
+ /**
+ * Cancel an existing run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String registryName, String runId);
+
+ /**
+ * Cancel an existing run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginCancel(
+ String resourceGroupName, String registryName, String runId, Context context);
+
+ /**
+ * Cancel an existing run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String registryName, String runId);
+
+ /**
+ * Cancel an existing run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String registryName, String runId, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ScopeMapsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ScopeMapsClient.java
new file mode 100644
index 000000000000..5f2aacdd8937
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/ScopeMapsClient.java
@@ -0,0 +1,286 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.ScopeMapInner;
+import com.azure.resourcemanager.containerregistry.generated.models.ScopeMapUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in ScopeMapsClient. */
+public interface ScopeMapsClient {
+ /**
+ * Lists all the scope maps for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list scope maps for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the scope maps for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list scope maps for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Gets the properties of the specified scope map.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified scope map.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner get(String resourceGroupName, String registryName, String scopeMapName);
+
+ /**
+ * Gets the properties of the specified scope map.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified scope map.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String scopeMapName, Context context);
+
+ /**
+ * Creates a scope map for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapCreateParameters The parameters for creating a scope map.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ScopeMapInner> beginCreate(
+ String resourceGroupName, String registryName, String scopeMapName, ScopeMapInner scopeMapCreateParameters);
+
+ /**
+ * Creates a scope map for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapCreateParameters The parameters for creating a scope map.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ScopeMapInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapInner scopeMapCreateParameters,
+ Context context);
+
+ /**
+ * Creates a scope map for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapCreateParameters The parameters for creating a scope map.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner create(
+ String resourceGroupName, String registryName, String scopeMapName, ScopeMapInner scopeMapCreateParameters);
+
+ /**
+ * Creates a scope map for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapCreateParameters The parameters for creating a scope map.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner create(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapInner scopeMapCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a scope map from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String scopeMapName);
+
+ /**
+ * Deletes a scope map from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String scopeMapName, Context context);
+
+ /**
+ * Deletes a scope map from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String scopeMapName);
+
+ /**
+ * Deletes a scope map from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String scopeMapName, Context context);
+
+ /**
+ * Updates a scope map with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapUpdateParameters The parameters for updating a scope map.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ScopeMapInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapUpdateParameters scopeMapUpdateParameters);
+
+ /**
+ * Updates a scope map with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapUpdateParameters The parameters for updating a scope map.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ScopeMapInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapUpdateParameters scopeMapUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a scope map with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapUpdateParameters The parameters for updating a scope map.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner update(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapUpdateParameters scopeMapUpdateParameters);
+
+ /**
+ * Updates a scope map with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param scopeMapName The name of the scope map.
+ * @param scopeMapUpdateParameters The parameters for updating a scope map.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a scope map for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopeMapInner update(
+ String resourceGroupName,
+ String registryName,
+ String scopeMapName,
+ ScopeMapUpdateParameters scopeMapUpdateParameters,
+ Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TaskRunsClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TaskRunsClient.java
new file mode 100644
index 000000000000..7d0d8e8c3b98
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TaskRunsClient.java
@@ -0,0 +1,301 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.TaskRunInner;
+import com.azure.resourcemanager.containerregistry.generated.models.TaskRunUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in TaskRunsClient. */
+public interface TaskRunsClient {
+ /**
+ * Gets the detailed information for a given task run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given task run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner get(String resourceGroupName, String registryName, String taskRunName);
+
+ /**
+ * Gets the detailed information for a given task run.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given task run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String taskRunName, Context context);
+
+ /**
+ * Creates a task run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param taskRun The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskRunInner> beginCreate(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunInner taskRun);
+
+ /**
+ * Creates a task run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param taskRun The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskRunInner> beginCreate(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunInner taskRun, Context context);
+
+ /**
+ * Creates a task run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param taskRun The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner create(String resourceGroupName, String registryName, String taskRunName, TaskRunInner taskRun);
+
+ /**
+ * Creates a task run for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param taskRun The parameters of a run that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner create(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunInner taskRun, Context context);
+
+ /**
+ * Deletes a specified task run resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String taskRunName);
+
+ /**
+ * Deletes a specified task run resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String taskRunName, Context context);
+
+ /**
+ * Deletes a specified task run resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String taskRunName);
+
+ /**
+ * Deletes a specified task run resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String taskRunName, Context context);
+
+ /**
+ * Updates a task run with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param updateParameters The parameters for updating a task run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskRunInner> beginUpdate(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunUpdateParameters updateParameters);
+
+ /**
+ * Updates a task run with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param updateParameters The parameters for updating a task run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskRunInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String taskRunName,
+ TaskRunUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Updates a task run with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param updateParameters The parameters for updating a task run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner update(
+ String resourceGroupName, String registryName, String taskRunName, TaskRunUpdateParameters updateParameters);
+
+ /**
+ * Updates a task run with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param updateParameters The parameters for updating a task run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task run that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner update(
+ String resourceGroupName,
+ String registryName,
+ String taskRunName,
+ TaskRunUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Gets the detailed information for a given task run that includes all secrets.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given task run that includes all secrets.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskRunInner getDetails(String resourceGroupName, String registryName, String taskRunName);
+
+ /**
+ * Gets the detailed information for a given task run that includes all secrets.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskRunName The name of the task run.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given task run that includes all secrets.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetailsWithResponse(
+ String resourceGroupName, String registryName, String taskRunName, Context context);
+
+ /**
+ * Lists all the task runs for a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collection of task runs.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the task runs for a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collection of task runs.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TasksClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TasksClient.java
new file mode 100644
index 000000000000..85eb13cfb095
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TasksClient.java
@@ -0,0 +1,309 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.TaskInner;
+import com.azure.resourcemanager.containerregistry.generated.models.TaskUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in TasksClient. */
+public interface TasksClient {
+ /**
+ * Lists all the tasks for a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collection of tasks.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the tasks for a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collection of tasks.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Get the properties of a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a specified task.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner get(String resourceGroupName, String registryName, String taskName);
+
+ /**
+ * Get the properties of a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of a specified task.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String taskName, Context context);
+
+ /**
+ * Creates a task for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskCreateParameters The parameters for creating a task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskInner> beginCreate(
+ String resourceGroupName, String registryName, String taskName, TaskInner taskCreateParameters);
+
+ /**
+ * Creates a task for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskCreateParameters The parameters for creating a task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String taskName,
+ TaskInner taskCreateParameters,
+ Context context);
+
+ /**
+ * Creates a task for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskCreateParameters The parameters for creating a task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner create(String resourceGroupName, String registryName, String taskName, TaskInner taskCreateParameters);
+
+ /**
+ * Creates a task for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskCreateParameters The parameters for creating a task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner create(
+ String resourceGroupName,
+ String registryName,
+ String taskName,
+ TaskInner taskCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String taskName);
+
+ /**
+ * Deletes a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String taskName, Context context);
+
+ /**
+ * Deletes a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String taskName);
+
+ /**
+ * Deletes a specified task.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String taskName, Context context);
+
+ /**
+ * Updates a task with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskUpdateParameters The parameters for updating a task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskInner> beginUpdate(
+ String resourceGroupName, String registryName, String taskName, TaskUpdateParameters taskUpdateParameters);
+
+ /**
+ * Updates a task with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskUpdateParameters The parameters for updating a task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TaskInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String taskName,
+ TaskUpdateParameters taskUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a task with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskUpdateParameters The parameters for updating a task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner update(
+ String resourceGroupName, String registryName, String taskName, TaskUpdateParameters taskUpdateParameters);
+
+ /**
+ * Updates a task with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskUpdateParameters The parameters for updating a task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner update(
+ String resourceGroupName,
+ String registryName,
+ String taskName,
+ TaskUpdateParameters taskUpdateParameters,
+ Context context);
+
+ /**
+ * Returns a task with extended information that includes all secrets.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TaskInner getDetails(String resourceGroupName, String registryName, String taskName);
+
+ /**
+ * Returns a task with extended information that includes all secrets.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the task that has the ARM resource and task properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetailsWithResponse(
+ String resourceGroupName, String registryName, String taskName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TokensClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TokensClient.java
new file mode 100644
index 000000000000..3ec48701dff9
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/TokensClient.java
@@ -0,0 +1,280 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.TokenInner;
+import com.azure.resourcemanager.containerregistry.generated.models.TokenUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in TokensClient. */
+public interface TokensClient {
+ /**
+ * Lists all the tokens for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list tokens for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the tokens for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list tokens for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Gets the properties of the specified token.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified token.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TokenInner get(String resourceGroupName, String registryName, String tokenName);
+
+ /**
+ * Gets the properties of the specified token.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified token.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String tokenName, Context context);
+
+ /**
+ * Creates a token for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenCreateParameters The parameters for creating a token.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TokenInner> beginCreate(
+ String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters);
+
+ /**
+ * Creates a token for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenCreateParameters The parameters for creating a token.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TokenInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String tokenName,
+ TokenInner tokenCreateParameters,
+ Context context);
+
+ /**
+ * Creates a token for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenCreateParameters The parameters for creating a token.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TokenInner create(
+ String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters);
+
+ /**
+ * Creates a token for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenCreateParameters The parameters for creating a token.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TokenInner create(
+ String resourceGroupName,
+ String registryName,
+ String tokenName,
+ TokenInner tokenCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a token from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String tokenName);
+
+ /**
+ * Deletes a token from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String tokenName, Context context);
+
+ /**
+ * Deletes a token from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String tokenName);
+
+ /**
+ * Deletes a token from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String tokenName, Context context);
+
+ /**
+ * Updates a token with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenUpdateParameters The parameters for updating a token.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TokenInner> beginUpdate(
+ String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters);
+
+ /**
+ * Updates a token with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenUpdateParameters The parameters for updating a token.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TokenInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String tokenName,
+ TokenUpdateParameters tokenUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a token with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenUpdateParameters The parameters for updating a token.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TokenInner update(
+ String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters);
+
+ /**
+ * Updates a token with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param tokenName The name of the token.
+ * @param tokenUpdateParameters The parameters for updating a token.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a token for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TokenInner update(
+ String resourceGroupName,
+ String registryName,
+ String tokenName,
+ TokenUpdateParameters tokenUpdateParameters,
+ Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/WebhooksClient.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/WebhooksClient.java
new file mode 100644
index 000000000000..5df28e48811f
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/WebhooksClient.java
@@ -0,0 +1,386 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.CallbackConfigInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.EventInfoInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.EventInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.WebhookInner;
+import com.azure.resourcemanager.containerregistry.generated.models.WebhookCreateParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.WebhookUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in WebhooksClient. */
+public interface WebhooksClient {
+ /**
+ * Lists all the webhooks for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list webhooks for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName);
+
+ /**
+ * Lists all the webhooks for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list webhooks for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String registryName, Context context);
+
+ /**
+ * Gets the properties of the specified webhook.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified webhook.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebhookInner get(String resourceGroupName, String registryName, String webhookName);
+
+ /**
+ * Gets the properties of the specified webhook.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified webhook.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String registryName, String webhookName, Context context);
+
+ /**
+ * Creates a webhook for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param webhookCreateParameters The parameters for creating a webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a webhook for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebhookInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String webhookName,
+ WebhookCreateParameters webhookCreateParameters);
+
+ /**
+ * Creates a webhook for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param webhookCreateParameters The parameters for creating a webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a webhook for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebhookInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String webhookName,
+ WebhookCreateParameters webhookCreateParameters,
+ Context context);
+
+ /**
+ * Creates a webhook for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param webhookCreateParameters The parameters for creating a webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a webhook for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebhookInner create(
+ String resourceGroupName,
+ String registryName,
+ String webhookName,
+ WebhookCreateParameters webhookCreateParameters);
+
+ /**
+ * Creates a webhook for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param webhookCreateParameters The parameters for creating a webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a webhook for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebhookInner create(
+ String resourceGroupName,
+ String registryName,
+ String webhookName,
+ WebhookCreateParameters webhookCreateParameters,
+ Context context);
+
+ /**
+ * Deletes a webhook from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String registryName, String webhookName);
+
+ /**
+ * Deletes a webhook from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String webhookName, Context context);
+
+ /**
+ * Deletes a webhook from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String webhookName);
+
+ /**
+ * Deletes a webhook from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String registryName, String webhookName, Context context);
+
+ /**
+ * Updates a webhook with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param webhookUpdateParameters The parameters for updating a webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a webhook for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebhookInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String webhookName,
+ WebhookUpdateParameters webhookUpdateParameters);
+
+ /**
+ * Updates a webhook with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param webhookUpdateParameters The parameters for updating a webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a webhook for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebhookInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String webhookName,
+ WebhookUpdateParameters webhookUpdateParameters,
+ Context context);
+
+ /**
+ * Updates a webhook with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param webhookUpdateParameters The parameters for updating a webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a webhook for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebhookInner update(
+ String resourceGroupName,
+ String registryName,
+ String webhookName,
+ WebhookUpdateParameters webhookUpdateParameters);
+
+ /**
+ * Updates a webhook with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param webhookUpdateParameters The parameters for updating a webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an object that represents a webhook for a container registry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebhookInner update(
+ String resourceGroupName,
+ String registryName,
+ String webhookName,
+ WebhookUpdateParameters webhookUpdateParameters,
+ Context context);
+
+ /**
+ * Triggers a ping event to be sent to the webhook.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the basic information of an event.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EventInfoInner ping(String resourceGroupName, String registryName, String webhookName);
+
+ /**
+ * Triggers a ping event to be sent to the webhook.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the basic information of an event.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response pingWithResponse(
+ String resourceGroupName, String registryName, String webhookName, Context context);
+
+ /**
+ * Lists recent events for the specified webhook.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list events for a webhook.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listEvents(String resourceGroupName, String registryName, String webhookName);
+
+ /**
+ * Lists recent events for the specified webhook.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the result of a request to list events for a webhook.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listEvents(
+ String resourceGroupName, String registryName, String webhookName, Context context);
+
+ /**
+ * Gets the configuration of service URI and custom headers for the webhook.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the configuration of service URI and custom headers for the webhook.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CallbackConfigInner getCallbackConfig(String resourceGroupName, String registryName, String webhookName);
+
+ /**
+ * Gets the configuration of service URI and custom headers for the webhook.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param webhookName The name of the webhook.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the configuration of service URI and custom headers for the webhook.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getCallbackConfigWithResponse(
+ String resourceGroupName, String registryName, String webhookName, Context context);
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/AgentPoolInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/AgentPoolInner.java
new file mode 100644
index 000000000000..d3c2deb2b18e
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/AgentPoolInner.java
@@ -0,0 +1,182 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.OS;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/**
+ * The agentpool that has the ARM resource and properties. The agentpool will have all information to create an agent
+ * pool.
+ */
+@JsonFlatten
+@Fluent
+public class AgentPoolInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AgentPoolInner.class);
+
+ /*
+ * The count of agent machine
+ */
+ @JsonProperty(value = "properties.count")
+ private Integer count;
+
+ /*
+ * The Tier of agent machine
+ */
+ @JsonProperty(value = "properties.tier")
+ private String tier;
+
+ /*
+ * The OS of agent machine
+ */
+ @JsonProperty(value = "properties.os")
+ private OS os;
+
+ /*
+ * The Virtual Network Subnet Resource Id of the agent machine
+ */
+ @JsonProperty(value = "properties.virtualNetworkSubnetResourceId")
+ private String virtualNetworkSubnetResourceId;
+
+ /*
+ * The provisioning state of this agent pool
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the count property: The count of agent machine.
+ *
+ * @return the count value.
+ */
+ public Integer count() {
+ return this.count;
+ }
+
+ /**
+ * Set the count property: The count of agent machine.
+ *
+ * @param count the count value to set.
+ * @return the AgentPoolInner object itself.
+ */
+ public AgentPoolInner withCount(Integer count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get the tier property: The Tier of agent machine.
+ *
+ * @return the tier value.
+ */
+ public String tier() {
+ return this.tier;
+ }
+
+ /**
+ * Set the tier property: The Tier of agent machine.
+ *
+ * @param tier the tier value to set.
+ * @return the AgentPoolInner object itself.
+ */
+ public AgentPoolInner withTier(String tier) {
+ this.tier = tier;
+ return this;
+ }
+
+ /**
+ * Get the os property: The OS of agent machine.
+ *
+ * @return the os value.
+ */
+ public OS os() {
+ return this.os;
+ }
+
+ /**
+ * Set the os property: The OS of agent machine.
+ *
+ * @param os the os value to set.
+ * @return the AgentPoolInner object itself.
+ */
+ public AgentPoolInner withOs(OS os) {
+ this.os = os;
+ return this;
+ }
+
+ /**
+ * Get the virtualNetworkSubnetResourceId property: The Virtual Network Subnet Resource Id of the agent machine.
+ *
+ * @return the virtualNetworkSubnetResourceId value.
+ */
+ public String virtualNetworkSubnetResourceId() {
+ return this.virtualNetworkSubnetResourceId;
+ }
+
+ /**
+ * Set the virtualNetworkSubnetResourceId property: The Virtual Network Subnet Resource Id of the agent machine.
+ *
+ * @param virtualNetworkSubnetResourceId the virtualNetworkSubnetResourceId value to set.
+ * @return the AgentPoolInner object itself.
+ */
+ public AgentPoolInner withVirtualNetworkSubnetResourceId(String virtualNetworkSubnetResourceId) {
+ this.virtualNetworkSubnetResourceId = virtualNetworkSubnetResourceId;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of this agent pool.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AgentPoolInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AgentPoolInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/AgentPoolQueueStatusInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/AgentPoolQueueStatusInner.java
new file mode 100644
index 000000000000..8743e21604fc
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/AgentPoolQueueStatusInner.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The QueueStatus of Agent Pool. */
+@Fluent
+public final class AgentPoolQueueStatusInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AgentPoolQueueStatusInner.class);
+
+ /*
+ * The number of pending runs in the queue
+ */
+ @JsonProperty(value = "count")
+ private Integer count;
+
+ /**
+ * Get the count property: The number of pending runs in the queue.
+ *
+ * @return the count value.
+ */
+ public Integer count() {
+ return this.count;
+ }
+
+ /**
+ * Set the count property: The number of pending runs in the queue.
+ *
+ * @param count the count value to set.
+ * @return the AgentPoolQueueStatusInner object itself.
+ */
+ public AgentPoolQueueStatusInner withCount(Integer count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/CallbackConfigInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/CallbackConfigInner.java
new file mode 100644
index 000000000000..2c37d2bf0d8c
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/CallbackConfigInner.java
@@ -0,0 +1,84 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The configuration of service URI and custom headers for the webhook. */
+@Fluent
+public final class CallbackConfigInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CallbackConfigInner.class);
+
+ /*
+ * The service URI for the webhook to post notifications.
+ */
+ @JsonProperty(value = "serviceUri", required = true)
+ private String serviceUri;
+
+ /*
+ * Custom headers that will be added to the webhook notifications.
+ */
+ @JsonProperty(value = "customHeaders")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map customHeaders;
+
+ /**
+ * Get the serviceUri property: The service URI for the webhook to post notifications.
+ *
+ * @return the serviceUri value.
+ */
+ public String serviceUri() {
+ return this.serviceUri;
+ }
+
+ /**
+ * Set the serviceUri property: The service URI for the webhook to post notifications.
+ *
+ * @param serviceUri the serviceUri value to set.
+ * @return the CallbackConfigInner object itself.
+ */
+ public CallbackConfigInner withServiceUri(String serviceUri) {
+ this.serviceUri = serviceUri;
+ return this;
+ }
+
+ /**
+ * Get the customHeaders property: Custom headers that will be added to the webhook notifications.
+ *
+ * @return the customHeaders value.
+ */
+ public Map customHeaders() {
+ return this.customHeaders;
+ }
+
+ /**
+ * Set the customHeaders property: Custom headers that will be added to the webhook notifications.
+ *
+ * @param customHeaders the customHeaders value to set.
+ * @return the CallbackConfigInner object itself.
+ */
+ public CallbackConfigInner withCustomHeaders(Map customHeaders) {
+ this.customHeaders = customHeaders;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (serviceUri() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property serviceUri in model CallbackConfigInner"));
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ConnectedRegistryInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ConnectedRegistryInner.java
new file mode 100644
index 000000000000..3cdc785c348c
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ConnectedRegistryInner.java
@@ -0,0 +1,323 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.ActivationProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.ConnectedRegistryMode;
+import com.azure.resourcemanager.containerregistry.generated.models.ConnectionState;
+import com.azure.resourcemanager.containerregistry.generated.models.LoggingProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.LoginServerProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.ParentProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.azure.resourcemanager.containerregistry.generated.models.StatusDetailProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** An object that represents a connected registry for a container registry. */
+@JsonFlatten
+@Fluent
+public class ConnectedRegistryInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ConnectedRegistryInner.class);
+
+ /*
+ * Provisioning state of the resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The mode of the connected registry resource that indicates the
+ * permissions of the registry.
+ */
+ @JsonProperty(value = "properties.mode")
+ private ConnectedRegistryMode mode;
+
+ /*
+ * The current version of ACR runtime on the connected registry.
+ */
+ @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /*
+ * The current connection state of the connected registry.
+ */
+ @JsonProperty(value = "properties.connectionState", access = JsonProperty.Access.WRITE_ONLY)
+ private ConnectionState connectionState;
+
+ /*
+ * The last activity time of the connected registry.
+ */
+ @JsonProperty(value = "properties.lastActivityTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastActivityTime;
+
+ /*
+ * The activation properties of the connected registry.
+ */
+ @JsonProperty(value = "properties.activation", access = JsonProperty.Access.WRITE_ONLY)
+ private ActivationProperties activation;
+
+ /*
+ * The parent of the connected registry.
+ */
+ @JsonProperty(value = "properties.parent")
+ private ParentProperties parent;
+
+ /*
+ * The list of the ACR token resource IDs used to authenticate clients to
+ * the connected registry.
+ */
+ @JsonProperty(value = "properties.clientTokenIds")
+ private List clientTokenIds;
+
+ /*
+ * The login server properties of the connected registry.
+ */
+ @JsonProperty(value = "properties.loginServer")
+ private LoginServerProperties loginServer;
+
+ /*
+ * The logging properties of the connected registry.
+ */
+ @JsonProperty(value = "properties.logging")
+ private LoggingProperties logging;
+
+ /*
+ * The list of current statuses of the connected registry.
+ */
+ @JsonProperty(value = "properties.statusDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private List statusDetails;
+
+ /*
+ * The list of notifications subscription information for the connected
+ * registry.
+ */
+ @JsonProperty(value = "properties.notificationsList")
+ private List notificationsList;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the mode property: The mode of the connected registry resource that indicates the permissions of the
+ * registry.
+ *
+ * @return the mode value.
+ */
+ public ConnectedRegistryMode mode() {
+ return this.mode;
+ }
+
+ /**
+ * Set the mode property: The mode of the connected registry resource that indicates the permissions of the
+ * registry.
+ *
+ * @param mode the mode value to set.
+ * @return the ConnectedRegistryInner object itself.
+ */
+ public ConnectedRegistryInner withMode(ConnectedRegistryMode mode) {
+ this.mode = mode;
+ return this;
+ }
+
+ /**
+ * Get the version property: The current version of ACR runtime on the connected registry.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Get the connectionState property: The current connection state of the connected registry.
+ *
+ * @return the connectionState value.
+ */
+ public ConnectionState connectionState() {
+ return this.connectionState;
+ }
+
+ /**
+ * Get the lastActivityTime property: The last activity time of the connected registry.
+ *
+ * @return the lastActivityTime value.
+ */
+ public OffsetDateTime lastActivityTime() {
+ return this.lastActivityTime;
+ }
+
+ /**
+ * Get the activation property: The activation properties of the connected registry.
+ *
+ * @return the activation value.
+ */
+ public ActivationProperties activation() {
+ return this.activation;
+ }
+
+ /**
+ * Get the parent property: The parent of the connected registry.
+ *
+ * @return the parent value.
+ */
+ public ParentProperties parent() {
+ return this.parent;
+ }
+
+ /**
+ * Set the parent property: The parent of the connected registry.
+ *
+ * @param parent the parent value to set.
+ * @return the ConnectedRegistryInner object itself.
+ */
+ public ConnectedRegistryInner withParent(ParentProperties parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ /**
+ * Get the clientTokenIds property: The list of the ACR token resource IDs used to authenticate clients to the
+ * connected registry.
+ *
+ * @return the clientTokenIds value.
+ */
+ public List clientTokenIds() {
+ return this.clientTokenIds;
+ }
+
+ /**
+ * Set the clientTokenIds property: The list of the ACR token resource IDs used to authenticate clients to the
+ * connected registry.
+ *
+ * @param clientTokenIds the clientTokenIds value to set.
+ * @return the ConnectedRegistryInner object itself.
+ */
+ public ConnectedRegistryInner withClientTokenIds(List clientTokenIds) {
+ this.clientTokenIds = clientTokenIds;
+ return this;
+ }
+
+ /**
+ * Get the loginServer property: The login server properties of the connected registry.
+ *
+ * @return the loginServer value.
+ */
+ public LoginServerProperties loginServer() {
+ return this.loginServer;
+ }
+
+ /**
+ * Set the loginServer property: The login server properties of the connected registry.
+ *
+ * @param loginServer the loginServer value to set.
+ * @return the ConnectedRegistryInner object itself.
+ */
+ public ConnectedRegistryInner withLoginServer(LoginServerProperties loginServer) {
+ this.loginServer = loginServer;
+ return this;
+ }
+
+ /**
+ * Get the logging property: The logging properties of the connected registry.
+ *
+ * @return the logging value.
+ */
+ public LoggingProperties logging() {
+ return this.logging;
+ }
+
+ /**
+ * Set the logging property: The logging properties of the connected registry.
+ *
+ * @param logging the logging value to set.
+ * @return the ConnectedRegistryInner object itself.
+ */
+ public ConnectedRegistryInner withLogging(LoggingProperties logging) {
+ this.logging = logging;
+ return this;
+ }
+
+ /**
+ * Get the statusDetails property: The list of current statuses of the connected registry.
+ *
+ * @return the statusDetails value.
+ */
+ public List statusDetails() {
+ return this.statusDetails;
+ }
+
+ /**
+ * Get the notificationsList property: The list of notifications subscription information for the connected
+ * registry.
+ *
+ * @return the notificationsList value.
+ */
+ public List notificationsList() {
+ return this.notificationsList;
+ }
+
+ /**
+ * Set the notificationsList property: The list of notifications subscription information for the connected
+ * registry.
+ *
+ * @param notificationsList the notificationsList value to set.
+ * @return the ConnectedRegistryInner object itself.
+ */
+ public ConnectedRegistryInner withNotificationsList(List notificationsList) {
+ this.notificationsList = notificationsList;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @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 (activation() != null) {
+ activation().validate();
+ }
+ if (parent() != null) {
+ parent().validate();
+ }
+ if (loginServer() != null) {
+ loginServer().validate();
+ }
+ if (logging() != null) {
+ logging().validate();
+ }
+ if (statusDetails() != null) {
+ statusDetails().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/EventInfoInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/EventInfoInner.java
new file mode 100644
index 000000000000..b306cf3bae05
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/EventInfoInner.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The basic information of an event. */
+@Fluent
+public class EventInfoInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(EventInfoInner.class);
+
+ /*
+ * The event ID.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * Get the id property: The event ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: The event ID.
+ *
+ * @param id the id value to set.
+ * @return the EventInfoInner object itself.
+ */
+ public EventInfoInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/EventInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/EventInner.java
new file mode 100644
index 000000000000..ccd620ec23a0
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/EventInner.java
@@ -0,0 +1,93 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.EventRequestMessage;
+import com.azure.resourcemanager.containerregistry.generated.models.EventResponseMessage;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The event for a webhook. */
+@Fluent
+public final class EventInner extends EventInfoInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(EventInner.class);
+
+ /*
+ * The event request message sent to the service URI.
+ */
+ @JsonProperty(value = "eventRequestMessage")
+ private EventRequestMessage eventRequestMessage;
+
+ /*
+ * The event response message received from the service URI.
+ */
+ @JsonProperty(value = "eventResponseMessage")
+ private EventResponseMessage eventResponseMessage;
+
+ /**
+ * Get the eventRequestMessage property: The event request message sent to the service URI.
+ *
+ * @return the eventRequestMessage value.
+ */
+ public EventRequestMessage eventRequestMessage() {
+ return this.eventRequestMessage;
+ }
+
+ /**
+ * Set the eventRequestMessage property: The event request message sent to the service URI.
+ *
+ * @param eventRequestMessage the eventRequestMessage value to set.
+ * @return the EventInner object itself.
+ */
+ public EventInner withEventRequestMessage(EventRequestMessage eventRequestMessage) {
+ this.eventRequestMessage = eventRequestMessage;
+ return this;
+ }
+
+ /**
+ * Get the eventResponseMessage property: The event response message received from the service URI.
+ *
+ * @return the eventResponseMessage value.
+ */
+ public EventResponseMessage eventResponseMessage() {
+ return this.eventResponseMessage;
+ }
+
+ /**
+ * Set the eventResponseMessage property: The event response message received from the service URI.
+ *
+ * @param eventResponseMessage the eventResponseMessage value to set.
+ * @return the EventInner object itself.
+ */
+ public EventInner withEventResponseMessage(EventResponseMessage eventResponseMessage) {
+ this.eventResponseMessage = eventResponseMessage;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public EventInner withId(String id) {
+ super.withId(id);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (eventRequestMessage() != null) {
+ eventRequestMessage().validate();
+ }
+ if (eventResponseMessage() != null) {
+ eventResponseMessage().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ExportPipelineInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ExportPipelineInner.java
new file mode 100644
index 000000000000..27fa8aa01af4
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ExportPipelineInner.java
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.ExportPipelineTargetProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.IdentityProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.PipelineOptions;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** An object that represents an export pipeline for a container registry. */
+@JsonFlatten
+@Fluent
+public class ExportPipelineInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ExportPipelineInner.class);
+
+ /*
+ * The location of the export pipeline.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /*
+ * The identity of the export pipeline.
+ */
+ @JsonProperty(value = "identity")
+ private IdentityProperties identity;
+
+ /*
+ * The target properties of the export pipeline.
+ */
+ @JsonProperty(value = "properties.target")
+ private ExportPipelineTargetProperties target;
+
+ /*
+ * The list of all options configured for the pipeline.
+ */
+ @JsonProperty(value = "properties.options")
+ private List options;
+
+ /*
+ * The provisioning state of the pipeline at the time the operation was
+ * called.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the location property: The location of the export pipeline.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: The location of the export pipeline.
+ *
+ * @param location the location value to set.
+ * @return the ExportPipelineInner object itself.
+ */
+ public ExportPipelineInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity of the export pipeline.
+ *
+ * @return the identity value.
+ */
+ public IdentityProperties identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the export pipeline.
+ *
+ * @param identity the identity value to set.
+ * @return the ExportPipelineInner object itself.
+ */
+ public ExportPipelineInner withIdentity(IdentityProperties identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the target property: The target properties of the export pipeline.
+ *
+ * @return the target value.
+ */
+ public ExportPipelineTargetProperties target() {
+ return this.target;
+ }
+
+ /**
+ * Set the target property: The target properties of the export pipeline.
+ *
+ * @param target the target value to set.
+ * @return the ExportPipelineInner object itself.
+ */
+ public ExportPipelineInner withTarget(ExportPipelineTargetProperties target) {
+ this.target = target;
+ return this;
+ }
+
+ /**
+ * Get the options property: The list of all options configured for the pipeline.
+ *
+ * @return the options value.
+ */
+ public List options() {
+ return this.options;
+ }
+
+ /**
+ * Set the options property: The list of all options configured for the pipeline.
+ *
+ * @param options the options value to set.
+ * @return the ExportPipelineInner object itself.
+ */
+ public ExportPipelineInner withOptions(List options) {
+ this.options = options;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the pipeline at the time the operation was called.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @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 (identity() != null) {
+ identity().validate();
+ }
+ if (target() != null) {
+ target().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/GenerateCredentialsResultInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/GenerateCredentialsResultInner.java
new file mode 100644
index 000000000000..0e8de7987212
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/GenerateCredentialsResultInner.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.TokenPassword;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The response from the GenerateCredentials operation. */
+@Fluent
+public final class GenerateCredentialsResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(GenerateCredentialsResultInner.class);
+
+ /*
+ * The username for a container registry.
+ */
+ @JsonProperty(value = "username")
+ private String username;
+
+ /*
+ * The list of passwords for a container registry.
+ */
+ @JsonProperty(value = "passwords")
+ private List passwords;
+
+ /**
+ * Get the username property: The username for a container registry.
+ *
+ * @return the username value.
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username property: The username for a container registry.
+ *
+ * @param username the username value to set.
+ * @return the GenerateCredentialsResultInner object itself.
+ */
+ public GenerateCredentialsResultInner withUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the passwords property: The list of passwords for a container registry.
+ *
+ * @return the passwords value.
+ */
+ public List passwords() {
+ return this.passwords;
+ }
+
+ /**
+ * Set the passwords property: The list of passwords for a container registry.
+ *
+ * @param passwords the passwords value to set.
+ * @return the GenerateCredentialsResultInner object itself.
+ */
+ public GenerateCredentialsResultInner withPasswords(List passwords) {
+ this.passwords = passwords;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (passwords() != null) {
+ passwords().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ImportPipelineInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ImportPipelineInner.java
new file mode 100644
index 000000000000..4e6049b3fb38
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ImportPipelineInner.java
@@ -0,0 +1,204 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.IdentityProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.ImportPipelineSourceProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.PipelineOptions;
+import com.azure.resourcemanager.containerregistry.generated.models.PipelineTriggerProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** An object that represents an import pipeline for a container registry. */
+@JsonFlatten
+@Fluent
+public class ImportPipelineInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ImportPipelineInner.class);
+
+ /*
+ * The location of the import pipeline.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /*
+ * The identity of the import pipeline.
+ */
+ @JsonProperty(value = "identity")
+ private IdentityProperties identity;
+
+ /*
+ * The source properties of the import pipeline.
+ */
+ @JsonProperty(value = "properties.source")
+ private ImportPipelineSourceProperties source;
+
+ /*
+ * The properties that describe the trigger of the import pipeline.
+ */
+ @JsonProperty(value = "properties.trigger")
+ private PipelineTriggerProperties trigger;
+
+ /*
+ * The list of all options configured for the pipeline.
+ */
+ @JsonProperty(value = "properties.options")
+ private List options;
+
+ /*
+ * The provisioning state of the pipeline at the time the operation was
+ * called.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the location property: The location of the import pipeline.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: The location of the import pipeline.
+ *
+ * @param location the location value to set.
+ * @return the ImportPipelineInner object itself.
+ */
+ public ImportPipelineInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity of the import pipeline.
+ *
+ * @return the identity value.
+ */
+ public IdentityProperties identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the import pipeline.
+ *
+ * @param identity the identity value to set.
+ * @return the ImportPipelineInner object itself.
+ */
+ public ImportPipelineInner withIdentity(IdentityProperties identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the source property: The source properties of the import pipeline.
+ *
+ * @return the source value.
+ */
+ public ImportPipelineSourceProperties source() {
+ return this.source;
+ }
+
+ /**
+ * Set the source property: The source properties of the import pipeline.
+ *
+ * @param source the source value to set.
+ * @return the ImportPipelineInner object itself.
+ */
+ public ImportPipelineInner withSource(ImportPipelineSourceProperties source) {
+ this.source = source;
+ return this;
+ }
+
+ /**
+ * Get the trigger property: The properties that describe the trigger of the import pipeline.
+ *
+ * @return the trigger value.
+ */
+ public PipelineTriggerProperties trigger() {
+ return this.trigger;
+ }
+
+ /**
+ * Set the trigger property: The properties that describe the trigger of the import pipeline.
+ *
+ * @param trigger the trigger value to set.
+ * @return the ImportPipelineInner object itself.
+ */
+ public ImportPipelineInner withTrigger(PipelineTriggerProperties trigger) {
+ this.trigger = trigger;
+ return this;
+ }
+
+ /**
+ * Get the options property: The list of all options configured for the pipeline.
+ *
+ * @return the options value.
+ */
+ public List options() {
+ return this.options;
+ }
+
+ /**
+ * Set the options property: The list of all options configured for the pipeline.
+ *
+ * @param options the options value to set.
+ * @return the ImportPipelineInner object itself.
+ */
+ public ImportPipelineInner withOptions(List options) {
+ this.options = options;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the pipeline at the time the operation was called.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @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 (identity() != null) {
+ identity().validate();
+ }
+ if (source() != null) {
+ source().validate();
+ }
+ if (trigger() != null) {
+ trigger().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/OperationDefinitionInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/OperationDefinitionInner.java
new file mode 100644
index 000000000000..740d1edbc515
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/OperationDefinitionInner.java
@@ -0,0 +1,169 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.OperationDisplayDefinition;
+import com.azure.resourcemanager.containerregistry.generated.models.OperationServiceSpecificationDefinition;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The definition of a container registry operation. */
+@JsonFlatten
+@Fluent
+public class OperationDefinitionInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDefinitionInner.class);
+
+ /*
+ * The origin information of the container registry operation.
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /*
+ * Operation name: {provider}/{resource}/{operation}.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The display information for the container registry operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplayDefinition display;
+
+ /*
+ * This property indicates if the operation is an action or a data action
+ * ref:
+ * https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions#management-and-data-operations
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /*
+ * The definition of Azure Monitoring service.
+ */
+ @JsonProperty(value = "properties.serviceSpecification")
+ private OperationServiceSpecificationDefinition serviceSpecification;
+
+ /**
+ * Get the origin property: The origin information of the container registry operation.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: The origin information of the container registry operation.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationDefinitionInner object itself.
+ */
+ public OperationDefinitionInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Get the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @param name the name value to set.
+ * @return the OperationDefinitionInner object itself.
+ */
+ public OperationDefinitionInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the display property: The display information for the container registry operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplayDefinition display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: The display information for the container registry operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationDefinitionInner object itself.
+ */
+ public OperationDefinitionInner withDisplay(OperationDisplayDefinition display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the isDataAction property: This property indicates if the operation is an action or a data action ref:
+ * https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions#management-and-data-operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: This property indicates if the operation is an action or a data action ref:
+ * https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions#management-and-data-operations.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationDefinitionInner object itself.
+ */
+ public OperationDefinitionInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the serviceSpecification property: The definition of Azure Monitoring service.
+ *
+ * @return the serviceSpecification value.
+ */
+ public OperationServiceSpecificationDefinition serviceSpecification() {
+ return this.serviceSpecification;
+ }
+
+ /**
+ * Set the serviceSpecification property: The definition of Azure Monitoring service.
+ *
+ * @param serviceSpecification the serviceSpecification value to set.
+ * @return the OperationDefinitionInner object itself.
+ */
+ public OperationDefinitionInner withServiceSpecification(
+ OperationServiceSpecificationDefinition serviceSpecification) {
+ this.serviceSpecification = serviceSpecification;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ if (serviceSpecification() != null) {
+ serviceSpecification().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/PipelineRunInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/PipelineRunInner.java
new file mode 100644
index 000000000000..4493a10b5b14
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/PipelineRunInner.java
@@ -0,0 +1,137 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.PipelineRunRequest;
+import com.azure.resourcemanager.containerregistry.generated.models.PipelineRunResponse;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** An object that represents a pipeline run for a container registry. */
+@JsonFlatten
+@Fluent
+public class PipelineRunInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PipelineRunInner.class);
+
+ /*
+ * The provisioning state of a pipeline run.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The request parameters for a pipeline run.
+ */
+ @JsonProperty(value = "properties.request")
+ private PipelineRunRequest request;
+
+ /*
+ * The response of a pipeline run.
+ */
+ @JsonProperty(value = "properties.response", access = JsonProperty.Access.WRITE_ONLY)
+ private PipelineRunResponse response;
+
+ /*
+ * How the pipeline run should be forced to recreate even if the pipeline
+ * run configuration has not changed.
+ */
+ @JsonProperty(value = "properties.forceUpdateTag")
+ private String forceUpdateTag;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the provisioningState property: The provisioning state of a pipeline run.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the request property: The request parameters for a pipeline run.
+ *
+ * @return the request value.
+ */
+ public PipelineRunRequest request() {
+ return this.request;
+ }
+
+ /**
+ * Set the request property: The request parameters for a pipeline run.
+ *
+ * @param request the request value to set.
+ * @return the PipelineRunInner object itself.
+ */
+ public PipelineRunInner withRequest(PipelineRunRequest request) {
+ this.request = request;
+ return this;
+ }
+
+ /**
+ * Get the response property: The response of a pipeline run.
+ *
+ * @return the response value.
+ */
+ public PipelineRunResponse response() {
+ return this.response;
+ }
+
+ /**
+ * Get the forceUpdateTag property: How the pipeline run should be forced to recreate even if the pipeline run
+ * configuration has not changed.
+ *
+ * @return the forceUpdateTag value.
+ */
+ public String forceUpdateTag() {
+ return this.forceUpdateTag;
+ }
+
+ /**
+ * Set the forceUpdateTag property: How the pipeline run should be forced to recreate even if the pipeline run
+ * configuration has not changed.
+ *
+ * @param forceUpdateTag the forceUpdateTag value to set.
+ * @return the PipelineRunInner object itself.
+ */
+ public PipelineRunInner withForceUpdateTag(String forceUpdateTag) {
+ this.forceUpdateTag = forceUpdateTag;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @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 (request() != null) {
+ request().validate();
+ }
+ if (response() != null) {
+ response().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/PrivateEndpointConnectionInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 000000000000..a8b9ce0539a2
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,123 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.PrivateEndpoint;
+import com.azure.resourcemanager.containerregistry.generated.models.PrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** An object that represents a private endpoint connection for a container registry. */
+@JsonFlatten
+@Fluent
+public class PrivateEndpointConnectionInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
+
+ /*
+ * The resource of private endpoint.
+ */
+ @JsonProperty(value = "properties.privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between
+ * service consumer and provider.
+ */
+ @JsonProperty(value = "properties.privateLinkServiceConnectionState")
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of private endpoint connection resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the privateEndpoint property: The resource of private endpoint.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private endpoint.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @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 (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/PrivateLinkResourceInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 000000000000..0b60bced8f9a
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,172 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A resource that supports private link capabilities. */
+@JsonFlatten
+@Fluent
+public class PrivateLinkResourceInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class);
+
+ /*
+ * The resource type is private link resource.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /*
+ * The resource ID.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "properties.groupId")
+ private String groupId;
+
+ /*
+ * The private link resource required member names.
+ */
+ @JsonProperty(value = "properties.requiredMembers")
+ private List requiredMembers;
+
+ /*
+ * The private link resource Private link DNS zone name.
+ */
+ @JsonProperty(value = "properties.requiredZoneNames")
+ private List requiredZoneNames;
+
+ /**
+ * Get the type property: The resource type is private link resource.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the id property: The resource ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: The resource ID.
+ *
+ * @param id the id value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the resource.
+ *
+ * @param name the name value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Set the groupId property: The private link resource group id.
+ *
+ * @param groupId the groupId value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withGroupId(String groupId) {
+ this.groupId = groupId;
+ return this;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Set the requiredMembers property: The private link resource required member names.
+ *
+ * @param requiredMembers the requiredMembers value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredMembers(List requiredMembers) {
+ this.requiredMembers = requiredMembers;
+ return this;
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryInner.java
new file mode 100644
index 000000000000..25ee2f6675b4
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryInner.java
@@ -0,0 +1,479 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.EncryptionProperty;
+import com.azure.resourcemanager.containerregistry.generated.models.IdentityProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.NetworkRuleBypassOptions;
+import com.azure.resourcemanager.containerregistry.generated.models.NetworkRuleSet;
+import com.azure.resourcemanager.containerregistry.generated.models.Policies;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.azure.resourcemanager.containerregistry.generated.models.PublicNetworkAccess;
+import com.azure.resourcemanager.containerregistry.generated.models.Sku;
+import com.azure.resourcemanager.containerregistry.generated.models.Status;
+import com.azure.resourcemanager.containerregistry.generated.models.ZoneRedundancy;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** An object that represents a container registry. */
+@JsonFlatten
+@Fluent
+public class RegistryInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegistryInner.class);
+
+ /*
+ * The SKU of the container registry.
+ */
+ @JsonProperty(value = "sku", required = true)
+ private Sku sku;
+
+ /*
+ * The identity of the container registry.
+ */
+ @JsonProperty(value = "identity")
+ private IdentityProperties identity;
+
+ /*
+ * The URL that can be used to log into the container registry.
+ */
+ @JsonProperty(value = "properties.loginServer", access = JsonProperty.Access.WRITE_ONLY)
+ private String loginServer;
+
+ /*
+ * The creation date of the container registry in ISO8601 format.
+ */
+ @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime creationDate;
+
+ /*
+ * The provisioning state of the container registry at the time the
+ * operation was called.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The status of the container registry at the time the operation was
+ * called.
+ */
+ @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY)
+ private Status status;
+
+ /*
+ * The value that indicates whether the admin user is enabled.
+ */
+ @JsonProperty(value = "properties.adminUserEnabled")
+ private Boolean adminUserEnabled;
+
+ /*
+ * The network rule set for a container registry.
+ */
+ @JsonProperty(value = "properties.networkRuleSet")
+ private NetworkRuleSet networkRuleSet;
+
+ /*
+ * The policies for a container registry.
+ */
+ @JsonProperty(value = "properties.policies")
+ private Policies policies;
+
+ /*
+ * The encryption settings of container registry.
+ */
+ @JsonProperty(value = "properties.encryption")
+ private EncryptionProperty encryption;
+
+ /*
+ * Enable a single data endpoint per region for serving data.
+ */
+ @JsonProperty(value = "properties.dataEndpointEnabled")
+ private Boolean dataEndpointEnabled;
+
+ /*
+ * List of host names that will serve data when dataEndpointEnabled is
+ * true.
+ */
+ @JsonProperty(value = "properties.dataEndpointHostNames", access = JsonProperty.Access.WRITE_ONLY)
+ private List dataEndpointHostNames;
+
+ /*
+ * List of private endpoint connections for a container registry.
+ */
+ @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
+ /*
+ * Whether or not public network access is allowed for the container
+ * registry.
+ */
+ @JsonProperty(value = "properties.publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * Whether to allow trusted Azure services to access a network restricted
+ * registry.
+ */
+ @JsonProperty(value = "properties.networkRuleBypassOptions")
+ private NetworkRuleBypassOptions networkRuleBypassOptions;
+
+ /*
+ * Whether or not zone redundancy is enabled for this container registry
+ */
+ @JsonProperty(value = "properties.zoneRedundancy")
+ private ZoneRedundancy zoneRedundancy;
+
+ /*
+ * Enables registry-wide pull from unauthenticated clients.
+ */
+ @JsonProperty(value = "properties.anonymousPullEnabled")
+ private Boolean anonymousPullEnabled;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the sku property: The SKU of the container registry.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU of the container registry.
+ *
+ * @param sku the sku value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity of the container registry.
+ *
+ * @return the identity value.
+ */
+ public IdentityProperties identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the container registry.
+ *
+ * @param identity the identity value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withIdentity(IdentityProperties identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the loginServer property: The URL that can be used to log into the container registry.
+ *
+ * @return the loginServer value.
+ */
+ public String loginServer() {
+ return this.loginServer;
+ }
+
+ /**
+ * Get the creationDate property: The creation date of the container registry in ISO8601 format.
+ *
+ * @return the creationDate value.
+ */
+ public OffsetDateTime creationDate() {
+ return this.creationDate;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the container registry at the time the operation
+ * was called.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: The status of the container registry at the time the operation was called.
+ *
+ * @return the status value.
+ */
+ public Status status() {
+ return this.status;
+ }
+
+ /**
+ * Get the adminUserEnabled property: The value that indicates whether the admin user is enabled.
+ *
+ * @return the adminUserEnabled value.
+ */
+ public Boolean adminUserEnabled() {
+ return this.adminUserEnabled;
+ }
+
+ /**
+ * Set the adminUserEnabled property: The value that indicates whether the admin user is enabled.
+ *
+ * @param adminUserEnabled the adminUserEnabled value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withAdminUserEnabled(Boolean adminUserEnabled) {
+ this.adminUserEnabled = adminUserEnabled;
+ return this;
+ }
+
+ /**
+ * Get the networkRuleSet property: The network rule set for a container registry.
+ *
+ * @return the networkRuleSet value.
+ */
+ public NetworkRuleSet networkRuleSet() {
+ return this.networkRuleSet;
+ }
+
+ /**
+ * Set the networkRuleSet property: The network rule set for a container registry.
+ *
+ * @param networkRuleSet the networkRuleSet value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ this.networkRuleSet = networkRuleSet;
+ return this;
+ }
+
+ /**
+ * Get the policies property: The policies for a container registry.
+ *
+ * @return the policies value.
+ */
+ public Policies policies() {
+ return this.policies;
+ }
+
+ /**
+ * Set the policies property: The policies for a container registry.
+ *
+ * @param policies the policies value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withPolicies(Policies policies) {
+ this.policies = policies;
+ return this;
+ }
+
+ /**
+ * Get the encryption property: The encryption settings of container registry.
+ *
+ * @return the encryption value.
+ */
+ public EncryptionProperty encryption() {
+ return this.encryption;
+ }
+
+ /**
+ * Set the encryption property: The encryption settings of container registry.
+ *
+ * @param encryption the encryption value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withEncryption(EncryptionProperty encryption) {
+ this.encryption = encryption;
+ return this;
+ }
+
+ /**
+ * Get the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.
+ *
+ * @return the dataEndpointEnabled value.
+ */
+ public Boolean dataEndpointEnabled() {
+ return this.dataEndpointEnabled;
+ }
+
+ /**
+ * Set the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.
+ *
+ * @param dataEndpointEnabled the dataEndpointEnabled value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withDataEndpointEnabled(Boolean dataEndpointEnabled) {
+ this.dataEndpointEnabled = dataEndpointEnabled;
+ return this;
+ }
+
+ /**
+ * Get the dataEndpointHostNames property: List of host names that will serve data when dataEndpointEnabled is true.
+ *
+ * @return the dataEndpointHostNames value.
+ */
+ public List dataEndpointHostNames() {
+ return this.dataEndpointHostNames;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connections for a container registry.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted
+ * registry.
+ *
+ * @return the networkRuleBypassOptions value.
+ */
+ public NetworkRuleBypassOptions networkRuleBypassOptions() {
+ return this.networkRuleBypassOptions;
+ }
+
+ /**
+ * Set the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted
+ * registry.
+ *
+ * @param networkRuleBypassOptions the networkRuleBypassOptions value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withNetworkRuleBypassOptions(NetworkRuleBypassOptions networkRuleBypassOptions) {
+ this.networkRuleBypassOptions = networkRuleBypassOptions;
+ return this;
+ }
+
+ /**
+ * Get the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry.
+ *
+ * @return the zoneRedundancy value.
+ */
+ public ZoneRedundancy zoneRedundancy() {
+ return this.zoneRedundancy;
+ }
+
+ /**
+ * Set the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry.
+ *
+ * @param zoneRedundancy the zoneRedundancy value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withZoneRedundancy(ZoneRedundancy zoneRedundancy) {
+ this.zoneRedundancy = zoneRedundancy;
+ return this;
+ }
+
+ /**
+ * Get the anonymousPullEnabled property: Enables registry-wide pull from unauthenticated clients.
+ *
+ * @return the anonymousPullEnabled value.
+ */
+ public Boolean anonymousPullEnabled() {
+ return this.anonymousPullEnabled;
+ }
+
+ /**
+ * Set the anonymousPullEnabled property: Enables registry-wide pull from unauthenticated clients.
+ *
+ * @param anonymousPullEnabled the anonymousPullEnabled value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withAnonymousPullEnabled(Boolean anonymousPullEnabled) {
+ this.anonymousPullEnabled = anonymousPullEnabled;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RegistryInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RegistryInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property sku in model RegistryInner"));
+ } else {
+ sku().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ if (networkRuleSet() != null) {
+ networkRuleSet().validate();
+ }
+ if (policies() != null) {
+ policies().validate();
+ }
+ if (encryption() != null) {
+ encryption().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryListCredentialsResultInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryListCredentialsResultInner.java
new file mode 100644
index 000000000000..214774300ebf
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryListCredentialsResultInner.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.RegistryPassword;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The response from the ListCredentials operation. */
+@Fluent
+public final class RegistryListCredentialsResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegistryListCredentialsResultInner.class);
+
+ /*
+ * The username for a container registry.
+ */
+ @JsonProperty(value = "username")
+ private String username;
+
+ /*
+ * The list of passwords for a container registry.
+ */
+ @JsonProperty(value = "passwords")
+ private List passwords;
+
+ /**
+ * Get the username property: The username for a container registry.
+ *
+ * @return the username value.
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username property: The username for a container registry.
+ *
+ * @param username the username value to set.
+ * @return the RegistryListCredentialsResultInner object itself.
+ */
+ public RegistryListCredentialsResultInner withUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the passwords property: The list of passwords for a container registry.
+ *
+ * @return the passwords value.
+ */
+ public List passwords() {
+ return this.passwords;
+ }
+
+ /**
+ * Set the passwords property: The list of passwords for a container registry.
+ *
+ * @param passwords the passwords value to set.
+ * @return the RegistryListCredentialsResultInner object itself.
+ */
+ public RegistryListCredentialsResultInner withPasswords(List passwords) {
+ this.passwords = passwords;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (passwords() != null) {
+ passwords().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryNameStatusInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryNameStatusInner.java
new file mode 100644
index 000000000000..d53a5cc678d0
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryNameStatusInner.java
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The result of a request to check the availability of a container registry name. */
+@Fluent
+public final class RegistryNameStatusInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegistryNameStatusInner.class);
+
+ /*
+ * The value that indicates whether the name is available.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /*
+ * If any, the reason that the name is not available.
+ */
+ @JsonProperty(value = "reason")
+ private String reason;
+
+ /*
+ * If any, the error message that provides more detail for the reason that
+ * the name is not available.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /**
+ * Get the nameAvailable property: The value that indicates whether the name is available.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set the nameAvailable property: The value that indicates whether the name is available.
+ *
+ * @param nameAvailable the nameAvailable value to set.
+ * @return the RegistryNameStatusInner object itself.
+ */
+ public RegistryNameStatusInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the reason property: If any, the reason that the name is not available.
+ *
+ * @return the reason value.
+ */
+ public String reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: If any, the reason that the name is not available.
+ *
+ * @param reason the reason value to set.
+ * @return the RegistryNameStatusInner object itself.
+ */
+ public RegistryNameStatusInner withReason(String reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Get the message property: If any, the error message that provides more detail for the reason that the name is not
+ * available.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the message property: If any, the error message that provides more detail for the reason that the name is not
+ * available.
+ *
+ * @param message the message value to set.
+ * @return the RegistryNameStatusInner object itself.
+ */
+ public RegistryNameStatusInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryUsageListResultInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryUsageListResultInner.java
new file mode 100644
index 000000000000..fffcf90e081b
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RegistryUsageListResultInner.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.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.RegistryUsage;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The result of a request to get container registry quota usages. */
+@Fluent
+public final class RegistryUsageListResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegistryUsageListResultInner.class);
+
+ /*
+ * The list of container registry quota usages.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: The list of container registry quota usages.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The list of container registry quota usages.
+ *
+ * @param value the value value to set.
+ * @return the RegistryUsageListResultInner object itself.
+ */
+ public RegistryUsageListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ReplicationInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ReplicationInner.java
new file mode 100644
index 000000000000..a32f2c55e0a5
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ReplicationInner.java
@@ -0,0 +1,158 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.azure.resourcemanager.containerregistry.generated.models.Status;
+import com.azure.resourcemanager.containerregistry.generated.models.ZoneRedundancy;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** An object that represents a replication for a container registry. */
+@JsonFlatten
+@Fluent
+public class ReplicationInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicationInner.class);
+
+ /*
+ * The provisioning state of the replication at the time the operation was
+ * called.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The status of the replication at the time the operation was called.
+ */
+ @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY)
+ private Status status;
+
+ /*
+ * Specifies whether the replication's regional endpoint is enabled.
+ * Requests will not be routed to a replication whose regional endpoint is
+ * disabled, however its data will continue to be synced with other
+ * replications.
+ */
+ @JsonProperty(value = "properties.regionEndpointEnabled")
+ private Boolean regionEndpointEnabled;
+
+ /*
+ * Whether or not zone redundancy is enabled for this container registry
+ * replication
+ */
+ @JsonProperty(value = "properties.zoneRedundancy")
+ private ZoneRedundancy zoneRedundancy;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the provisioningState property: The provisioning state of the replication at the time the operation was
+ * called.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: The status of the replication at the time the operation was called.
+ *
+ * @return the status value.
+ */
+ public Status status() {
+ return this.status;
+ }
+
+ /**
+ * Get the regionEndpointEnabled property: Specifies whether the replication's regional endpoint is enabled.
+ * Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue
+ * to be synced with other replications.
+ *
+ * @return the regionEndpointEnabled value.
+ */
+ public Boolean regionEndpointEnabled() {
+ return this.regionEndpointEnabled;
+ }
+
+ /**
+ * Set the regionEndpointEnabled property: Specifies whether the replication's regional endpoint is enabled.
+ * Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue
+ * to be synced with other replications.
+ *
+ * @param regionEndpointEnabled the regionEndpointEnabled value to set.
+ * @return the ReplicationInner object itself.
+ */
+ public ReplicationInner withRegionEndpointEnabled(Boolean regionEndpointEnabled) {
+ this.regionEndpointEnabled = regionEndpointEnabled;
+ return this;
+ }
+
+ /**
+ * Get the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry
+ * replication.
+ *
+ * @return the zoneRedundancy value.
+ */
+ public ZoneRedundancy zoneRedundancy() {
+ return this.zoneRedundancy;
+ }
+
+ /**
+ * Set the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry
+ * replication.
+ *
+ * @param zoneRedundancy the zoneRedundancy value to set.
+ * @return the ReplicationInner object itself.
+ */
+ public ReplicationInner withZoneRedundancy(ZoneRedundancy zoneRedundancy) {
+ this.zoneRedundancy = zoneRedundancy;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ReplicationInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ReplicationInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (status() != null) {
+ status().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RunGetLogResultInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RunGetLogResultInner.java
new file mode 100644
index 000000000000..0c270f22641d
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RunGetLogResultInner.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The result of get log link operation. */
+@Fluent
+public final class RunGetLogResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RunGetLogResultInner.class);
+
+ /*
+ * The link to logs for a run on a azure container registry.
+ */
+ @JsonProperty(value = "logLink")
+ private String logLink;
+
+ /*
+ * The link to logs in registry for a run on a azure container registry.
+ */
+ @JsonProperty(value = "logArtifactLink")
+ private String logArtifactLink;
+
+ /**
+ * Get the logLink property: The link to logs for a run on a azure container registry.
+ *
+ * @return the logLink value.
+ */
+ public String logLink() {
+ return this.logLink;
+ }
+
+ /**
+ * Set the logLink property: The link to logs for a run on a azure container registry.
+ *
+ * @param logLink the logLink value to set.
+ * @return the RunGetLogResultInner object itself.
+ */
+ public RunGetLogResultInner withLogLink(String logLink) {
+ this.logLink = logLink;
+ return this;
+ }
+
+ /**
+ * Get the logArtifactLink property: The link to logs in registry for a run on a azure container registry.
+ *
+ * @return the logArtifactLink value.
+ */
+ public String logArtifactLink() {
+ return this.logArtifactLink;
+ }
+
+ /**
+ * Set the logArtifactLink property: The link to logs in registry for a run on a azure container registry.
+ *
+ * @param logArtifactLink the logArtifactLink value to set.
+ * @return the RunGetLogResultInner object itself.
+ */
+ public RunGetLogResultInner withLogArtifactLink(String logArtifactLink) {
+ this.logArtifactLink = logArtifactLink;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RunInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RunInner.java
new file mode 100644
index 000000000000..63cc7859fadd
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/RunInner.java
@@ -0,0 +1,635 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.ImageDescriptor;
+import com.azure.resourcemanager.containerregistry.generated.models.ImageUpdateTrigger;
+import com.azure.resourcemanager.containerregistry.generated.models.PlatformProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.azure.resourcemanager.containerregistry.generated.models.RunStatus;
+import com.azure.resourcemanager.containerregistry.generated.models.RunType;
+import com.azure.resourcemanager.containerregistry.generated.models.SourceTriggerDescriptor;
+import com.azure.resourcemanager.containerregistry.generated.models.TimerTriggerDescriptor;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Run resource properties. */
+@JsonFlatten
+@Fluent
+public class RunInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RunInner.class);
+
+ /*
+ * The unique identifier for the run.
+ */
+ @JsonProperty(value = "properties.runId")
+ private String runId;
+
+ /*
+ * The current status of the run.
+ */
+ @JsonProperty(value = "properties.status")
+ private RunStatus status;
+
+ /*
+ * The last updated time for the run.
+ */
+ @JsonProperty(value = "properties.lastUpdatedTime")
+ private OffsetDateTime lastUpdatedTime;
+
+ /*
+ * The type of run.
+ */
+ @JsonProperty(value = "properties.runType")
+ private RunType runType;
+
+ /*
+ * The dedicated agent pool for the run.
+ */
+ @JsonProperty(value = "properties.agentPoolName")
+ private String agentPoolName;
+
+ /*
+ * The time the run was scheduled.
+ */
+ @JsonProperty(value = "properties.createTime")
+ private OffsetDateTime createTime;
+
+ /*
+ * The time the run started.
+ */
+ @JsonProperty(value = "properties.startTime")
+ private OffsetDateTime startTime;
+
+ /*
+ * The time the run finished.
+ */
+ @JsonProperty(value = "properties.finishTime")
+ private OffsetDateTime finishTime;
+
+ /*
+ * The list of all images that were generated from the run. This is
+ * applicable if the run generates base image dependencies.
+ */
+ @JsonProperty(value = "properties.outputImages")
+ private List outputImages;
+
+ /*
+ * The task against which run was scheduled.
+ */
+ @JsonProperty(value = "properties.task")
+ private String task;
+
+ /*
+ * The image update trigger that caused the run. This is applicable if the
+ * task has base image trigger configured.
+ */
+ @JsonProperty(value = "properties.imageUpdateTrigger")
+ private ImageUpdateTrigger imageUpdateTrigger;
+
+ /*
+ * The source trigger that caused the run.
+ */
+ @JsonProperty(value = "properties.sourceTrigger")
+ private SourceTriggerDescriptor sourceTrigger;
+
+ /*
+ * The timer trigger that caused the run.
+ */
+ @JsonProperty(value = "properties.timerTrigger")
+ private TimerTriggerDescriptor timerTrigger;
+
+ /*
+ * The platform properties against which the run will happen.
+ */
+ @JsonProperty(value = "properties.platform")
+ private PlatformProperties platform;
+
+ /*
+ * The machine configuration of the run agent.
+ */
+ @JsonProperty(value = "properties.agentConfiguration")
+ private AgentProperties agentConfiguration;
+
+ /*
+ * The scope of the credentials that were used to login to the source
+ * registry during this run.
+ */
+ @JsonProperty(value = "properties.sourceRegistryAuth")
+ private String sourceRegistryAuth;
+
+ /*
+ * The list of custom registries that were logged in during this run.
+ */
+ @JsonProperty(value = "properties.customRegistries")
+ private List customRegistries;
+
+ /*
+ * The error message received from backend systems after the run is
+ * scheduled.
+ */
+ @JsonProperty(value = "properties.runErrorMessage", access = JsonProperty.Access.WRITE_ONLY)
+ private String runErrorMessage;
+
+ /*
+ * The update trigger token passed for the Run.
+ */
+ @JsonProperty(value = "properties.updateTriggerToken")
+ private String updateTriggerToken;
+
+ /*
+ * The image description for the log artifact.
+ */
+ @JsonProperty(value = "properties.logArtifact", access = JsonProperty.Access.WRITE_ONLY)
+ private ImageDescriptor logArtifact;
+
+ /*
+ * The provisioning state of a run.
+ */
+ @JsonProperty(value = "properties.provisioningState")
+ private ProvisioningState provisioningState;
+
+ /*
+ * The value that indicates whether archiving is enabled or not.
+ */
+ @JsonProperty(value = "properties.isArchiveEnabled")
+ private Boolean isArchiveEnabled;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the runId property: The unique identifier for the run.
+ *
+ * @return the runId value.
+ */
+ public String runId() {
+ return this.runId;
+ }
+
+ /**
+ * Set the runId property: The unique identifier for the run.
+ *
+ * @param runId the runId value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withRunId(String runId) {
+ this.runId = runId;
+ return this;
+ }
+
+ /**
+ * Get the status property: The current status of the run.
+ *
+ * @return the status value.
+ */
+ public RunStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: The current status of the run.
+ *
+ * @param status the status value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withStatus(RunStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the lastUpdatedTime property: The last updated time for the run.
+ *
+ * @return the lastUpdatedTime value.
+ */
+ public OffsetDateTime lastUpdatedTime() {
+ return this.lastUpdatedTime;
+ }
+
+ /**
+ * Set the lastUpdatedTime property: The last updated time for the run.
+ *
+ * @param lastUpdatedTime the lastUpdatedTime value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withLastUpdatedTime(OffsetDateTime lastUpdatedTime) {
+ this.lastUpdatedTime = lastUpdatedTime;
+ return this;
+ }
+
+ /**
+ * Get the runType property: The type of run.
+ *
+ * @return the runType value.
+ */
+ public RunType runType() {
+ return this.runType;
+ }
+
+ /**
+ * Set the runType property: The type of run.
+ *
+ * @param runType the runType value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withRunType(RunType runType) {
+ this.runType = runType;
+ return this;
+ }
+
+ /**
+ * Get the agentPoolName property: The dedicated agent pool for the run.
+ *
+ * @return the agentPoolName value.
+ */
+ public String agentPoolName() {
+ return this.agentPoolName;
+ }
+
+ /**
+ * Set the agentPoolName property: The dedicated agent pool for the run.
+ *
+ * @param agentPoolName the agentPoolName value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withAgentPoolName(String agentPoolName) {
+ this.agentPoolName = agentPoolName;
+ return this;
+ }
+
+ /**
+ * Get the createTime property: The time the run was scheduled.
+ *
+ * @return the createTime value.
+ */
+ public OffsetDateTime createTime() {
+ return this.createTime;
+ }
+
+ /**
+ * Set the createTime property: The time the run was scheduled.
+ *
+ * @param createTime the createTime value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withCreateTime(OffsetDateTime createTime) {
+ this.createTime = createTime;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: The time the run started.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: The time the run started.
+ *
+ * @param startTime the startTime value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withStartTime(OffsetDateTime startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the finishTime property: The time the run finished.
+ *
+ * @return the finishTime value.
+ */
+ public OffsetDateTime finishTime() {
+ return this.finishTime;
+ }
+
+ /**
+ * Set the finishTime property: The time the run finished.
+ *
+ * @param finishTime the finishTime value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withFinishTime(OffsetDateTime finishTime) {
+ this.finishTime = finishTime;
+ return this;
+ }
+
+ /**
+ * Get the outputImages property: The list of all images that were generated from the run. This is applicable if the
+ * run generates base image dependencies.
+ *
+ * @return the outputImages value.
+ */
+ public List outputImages() {
+ return this.outputImages;
+ }
+
+ /**
+ * Set the outputImages property: The list of all images that were generated from the run. This is applicable if the
+ * run generates base image dependencies.
+ *
+ * @param outputImages the outputImages value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withOutputImages(List outputImages) {
+ this.outputImages = outputImages;
+ return this;
+ }
+
+ /**
+ * Get the task property: The task against which run was scheduled.
+ *
+ * @return the task value.
+ */
+ public String task() {
+ return this.task;
+ }
+
+ /**
+ * Set the task property: The task against which run was scheduled.
+ *
+ * @param task the task value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withTask(String task) {
+ this.task = task;
+ return this;
+ }
+
+ /**
+ * Get the imageUpdateTrigger property: The image update trigger that caused the run. This is applicable if the task
+ * has base image trigger configured.
+ *
+ * @return the imageUpdateTrigger value.
+ */
+ public ImageUpdateTrigger imageUpdateTrigger() {
+ return this.imageUpdateTrigger;
+ }
+
+ /**
+ * Set the imageUpdateTrigger property: The image update trigger that caused the run. This is applicable if the task
+ * has base image trigger configured.
+ *
+ * @param imageUpdateTrigger the imageUpdateTrigger value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withImageUpdateTrigger(ImageUpdateTrigger imageUpdateTrigger) {
+ this.imageUpdateTrigger = imageUpdateTrigger;
+ return this;
+ }
+
+ /**
+ * Get the sourceTrigger property: The source trigger that caused the run.
+ *
+ * @return the sourceTrigger value.
+ */
+ public SourceTriggerDescriptor sourceTrigger() {
+ return this.sourceTrigger;
+ }
+
+ /**
+ * Set the sourceTrigger property: The source trigger that caused the run.
+ *
+ * @param sourceTrigger the sourceTrigger value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withSourceTrigger(SourceTriggerDescriptor sourceTrigger) {
+ this.sourceTrigger = sourceTrigger;
+ return this;
+ }
+
+ /**
+ * Get the timerTrigger property: The timer trigger that caused the run.
+ *
+ * @return the timerTrigger value.
+ */
+ public TimerTriggerDescriptor timerTrigger() {
+ return this.timerTrigger;
+ }
+
+ /**
+ * Set the timerTrigger property: The timer trigger that caused the run.
+ *
+ * @param timerTrigger the timerTrigger value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withTimerTrigger(TimerTriggerDescriptor timerTrigger) {
+ this.timerTrigger = timerTrigger;
+ return this;
+ }
+
+ /**
+ * Get the platform property: The platform properties against which the run will happen.
+ *
+ * @return the platform value.
+ */
+ public PlatformProperties platform() {
+ return this.platform;
+ }
+
+ /**
+ * Set the platform property: The platform properties against which the run will happen.
+ *
+ * @param platform the platform value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withPlatform(PlatformProperties platform) {
+ this.platform = platform;
+ return this;
+ }
+
+ /**
+ * Get the agentConfiguration property: The machine configuration of the run agent.
+ *
+ * @return the agentConfiguration value.
+ */
+ public AgentProperties agentConfiguration() {
+ return this.agentConfiguration;
+ }
+
+ /**
+ * Set the agentConfiguration property: The machine configuration of the run agent.
+ *
+ * @param agentConfiguration the agentConfiguration value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withAgentConfiguration(AgentProperties agentConfiguration) {
+ this.agentConfiguration = agentConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the sourceRegistryAuth property: The scope of the credentials that were used to login to the source registry
+ * during this run.
+ *
+ * @return the sourceRegistryAuth value.
+ */
+ public String sourceRegistryAuth() {
+ return this.sourceRegistryAuth;
+ }
+
+ /**
+ * Set the sourceRegistryAuth property: The scope of the credentials that were used to login to the source registry
+ * during this run.
+ *
+ * @param sourceRegistryAuth the sourceRegistryAuth value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withSourceRegistryAuth(String sourceRegistryAuth) {
+ this.sourceRegistryAuth = sourceRegistryAuth;
+ return this;
+ }
+
+ /**
+ * Get the customRegistries property: The list of custom registries that were logged in during this run.
+ *
+ * @return the customRegistries value.
+ */
+ public List customRegistries() {
+ return this.customRegistries;
+ }
+
+ /**
+ * Set the customRegistries property: The list of custom registries that were logged in during this run.
+ *
+ * @param customRegistries the customRegistries value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withCustomRegistries(List customRegistries) {
+ this.customRegistries = customRegistries;
+ return this;
+ }
+
+ /**
+ * Get the runErrorMessage property: The error message received from backend systems after the run is scheduled.
+ *
+ * @return the runErrorMessage value.
+ */
+ public String runErrorMessage() {
+ return this.runErrorMessage;
+ }
+
+ /**
+ * Get the updateTriggerToken property: The update trigger token passed for the Run.
+ *
+ * @return the updateTriggerToken value.
+ */
+ public String updateTriggerToken() {
+ return this.updateTriggerToken;
+ }
+
+ /**
+ * Set the updateTriggerToken property: The update trigger token passed for the Run.
+ *
+ * @param updateTriggerToken the updateTriggerToken value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withUpdateTriggerToken(String updateTriggerToken) {
+ this.updateTriggerToken = updateTriggerToken;
+ return this;
+ }
+
+ /**
+ * Get the logArtifact property: The image description for the log artifact.
+ *
+ * @return the logArtifact value.
+ */
+ public ImageDescriptor logArtifact() {
+ return this.logArtifact;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of a run.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: The provisioning state of a run.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withProvisioningState(ProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Get the isArchiveEnabled property: The value that indicates whether archiving is enabled or not.
+ *
+ * @return the isArchiveEnabled value.
+ */
+ public Boolean isArchiveEnabled() {
+ return this.isArchiveEnabled;
+ }
+
+ /**
+ * Set the isArchiveEnabled property: The value that indicates whether archiving is enabled or not.
+ *
+ * @param isArchiveEnabled the isArchiveEnabled value to set.
+ * @return the RunInner object itself.
+ */
+ public RunInner withIsArchiveEnabled(Boolean isArchiveEnabled) {
+ this.isArchiveEnabled = isArchiveEnabled;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @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 (outputImages() != null) {
+ outputImages().forEach(e -> e.validate());
+ }
+ if (imageUpdateTrigger() != null) {
+ imageUpdateTrigger().validate();
+ }
+ if (sourceTrigger() != null) {
+ sourceTrigger().validate();
+ }
+ if (timerTrigger() != null) {
+ timerTrigger().validate();
+ }
+ if (platform() != null) {
+ platform().validate();
+ }
+ if (agentConfiguration() != null) {
+ agentConfiguration().validate();
+ }
+ if (logArtifact() != null) {
+ logArtifact().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ScopeMapInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ScopeMapInner.java
new file mode 100644
index 000000000000..6f7f96a5d88a
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/ScopeMapInner.java
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** An object that represents a scope map for a container registry. */
+@JsonFlatten
+@Fluent
+public class ScopeMapInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ScopeMapInner.class);
+
+ /*
+ * The user friendly description of the scope map.
+ */
+ @JsonProperty(value = "properties.description")
+ private String description;
+
+ /*
+ * The type of the scope map. E.g. BuildIn scope map.
+ */
+ @JsonProperty(value = "properties.type", access = JsonProperty.Access.WRITE_ONLY)
+ private String typePropertiesType;
+
+ /*
+ * The creation date of scope map.
+ */
+ @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime creationDate;
+
+ /*
+ * Provisioning state of the resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The list of scoped permissions for registry artifacts.
+ * E.g. repositories/repository-name/content/read,
+ * repositories/repository-name/metadata/write
+ */
+ @JsonProperty(value = "properties.actions")
+ private List actions;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the description property: The user friendly description of the scope map.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The user friendly description of the scope map.
+ *
+ * @param description the description value to set.
+ * @return the ScopeMapInner object itself.
+ */
+ public ScopeMapInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the typePropertiesType property: The type of the scope map. E.g. BuildIn scope map.
+ *
+ * @return the typePropertiesType value.
+ */
+ public String typePropertiesType() {
+ return this.typePropertiesType;
+ }
+
+ /**
+ * Get the creationDate property: The creation date of scope map.
+ *
+ * @return the creationDate value.
+ */
+ public OffsetDateTime creationDate() {
+ return this.creationDate;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the actions property: The list of scoped permissions for registry artifacts. E.g.
+ * repositories/repository-name/content/read, repositories/repository-name/metadata/write.
+ *
+ * @return the actions value.
+ */
+ public List actions() {
+ return this.actions;
+ }
+
+ /**
+ * Set the actions property: The list of scoped permissions for registry artifacts. E.g.
+ * repositories/repository-name/content/read, repositories/repository-name/metadata/write.
+ *
+ * @param actions the actions value to set.
+ * @return the ScopeMapInner object itself.
+ */
+ public ScopeMapInner withActions(List actions) {
+ this.actions = actions;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @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() {
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/SourceUploadDefinitionInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/SourceUploadDefinitionInner.java
new file mode 100644
index 000000000000..f158587e9893
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/SourceUploadDefinitionInner.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of a response to source upload request. */
+@Fluent
+public final class SourceUploadDefinitionInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SourceUploadDefinitionInner.class);
+
+ /*
+ * The URL where the client can upload the source.
+ */
+ @JsonProperty(value = "uploadUrl")
+ private String uploadUrl;
+
+ /*
+ * The relative path to the source. This is used to submit the subsequent
+ * queue build request.
+ */
+ @JsonProperty(value = "relativePath")
+ private String relativePath;
+
+ /**
+ * Get the uploadUrl property: The URL where the client can upload the source.
+ *
+ * @return the uploadUrl value.
+ */
+ public String uploadUrl() {
+ return this.uploadUrl;
+ }
+
+ /**
+ * Set the uploadUrl property: The URL where the client can upload the source.
+ *
+ * @param uploadUrl the uploadUrl value to set.
+ * @return the SourceUploadDefinitionInner object itself.
+ */
+ public SourceUploadDefinitionInner withUploadUrl(String uploadUrl) {
+ this.uploadUrl = uploadUrl;
+ return this;
+ }
+
+ /**
+ * Get the relativePath property: The relative path to the source. This is used to submit the subsequent queue build
+ * request.
+ *
+ * @return the relativePath value.
+ */
+ public String relativePath() {
+ return this.relativePath;
+ }
+
+ /**
+ * Set the relativePath property: The relative path to the source. This is used to submit the subsequent queue build
+ * request.
+ *
+ * @param relativePath the relativePath value to set.
+ * @return the SourceUploadDefinitionInner object itself.
+ */
+ public SourceUploadDefinitionInner withRelativePath(String relativePath) {
+ this.relativePath = relativePath;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/TaskInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/TaskInner.java
new file mode 100644
index 000000000000..4f85a101c8ff
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/TaskInner.java
@@ -0,0 +1,413 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.Credentials;
+import com.azure.resourcemanager.containerregistry.generated.models.IdentityProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.PlatformProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.azure.resourcemanager.containerregistry.generated.models.TaskStatus;
+import com.azure.resourcemanager.containerregistry.generated.models.TaskStepProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.TriggerProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/**
+ * The task that has the ARM resource and task properties. The task will have all information to schedule a run against
+ * it.
+ */
+@JsonFlatten
+@Fluent
+public class TaskInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TaskInner.class);
+
+ /*
+ * Identity for the resource.
+ */
+ @JsonProperty(value = "identity")
+ private IdentityProperties identity;
+
+ /*
+ * The provisioning state of the task.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The creation date of task.
+ */
+ @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime creationDate;
+
+ /*
+ * The current status of task.
+ */
+ @JsonProperty(value = "properties.status")
+ private TaskStatus status;
+
+ /*
+ * The platform properties against which the run has to happen.
+ */
+ @JsonProperty(value = "properties.platform")
+ private PlatformProperties platform;
+
+ /*
+ * The machine configuration of the run agent.
+ */
+ @JsonProperty(value = "properties.agentConfiguration")
+ private AgentProperties agentConfiguration;
+
+ /*
+ * The dedicated agent pool for the task.
+ */
+ @JsonProperty(value = "properties.agentPoolName")
+ private String agentPoolName;
+
+ /*
+ * Run timeout in seconds.
+ */
+ @JsonProperty(value = "properties.timeout")
+ private Integer timeout;
+
+ /*
+ * The properties of a task step.
+ */
+ @JsonProperty(value = "properties.step")
+ private TaskStepProperties step;
+
+ /*
+ * The properties that describe all triggers for the task.
+ */
+ @JsonProperty(value = "properties.trigger")
+ private TriggerProperties trigger;
+
+ /*
+ * The properties that describes a set of credentials that will be used
+ * when this run is invoked.
+ */
+ @JsonProperty(value = "properties.credentials")
+ private Credentials credentials;
+
+ /*
+ * The template that describes the repository and tag information for run
+ * log artifact.
+ */
+ @JsonProperty(value = "properties.logTemplate")
+ private String logTemplate;
+
+ /*
+ * The value of this property indicates whether the task resource is system
+ * task or not.
+ */
+ @JsonProperty(value = "properties.isSystemTask")
+ private Boolean isSystemTask;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the identity property: Identity for the resource.
+ *
+ * @return the identity value.
+ */
+ public IdentityProperties identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Identity for the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withIdentity(IdentityProperties identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the task.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the creationDate property: The creation date of task.
+ *
+ * @return the creationDate value.
+ */
+ public OffsetDateTime creationDate() {
+ return this.creationDate;
+ }
+
+ /**
+ * Get the status property: The current status of task.
+ *
+ * @return the status value.
+ */
+ public TaskStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: The current status of task.
+ *
+ * @param status the status value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withStatus(TaskStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the platform property: The platform properties against which the run has to happen.
+ *
+ * @return the platform value.
+ */
+ public PlatformProperties platform() {
+ return this.platform;
+ }
+
+ /**
+ * Set the platform property: The platform properties against which the run has to happen.
+ *
+ * @param platform the platform value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withPlatform(PlatformProperties platform) {
+ this.platform = platform;
+ return this;
+ }
+
+ /**
+ * Get the agentConfiguration property: The machine configuration of the run agent.
+ *
+ * @return the agentConfiguration value.
+ */
+ public AgentProperties agentConfiguration() {
+ return this.agentConfiguration;
+ }
+
+ /**
+ * Set the agentConfiguration property: The machine configuration of the run agent.
+ *
+ * @param agentConfiguration the agentConfiguration value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withAgentConfiguration(AgentProperties agentConfiguration) {
+ this.agentConfiguration = agentConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the agentPoolName property: The dedicated agent pool for the task.
+ *
+ * @return the agentPoolName value.
+ */
+ public String agentPoolName() {
+ return this.agentPoolName;
+ }
+
+ /**
+ * Set the agentPoolName property: The dedicated agent pool for the task.
+ *
+ * @param agentPoolName the agentPoolName value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withAgentPoolName(String agentPoolName) {
+ this.agentPoolName = agentPoolName;
+ return this;
+ }
+
+ /**
+ * Get the timeout property: Run timeout in seconds.
+ *
+ * @return the timeout value.
+ */
+ public Integer timeout() {
+ return this.timeout;
+ }
+
+ /**
+ * Set the timeout property: Run timeout in seconds.
+ *
+ * @param timeout the timeout value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withTimeout(Integer timeout) {
+ this.timeout = timeout;
+ return this;
+ }
+
+ /**
+ * Get the step property: The properties of a task step.
+ *
+ * @return the step value.
+ */
+ public TaskStepProperties step() {
+ return this.step;
+ }
+
+ /**
+ * Set the step property: The properties of a task step.
+ *
+ * @param step the step value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withStep(TaskStepProperties step) {
+ this.step = step;
+ return this;
+ }
+
+ /**
+ * Get the trigger property: The properties that describe all triggers for the task.
+ *
+ * @return the trigger value.
+ */
+ public TriggerProperties trigger() {
+ return this.trigger;
+ }
+
+ /**
+ * Set the trigger property: The properties that describe all triggers for the task.
+ *
+ * @param trigger the trigger value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withTrigger(TriggerProperties trigger) {
+ this.trigger = trigger;
+ return this;
+ }
+
+ /**
+ * Get the credentials property: The properties that describes a set of credentials that will be used when this run
+ * is invoked.
+ *
+ * @return the credentials value.
+ */
+ public Credentials credentials() {
+ return this.credentials;
+ }
+
+ /**
+ * Set the credentials property: The properties that describes a set of credentials that will be used when this run
+ * is invoked.
+ *
+ * @param credentials the credentials value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withCredentials(Credentials credentials) {
+ this.credentials = credentials;
+ return this;
+ }
+
+ /**
+ * Get the logTemplate property: The template that describes the repository and tag information for run log
+ * artifact.
+ *
+ * @return the logTemplate value.
+ */
+ public String logTemplate() {
+ return this.logTemplate;
+ }
+
+ /**
+ * Set the logTemplate property: The template that describes the repository and tag information for run log
+ * artifact.
+ *
+ * @param logTemplate the logTemplate value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withLogTemplate(String logTemplate) {
+ this.logTemplate = logTemplate;
+ return this;
+ }
+
+ /**
+ * Get the isSystemTask property: The value of this property indicates whether the task resource is system task or
+ * not.
+ *
+ * @return the isSystemTask value.
+ */
+ public Boolean isSystemTask() {
+ return this.isSystemTask;
+ }
+
+ /**
+ * Set the isSystemTask property: The value of this property indicates whether the task resource is system task or
+ * not.
+ *
+ * @param isSystemTask the isSystemTask value to set.
+ * @return the TaskInner object itself.
+ */
+ public TaskInner withIsSystemTask(Boolean isSystemTask) {
+ this.isSystemTask = isSystemTask;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public TaskInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public TaskInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (platform() != null) {
+ platform().validate();
+ }
+ if (agentConfiguration() != null) {
+ agentConfiguration().validate();
+ }
+ if (step() != null) {
+ step().validate();
+ }
+ if (trigger() != null) {
+ trigger().validate();
+ }
+ if (credentials() != null) {
+ credentials().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/TaskRunInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/TaskRunInner.java
new file mode 100644
index 000000000000..3a9de7082b97
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/TaskRunInner.java
@@ -0,0 +1,195 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.IdentityProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.azure.resourcemanager.containerregistry.generated.models.RunRequest;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The task run that has the ARM resource and properties. The task run will have the information of request and result
+ * of a run.
+ */
+@JsonFlatten
+@Fluent
+public class TaskRunInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TaskRunInner.class);
+
+ /*
+ * Identity for the resource.
+ */
+ @JsonProperty(value = "identity")
+ private IdentityProperties identity;
+
+ /*
+ * The location of the resource
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /*
+ * The provisioning state of this task run
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The request (parameters) for the run
+ */
+ @JsonProperty(value = "properties.runRequest")
+ private RunRequest runRequest;
+
+ /*
+ * The result of this task run
+ */
+ @JsonProperty(value = "properties.runResult", access = JsonProperty.Access.WRITE_ONLY)
+ private RunInner runResult;
+
+ /*
+ * How the run should be forced to rerun even if the run request
+ * configuration has not changed
+ */
+ @JsonProperty(value = "properties.forceUpdateTag")
+ private String forceUpdateTag;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the identity property: Identity for the resource.
+ *
+ * @return the identity value.
+ */
+ public IdentityProperties identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Identity for the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the TaskRunInner object itself.
+ */
+ public TaskRunInner withIdentity(IdentityProperties identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the location property: The location of the resource.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: The location of the resource.
+ *
+ * @param location the location value to set.
+ * @return the TaskRunInner object itself.
+ */
+ public TaskRunInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of this task run.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the runRequest property: The request (parameters) for the run.
+ *
+ * @return the runRequest value.
+ */
+ public RunRequest runRequest() {
+ return this.runRequest;
+ }
+
+ /**
+ * Set the runRequest property: The request (parameters) for the run.
+ *
+ * @param runRequest the runRequest value to set.
+ * @return the TaskRunInner object itself.
+ */
+ public TaskRunInner withRunRequest(RunRequest runRequest) {
+ this.runRequest = runRequest;
+ return this;
+ }
+
+ /**
+ * Get the runResult property: The result of this task run.
+ *
+ * @return the runResult value.
+ */
+ public RunInner runResult() {
+ return this.runResult;
+ }
+
+ /**
+ * Get the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has
+ * not changed.
+ *
+ * @return the forceUpdateTag value.
+ */
+ public String forceUpdateTag() {
+ return this.forceUpdateTag;
+ }
+
+ /**
+ * Set the forceUpdateTag property: How the run should be forced to rerun even if the run request configuration has
+ * not changed.
+ *
+ * @param forceUpdateTag the forceUpdateTag value to set.
+ * @return the TaskRunInner object itself.
+ */
+ public TaskRunInner withForceUpdateTag(String forceUpdateTag) {
+ this.forceUpdateTag = forceUpdateTag;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @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 (identity() != null) {
+ identity().validate();
+ }
+ if (runRequest() != null) {
+ runRequest().validate();
+ }
+ if (runResult() != null) {
+ runResult().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/TokenInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/TokenInner.java
new file mode 100644
index 000000000000..01a26fe8c2fe
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/TokenInner.java
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.azure.resourcemanager.containerregistry.generated.models.TokenCredentialsProperties;
+import com.azure.resourcemanager.containerregistry.generated.models.TokenStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** An object that represents a token for a container registry. */
+@JsonFlatten
+@Fluent
+public class TokenInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TokenInner.class);
+
+ /*
+ * The creation date of scope map.
+ */
+ @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime creationDate;
+
+ /*
+ * Provisioning state of the resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The resource ID of the scope map to which the token will be associated
+ * with.
+ */
+ @JsonProperty(value = "properties.scopeMapId")
+ private String scopeMapId;
+
+ /*
+ * The credentials that can be used for authenticating the token.
+ */
+ @JsonProperty(value = "properties.credentials")
+ private TokenCredentialsProperties credentials;
+
+ /*
+ * The status of the token example enabled or disabled.
+ */
+ @JsonProperty(value = "properties.status")
+ private TokenStatus status;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the creationDate property: The creation date of scope map.
+ *
+ * @return the creationDate value.
+ */
+ public OffsetDateTime creationDate() {
+ return this.creationDate;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the scopeMapId property: The resource ID of the scope map to which the token will be associated with.
+ *
+ * @return the scopeMapId value.
+ */
+ public String scopeMapId() {
+ return this.scopeMapId;
+ }
+
+ /**
+ * Set the scopeMapId property: The resource ID of the scope map to which the token will be associated with.
+ *
+ * @param scopeMapId the scopeMapId value to set.
+ * @return the TokenInner object itself.
+ */
+ public TokenInner withScopeMapId(String scopeMapId) {
+ this.scopeMapId = scopeMapId;
+ return this;
+ }
+
+ /**
+ * Get the credentials property: The credentials that can be used for authenticating the token.
+ *
+ * @return the credentials value.
+ */
+ public TokenCredentialsProperties credentials() {
+ return this.credentials;
+ }
+
+ /**
+ * Set the credentials property: The credentials that can be used for authenticating the token.
+ *
+ * @param credentials the credentials value to set.
+ * @return the TokenInner object itself.
+ */
+ public TokenInner withCredentials(TokenCredentialsProperties credentials) {
+ this.credentials = credentials;
+ return this;
+ }
+
+ /**
+ * Get the status property: The status of the token example enabled or disabled.
+ *
+ * @return the status value.
+ */
+ public TokenStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: The status of the token example enabled or disabled.
+ *
+ * @param status the status value to set.
+ * @return the TokenInner object itself.
+ */
+ public TokenInner withStatus(TokenStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @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 (credentials() != null) {
+ credentials().validate();
+ }
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/WebhookInner.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/WebhookInner.java
new file mode 100644
index 000000000000..7cd1af814ecb
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/WebhookInner.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.containerregistry.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import com.azure.resourcemanager.containerregistry.generated.models.WebhookAction;
+import com.azure.resourcemanager.containerregistry.generated.models.WebhookStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** An object that represents a webhook for a container registry. */
+@JsonFlatten
+@Fluent
+public class WebhookInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WebhookInner.class);
+
+ /*
+ * The status of the webhook at the time the operation was called.
+ */
+ @JsonProperty(value = "properties.status")
+ private WebhookStatus status;
+
+ /*
+ * The scope of repositories where the event can be triggered. For example,
+ * 'foo:*' means events for all tags under repository 'foo'. 'foo:bar'
+ * means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'.
+ * Empty means all events.
+ */
+ @JsonProperty(value = "properties.scope")
+ private String scope;
+
+ /*
+ * The list of actions that trigger the webhook to post notifications.
+ */
+ @JsonProperty(value = "properties.actions")
+ private List actions;
+
+ /*
+ * The provisioning state of the webhook at the time the operation was
+ * called.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the status property: The status of the webhook at the time the operation was called.
+ *
+ * @return the status value.
+ */
+ public WebhookStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: The status of the webhook at the time the operation was called.
+ *
+ * @param status the status value to set.
+ * @return the WebhookInner object itself.
+ */
+ public WebhookInner withStatus(WebhookStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the scope property: The scope of repositories where the event can be triggered. For example, 'foo:*' means
+ * events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to
+ * 'foo:latest'. Empty means all events.
+ *
+ * @return the scope value.
+ */
+ public String scope() {
+ return this.scope;
+ }
+
+ /**
+ * Set the scope property: The scope of repositories where the event can be triggered. For example, 'foo:*' means
+ * events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to
+ * 'foo:latest'. Empty means all events.
+ *
+ * @param scope the scope value to set.
+ * @return the WebhookInner object itself.
+ */
+ public WebhookInner withScope(String scope) {
+ this.scope = scope;
+ return this;
+ }
+
+ /**
+ * Get the actions property: The list of actions that trigger the webhook to post notifications.
+ *
+ * @return the actions value.
+ */
+ public List actions() {
+ return this.actions;
+ }
+
+ /**
+ * Set the actions property: The list of actions that trigger the webhook to post notifications.
+ *
+ * @param actions the actions value to set.
+ * @return the WebhookInner object itself.
+ */
+ public WebhookInner withActions(List actions) {
+ this.actions = actions;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the webhook at the time the operation was called.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public WebhookInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public WebhookInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/package-info.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/package-info.java
new file mode 100644
index 000000000000..fe41eebca6e1
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for ContainerRegistryManagementClient. null. */
+package com.azure.resourcemanager.containerregistry.generated.fluent.models;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/package-info.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/package-info.java
new file mode 100644
index 000000000000..6eed057a4348
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for ContainerRegistryManagementClient. null. */
+package com.azure.resourcemanager.containerregistry.generated.fluent;
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/implementation/AgentPoolImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/implementation/AgentPoolImpl.java
new file mode 100644
index 000000000000..6a4486edabaf
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/implementation/AgentPoolImpl.java
@@ -0,0 +1,240 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.AgentPoolInner;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPool;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPoolQueueStatus;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPoolUpdateParameters;
+import com.azure.resourcemanager.containerregistry.generated.models.OS;
+import com.azure.resourcemanager.containerregistry.generated.models.ProvisioningState;
+import java.util.Collections;
+import java.util.Map;
+
+public final class AgentPoolImpl implements AgentPool, AgentPool.Definition, AgentPool.Update {
+ private AgentPoolInner innerObject;
+
+ private final com.azure.resourcemanager.containerregistry.generated.ContainerRegistryManager 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 Integer count() {
+ return this.innerModel().count();
+ }
+
+ public String tier() {
+ return this.innerModel().tier();
+ }
+
+ public OS os() {
+ return this.innerModel().os();
+ }
+
+ public String virtualNetworkSubnetResourceId() {
+ return this.innerModel().virtualNetworkSubnetResourceId();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public AgentPoolInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.containerregistry.generated.ContainerRegistryManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String registryName;
+
+ private String agentPoolName;
+
+ private AgentPoolUpdateParameters updateUpdateParameters;
+
+ public AgentPoolImpl withExistingRegistry(String resourceGroupName, String registryName) {
+ this.resourceGroupName = resourceGroupName;
+ this.registryName = registryName;
+ return this;
+ }
+
+ public AgentPool create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAgentPools()
+ .create(resourceGroupName, registryName, agentPoolName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public AgentPool create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAgentPools()
+ .create(resourceGroupName, registryName, agentPoolName, this.innerModel(), context);
+ return this;
+ }
+
+ AgentPoolImpl(
+ String name, com.azure.resourcemanager.containerregistry.generated.ContainerRegistryManager serviceManager) {
+ this.innerObject = new AgentPoolInner();
+ this.serviceManager = serviceManager;
+ this.agentPoolName = name;
+ }
+
+ public AgentPoolImpl update() {
+ this.updateUpdateParameters = new AgentPoolUpdateParameters();
+ return this;
+ }
+
+ public AgentPool apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAgentPools()
+ .update(resourceGroupName, registryName, agentPoolName, updateUpdateParameters, Context.NONE);
+ return this;
+ }
+
+ public AgentPool apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAgentPools()
+ .update(resourceGroupName, registryName, agentPoolName, updateUpdateParameters, context);
+ return this;
+ }
+
+ AgentPoolImpl(
+ AgentPoolInner innerObject,
+ com.azure.resourcemanager.containerregistry.generated.ContainerRegistryManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.registryName = Utils.getValueFromIdByName(innerObject.id(), "registries");
+ this.agentPoolName = Utils.getValueFromIdByName(innerObject.id(), "agentPools");
+ }
+
+ public AgentPool refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAgentPools()
+ .getWithResponse(resourceGroupName, registryName, agentPoolName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AgentPool refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAgentPools()
+ .getWithResponse(resourceGroupName, registryName, agentPoolName, context)
+ .getValue();
+ return this;
+ }
+
+ public AgentPoolQueueStatus getQueueStatus() {
+ return serviceManager.agentPools().getQueueStatus(resourceGroupName, registryName, agentPoolName);
+ }
+
+ public Response getQueueStatusWithResponse(Context context) {
+ return serviceManager
+ .agentPools()
+ .getQueueStatusWithResponse(resourceGroupName, registryName, agentPoolName, context);
+ }
+
+ public AgentPoolImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public AgentPoolImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public AgentPoolImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateUpdateParameters.withTags(tags);
+ return this;
+ }
+ }
+
+ public AgentPoolImpl withCount(Integer count) {
+ if (isInCreateMode()) {
+ this.innerModel().withCount(count);
+ return this;
+ } else {
+ this.updateUpdateParameters.withCount(count);
+ return this;
+ }
+ }
+
+ public AgentPoolImpl withTier(String tier) {
+ this.innerModel().withTier(tier);
+ return this;
+ }
+
+ public AgentPoolImpl withOs(OS os) {
+ this.innerModel().withOs(os);
+ return this;
+ }
+
+ public AgentPoolImpl withVirtualNetworkSubnetResourceId(String virtualNetworkSubnetResourceId) {
+ this.innerModel().withVirtualNetworkSubnetResourceId(virtualNetworkSubnetResourceId);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/implementation/AgentPoolQueueStatusImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/implementation/AgentPoolQueueStatusImpl.java
new file mode 100644
index 000000000000..14ce743080f9
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/implementation/AgentPoolQueueStatusImpl.java
@@ -0,0 +1,33 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.implementation;
+
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.AgentPoolQueueStatusInner;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPoolQueueStatus;
+
+public final class AgentPoolQueueStatusImpl implements AgentPoolQueueStatus {
+ private AgentPoolQueueStatusInner innerObject;
+
+ private final com.azure.resourcemanager.containerregistry.generated.ContainerRegistryManager serviceManager;
+
+ AgentPoolQueueStatusImpl(
+ AgentPoolQueueStatusInner innerObject,
+ com.azure.resourcemanager.containerregistry.generated.ContainerRegistryManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Integer count() {
+ return this.innerModel().count();
+ }
+
+ public AgentPoolQueueStatusInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.containerregistry.generated.ContainerRegistryManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/implementation/AgentPoolsClientImpl.java b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/implementation/AgentPoolsClientImpl.java
new file mode 100644
index 000000000000..f84dcfa68be0
--- /dev/null
+++ b/sdk/containerregistry/azure-resourcemanager-containerregistry-generated/src/main/java/com/azure/resourcemanager/containerregistry/generated/implementation/AgentPoolsClientImpl.java
@@ -0,0 +1,1637 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerregistry.generated.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerregistry.generated.fluent.AgentPoolsClient;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.AgentPoolInner;
+import com.azure.resourcemanager.containerregistry.generated.fluent.models.AgentPoolQueueStatusInner;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPoolListResult;
+import com.azure.resourcemanager.containerregistry.generated.models.AgentPoolUpdateParameters;
+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 AgentPoolsClient. */
+public final class AgentPoolsClientImpl implements AgentPoolsClient {
+ private final ClientLogger logger = new ClientLogger(AgentPoolsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final AgentPoolsService service;
+
+ /** The service client containing this operation class. */
+ private final ContainerRegistryManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AgentPoolsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AgentPoolsClientImpl(ContainerRegistryManagementClientImpl client) {
+ this.service =
+ RestProxy.create(AgentPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ContainerRegistryManagementClientAgentPools to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ContainerRegistryMan")
+ private interface AgentPoolsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry"
+ + "/registries/{registryName}/agentPools/{agentPoolName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("registryName") String registryName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("agentPoolName") String agentPoolName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry"
+ + "/registries/{registryName}/agentPools/{agentPoolName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("registryName") String registryName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("agentPoolName") String agentPoolName,
+ @BodyParam("application/json") AgentPoolInner agentPool,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry"
+ + "/registries/{registryName}/agentPools/{agentPoolName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("registryName") String registryName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("agentPoolName") String agentPoolName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry"
+ + "/registries/{registryName}/agentPools/{agentPoolName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("registryName") String registryName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("agentPoolName") String agentPoolName,
+ @BodyParam("application/json") AgentPoolUpdateParameters updateParameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry"
+ + "/registries/{registryName}/agentPools")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("registryName") String registryName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry"
+ + "/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getQueueStatus(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("registryName") String registryName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("agentPoolName") String agentPoolName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets the detailed information for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String registryName, String agentPoolName) {
+ 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (agentPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ agentPoolName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the detailed information for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String registryName, String agentPoolName, 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (agentPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ agentPoolName,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the detailed information for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String registryName, String agentPoolName) {
+ return getWithResponseAsync(resourceGroupName, registryName, agentPoolName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets the detailed information for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AgentPoolInner get(String resourceGroupName, String registryName, String agentPoolName) {
+ return getAsync(resourceGroupName, registryName, agentPoolName).block();
+ }
+
+ /**
+ * Gets the detailed information for a given agent pool.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the detailed information for a given agent pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String registryName, String agentPoolName, Context context) {
+ return getWithResponseAsync(resourceGroupName, registryName, agentPoolName, context).block();
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool) {
+ 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (agentPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
+ }
+ if (agentPool == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPool is required and cannot be null."));
+ } else {
+ agentPool.validate();
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ agentPoolName,
+ agentPool,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolInner agentPool,
+ 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (agentPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
+ }
+ if (agentPool == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPool is required and cannot be null."));
+ } else {
+ agentPool.validate();
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ agentPoolName,
+ agentPool,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, AgentPoolInner> beginCreateAsync(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool) {
+ Mono>> mono =
+ createWithResponseAsync(resourceGroupName, registryName, agentPoolName, agentPool);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, Context.NONE);
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, AgentPoolInner> beginCreateAsync(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolInner agentPool,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createWithResponseAsync(resourceGroupName, registryName, agentPoolName, agentPool, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, context);
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AgentPoolInner> beginCreate(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool) {
+ return beginCreateAsync(resourceGroupName, registryName, agentPoolName, agentPool).getSyncPoller();
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AgentPoolInner> beginCreate(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolInner agentPool,
+ Context context) {
+ return beginCreateAsync(resourceGroupName, registryName, agentPoolName, agentPool, context).getSyncPoller();
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool) {
+ return beginCreateAsync(resourceGroupName, registryName, agentPoolName, agentPool)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolInner agentPool,
+ Context context) {
+ return beginCreateAsync(resourceGroupName, registryName, agentPoolName, agentPool, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AgentPoolInner create(
+ String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool) {
+ return createAsync(resourceGroupName, registryName, agentPoolName, agentPool).block();
+ }
+
+ /**
+ * Creates an agent pool for a container registry with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AgentPoolInner create(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolInner agentPool,
+ Context context) {
+ return createAsync(resourceGroupName, registryName, agentPoolName, agentPool, context).block();
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String registryName, String agentPoolName) {
+ 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (agentPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ agentPoolName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String registryName, String agentPoolName, 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (agentPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ agentPoolName,
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String registryName, String agentPoolName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, registryName, agentPoolName);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String registryName, String agentPoolName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, registryName, agentPoolName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String agentPoolName) {
+ return beginDeleteAsync(resourceGroupName, registryName, agentPoolName).getSyncPoller();
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String registryName, String agentPoolName, Context context) {
+ return beginDeleteAsync(resourceGroupName, registryName, agentPoolName, context).getSyncPoller();
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String registryName, String agentPoolName) {
+ return beginDeleteAsync(resourceGroupName, registryName, agentPoolName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName, String registryName, String agentPoolName, Context context) {
+ return beginDeleteAsync(resourceGroupName, registryName, agentPoolName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String registryName, String agentPoolName) {
+ deleteAsync(resourceGroupName, registryName, agentPoolName).block();
+ }
+
+ /**
+ * Deletes a specified agent pool resource.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String registryName, String agentPoolName, Context context) {
+ deleteAsync(resourceGroupName, registryName, agentPoolName, context).block();
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters) {
+ 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (agentPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
+ }
+ if (updateParameters == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter updateParameters is required and cannot be null."));
+ } else {
+ updateParameters.validate();
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ agentPoolName,
+ updateParameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters,
+ 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ if (agentPoolName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null."));
+ }
+ if (updateParameters == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter updateParameters is required and cannot be null."));
+ } else {
+ updateParameters.validate();
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ agentPoolName,
+ updateParameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, AgentPoolInner> beginUpdateAsync(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, registryName, agentPoolName, updateParameters);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, Context.NONE);
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, AgentPoolInner> beginUpdateAsync(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, registryName, agentPoolName, updateParameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, context);
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AgentPoolInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters) {
+ return beginUpdateAsync(resourceGroupName, registryName, agentPoolName, updateParameters).getSyncPoller();
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AgentPoolInner> beginUpdate(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, registryName, agentPoolName, updateParameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters) {
+ return beginUpdateAsync(resourceGroupName, registryName, agentPoolName, updateParameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, registryName, agentPoolName, updateParameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AgentPoolInner update(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters) {
+ return updateAsync(resourceGroupName, registryName, agentPoolName, updateParameters).block();
+ }
+
+ /**
+ * Updates an agent pool with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param agentPoolName The name of the agent pool.
+ * @param updateParameters The parameters for updating an agent pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the agentpool that has the ARM resource and properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AgentPoolInner update(
+ String resourceGroupName,
+ String registryName,
+ String agentPoolName,
+ AgentPoolUpdateParameters updateParameters,
+ Context context) {
+ return updateAsync(resourceGroupName, registryName, agentPoolName, updateParameters, context).block();
+ }
+
+ /**
+ * Lists all the agent pools for a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collection of agent pools.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName, String registryName) {
+ 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ 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()));
+ }
+
+ /**
+ * Lists all the agent pools for a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collection of agent pools.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String registryName, 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 (registryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter registryName is required and cannot be null."));
+ }
+ final String apiVersion = "2019-06-01-preview";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ registryName,
+ apiVersion,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Lists all the agent pools for a specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collection of agent pools.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux