diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 9099899ed75d0..33785789e9594 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -331,6 +331,7 @@ com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;1.0.0-beta
com.azure.resourcemanager:azure-resourcemanager-loadtestservice;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-automanage;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-edgeorder;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-devops;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/pom.xml b/pom.xml
index aab77f33ebeb9..78d23a067b266 100644
--- a/pom.xml
+++ b/pom.xml
@@ -758,6 +758,7 @@
sdk/desktopvirtualization
sdk/deviceprovisioningservices
sdk/deviceupdate
+ sdk/devops
sdk/devspaces
sdk/devtestlabs
sdk/digitaltwins
diff --git a/sdk/devops/azure-resourcemanager-devops/CHANGELOG.md b/sdk/devops/azure-resourcemanager-devops/CHANGELOG.md
new file mode 100644
index 0000000000000..3ec00525be210
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-01-05)
+
+- Azure Resource Manager devops client library for Java. This package contains Microsoft Azure SDK for devops Management SDK. Azure DevOps Resource Provider. Package tag package-2019-07-01-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/devops/azure-resourcemanager-devops/README.md b/sdk/devops/azure-resourcemanager-devops/README.md
new file mode 100644
index 0000000000000..3ef940db8be87
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager devops client library for Java
+
+Azure Resource Manager devops client library for Java.
+
+This package contains Microsoft Azure SDK for devops Management SDK. Azure DevOps Resource Provider. Package tag package-2019-07-01-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-devops;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-devops
+ 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();
+DevopsManager manager = DevopsManager
+ .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
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/devops/azure-resourcemanager-devops/SAMPLE.md)
+
+
+## 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/devops/azure-resourcemanager-devops/SAMPLE.md b/sdk/devops/azure-resourcemanager-devops/SAMPLE.md
new file mode 100644
index 0000000000000..eeb627067c364
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/SAMPLE.md
@@ -0,0 +1,257 @@
+# Code snippets and samples
+
+
+## Operations
+
+- [List](#operations_list)
+
+## PipelineTemplateDefinitions
+
+- [List](#pipelinetemplatedefinitions_list)
+
+## Pipelines
+
+- [CreateOrUpdate](#pipelines_createorupdate)
+- [Delete](#pipelines_delete)
+- [GetByResourceGroup](#pipelines_getbyresourcegroup)
+- [List](#pipelines_list)
+- [ListByResourceGroup](#pipelines_listbyresourcegroup)
+- [Update](#pipelines_update)
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListOperations.json
+ */
+ /**
+ * Sample code: Get a list of operations supported by Microsoft.DevOps resource provider.
+ *
+ * @param manager Entry point to DevopsManager.
+ */
+ public static void getAListOfOperationsSupportedByMicrosoftDevOpsResourceProvider(
+ com.azure.resourcemanager.devops.DevopsManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### PipelineTemplateDefinitions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PipelineTemplateDefinitions List. */
+public final class PipelineTemplateDefinitionsListSamples {
+ /*
+ * x-ms-original-file: specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListPipelineTemplateDefinitions.json
+ */
+ /**
+ * Sample code: Get the list of pipeline template definitions.
+ *
+ * @param manager Entry point to DevopsManager.
+ */
+ public static void getTheListOfPipelineTemplateDefinitions(com.azure.resourcemanager.devops.DevopsManager manager) {
+ manager.pipelineTemplateDefinitions().list(Context.NONE);
+ }
+}
+```
+
+### Pipelines_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.devops.models.BootstrapConfiguration;
+import com.azure.resourcemanager.devops.models.OrganizationReference;
+import com.azure.resourcemanager.devops.models.PipelineTemplate;
+import com.azure.resourcemanager.devops.models.ProjectReference;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Pipelines CreateOrUpdate. */
+public final class PipelinesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/CreateAzurePipeline-Sample-AspNet-WindowsWebApp.json
+ */
+ /**
+ * Sample code: Create an Azure pipeline to deploy a sample ASP.Net application to Azure web-app.
+ *
+ * @param manager Entry point to DevopsManager.
+ */
+ public static void createAnAzurePipelineToDeployASampleASPNetApplicationToAzureWebApp(
+ com.azure.resourcemanager.devops.DevopsManager manager) {
+ manager
+ .pipelines()
+ .define("myAspNetWebAppPipeline")
+ .withRegion("South India")
+ .withExistingResourceGroup("myAspNetWebAppPipeline-rg")
+ .withOrganization(new OrganizationReference().withName("myAspNetWebAppPipeline-org"))
+ .withProject(new ProjectReference().withName("myAspNetWebAppPipeline-project"))
+ .withBootstrapConfiguration(
+ new BootstrapConfiguration()
+ .withTemplate(
+ new PipelineTemplate()
+ .withId("ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp")
+ .withParameters(
+ mapOf(
+ "appInsightLocation",
+ "South India",
+ "appServicePlan",
+ "S1 Standard",
+ "azureAuth",
+ "{\"scheme\":\"ServicePrincipal\",\"parameters\":{\"tenantid\":\"{subscriptionTenantId}\",\"objectid\":\"{appObjectId}\",\"serviceprincipalid\":\"{appId}\",\"serviceprincipalkey\":\"{appSecret}\"}}",
+ "location",
+ "South India",
+ "resourceGroup",
+ "myAspNetWebAppPipeline-rg",
+ "subscriptionId",
+ "{subscriptionId}",
+ "webAppName",
+ "myAspNetWebApp"))))
+ .withTags(mapOf())
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Pipelines_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pipelines Delete. */
+public final class PipelinesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/DeleteAzurePipeline.json
+ */
+ /**
+ * Sample code: Get an existing Azure pipeline.
+ *
+ * @param manager Entry point to DevopsManager.
+ */
+ public static void getAnExistingAzurePipeline(com.azure.resourcemanager.devops.DevopsManager manager) {
+ manager.pipelines().deleteWithResponse("myAspNetWebAppPipeline-rg", "myAspNetWebAppPipeline", Context.NONE);
+ }
+}
+```
+
+### Pipelines_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pipelines GetByResourceGroup. */
+public final class PipelinesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/GetAzurePipeline.json
+ */
+ /**
+ * Sample code: Get an existing Azure pipeline.
+ *
+ * @param manager Entry point to DevopsManager.
+ */
+ public static void getAnExistingAzurePipeline(com.azure.resourcemanager.devops.DevopsManager manager) {
+ manager
+ .pipelines()
+ .getByResourceGroupWithResponse("myAspNetWebAppPipeline-rg", "myAspNetWebAppPipeline", Context.NONE);
+ }
+}
+```
+
+### Pipelines_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pipelines List. */
+public final class PipelinesListSamples {
+ /*
+ * x-ms-original-file: specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListAzurePipelinesBySubscription.json
+ */
+ /**
+ * Sample code: List all Azure pipelines under the specified subscription.
+ *
+ * @param manager Entry point to DevopsManager.
+ */
+ public static void listAllAzurePipelinesUnderTheSpecifiedSubscription(
+ com.azure.resourcemanager.devops.DevopsManager manager) {
+ manager.pipelines().list(Context.NONE);
+ }
+}
+```
+
+### Pipelines_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pipelines ListByResourceGroup. */
+public final class PipelinesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListAzurePipelinesByResourceGroup.json
+ */
+ /**
+ * Sample code: List all Azure Pipelines under the specified resource group.
+ *
+ * @param manager Entry point to DevopsManager.
+ */
+ public static void listAllAzurePipelinesUnderTheSpecifiedResourceGroup(
+ com.azure.resourcemanager.devops.DevopsManager manager) {
+ manager.pipelines().listByResourceGroup("myAspNetWebAppPipeline-rg", Context.NONE);
+ }
+}
+```
+
+### Pipelines_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.devops.models.Pipeline;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Pipelines Update. */
+public final class PipelinesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/UpdateAzurePipeline.json
+ */
+ /**
+ * Sample code: Get an existing Azure pipeline.
+ *
+ * @param manager Entry point to DevopsManager.
+ */
+ public static void getAnExistingAzurePipeline(com.azure.resourcemanager.devops.DevopsManager manager) {
+ Pipeline resource =
+ manager
+ .pipelines()
+ .getByResourceGroupWithResponse("myAspNetWebAppPipeline-rg", "myAspNetWebAppPipeline", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tagKey", "tagvalue")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
diff --git a/sdk/devops/azure-resourcemanager-devops/pom.xml b/sdk/devops/azure-resourcemanager-devops/pom.xml
new file mode 100644
index 0000000000000..eb5ceae437d38
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/pom.xml
@@ -0,0 +1,81 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-devops
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for devops Management
+ This package contains Microsoft Azure SDK for devops Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure DevOps Resource Provider. Package tag package-2019-07-01-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
+ true
+ false
+
+
+
+
+
+ com.azure
+ azure-core
+ 1.23.1
+
+
+ com.azure
+ azure-core-management
+ 1.4.4
+
+
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
+
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/DevopsManager.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/DevopsManager.java
new file mode 100644
index 0000000000000..9a60d6bc3515a
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/DevopsManager.java
@@ -0,0 +1,267 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devops;
+
+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.HttpPipelinePosition;
+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.devops.fluent.AzureDevOps;
+import com.azure.resourcemanager.devops.implementation.AzureDevOpsBuilder;
+import com.azure.resourcemanager.devops.implementation.OperationsImpl;
+import com.azure.resourcemanager.devops.implementation.PipelineTemplateDefinitionsImpl;
+import com.azure.resourcemanager.devops.implementation.PipelinesImpl;
+import com.azure.resourcemanager.devops.models.Operations;
+import com.azure.resourcemanager.devops.models.PipelineTemplateDefinitions;
+import com.azure.resourcemanager.devops.models.Pipelines;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/** Entry point to DevopsManager. Azure DevOps Resource Provider. */
+public final class DevopsManager {
+ private Operations operations;
+
+ private PipelineTemplateDefinitions pipelineTemplateDefinitions;
+
+ private Pipelines pipelines;
+
+ private final AzureDevOps clientObject;
+
+ private DevopsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new AzureDevOpsBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of devops service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the devops service API instance.
+ */
+ public static DevopsManager 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 DevopsManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new DevopsManager.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 devops service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the devops service API instance.
+ */
+ public DevopsManager 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.devops")
+ .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());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new DevopsManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @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 PipelineTemplateDefinitions. */
+ public PipelineTemplateDefinitions pipelineTemplateDefinitions() {
+ if (this.pipelineTemplateDefinitions == null) {
+ this.pipelineTemplateDefinitions =
+ new PipelineTemplateDefinitionsImpl(clientObject.getPipelineTemplateDefinitions(), this);
+ }
+ return pipelineTemplateDefinitions;
+ }
+
+ /** @return Resource collection API of Pipelines. */
+ public Pipelines pipelines() {
+ if (this.pipelines == null) {
+ this.pipelines = new PipelinesImpl(clientObject.getPipelines(), this);
+ }
+ return pipelines;
+ }
+
+ /**
+ * @return Wrapped service client AzureDevOps providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public AzureDevOps serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/AzureDevOps.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/AzureDevOps.java
new file mode 100644
index 0000000000000..2a656cacf9f07
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/AzureDevOps.java
@@ -0,0 +1,68 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devops.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for AzureDevOps class. */
+public interface AzureDevOps {
+ /**
+ * Gets Unique identifier of the Azure subscription. This is a GUID-formatted string (e.g.
+ * 00000000-0000-0000-0000-000000000000).
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * 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 OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the PipelineTemplateDefinitionsClient object to access its operations.
+ *
+ * @return the PipelineTemplateDefinitionsClient object.
+ */
+ PipelineTemplateDefinitionsClient getPipelineTemplateDefinitions();
+
+ /**
+ * Gets the PipelinesClient object to access its operations.
+ *
+ * @return the PipelinesClient object.
+ */
+ PipelinesClient getPipelines();
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/OperationsClient.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..c12681cf4218d
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/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.devops.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.devops.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all the operations supported by Microsoft.DevOps resource provider.
+ *
+ * @throws com.azure.core.management.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 result of a request to list all operations supported by Microsoft.DevOps resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all the operations supported by Microsoft.DevOps resource provider.
+ *
+ * @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 result of a request to list all operations supported by Microsoft.DevOps resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/PipelineTemplateDefinitionsClient.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/PipelineTemplateDefinitionsClient.java
new file mode 100644
index 0000000000000..6800132094338
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/PipelineTemplateDefinitionsClient.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.devops.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.devops.fluent.models.PipelineTemplateDefinitionInner;
+
+/** An instance of this class provides access to all the operations defined in PipelineTemplateDefinitionsClient. */
+public interface PipelineTemplateDefinitionsClient {
+ /**
+ * Lists all pipeline templates which can be used to configure an Azure Pipeline.
+ *
+ * @throws com.azure.core.management.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 result of a request to list all pipeline template definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all pipeline templates which can be used to configure an Azure 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 result of a request to list all pipeline template definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/PipelinesClient.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/PipelinesClient.java
new file mode 100644
index 0000000000000..cc04786393378
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/PipelinesClient.java
@@ -0,0 +1,221 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devops.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.devops.fluent.models.PipelineInner;
+import com.azure.resourcemanager.devops.models.PipelineUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in PipelinesClient. */
+public interface PipelinesClient {
+ /**
+ * Creates or updates an Azure Pipeline.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource in ARM.
+ * @param createOperationParameters The request payload to create the Azure 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 azure DevOps Pipeline used to configure Continuous Integration (CI) & Continuous Delivery (CD) for
+ * Azure resources.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PipelineInner> beginCreateOrUpdate(
+ String resourceGroupName, String pipelineName, PipelineInner createOperationParameters);
+
+ /**
+ * Creates or updates an Azure Pipeline.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource in ARM.
+ * @param createOperationParameters The request payload to create the Azure 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 azure DevOps Pipeline used to configure Continuous Integration (CI) & Continuous Delivery (CD) for
+ * Azure resources.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PipelineInner> beginCreateOrUpdate(
+ String resourceGroupName, String pipelineName, PipelineInner createOperationParameters, Context context);
+
+ /**
+ * Creates or updates an Azure Pipeline.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource in ARM.
+ * @param createOperationParameters The request payload to create the Azure 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 azure DevOps Pipeline used to configure Continuous Integration (CI) & Continuous Delivery (CD) for
+ * Azure resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineInner createOrUpdate(
+ String resourceGroupName, String pipelineName, PipelineInner createOperationParameters);
+
+ /**
+ * Creates or updates an Azure Pipeline.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource in ARM.
+ * @param createOperationParameters The request payload to create the Azure 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 azure DevOps Pipeline used to configure Continuous Integration (CI) & Continuous Delivery (CD) for
+ * Azure resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineInner createOrUpdate(
+ String resourceGroupName, String pipelineName, PipelineInner createOperationParameters, Context context);
+
+ /**
+ * Gets an existing Azure Pipeline.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource in ARM.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 existing Azure Pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineInner getByResourceGroup(String resourceGroupName, String pipelineName);
+
+ /**
+ * Gets an existing Azure Pipeline.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource in ARM.
+ * @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 existing Azure Pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String pipelineName, Context context);
+
+ /**
+ * Updates the properties of an Azure Pipeline. Currently, only tags can be updated.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource.
+ * @param updateOperationParameters The request payload containing the properties to update in the Azure 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 azure DevOps Pipeline used to configure Continuous Integration (CI) & Continuous Delivery (CD) for
+ * Azure resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PipelineInner update(
+ String resourceGroupName, String pipelineName, PipelineUpdateParameters updateOperationParameters);
+
+ /**
+ * Updates the properties of an Azure Pipeline. Currently, only tags can be updated.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource.
+ * @param updateOperationParameters The request payload containing the properties to update in the Azure 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 azure DevOps Pipeline used to configure Continuous Integration (CI) & Continuous Delivery (CD) for
+ * Azure resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String pipelineName,
+ PipelineUpdateParameters updateOperationParameters,
+ Context context);
+
+ /**
+ * Deletes an Azure Pipeline.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 pipelineName);
+
+ /**
+ * Deletes an Azure Pipeline.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param pipelineName The name of the Azure Pipeline resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String pipelineName, Context context);
+
+ /**
+ * Lists all Azure Pipelines under the specified resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 result of a request to list all Azure Pipelines under a given scope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all Azure Pipelines under the specified resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the Azure 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 result of a request to list all Azure Pipelines under a given scope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all Azure Pipelines 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 result of a request to list all Azure Pipelines under a given scope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all Azure Pipelines 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 result of a request to list all Azure Pipelines under a given scope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/OperationDisplayValue.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/OperationDisplayValue.java
new file mode 100644
index 0000000000000..805107d642dc4
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/OperationDisplayValue.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.devops.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Display information of an operation. */
+@Immutable
+public final class OperationDisplayValue {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplayValue.class);
+
+ /*
+ * Friendly name of the operation.
+ */
+ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
+ private String operation;
+
+ /*
+ * Friendly name of the resource type the operation applies to.
+ */
+ @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY)
+ private String resource;
+
+ /*
+ * Friendly description of the operation.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /*
+ * Friendly name of the resource provider.
+ */
+ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
+ private String provider;
+
+ /**
+ * Get the operation property: Friendly name of the operation.
+ *
+ * @return the operation value.
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Get the resource property: Friendly name of the resource type the operation applies to.
+ *
+ * @return the resource value.
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Get the description property: Friendly description of the operation.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the provider property: Friendly name of the resource provider.
+ *
+ * @return the provider value.
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/OperationInner.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/OperationInner.java
new file mode 100644
index 0000000000000..0666035566e04
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/OperationInner.java
@@ -0,0 +1,119 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devops.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;
+
+/** Properties of an Operation. */
+@Fluent
+public final class OperationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
+
+ /*
+ * Name of the operation.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * Indicates whether the operation applies to data-plane.
+ */
+ @JsonProperty(value = "isDataAction")
+ private String isDataAction;
+
+ /*
+ * Display information of the operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplayValue innerDisplay;
+
+ /**
+ * Get the name property: Name of the operation.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Indicates whether the operation applies to data-plane.
+ *
+ * @return the isDataAction value.
+ */
+ public String isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: Indicates whether the operation applies to data-plane.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withIsDataAction(String isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the innerDisplay property: Display information of the operation.
+ *
+ * @return the innerDisplay value.
+ */
+ private OperationDisplayValue innerDisplay() {
+ return this.innerDisplay;
+ }
+
+ /**
+ * Get the operation property: Friendly name of the operation.
+ *
+ * @return the operation value.
+ */
+ public String operation() {
+ return this.innerDisplay() == null ? null : this.innerDisplay().operation();
+ }
+
+ /**
+ * Get the resource property: Friendly name of the resource type the operation applies to.
+ *
+ * @return the resource value.
+ */
+ public String resource() {
+ return this.innerDisplay() == null ? null : this.innerDisplay().resource();
+ }
+
+ /**
+ * Get the description property: Friendly description of the operation.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.innerDisplay() == null ? null : this.innerDisplay().description();
+ }
+
+ /**
+ * Get the provider property: Friendly name of the resource provider.
+ *
+ * @return the provider value.
+ */
+ public String provider() {
+ return this.innerDisplay() == null ? null : this.innerDisplay().provider();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerDisplay() != null) {
+ innerDisplay().validate();
+ }
+ }
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/PipelineInner.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/PipelineInner.java
new file mode 100644
index 0000000000000..7c10b3c8c6a8e
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/PipelineInner.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devops.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.devops.models.BootstrapConfiguration;
+import com.azure.resourcemanager.devops.models.OrganizationReference;
+import com.azure.resourcemanager.devops.models.ProjectReference;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/**
+ * Azure DevOps Pipeline used to configure Continuous Integration (CI) & Continuous Delivery (CD) for Azure
+ * resources.
+ */
+@Fluent
+public final class PipelineInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PipelineInner.class);
+
+ /*
+ * Custom properties of the Pipeline.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private PipelineProperties innerProperties = new PipelineProperties();
+
+ /**
+ * Get the innerProperties property: Custom properties of the Pipeline.
+ *
+ * @return the innerProperties value.
+ */
+ private PipelineProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public PipelineInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public PipelineInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the pipelineId property: Unique identifier of the Azure Pipeline within the Azure DevOps Project.
+ *
+ * @return the pipelineId value.
+ */
+ public Integer pipelineId() {
+ return this.innerProperties() == null ? null : this.innerProperties().pipelineId();
+ }
+
+ /**
+ * Get the organization property: Reference to the Azure DevOps Organization containing the Pipeline.
+ *
+ * @return the organization value.
+ */
+ public OrganizationReference organization() {
+ return this.innerProperties() == null ? null : this.innerProperties().organization();
+ }
+
+ /**
+ * Set the organization property: Reference to the Azure DevOps Organization containing the Pipeline.
+ *
+ * @param organization the organization value to set.
+ * @return the PipelineInner object itself.
+ */
+ public PipelineInner withOrganization(OrganizationReference organization) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PipelineProperties();
+ }
+ this.innerProperties().withOrganization(organization);
+ return this;
+ }
+
+ /**
+ * Get the project property: Reference to the Azure DevOps Project containing the Pipeline.
+ *
+ * @return the project value.
+ */
+ public ProjectReference project() {
+ return this.innerProperties() == null ? null : this.innerProperties().project();
+ }
+
+ /**
+ * Set the project property: Reference to the Azure DevOps Project containing the Pipeline.
+ *
+ * @param project the project value to set.
+ * @return the PipelineInner object itself.
+ */
+ public PipelineInner withProject(ProjectReference project) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PipelineProperties();
+ }
+ this.innerProperties().withProject(project);
+ return this;
+ }
+
+ /**
+ * Get the bootstrapConfiguration property: Configuration used to bootstrap the Pipeline.
+ *
+ * @return the bootstrapConfiguration value.
+ */
+ public BootstrapConfiguration bootstrapConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().bootstrapConfiguration();
+ }
+
+ /**
+ * Set the bootstrapConfiguration property: Configuration used to bootstrap the Pipeline.
+ *
+ * @param bootstrapConfiguration the bootstrapConfiguration value to set.
+ * @return the PipelineInner object itself.
+ */
+ public PipelineInner withBootstrapConfiguration(BootstrapConfiguration bootstrapConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PipelineProperties();
+ }
+ this.innerProperties().withBootstrapConfiguration(bootstrapConfiguration);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model PipelineInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/PipelineProperties.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/PipelineProperties.java
new file mode 100644
index 0000000000000..539499f13d43b
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/PipelineProperties.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devops.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.devops.models.BootstrapConfiguration;
+import com.azure.resourcemanager.devops.models.OrganizationReference;
+import com.azure.resourcemanager.devops.models.ProjectReference;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Custom properties of a Pipeline. */
+@Fluent
+public final class PipelineProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PipelineProperties.class);
+
+ /*
+ * Unique identifier of the Azure Pipeline within the Azure DevOps Project.
+ */
+ @JsonProperty(value = "pipelineId", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer pipelineId;
+
+ /*
+ * Reference to the Azure DevOps Organization containing the Pipeline.
+ */
+ @JsonProperty(value = "organization", required = true)
+ private OrganizationReference organization;
+
+ /*
+ * Reference to the Azure DevOps Project containing the Pipeline.
+ */
+ @JsonProperty(value = "project", required = true)
+ private ProjectReference project;
+
+ /*
+ * Configuration used to bootstrap the Pipeline.
+ */
+ @JsonProperty(value = "bootstrapConfiguration", required = true)
+ private BootstrapConfiguration bootstrapConfiguration;
+
+ /**
+ * Get the pipelineId property: Unique identifier of the Azure Pipeline within the Azure DevOps Project.
+ *
+ * @return the pipelineId value.
+ */
+ public Integer pipelineId() {
+ return this.pipelineId;
+ }
+
+ /**
+ * Get the organization property: Reference to the Azure DevOps Organization containing the Pipeline.
+ *
+ * @return the organization value.
+ */
+ public OrganizationReference organization() {
+ return this.organization;
+ }
+
+ /**
+ * Set the organization property: Reference to the Azure DevOps Organization containing the Pipeline.
+ *
+ * @param organization the organization value to set.
+ * @return the PipelineProperties object itself.
+ */
+ public PipelineProperties withOrganization(OrganizationReference organization) {
+ this.organization = organization;
+ return this;
+ }
+
+ /**
+ * Get the project property: Reference to the Azure DevOps Project containing the Pipeline.
+ *
+ * @return the project value.
+ */
+ public ProjectReference project() {
+ return this.project;
+ }
+
+ /**
+ * Set the project property: Reference to the Azure DevOps Project containing the Pipeline.
+ *
+ * @param project the project value to set.
+ * @return the PipelineProperties object itself.
+ */
+ public PipelineProperties withProject(ProjectReference project) {
+ this.project = project;
+ return this;
+ }
+
+ /**
+ * Get the bootstrapConfiguration property: Configuration used to bootstrap the Pipeline.
+ *
+ * @return the bootstrapConfiguration value.
+ */
+ public BootstrapConfiguration bootstrapConfiguration() {
+ return this.bootstrapConfiguration;
+ }
+
+ /**
+ * Set the bootstrapConfiguration property: Configuration used to bootstrap the Pipeline.
+ *
+ * @param bootstrapConfiguration the bootstrapConfiguration value to set.
+ * @return the PipelineProperties object itself.
+ */
+ public PipelineProperties withBootstrapConfiguration(BootstrapConfiguration bootstrapConfiguration) {
+ this.bootstrapConfiguration = bootstrapConfiguration;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (organization() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property organization in model PipelineProperties"));
+ } else {
+ organization().validate();
+ }
+ if (project() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property project in model PipelineProperties"));
+ } else {
+ project().validate();
+ }
+ if (bootstrapConfiguration() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property bootstrapConfiguration in model PipelineProperties"));
+ } else {
+ bootstrapConfiguration().validate();
+ }
+ }
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/PipelineTemplateDefinitionInner.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/PipelineTemplateDefinitionInner.java
new file mode 100644
index 0000000000000..26c4902c2a5d4
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/PipelineTemplateDefinitionInner.java
@@ -0,0 +1,113 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devops.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.devops.models.InputDescriptor;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Definition of a pipeline template. */
+@Fluent
+public final class PipelineTemplateDefinitionInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PipelineTemplateDefinitionInner.class);
+
+ /*
+ * Unique identifier of the pipeline template.
+ */
+ @JsonProperty(value = "id", required = true)
+ private String id;
+
+ /*
+ * Description of the pipeline enabled by the template.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * List of input parameters required by the template to create a pipeline.
+ */
+ @JsonProperty(value = "inputs")
+ private List inputs;
+
+ /**
+ * Get the id property: Unique identifier of the pipeline template.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Unique identifier of the pipeline template.
+ *
+ * @param id the id value to set.
+ * @return the PipelineTemplateDefinitionInner object itself.
+ */
+ public PipelineTemplateDefinitionInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the description property: Description of the pipeline enabled by the template.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of the pipeline enabled by the template.
+ *
+ * @param description the description value to set.
+ * @return the PipelineTemplateDefinitionInner object itself.
+ */
+ public PipelineTemplateDefinitionInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the inputs property: List of input parameters required by the template to create a pipeline.
+ *
+ * @return the inputs value.
+ */
+ public List inputs() {
+ return this.inputs;
+ }
+
+ /**
+ * Set the inputs property: List of input parameters required by the template to create a pipeline.
+ *
+ * @param inputs the inputs value to set.
+ * @return the PipelineTemplateDefinitionInner object itself.
+ */
+ public PipelineTemplateDefinitionInner withInputs(List inputs) {
+ this.inputs = inputs;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (id() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property id in model PipelineTemplateDefinitionInner"));
+ }
+ if (inputs() != null) {
+ inputs().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/package-info.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/models/package-info.java
new file mode 100644
index 0000000000000..ca777be1b9119
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/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 AzureDevOps. Azure DevOps Resource Provider. */
+package com.azure.resourcemanager.devops.fluent.models;
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/package-info.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/fluent/package-info.java
new file mode 100644
index 0000000000000..07892f1a2ab45
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/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 AzureDevOps. Azure DevOps Resource Provider. */
+package com.azure.resourcemanager.devops.fluent;
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/implementation/AzureDevOpsBuilder.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/implementation/AzureDevOpsBuilder.java
new file mode 100644
index 0000000000000..5914a0c028f13
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/implementation/AzureDevOpsBuilder.java
@@ -0,0 +1,148 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devops.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the AzureDevOpsImpl type. */
+@ServiceClientBuilder(serviceClients = {AzureDevOpsImpl.class})
+public final class AzureDevOpsBuilder {
+ /*
+ * Unique identifier of the Azure subscription. This is a GUID-formatted
+ * string (e.g. 00000000-0000-0000-0000-000000000000).
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Unique identifier of the Azure subscription. This is a GUID-formatted string (e.g.
+ * 00000000-0000-0000-0000-000000000000).
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the AzureDevOpsBuilder.
+ */
+ public AzureDevOpsBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the AzureDevOpsBuilder.
+ */
+ public AzureDevOpsBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the AzureDevOpsBuilder.
+ */
+ public AzureDevOpsBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the AzureDevOpsBuilder.
+ */
+ public AzureDevOpsBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the AzureDevOpsBuilder.
+ */
+ public AzureDevOpsBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the AzureDevOpsBuilder.
+ */
+ public AzureDevOpsBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of AzureDevOpsImpl with the provided parameters.
+ *
+ * @return an instance of AzureDevOpsImpl.
+ */
+ public AzureDevOpsImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ AzureDevOpsImpl client =
+ new AzureDevOpsImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/implementation/AzureDevOpsImpl.java b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/implementation/AzureDevOpsImpl.java
new file mode 100644
index 0000000000000..071d3e7a6a434
--- /dev/null
+++ b/sdk/devops/azure-resourcemanager-devops/src/main/java/com/azure/resourcemanager/devops/implementation/AzureDevOpsImpl.java
@@ -0,0 +1,326 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.devops.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.devops.fluent.AzureDevOps;
+import com.azure.resourcemanager.devops.fluent.OperationsClient;
+import com.azure.resourcemanager.devops.fluent.PipelineTemplateDefinitionsClient;
+import com.azure.resourcemanager.devops.fluent.PipelinesClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the AzureDevOpsImpl type. */
+@ServiceClient(builder = AzureDevOpsBuilder.class)
+public final class AzureDevOpsImpl implements AzureDevOps {
+ private final ClientLogger logger = new ClientLogger(AzureDevOpsImpl.class);
+
+ /**
+ * Unique identifier of the Azure subscription. This is a GUID-formatted string (e.g.
+ * 00000000-0000-0000-0000-000000000000).
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets Unique identifier of the Azure subscription. This is a GUID-formatted string (e.g.
+ * 00000000-0000-0000-0000-000000000000).
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The PipelineTemplateDefinitionsClient object to access its operations. */
+ private final PipelineTemplateDefinitionsClient pipelineTemplateDefinitions;
+
+ /**
+ * Gets the PipelineTemplateDefinitionsClient object to access its operations.
+ *
+ * @return the PipelineTemplateDefinitionsClient object.
+ */
+ public PipelineTemplateDefinitionsClient getPipelineTemplateDefinitions() {
+ return this.pipelineTemplateDefinitions;
+ }
+
+ /** The PipelinesClient object to access its operations. */
+ private final PipelinesClient pipelines;
+
+ /**
+ * Gets the PipelinesClient object to access its operations.
+ *
+ * @return the PipelinesClient object.
+ */
+ public PipelinesClient getPipelines() {
+ return this.pipelines;
+ }
+
+ /**
+ * Initializes an instance of AzureDevOps client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId Unique identifier of the Azure subscription. This is a GUID-formatted string (e.g.
+ * 00000000-0000-0000-0000-000000000000).
+ * @param endpoint server parameter.
+ */
+ AzureDevOpsImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2019-07-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.pipelineTemplateDefinitions = new PipelineTemplateDefinitionsClientImpl(this);
+ this.pipelines = new PipelinesClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry