diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index ea58e21cb895d..aa495df6f3efb 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -291,6 +291,7 @@ com.azure.resourcemanager:azure-resourcemanager-vmwarecloudsimple;1.0.0-beta.1;1
com.azure.resourcemanager:azure-resourcemanager-managedapplications;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-videoanalyzer;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-maps;1.0.0-beta.1;1.0.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-imagebuilder;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/pom.xml b/pom.xml
index 43609dfa7d7e9..f0103afe96624 100644
--- a/pom.xml
+++ b/pom.xml
@@ -747,6 +747,7 @@
sdk/hybridcomputesdk/hybridkubernetessdk/identity
+ sdk/imagebuildersdk/iotcentralsdk/iothubsdk/keyvault
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/CHANGELOG.md b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/CHANGELOG.md
new file mode 100644
index 0000000000000..f6d5f63175848
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-05-13)
+
+- Azure Resource Manager ImageBuilder client library for Java. This package contains Microsoft Azure SDK for ImageBuilder Management SDK. Azure Virtual Machine Image Builder Client. Package tag package-2020-02. 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/imagebuilder/azure-resourcemanager-imagebuilder/README.md b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/README.md
new file mode 100644
index 0000000000000..9a31e9cf1e5ba
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/README.md
@@ -0,0 +1,99 @@
+# Azure Resource Manager ImageBuilder client library for Java
+
+Azure Resource Manager ImageBuilder client library for Java.
+
+This package contains Microsoft Azure SDK for ImageBuilder Management SDK. Azure Virtual Machine Image Builder Client. Package tag package-2020-02. 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-imagebuilder;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-imagebuilder
+ 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();
+ImageBuilderManager manager = ImageBuilderManager
+ .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/master/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/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml
new file mode 100644
index 0000000000000..89a4ba895ba95
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml
@@ -0,0 +1,85 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-imagebuilder
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for ImageBuilder Management
+ This package contains Microsoft Azure SDK for ImageBuilder Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Virtual Machine Image Builder Client. Package tag package-2020-02.
+ 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.16.0
+
+
+ com.azure
+ azure-core-management
+ 1.2.2
+
+
+ com.azure
+ azure-identity
+ 1.3.0
+ test
+
+
+ com.azure
+ azure-core-test
+ 1.6.2
+ test
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources
+ 2.4.0
+ test
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+
+
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/ImageBuilderManager.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/ImageBuilderManager.java
new file mode 100644
index 0000000000000..132004ddee306
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/ImageBuilderManager.java
@@ -0,0 +1,228 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.imagebuilder;
+
+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.BearerTokenAuthenticationPolicy;
+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.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.imagebuilder.fluent.ImageBuilderClient;
+import com.azure.resourcemanager.imagebuilder.implementation.ImageBuilderClientBuilder;
+import com.azure.resourcemanager.imagebuilder.implementation.OperationsImpl;
+import com.azure.resourcemanager.imagebuilder.implementation.VirtualMachineImageTemplatesImpl;
+import com.azure.resourcemanager.imagebuilder.models.Operations;
+import com.azure.resourcemanager.imagebuilder.models.VirtualMachineImageTemplates;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to ImageBuilderManager. Azure Virtual Machine Image Builder Client. */
+public final class ImageBuilderManager {
+ private VirtualMachineImageTemplates virtualMachineImageTemplates;
+
+ private Operations operations;
+
+ private final ImageBuilderClient clientObject;
+
+ private ImageBuilderManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new ImageBuilderClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of ImageBuilder service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ImageBuilder service API instance.
+ */
+ public static ImageBuilderManager 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 ImageBuilderManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new ImageBuilderManager.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 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;
+ }
+
+ /**
+ * 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 ImageBuilder service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ImageBuilder service API instance.
+ */
+ public ImageBuilderManager 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.imagebuilder")
+ .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 (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 BearerTokenAuthenticationPolicy(
+ credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ 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 ImageBuilderManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of VirtualMachineImageTemplates. */
+ public VirtualMachineImageTemplates virtualMachineImageTemplates() {
+ if (this.virtualMachineImageTemplates == null) {
+ this.virtualMachineImageTemplates =
+ new VirtualMachineImageTemplatesImpl(clientObject.getVirtualMachineImageTemplates(), this);
+ }
+ return virtualMachineImageTemplates;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * @return Wrapped service client ImageBuilderClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public ImageBuilderClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/ImageBuilderClient.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/ImageBuilderClient.java
new file mode 100644
index 0000000000000..d35b9b6c40478
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/ImageBuilderClient.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.imagebuilder.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for ImageBuilderClient class. */
+public interface ImageBuilderClient {
+ /**
+ * Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription Id forms
+ * part of the URI for every service call.
+ *
+ * @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 VirtualMachineImageTemplatesClient object to access its operations.
+ *
+ * @return the VirtualMachineImageTemplatesClient object.
+ */
+ VirtualMachineImageTemplatesClient getVirtualMachineImageTemplates();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/OperationsClient.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..afdf865a3b8c3
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/OperationsClient.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.imagebuilder.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.imagebuilder.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists available operations for the Microsoft.VirtualMachineImages provider.
+ *
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists available operations for the Microsoft.VirtualMachineImages provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/VirtualMachineImageTemplatesClient.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/VirtualMachineImageTemplatesClient.java
new file mode 100644
index 0000000000000..2e14b50297658
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/VirtualMachineImageTemplatesClient.java
@@ -0,0 +1,461 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.imagebuilder.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.imagebuilder.fluent.models.ImageTemplateInner;
+import com.azure.resourcemanager.imagebuilder.fluent.models.RunOutputInner;
+import com.azure.resourcemanager.imagebuilder.models.ImageTemplateUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in VirtualMachineImageTemplatesClient. */
+public interface VirtualMachineImageTemplatesClient {
+ /**
+ * Gets information about the VM image templates associated with the subscription.
+ *
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the VM image templates associated with the subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets information about the VM image templates associated with the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the VM image templates associated with the subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Gets information about the VM image templates associated with the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the VM image templates associated with the specified resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets information about the VM image templates associated with the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the VM image templates associated with the specified resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Create or update a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param parameters Parameters supplied to the CreateImageTemplate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return image template is an ARM resource managed by Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ImageTemplateInner> beginCreateOrUpdate(
+ String resourceGroupName, String imageTemplateName, ImageTemplateInner parameters);
+
+ /**
+ * Create or update a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param parameters Parameters supplied to the CreateImageTemplate operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return image template is an ARM resource managed by Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ImageTemplateInner> beginCreateOrUpdate(
+ String resourceGroupName, String imageTemplateName, ImageTemplateInner parameters, Context context);
+
+ /**
+ * Create or update a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param parameters Parameters supplied to the CreateImageTemplate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return image template is an ARM resource managed by Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImageTemplateInner createOrUpdate(
+ String resourceGroupName, String imageTemplateName, ImageTemplateInner parameters);
+
+ /**
+ * Create or update a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param parameters Parameters supplied to the CreateImageTemplate operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return image template is an ARM resource managed by Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImageTemplateInner createOrUpdate(
+ String resourceGroupName, String imageTemplateName, ImageTemplateInner parameters, Context context);
+
+ /**
+ * Update the tags for this Virtual Machine Image Template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param parameters Additional parameters for Image Template update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return image template is an ARM resource managed by Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ImageTemplateInner> beginUpdate(
+ String resourceGroupName, String imageTemplateName, ImageTemplateUpdateParameters parameters);
+
+ /**
+ * Update the tags for this Virtual Machine Image Template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param parameters Additional parameters for Image Template update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return image template is an ARM resource managed by Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ImageTemplateInner> beginUpdate(
+ String resourceGroupName, String imageTemplateName, ImageTemplateUpdateParameters parameters, Context context);
+
+ /**
+ * Update the tags for this Virtual Machine Image Template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param parameters Additional parameters for Image Template update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return image template is an ARM resource managed by Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImageTemplateInner update(
+ String resourceGroupName, String imageTemplateName, ImageTemplateUpdateParameters parameters);
+
+ /**
+ * Update the tags for this Virtual Machine Image Template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param parameters Additional parameters for Image Template update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return image template is an ARM resource managed by Microsoft.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImageTemplateInner update(
+ String resourceGroupName, String imageTemplateName, ImageTemplateUpdateParameters parameters, Context context);
+
+ /**
+ * Get information about a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about a virtual machine image template.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ImageTemplateInner getByResourceGroup(String resourceGroupName, String imageTemplateName);
+
+ /**
+ * Get information about a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about a virtual machine image template.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String imageTemplateName, Context context);
+
+ /**
+ * Delete a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 imageTemplateName);
+
+ /**
+ * Delete a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 imageTemplateName, Context context);
+
+ /**
+ * Delete a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 imageTemplateName);
+
+ /**
+ * Delete a virtual machine image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 imageTemplateName, Context context);
+
+ /**
+ * Create artifacts from a existing image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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> beginRun(String resourceGroupName, String imageTemplateName);
+
+ /**
+ * Create artifacts from a existing image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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> beginRun(String resourceGroupName, String imageTemplateName, Context context);
+
+ /**
+ * Create artifacts from a existing image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 run(String resourceGroupName, String imageTemplateName);
+
+ /**
+ * Create artifacts from a existing image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 run(String resourceGroupName, String imageTemplateName, Context context);
+
+ /**
+ * Cancel the long running image build based on the image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 imageTemplateName);
+
+ /**
+ * Cancel the long running image build based on the image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 imageTemplateName, Context context);
+
+ /**
+ * Cancel the long running image build based on the image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 imageTemplateName);
+
+ /**
+ * Cancel the long running image build based on the image template.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 imageTemplateName, Context context);
+
+ /**
+ * List all run outputs for the specified Image Template resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 List run outputs operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listRunOutputs(String resourceGroupName, String imageTemplateName);
+
+ /**
+ * List all run outputs for the specified Image Template resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 List run outputs operation.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listRunOutputs(String resourceGroupName, String imageTemplateName, Context context);
+
+ /**
+ * Get the specified run output for the specified image template resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param runOutputName The name of the run output.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 run output for the specified image template resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RunOutputInner getRunOutput(String resourceGroupName, String imageTemplateName, String runOutputName);
+
+ /**
+ * Get the specified run output for the specified image template resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param imageTemplateName The name of the image Template.
+ * @param runOutputName The name of the run output.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException 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 run output for the specified image template resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getRunOutputWithResponse(
+ String resourceGroupName, String imageTemplateName, String runOutputName, Context context);
+}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/ImageTemplateInner.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/ImageTemplateInner.java
new file mode 100644
index 0000000000000..f728e84c57078
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/ImageTemplateInner.java
@@ -0,0 +1,283 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.imagebuilder.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.imagebuilder.models.ImageTemplateCustomizer;
+import com.azure.resourcemanager.imagebuilder.models.ImageTemplateDistributor;
+import com.azure.resourcemanager.imagebuilder.models.ImageTemplateIdentity;
+import com.azure.resourcemanager.imagebuilder.models.ImageTemplateLastRunStatus;
+import com.azure.resourcemanager.imagebuilder.models.ImageTemplateSource;
+import com.azure.resourcemanager.imagebuilder.models.ImageTemplateVmProfile;
+import com.azure.resourcemanager.imagebuilder.models.ProvisioningError;
+import com.azure.resourcemanager.imagebuilder.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider. */
+@JsonFlatten
+@Fluent
+public class ImageTemplateInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ImageTemplateInner.class);
+
+ /*
+ * The identity of the image template, if configured.
+ */
+ @JsonProperty(value = "identity", required = true)
+ private ImageTemplateIdentity identity;
+
+ /*
+ * Specifies the properties used to describe the source image.
+ */
+ @JsonProperty(value = "properties.source")
+ private ImageTemplateSource source;
+
+ /*
+ * Specifies the properties used to describe the customization steps of the
+ * image, like Image source etc
+ */
+ @JsonProperty(value = "properties.customize")
+ private List customize;
+
+ /*
+ * The distribution targets where the image output needs to go to.
+ */
+ @JsonProperty(value = "properties.distribute")
+ private List distribute;
+
+ /*
+ * Provisioning state of the resource
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Provisioning error, if any
+ */
+ @JsonProperty(value = "properties.provisioningError", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningError provisioningError;
+
+ /*
+ * State of 'run' that is currently executing or was last executed.
+ */
+ @JsonProperty(value = "properties.lastRunStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ImageTemplateLastRunStatus lastRunStatus;
+
+ /*
+ * Maximum duration to wait while building the image template. Omit or
+ * specify 0 to use the default (4 hours).
+ */
+ @JsonProperty(value = "properties.buildTimeoutInMinutes")
+ private Integer buildTimeoutInMinutes;
+
+ /*
+ * Describes how virtual machine is set up to build images
+ */
+ @JsonProperty(value = "properties.vmProfile")
+ private ImageTemplateVmProfile vmProfile;
+
+ /**
+ * Get the identity property: The identity of the image template, if configured.
+ *
+ * @return the identity value.
+ */
+ public ImageTemplateIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the image template, if configured.
+ *
+ * @param identity the identity value to set.
+ * @return the ImageTemplateInner object itself.
+ */
+ public ImageTemplateInner withIdentity(ImageTemplateIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the source property: Specifies the properties used to describe the source image.
+ *
+ * @return the source value.
+ */
+ public ImageTemplateSource source() {
+ return this.source;
+ }
+
+ /**
+ * Set the source property: Specifies the properties used to describe the source image.
+ *
+ * @param source the source value to set.
+ * @return the ImageTemplateInner object itself.
+ */
+ public ImageTemplateInner withSource(ImageTemplateSource source) {
+ this.source = source;
+ return this;
+ }
+
+ /**
+ * Get the customize property: Specifies the properties used to describe the customization steps of the image, like
+ * Image source etc.
+ *
+ * @return the customize value.
+ */
+ public List customize() {
+ return this.customize;
+ }
+
+ /**
+ * Set the customize property: Specifies the properties used to describe the customization steps of the image, like
+ * Image source etc.
+ *
+ * @param customize the customize value to set.
+ * @return the ImageTemplateInner object itself.
+ */
+ public ImageTemplateInner withCustomize(List customize) {
+ this.customize = customize;
+ return this;
+ }
+
+ /**
+ * Get the distribute property: The distribution targets where the image output needs to go to.
+ *
+ * @return the distribute value.
+ */
+ public List distribute() {
+ return this.distribute;
+ }
+
+ /**
+ * Set the distribute property: The distribution targets where the image output needs to go to.
+ *
+ * @param distribute the distribute value to set.
+ * @return the ImageTemplateInner object itself.
+ */
+ public ImageTemplateInner withDistribute(List distribute) {
+ this.distribute = distribute;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the provisioningError property: Provisioning error, if any.
+ *
+ * @return the provisioningError value.
+ */
+ public ProvisioningError provisioningError() {
+ return this.provisioningError;
+ }
+
+ /**
+ * Get the lastRunStatus property: State of 'run' that is currently executing or was last executed.
+ *
+ * @return the lastRunStatus value.
+ */
+ public ImageTemplateLastRunStatus lastRunStatus() {
+ return this.lastRunStatus;
+ }
+
+ /**
+ * Get the buildTimeoutInMinutes property: Maximum duration to wait while building the image template. Omit or
+ * specify 0 to use the default (4 hours).
+ *
+ * @return the buildTimeoutInMinutes value.
+ */
+ public Integer buildTimeoutInMinutes() {
+ return this.buildTimeoutInMinutes;
+ }
+
+ /**
+ * Set the buildTimeoutInMinutes property: Maximum duration to wait while building the image template. Omit or
+ * specify 0 to use the default (4 hours).
+ *
+ * @param buildTimeoutInMinutes the buildTimeoutInMinutes value to set.
+ * @return the ImageTemplateInner object itself.
+ */
+ public ImageTemplateInner withBuildTimeoutInMinutes(Integer buildTimeoutInMinutes) {
+ this.buildTimeoutInMinutes = buildTimeoutInMinutes;
+ return this;
+ }
+
+ /**
+ * Get the vmProfile property: Describes how virtual machine is set up to build images.
+ *
+ * @return the vmProfile value.
+ */
+ public ImageTemplateVmProfile vmProfile() {
+ return this.vmProfile;
+ }
+
+ /**
+ * Set the vmProfile property: Describes how virtual machine is set up to build images.
+ *
+ * @param vmProfile the vmProfile value to set.
+ * @return the ImageTemplateInner object itself.
+ */
+ public ImageTemplateInner withVmProfile(ImageTemplateVmProfile vmProfile) {
+ this.vmProfile = vmProfile;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ImageTemplateInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ImageTemplateInner 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) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property identity in model ImageTemplateInner"));
+ } else {
+ identity().validate();
+ }
+ if (source() != null) {
+ source().validate();
+ }
+ if (customize() != null) {
+ customize().forEach(e -> e.validate());
+ }
+ if (distribute() != null) {
+ distribute().forEach(e -> e.validate());
+ }
+ if (provisioningError() != null) {
+ provisioningError().validate();
+ }
+ if (lastRunStatus() != null) {
+ lastRunStatus().validate();
+ }
+ if (vmProfile() != null) {
+ vmProfile().validate();
+ }
+ }
+}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/OperationInner.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/OperationInner.java
new file mode 100644
index 0000000000000..e1ac9311776e3
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/OperationInner.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.imagebuilder.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.imagebuilder.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A REST API operation. */
+@Fluent
+public final class OperationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
+
+ /*
+ * This is of the format {provider}/{resource}/{operation}
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The object that describes the operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation.
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /*
+ * Any object
+ */
+ @JsonProperty(value = "properties")
+ private Object properties;
+
+ /*
+ * The flag that indicates whether the operation applies to data plane.
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /**
+ * Get the name property: This is of the format {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: This is of the format {provider}/{resource}/{operation}.
+ *
+ * @param name the name value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the display property: The object that describes the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: The object that describes the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: The intended executor of the operation.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Get the properties property: Any object.
+ *
+ * @return the properties value.
+ */
+ public Object properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Any object.
+ *
+ * @param properties the properties value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withProperties(Object properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the isDataAction property: The flag that indicates whether the operation applies to data plane.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: The flag that indicates whether the operation applies to data plane.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/RunOutputInner.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/RunOutputInner.java
new file mode 100644
index 0000000000000..c2b4fa8f2923f
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/RunOutputInner.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.imagebuilder.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.imagebuilder.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Represents an output that was created by running an image template. */
+@JsonFlatten
+@Fluent
+public class RunOutputInner extends SubResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RunOutputInner.class);
+
+ /*
+ * The resource id of the artifact.
+ */
+ @JsonProperty(value = "properties.artifactId")
+ private String artifactId;
+
+ /*
+ * The location URI of the artifact.
+ */
+ @JsonProperty(value = "properties.artifactUri")
+ private String artifactUri;
+
+ /*
+ * Provisioning state of the resource
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Resource name
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /*
+ * Resource type
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /**
+ * Get the artifactId property: The resource id of the artifact.
+ *
+ * @return the artifactId value.
+ */
+ public String artifactId() {
+ return this.artifactId;
+ }
+
+ /**
+ * Set the artifactId property: The resource id of the artifact.
+ *
+ * @param artifactId the artifactId value to set.
+ * @return the RunOutputInner object itself.
+ */
+ public RunOutputInner withArtifactId(String artifactId) {
+ this.artifactId = artifactId;
+ return this;
+ }
+
+ /**
+ * Get the artifactUri property: The location URI of the artifact.
+ *
+ * @return the artifactUri value.
+ */
+ public String artifactUri() {
+ return this.artifactUri;
+ }
+
+ /**
+ * Set the artifactUri property: The location URI of the artifact.
+ *
+ * @param artifactUri the artifactUri value to set.
+ * @return the RunOutputInner object itself.
+ */
+ public RunOutputInner withArtifactUri(String artifactUri) {
+ this.artifactUri = artifactUri;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the name property: Resource name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Resource name.
+ *
+ * @param name the name value to set.
+ * @return the RunOutputInner object itself.
+ */
+ public RunOutputInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the type property: Resource type.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RunOutputInner withId(String id) {
+ super.withId(id);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property name in model RunOutputInner"));
+ }
+ }
+}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/package-info.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/package-info.java
new file mode 100644
index 0000000000000..6c4fb60fe74a1
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/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 ImageBuilderClient. Azure Virtual Machine Image Builder Client. */
+package com.azure.resourcemanager.imagebuilder.fluent.models;
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/package-info.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/package-info.java
new file mode 100644
index 0000000000000..df60f2f5c4b6f
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/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 ImageBuilderClient. Azure Virtual Machine Image Builder Client. */
+package com.azure.resourcemanager.imagebuilder.fluent;
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientBuilder.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientBuilder.java
new file mode 100644
index 0000000000000..5187865e2291a
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientBuilder.java
@@ -0,0 +1,149 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.imagebuilder.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 ImageBuilderClientImpl type. */
+@ServiceClientBuilder(serviceClients = {ImageBuilderClientImpl.class})
+public final class ImageBuilderClientBuilder {
+ /*
+ * Subscription credentials which uniquely identify Microsoft Azure
+ * subscription. The subscription Id forms part of the URI for every
+ * service call.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription Id forms
+ * part of the URI for every service call.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the ImageBuilderClientBuilder.
+ */
+ public ImageBuilderClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the ImageBuilderClientBuilder.
+ */
+ public ImageBuilderClientBuilder 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 ImageBuilderClientBuilder.
+ */
+ public ImageBuilderClientBuilder 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 ImageBuilderClientBuilder.
+ */
+ public ImageBuilderClientBuilder 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 ImageBuilderClientBuilder.
+ */
+ public ImageBuilderClientBuilder 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 ImageBuilderClientBuilder.
+ */
+ public ImageBuilderClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of ImageBuilderClientImpl with the provided parameters.
+ *
+ * @return an instance of ImageBuilderClientImpl.
+ */
+ public ImageBuilderClientImpl 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();
+ }
+ ImageBuilderClientImpl client =
+ new ImageBuilderClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientImpl.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientImpl.java
new file mode 100644
index 0000000000000..78a3c1a682a53
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientImpl.java
@@ -0,0 +1,312 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.imagebuilder.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.imagebuilder.fluent.ImageBuilderClient;
+import com.azure.resourcemanager.imagebuilder.fluent.OperationsClient;
+import com.azure.resourcemanager.imagebuilder.fluent.VirtualMachineImageTemplatesClient;
+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 ImageBuilderClientImpl type. */
+@ServiceClient(builder = ImageBuilderClientBuilder.class)
+public final class ImageBuilderClientImpl implements ImageBuilderClient {
+ private final ClientLogger logger = new ClientLogger(ImageBuilderClientImpl.class);
+
+ /**
+ * Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription Id forms part of
+ * the URI for every service call.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription Id forms
+ * part of the URI for every service call.
+ *
+ * @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 VirtualMachineImageTemplatesClient object to access its operations. */
+ private final VirtualMachineImageTemplatesClient virtualMachineImageTemplates;
+
+ /**
+ * Gets the VirtualMachineImageTemplatesClient object to access its operations.
+ *
+ * @return the VirtualMachineImageTemplatesClient object.
+ */
+ public VirtualMachineImageTemplatesClient getVirtualMachineImageTemplates() {
+ return this.virtualMachineImageTemplates;
+ }
+
+ /** 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;
+ }
+
+ /**
+ * Initializes an instance of ImageBuilderClient 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 Subscription credentials which uniquely identify Microsoft Azure subscription. The
+ * subscription Id forms part of the URI for every service call.
+ * @param endpoint server parameter.
+ */
+ ImageBuilderClientImpl(
+ 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 = "2020-02-14";
+ this.virtualMachineImageTemplates = new VirtualMachineImageTemplatesClientImpl(this);
+ this.operations = new OperationsClientImpl(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