scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ 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 retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' 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, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of manufacturingplatform service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the manufacturingplatform service API instance.
+ */
+ public ManufacturingplatformManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.manufacturingplatform")
+ .append("/")
+ .append(clientVersion);
+ 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) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ 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 BearerTokenAuthenticationPolicy(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 ManufacturingplatformManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of ManufacturingDataServices. It manages MdsResource.
+ *
+ * @return Resource collection API of ManufacturingDataServices.
+ */
+ public ManufacturingDataServices manufacturingDataServices() {
+ if (this.manufacturingDataServices == null) {
+ this.manufacturingDataServices
+ = new ManufacturingDataServicesImpl(clientObject.getManufacturingDataServices(), this);
+ }
+ return manufacturingDataServices;
+ }
+
+ /**
+ * Gets wrapped service client MicrosoftManufacturingPlatform providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client MicrosoftManufacturingPlatform.
+ */
+ public MicrosoftManufacturingPlatform serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/ManufacturingDataServicesClient.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/ManufacturingDataServicesClient.java
new file mode 100644
index 000000000000..5e44eb7523e5
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/ManufacturingDataServicesClient.java
@@ -0,0 +1,298 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.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.manufacturingplatform.fluent.models.AvailableVersionListResultInner;
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.MdsResourceInner;
+import com.azure.resourcemanager.manufacturingplatform.models.MdsResourceUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ManufacturingDataServicesClient.
+ */
+public interface ManufacturingDataServicesClient {
+ /**
+ * List MdsResource resources by subscription ID.
+ *
+ * @throws com.azure.core.management.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 of a MdsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List MdsResource resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List MdsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 of a MdsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List MdsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 of a MdsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MdsResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String mdsResourceName,
+ Context context);
+
+ /**
+ * Get a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MdsResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MdsResourceInner getByResourceGroup(String resourceGroupName, String mdsResourceName);
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 {@link SyncPoller} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MdsResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String mdsResourceName, MdsResourceInner resource);
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @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 {@link SyncPoller} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MdsResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String mdsResourceName, MdsResourceInner resource, Context context);
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MdsResourceInner createOrUpdate(String resourceGroupName, String mdsResourceName, MdsResourceInner resource);
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MdsResourceInner createOrUpdate(String resourceGroupName, String mdsResourceName, MdsResourceInner resource,
+ Context context);
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 {@link SyncPoller} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MdsResourceInner> beginUpdate(String resourceGroupName,
+ String mdsResourceName, MdsResourceUpdate properties);
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @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 {@link SyncPoller} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MdsResourceInner> beginUpdate(String resourceGroupName,
+ String mdsResourceName, MdsResourceUpdate properties, Context context);
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MdsResourceInner update(String resourceGroupName, String mdsResourceName, MdsResourceUpdate properties);
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MdsResourceInner update(String resourceGroupName, String mdsResourceName, MdsResourceUpdate properties,
+ Context context);
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String mdsResourceName);
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String mdsResourceName, Context context);
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 mdsResourceName);
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String mdsResourceName, Context context);
+
+ /**
+ * Returns the list of available versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @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 list of available versions along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listAvailableVersionsWithResponse(String resourceGroupName,
+ String mdsResourceName, Context context);
+
+ /**
+ * Returns the list of available versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 list of available versions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AvailableVersionListResultInner listAvailableVersions(String resourceGroupName, String mdsResourceName);
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/MicrosoftManufacturingPlatform.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/MicrosoftManufacturingPlatform.java
new file mode 100644
index 000000000000..4f5dc1e085f1
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/MicrosoftManufacturingPlatform.java
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for MicrosoftManufacturingPlatform class.
+ */
+public interface MicrosoftManufacturingPlatform {
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @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 ManufacturingDataServicesClient object to access its operations.
+ *
+ * @return the ManufacturingDataServicesClient object.
+ */
+ ManufacturingDataServicesClient getManufacturingDataServices();
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/OperationsClient.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/OperationsClient.java
new file mode 100644
index 000000000000..4fed88889e21
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/OperationsClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.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.manufacturingplatform.fluent.models.OperationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public interface OperationsClient {
+ /**
+ * List the operations for the 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 a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the operations for the 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 a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/AvailableVersionListResultInner.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/AvailableVersionListResultInner.java
new file mode 100644
index 000000000000..2fbb6db65971
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/AvailableVersionListResultInner.java
@@ -0,0 +1,109 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.manufacturingplatform.models.ApplicationVersion;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The list of available versions.
+ */
+@Fluent
+public final class AvailableVersionListResultInner implements JsonSerializable {
+ /*
+ * The list of versions
+ */
+ private List versions;
+
+ /**
+ * Creates an instance of AvailableVersionListResultInner class.
+ */
+ public AvailableVersionListResultInner() {
+ }
+
+ /**
+ * Get the versions property: The list of versions.
+ *
+ * @return the versions value.
+ */
+ public List versions() {
+ return this.versions;
+ }
+
+ /**
+ * Set the versions property: The list of versions.
+ *
+ * @param versions the versions value to set.
+ * @return the AvailableVersionListResultInner object itself.
+ */
+ public AvailableVersionListResultInner withVersions(List versions) {
+ this.versions = versions;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (versions() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property versions in model AvailableVersionListResultInner"));
+ } else {
+ versions().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(AvailableVersionListResultInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("versions", this.versions, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AvailableVersionListResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AvailableVersionListResultInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the AvailableVersionListResultInner.
+ */
+ public static AvailableVersionListResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AvailableVersionListResultInner deserializedAvailableVersionListResultInner
+ = new AvailableVersionListResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("versions".equals(fieldName)) {
+ List versions
+ = reader.readArray(reader1 -> ApplicationVersion.fromJson(reader1));
+ deserializedAvailableVersionListResultInner.versions = versions;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAvailableVersionListResultInner;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/MdsResourceInner.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/MdsResourceInner.java
new file mode 100644
index 000000000000..6c227d01b55d
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/MdsResourceInner.java
@@ -0,0 +1,256 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.manufacturingplatform.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.manufacturingplatform.models.MdsResourceProperties;
+import com.azure.resourcemanager.manufacturingplatform.models.Sku;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * A ManufacturingPlatformProviderHub resource.
+ */
+@Fluent
+public final class MdsResourceInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private MdsResourceProperties properties;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * The SKU (Stock Keeping Unit) assigned to this resource.
+ */
+ private Sku sku;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of MdsResourceInner class.
+ */
+ public MdsResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public MdsResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the MdsResourceInner object itself.
+ */
+ public MdsResourceInner withProperties(MdsResourceProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the MdsResourceInner object itself.
+ */
+ public MdsResourceInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The SKU (Stock Keeping Unit) assigned to this resource.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU (Stock Keeping Unit) assigned to this resource.
+ *
+ * @param sku the sku value to set.
+ * @return the MdsResourceInner object itself.
+ */
+ public MdsResourceInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public MdsResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public MdsResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeJsonField("sku", this.sku);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MdsResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MdsResourceInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the MdsResourceInner.
+ */
+ public static MdsResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MdsResourceInner deserializedMdsResourceInner = new MdsResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedMdsResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedMdsResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedMdsResourceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedMdsResourceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedMdsResourceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedMdsResourceInner.properties = MdsResourceProperties.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedMdsResourceInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("sku".equals(fieldName)) {
+ deserializedMdsResourceInner.sku = Sku.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedMdsResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMdsResourceInner;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/OperationInner.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..db46bae8a6ef
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/OperationInner.java
@@ -0,0 +1,172 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.manufacturingplatform.models.ActionType;
+import com.azure.resourcemanager.manufacturingplatform.models.OperationDisplay;
+import com.azure.resourcemanager.manufacturingplatform.models.Origin;
+import java.io.IOException;
+
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Fluent
+public final class OperationInner implements JsonSerializable {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
+ */
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ private Origin origin;
+
+ /*
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ public OperationInner() {
+ }
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for ARM/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Localized display information for this particular 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; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
+ * only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("display", this.display);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/package-info.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/package-info.java
new file mode 100644
index 000000000000..60346d1b9084
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// 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 MicrosoftManufacturingPlatform.
+ * null.
+ */
+package com.azure.resourcemanager.manufacturingplatform.fluent.models;
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/package-info.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/package-info.java
new file mode 100644
index 000000000000..d1cf1ccc2192
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/fluent/package-info.java
@@ -0,0 +1,9 @@
+// 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 MicrosoftManufacturingPlatform.
+ * null.
+ */
+package com.azure.resourcemanager.manufacturingplatform.fluent;
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/AvailableVersionListResultImpl.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/AvailableVersionListResultImpl.java
new file mode 100644
index 000000000000..31df9725a801
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/AvailableVersionListResultImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.implementation;
+
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.AvailableVersionListResultInner;
+import com.azure.resourcemanager.manufacturingplatform.models.ApplicationVersion;
+import com.azure.resourcemanager.manufacturingplatform.models.AvailableVersionListResult;
+import java.util.Collections;
+import java.util.List;
+
+public final class AvailableVersionListResultImpl implements AvailableVersionListResult {
+ private AvailableVersionListResultInner innerObject;
+
+ private final com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager;
+
+ AvailableVersionListResultImpl(AvailableVersionListResultInner innerObject,
+ com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List versions() {
+ List inner = this.innerModel().versions();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public AvailableVersionListResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/ManufacturingDataServicesClientImpl.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/ManufacturingDataServicesClientImpl.java
new file mode 100644
index 000000000000..b6abba49a822
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/ManufacturingDataServicesClientImpl.java
@@ -0,0 +1,1577 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.manufacturingplatform.fluent.ManufacturingDataServicesClient;
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.AvailableVersionListResultInner;
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.MdsResourceInner;
+import com.azure.resourcemanager.manufacturingplatform.models.MdsResourceListResult;
+import com.azure.resourcemanager.manufacturingplatform.models.MdsResourceUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ManufacturingDataServicesClient.
+ */
+public final class ManufacturingDataServicesClientImpl implements ManufacturingDataServicesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ManufacturingDataServicesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftManufacturingPlatformImpl client;
+
+ /**
+ * Initializes an instance of ManufacturingDataServicesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ManufacturingDataServicesClientImpl(MicrosoftManufacturingPlatformImpl client) {
+ this.service = RestProxy.create(ManufacturingDataServicesService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftManufacturingPlatformManufacturingDataServices to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftManufacturi")
+ public interface ManufacturingDataServicesService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName,
+ @BodyParam("application/json") MdsResourceInner resource, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName,
+ @BodyParam("application/json") MdsResourceInner resource, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName,
+ @BodyParam("application/json") MdsResourceUpdate properties, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName,
+ @BodyParam("application/json") MdsResourceUpdate properties, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}/listAvailableVersions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAvailableVersions(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManufacturingPlatform/manufacturingDataServices/{mdsResourceName}/listAvailableVersions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listAvailableVersionsSync(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("mdsResourceName") String mdsResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List MdsResource resources by subscription ID.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List MdsResource resources by subscription ID.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List MdsResource resources by subscription ID.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage() {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List MdsResource resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List MdsResource resources by subscription ID.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink));
+ }
+
+ /**
+ * List MdsResource resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(() -> listSinglePage(context),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * List MdsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of a MdsResource list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List MdsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of a MdsResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List MdsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of a MdsResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List MdsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of a MdsResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List MdsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of a MdsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink));
+ }
+
+ /**
+ * List MdsResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of a MdsResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MdsResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String mdsResourceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MdsResource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String mdsResourceName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, mdsResourceName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MdsResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String mdsResourceName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, accept, context);
+ }
+
+ /**
+ * Get a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MdsResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MdsResourceInner getByResourceGroup(String resourceGroupName, String mdsResourceName) {
+ return getByResourceGroupWithResponse(resourceGroupName, mdsResourceName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String mdsResourceName, MdsResourceInner resource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, resource, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String mdsResourceName,
+ MdsResourceInner resource) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ if (resource == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, resource, accept, Context.NONE);
+ }
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String mdsResourceName,
+ MdsResourceInner resource, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ if (resource == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, resource, accept, context);
+ }
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MdsResourceInner>
+ beginCreateOrUpdateAsync(String resourceGroupName, String mdsResourceName, MdsResourceInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, mdsResourceName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ MdsResourceInner.class, MdsResourceInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MdsResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String mdsResourceName, MdsResourceInner resource) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, mdsResourceName, resource);
+ return this.client.getLroResult(response, MdsResourceInner.class,
+ MdsResourceInner.class, Context.NONE);
+ }
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MdsResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String mdsResourceName, MdsResourceInner resource, Context context) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, mdsResourceName, resource, context);
+ return this.client.getLroResult(response, MdsResourceInner.class,
+ MdsResourceInner.class, context);
+ }
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String mdsResourceName,
+ MdsResourceInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, mdsResourceName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MdsResourceInner createOrUpdate(String resourceGroupName, String mdsResourceName,
+ MdsResourceInner resource) {
+ return beginCreateOrUpdate(resourceGroupName, mdsResourceName, resource).getFinalResult();
+ }
+
+ /**
+ * Create a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MdsResourceInner createOrUpdate(String resourceGroupName, String mdsResourceName, MdsResourceInner resource,
+ Context context) {
+ return beginCreateOrUpdate(resourceGroupName, mdsResourceName, resource, context).getFinalResult();
+ }
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String mdsResourceName,
+ MdsResourceUpdate properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, properties, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String mdsResourceName,
+ MdsResourceUpdate properties) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ if (properties == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, properties, accept, Context.NONE);
+ }
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String mdsResourceName,
+ MdsResourceUpdate properties, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ if (properties == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, properties, accept, context);
+ }
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MdsResourceInner> beginUpdateAsync(String resourceGroupName,
+ String mdsResourceName, MdsResourceUpdate properties) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, mdsResourceName, properties);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ MdsResourceInner.class, MdsResourceInner.class, this.client.getContext());
+ }
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MdsResourceInner> beginUpdate(String resourceGroupName,
+ String mdsResourceName, MdsResourceUpdate properties) {
+ Response response = updateWithResponse(resourceGroupName, mdsResourceName, properties);
+ return this.client.getLroResult(response, MdsResourceInner.class,
+ MdsResourceInner.class, Context.NONE);
+ }
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MdsResourceInner> beginUpdate(String resourceGroupName,
+ String mdsResourceName, MdsResourceUpdate properties, Context context) {
+ Response response = updateWithResponse(resourceGroupName, mdsResourceName, properties, context);
+ return this.client.getLroResult(response, MdsResourceInner.class,
+ MdsResourceInner.class, context);
+ }
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String mdsResourceName,
+ MdsResourceUpdate properties) {
+ return beginUpdateAsync(resourceGroupName, mdsResourceName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MdsResourceInner update(String resourceGroupName, String mdsResourceName, MdsResourceUpdate properties) {
+ return beginUpdate(resourceGroupName, mdsResourceName, properties).getFinalResult();
+ }
+
+ /**
+ * Update a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ManufacturingPlatformProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MdsResourceInner update(String resourceGroupName, String mdsResourceName, MdsResourceUpdate properties,
+ Context context) {
+ return beginUpdate(resourceGroupName, mdsResourceName, properties, context).getFinalResult();
+ }
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String mdsResourceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String mdsResourceName) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, accept, Context.NONE);
+ }
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String mdsResourceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, accept, context);
+ }
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String mdsResourceName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, mdsResourceName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String mdsResourceName) {
+ Response response = deleteWithResponse(resourceGroupName, mdsResourceName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String mdsResourceName,
+ Context context) {
+ Response response = deleteWithResponse(resourceGroupName, mdsResourceName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String mdsResourceName) {
+ return beginDeleteAsync(resourceGroupName, mdsResourceName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String mdsResourceName) {
+ beginDelete(resourceGroupName, mdsResourceName).getFinalResult();
+ }
+
+ /**
+ * Delete a MdsResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String mdsResourceName, Context context) {
+ beginDelete(resourceGroupName, mdsResourceName, context).getFinalResult();
+ }
+
+ /**
+ * Returns the list of available versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of available versions along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listAvailableVersionsWithResponseAsync(String resourceGroupName, String mdsResourceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listAvailableVersions(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns the list of available versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of available versions on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listAvailableVersionsAsync(String resourceGroupName,
+ String mdsResourceName) {
+ return listAvailableVersionsWithResponseAsync(resourceGroupName, mdsResourceName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Returns the list of available versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of available versions along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listAvailableVersionsWithResponse(String resourceGroupName,
+ String mdsResourceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (mdsResourceName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter mdsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.listAvailableVersionsSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, mdsResourceName, accept, context);
+ }
+
+ /**
+ * Returns the list of available versions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param mdsResourceName Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of available versions.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AvailableVersionListResultInner listAvailableVersions(String resourceGroupName, String mdsResourceName) {
+ return listAvailableVersionsWithResponse(resourceGroupName, mdsResourceName, Context.NONE).getValue();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a MdsResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ManufacturingDataServicesClientImpl.class);
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/ManufacturingDataServicesImpl.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/ManufacturingDataServicesImpl.java
new file mode 100644
index 000000000000..520d87715371
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/ManufacturingDataServicesImpl.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.manufacturingplatform.fluent.ManufacturingDataServicesClient;
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.AvailableVersionListResultInner;
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.MdsResourceInner;
+import com.azure.resourcemanager.manufacturingplatform.models.AvailableVersionListResult;
+import com.azure.resourcemanager.manufacturingplatform.models.ManufacturingDataServices;
+import com.azure.resourcemanager.manufacturingplatform.models.MdsResource;
+
+public final class ManufacturingDataServicesImpl implements ManufacturingDataServices {
+ private static final ClientLogger LOGGER = new ClientLogger(ManufacturingDataServicesImpl.class);
+
+ private final ManufacturingDataServicesClient innerClient;
+
+ private final com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager;
+
+ public ManufacturingDataServicesImpl(ManufacturingDataServicesClient innerClient,
+ com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MdsResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MdsResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MdsResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MdsResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String mdsResourceName,
+ Context context) {
+ Response inner
+ = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, mdsResourceName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new MdsResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public MdsResource getByResourceGroup(String resourceGroupName, String mdsResourceName) {
+ MdsResourceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, mdsResourceName);
+ if (inner != null) {
+ return new MdsResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String mdsResourceName) {
+ this.serviceClient().delete(resourceGroupName, mdsResourceName);
+ }
+
+ public void delete(String resourceGroupName, String mdsResourceName, Context context) {
+ this.serviceClient().delete(resourceGroupName, mdsResourceName, context);
+ }
+
+ public Response listAvailableVersionsWithResponse(String resourceGroupName,
+ String mdsResourceName, Context context) {
+ Response inner
+ = this.serviceClient().listAvailableVersionsWithResponse(resourceGroupName, mdsResourceName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new AvailableVersionListResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public AvailableVersionListResult listAvailableVersions(String resourceGroupName, String mdsResourceName) {
+ AvailableVersionListResultInner inner
+ = this.serviceClient().listAvailableVersions(resourceGroupName, mdsResourceName);
+ if (inner != null) {
+ return new AvailableVersionListResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public MdsResource getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String mdsResourceName = ResourceManagerUtils.getValueFromIdByName(id, "manufacturingDataServices");
+ if (mdsResourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'manufacturingDataServices'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, mdsResourceName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String mdsResourceName = ResourceManagerUtils.getValueFromIdByName(id, "manufacturingDataServices");
+ if (mdsResourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'manufacturingDataServices'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, mdsResourceName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String mdsResourceName = ResourceManagerUtils.getValueFromIdByName(id, "manufacturingDataServices");
+ if (mdsResourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'manufacturingDataServices'.", id)));
+ }
+ this.delete(resourceGroupName, mdsResourceName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String mdsResourceName = ResourceManagerUtils.getValueFromIdByName(id, "manufacturingDataServices");
+ if (mdsResourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'manufacturingDataServices'.", id)));
+ }
+ this.delete(resourceGroupName, mdsResourceName, context);
+ }
+
+ private ManufacturingDataServicesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager manager() {
+ return this.serviceManager;
+ }
+
+ public MdsResourceImpl define(String name) {
+ return new MdsResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/MdsResourceImpl.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/MdsResourceImpl.java
new file mode 100644
index 000000000000..035d25d4cc86
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/MdsResourceImpl.java
@@ -0,0 +1,227 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.MdsResourceInner;
+import com.azure.resourcemanager.manufacturingplatform.models.AvailableVersionListResult;
+import com.azure.resourcemanager.manufacturingplatform.models.AzureResourceManagerCommonTypesManagedServiceIdentityUpdate;
+import com.azure.resourcemanager.manufacturingplatform.models.AzureResourceManagerCommonTypesSkuUpdate;
+import com.azure.resourcemanager.manufacturingplatform.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.manufacturingplatform.models.MdsResource;
+import com.azure.resourcemanager.manufacturingplatform.models.MdsResourceProperties;
+import com.azure.resourcemanager.manufacturingplatform.models.MdsResourceUpdate;
+import com.azure.resourcemanager.manufacturingplatform.models.MdsResourceUpdateProperties;
+import com.azure.resourcemanager.manufacturingplatform.models.Sku;
+import java.util.Collections;
+import java.util.Map;
+
+public final class MdsResourceImpl implements MdsResource, MdsResource.Definition, MdsResource.Update {
+ private MdsResourceInner innerObject;
+
+ private final com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public MdsResourceProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public Sku sku() {
+ return this.innerModel().sku();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public MdsResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String mdsResourceName;
+
+ private MdsResourceUpdate updateProperties;
+
+ public MdsResourceImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public MdsResource create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getManufacturingDataServices()
+ .createOrUpdate(resourceGroupName, mdsResourceName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public MdsResource create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getManufacturingDataServices()
+ .createOrUpdate(resourceGroupName, mdsResourceName, this.innerModel(), context);
+ return this;
+ }
+
+ MdsResourceImpl(String name,
+ com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager) {
+ this.innerObject = new MdsResourceInner();
+ this.serviceManager = serviceManager;
+ this.mdsResourceName = name;
+ }
+
+ public MdsResourceImpl update() {
+ this.updateProperties = new MdsResourceUpdate();
+ return this;
+ }
+
+ public MdsResource apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getManufacturingDataServices()
+ .update(resourceGroupName, mdsResourceName, updateProperties, Context.NONE);
+ return this;
+ }
+
+ public MdsResource apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getManufacturingDataServices()
+ .update(resourceGroupName, mdsResourceName, updateProperties, context);
+ return this;
+ }
+
+ MdsResourceImpl(MdsResourceInner innerObject,
+ com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.mdsResourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "manufacturingDataServices");
+ }
+
+ public MdsResource refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getManufacturingDataServices()
+ .getByResourceGroupWithResponse(resourceGroupName, mdsResourceName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public MdsResource refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getManufacturingDataServices()
+ .getByResourceGroupWithResponse(resourceGroupName, mdsResourceName, context)
+ .getValue();
+ return this;
+ }
+
+ public Response listAvailableVersionsWithResponse(Context context) {
+ return serviceManager.manufacturingDataServices()
+ .listAvailableVersionsWithResponse(resourceGroupName, mdsResourceName, context);
+ }
+
+ public AvailableVersionListResult listAvailableVersions() {
+ return serviceManager.manufacturingDataServices().listAvailableVersions(resourceGroupName, mdsResourceName);
+ }
+
+ public MdsResourceImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public MdsResourceImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public MdsResourceImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateProperties.withTags(tags);
+ return this;
+ }
+ }
+
+ public MdsResourceImpl withProperties(MdsResourceProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public MdsResourceImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ }
+
+ public MdsResourceImpl withSku(Sku sku) {
+ this.innerModel().withSku(sku);
+ return this;
+ }
+
+ public MdsResourceImpl withIdentity(AzureResourceManagerCommonTypesManagedServiceIdentityUpdate identity) {
+ this.updateProperties.withIdentity(identity);
+ return this;
+ }
+
+ public MdsResourceImpl withSku(AzureResourceManagerCommonTypesSkuUpdate sku) {
+ this.updateProperties.withSku(sku);
+ return this;
+ }
+
+ public MdsResourceImpl withProperties(MdsResourceUpdateProperties properties) {
+ this.updateProperties.withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/MicrosoftManufacturingPlatformBuilder.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/MicrosoftManufacturingPlatformBuilder.java
new file mode 100644
index 000000000000..08db757db1ae
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/MicrosoftManufacturingPlatformBuilder.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.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.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 MicrosoftManufacturingPlatformImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { MicrosoftManufacturingPlatformImpl.class })
+public final class MicrosoftManufacturingPlatformBuilder {
+ /*
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription. The value must be an UUID.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the MicrosoftManufacturingPlatformBuilder.
+ */
+ public MicrosoftManufacturingPlatformBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the MicrosoftManufacturingPlatformBuilder.
+ */
+ public MicrosoftManufacturingPlatformBuilder 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 MicrosoftManufacturingPlatformBuilder.
+ */
+ public MicrosoftManufacturingPlatformBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ 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 MicrosoftManufacturingPlatformBuilder.
+ */
+ public MicrosoftManufacturingPlatformBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ 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 MicrosoftManufacturingPlatformBuilder.
+ */
+ public MicrosoftManufacturingPlatformBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ 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 MicrosoftManufacturingPlatformBuilder.
+ */
+ public MicrosoftManufacturingPlatformBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of MicrosoftManufacturingPlatformImpl with the provided parameters.
+ *
+ * @return an instance of MicrosoftManufacturingPlatformImpl.
+ */
+ public MicrosoftManufacturingPlatformImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ MicrosoftManufacturingPlatformImpl client = new MicrosoftManufacturingPlatformImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
+ return client;
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/MicrosoftManufacturingPlatformImpl.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/MicrosoftManufacturingPlatformImpl.java
new file mode 100644
index 000000000000..0a24ecb4da22
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/MicrosoftManufacturingPlatformImpl.java
@@ -0,0 +1,324 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
+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.management.polling.SyncPollerFactory;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
+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.polling.SyncPoller;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.manufacturingplatform.fluent.ManufacturingDataServicesClient;
+import com.azure.resourcemanager.manufacturingplatform.fluent.MicrosoftManufacturingPlatform;
+import com.azure.resourcemanager.manufacturingplatform.fluent.OperationsClient;
+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 reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * Initializes a new instance of the MicrosoftManufacturingPlatformImpl type.
+ */
+@ServiceClient(builder = MicrosoftManufacturingPlatformBuilder.class)
+public final class MicrosoftManufacturingPlatformImpl implements MicrosoftManufacturingPlatform {
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @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 ManufacturingDataServicesClient object to access its operations.
+ */
+ private final ManufacturingDataServicesClient manufacturingDataServices;
+
+ /**
+ * Gets the ManufacturingDataServicesClient object to access its operations.
+ *
+ * @return the ManufacturingDataServicesClient object.
+ */
+ public ManufacturingDataServicesClient getManufacturingDataServices() {
+ return this.manufacturingDataServices;
+ }
+
+ /**
+ * Initializes an instance of MicrosoftManufacturingPlatform 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 The ID of the target subscription. The value must be an UUID.
+ * @param endpoint server parameter.
+ */
+ MicrosoftManufacturingPlatformImpl(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 = "2024-02-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.manufacturingDataServices = new ManufacturingDataServicesClientImpl(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) {
+ return CoreUtils.mergeContexts(this.getContext(), context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param httpPipeline the http pipeline.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return poller flux for poll result and final result.
+ */
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return SyncPoller for poll result and final result.
+ */
+ public SyncPoller, U> getLroResult(Response activationResponse,
+ Type pollResultType, Type finalResultType, Context context) {
+ return SyncPollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, () -> activationResponse, context);
+ }
+
+ /**
+ * Gets the final result, or an error, based on last async poll response.
+ *
+ * @param response the last async poll response.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return the final result, or an error.
+ */
+ public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) {
+ if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) {
+ String errorMessage;
+ ManagementError managementError = null;
+ HttpResponse errorResponse = null;
+ PollResult.Error lroError = response.getValue().getError();
+ if (lroError != null) {
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
+
+ errorMessage = response.getValue().getError().getMessage();
+ String errorBody = response.getValue().getError().getResponseBody();
+ if (errorBody != null) {
+ // try to deserialize error body to ManagementError
+ try {
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ if (managementError.getCode() == null || managementError.getMessage() == null) {
+ managementError = null;
+ }
+ } catch (IOException | RuntimeException ioe) {
+ LOGGER.logThrowableAsWarning(ioe);
+ }
+ }
+ } else {
+ // fallback to default error message
+ errorMessage = "Long running operation failed.";
+ }
+ if (managementError == null) {
+ // fallback to default ManagementError
+ managementError = new ManagementError(response.getStatus().toString(), errorMessage);
+ }
+ return Mono.error(new ManagementException(errorMessage, errorResponse, managementError));
+ } else {
+ return response.getFinalResult();
+ }
+ }
+
+ private static final class HttpResponseImpl extends HttpResponse {
+ private final int statusCode;
+
+ private final byte[] responseBody;
+
+ private final HttpHeaders httpHeaders;
+
+ HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) {
+ super(null);
+ this.statusCode = statusCode;
+ this.httpHeaders = httpHeaders;
+ this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);
+ }
+
+ public int getStatusCode() {
+ return statusCode;
+ }
+
+ public String getHeaderValue(String s) {
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
+ }
+
+ public HttpHeaders getHeaders() {
+ return httpHeaders;
+ }
+
+ public Flux getBody() {
+ return Flux.just(ByteBuffer.wrap(responseBody));
+ }
+
+ public Mono getBodyAsByteArray() {
+ return Mono.just(responseBody);
+ }
+
+ public Mono getBodyAsString() {
+ return Mono.just(new String(responseBody, StandardCharsets.UTF_8));
+ }
+
+ public Mono getBodyAsString(Charset charset) {
+ return Mono.just(new String(responseBody, charset));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(MicrosoftManufacturingPlatformImpl.class);
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/OperationImpl.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/OperationImpl.java
new file mode 100644
index 000000000000..0a48613f2789
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/OperationImpl.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.implementation;
+
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.OperationInner;
+import com.azure.resourcemanager.manufacturingplatform.models.ActionType;
+import com.azure.resourcemanager.manufacturingplatform.models.Operation;
+import com.azure.resourcemanager.manufacturingplatform.models.OperationDisplay;
+import com.azure.resourcemanager.manufacturingplatform.models.Origin;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager;
+
+ OperationImpl(OperationInner innerObject,
+ com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public Boolean isDataAction() {
+ return this.innerModel().isDataAction();
+ }
+
+ public OperationDisplay display() {
+ return this.innerModel().display();
+ }
+
+ public Origin origin() {
+ return this.innerModel().origin();
+ }
+
+ public ActionType actionType() {
+ return this.innerModel().actionType();
+ }
+
+ public OperationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/OperationsClientImpl.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/OperationsClientImpl.java
new file mode 100644
index 000000000000..b6849ade780c
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/OperationsClientImpl.java
@@ -0,0 +1,284 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.manufacturingplatform.fluent.OperationsClient;
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.OperationInner;
+import com.azure.resourcemanager.manufacturingplatform.models.OperationListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public final class OperationsClientImpl implements OperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final OperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftManufacturingPlatformImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(MicrosoftManufacturingPlatformImpl client) {
+ this.service
+ = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftManufacturingPlatformOperations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftManufacturi")
+ public interface OperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.ManufacturingPlatform/operations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.ManufacturingPlatform/operations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage() {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink, Context context) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsClientImpl.class);
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/OperationsImpl.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/OperationsImpl.java
new file mode 100644
index 000000000000..4401208ad6f1
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/OperationsImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.manufacturingplatform.fluent.OperationsClient;
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.OperationInner;
+import com.azure.resourcemanager.manufacturingplatform.models.Operation;
+import com.azure.resourcemanager.manufacturingplatform.models.Operations;
+
+public final class OperationsImpl implements Operations {
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
+
+ private final OperationsClient innerClient;
+
+ private final com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager;
+
+ public OperationsImpl(OperationsClient innerClient,
+ com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ private OperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.manufacturingplatform.ManufacturingplatformManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/ResourceManagerUtils.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/ResourceManagerUtils.java
new file mode 100644
index 000000000000..dec80c00781d
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/ResourceManagerUtils.java
@@ -0,0 +1,195 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.implementation;
+
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.util.CoreUtils;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import reactor.core.publisher.Flux;
+
+final class ResourceManagerUtils {
+ private ResourceManagerUtils() {
+ }
+
+ static String getValueFromIdByName(String id, String name) {
+ if (id == null) {
+ return null;
+ }
+ Iterator itr = Arrays.stream(id.split("/")).iterator();
+ while (itr.hasNext()) {
+ String part = itr.next();
+ if (part != null && !part.trim().isEmpty()) {
+ if (part.equalsIgnoreCase(name)) {
+ if (itr.hasNext()) {
+ return itr.next();
+ } else {
+ return null;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) {
+ if (id == null || pathTemplate == null) {
+ return null;
+ }
+ String parameterNameParentheses = "{" + parameterName + "}";
+ List idSegmentsReverted = Arrays.asList(id.split("/"));
+ List pathSegments = Arrays.asList(pathTemplate.split("/"));
+ Collections.reverse(idSegmentsReverted);
+ Iterator idItrReverted = idSegmentsReverted.iterator();
+ int pathIndex = pathSegments.size();
+ while (idItrReverted.hasNext() && pathIndex > 0) {
+ String idSegment = idItrReverted.next();
+ String pathSegment = pathSegments.get(--pathIndex);
+ if (!CoreUtils.isNullOrEmpty(idSegment) && !CoreUtils.isNullOrEmpty(pathSegment)) {
+ if (pathSegment.equalsIgnoreCase(parameterNameParentheses)) {
+ if (pathIndex == 0 || (pathIndex == 1 && pathSegments.get(0).isEmpty())) {
+ List segments = new ArrayList<>();
+ segments.add(idSegment);
+ idItrReverted.forEachRemaining(segments::add);
+ Collections.reverse(segments);
+ if (!segments.isEmpty() && segments.get(0).isEmpty()) {
+ segments.remove(0);
+ }
+ return String.join("/", segments);
+ } else {
+ return idSegment;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) {
+ return new PagedIterableImpl<>(pageIterable, mapper);
+ }
+
+ private static final class PagedIterableImpl extends PagedIterable {
+
+ private final PagedIterable pagedIterable;
+ private final Function mapper;
+ private final Function, PagedResponse> pageMapper;
+
+ private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) {
+ super(PagedFlux.create(() -> (continuationToken, pageSize) -> Flux
+ .fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper)))));
+ this.pagedIterable = pagedIterable;
+ this.mapper = mapper;
+ this.pageMapper = getPageMapper(mapper);
+ }
+
+ private static Function, PagedResponse> getPageMapper(Function mapper) {
+ return page -> new PagedResponseBase(page.getRequest(), page.getStatusCode(), page.getHeaders(),
+ page.getElements().stream().map(mapper).collect(Collectors.toList()), page.getContinuationToken(),
+ null);
+ }
+
+ @Override
+ public Stream stream() {
+ return pagedIterable.stream().map(mapper);
+ }
+
+ @Override
+ public Stream> streamByPage() {
+ return pagedIterable.streamByPage().map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken) {
+ return pagedIterable.streamByPage(continuationToken).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(int preferredPageSize) {
+ return pagedIterable.streamByPage(preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken, int preferredPageSize) {
+ return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl<>(pagedIterable.iterator(), mapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage() {
+ return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(int preferredPageSize) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken, int preferredPageSize) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
+ }
+ }
+
+ private static final class IteratorImpl implements Iterator {
+
+ private final Iterator iterator;
+ private final Function mapper;
+
+ private IteratorImpl(Iterator iterator, Function mapper) {
+ this.iterator = iterator;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public boolean hasNext() {
+ return iterator.hasNext();
+ }
+
+ @Override
+ public S next() {
+ return mapper.apply(iterator.next());
+ }
+
+ @Override
+ public void remove() {
+ iterator.remove();
+ }
+ }
+
+ private static final class IterableImpl implements Iterable {
+
+ private final Iterable iterable;
+ private final Function mapper;
+
+ private IterableImpl(Iterable iterable, Function mapper) {
+ this.iterable = iterable;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl<>(iterable.iterator(), mapper);
+ }
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/package-info.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/package-info.java
new file mode 100644
index 000000000000..c3ea8ff60539
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/implementation/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the implementations for MicrosoftManufacturingPlatform.
+ * null.
+ */
+package com.azure.resourcemanager.manufacturingplatform.implementation;
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/ActionType.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/ActionType.java
new file mode 100644
index 000000000000..b26cadce93af
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/ActionType.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+public final class ActionType extends ExpandableStringEnum {
+ /**
+ * Static value Internal for ActionType.
+ */
+ public static final ActionType INTERNAL = fromString("Internal");
+
+ /**
+ * Creates a new instance of ActionType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ActionType() {
+ }
+
+ /**
+ * Creates or finds a ActionType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ActionType.
+ */
+ public static ActionType fromString(String name) {
+ return fromString(name, ActionType.class);
+ }
+
+ /**
+ * Gets known ActionType values.
+ *
+ * @return known ActionType values.
+ */
+ public static Collection values() {
+ return values(ActionType.class);
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AdxProfile.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AdxProfile.java
new file mode 100644
index 000000000000..3225d78bb763
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AdxProfile.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.manufacturingplatform.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to Azure Data Explorer (Adx) Resource.
+ */
+@Immutable
+public final class AdxProfile implements JsonSerializable {
+ /*
+ * Resource Id of Adx Resource
+ */
+ private String id;
+
+ /*
+ * Uri of Adx Resource
+ */
+ private String uri;
+
+ /*
+ * Data Ingestion Uri of Adx Resource
+ */
+ private String dataIngestionUri;
+
+ /**
+ * Creates an instance of AdxProfile class.
+ */
+ public AdxProfile() {
+ }
+
+ /**
+ * Get the id property: Resource Id of Adx Resource.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the uri property: Uri of Adx Resource.
+ *
+ * @return the uri value.
+ */
+ public String uri() {
+ return this.uri;
+ }
+
+ /**
+ * Get the dataIngestionUri property: Data Ingestion Uri of Adx Resource.
+ *
+ * @return the dataIngestionUri value.
+ */
+ public String dataIngestionUri() {
+ return this.dataIngestionUri;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AdxProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AdxProfile if the JsonReader was pointing to an instance of it, or null if it was pointing
+ * to JSON null.
+ * @throws IOException If an error occurs while reading the AdxProfile.
+ */
+ public static AdxProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AdxProfile deserializedAdxProfile = new AdxProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAdxProfile.id = reader.getString();
+ } else if ("uri".equals(fieldName)) {
+ deserializedAdxProfile.uri = reader.getString();
+ } else if ("dataIngestionUri".equals(fieldName)) {
+ deserializedAdxProfile.dataIngestionUri = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAdxProfile;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AksProfile.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AksProfile.java
new file mode 100644
index 000000000000..75019dec67f3
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AksProfile.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to Aks Resource.
+ */
+@Immutable
+public final class AksProfile implements JsonSerializable {
+ /*
+ * Resource Id of AKS Resource
+ */
+ private String id;
+
+ /**
+ * Creates an instance of AksProfile class.
+ */
+ public AksProfile() {
+ }
+
+ /**
+ * Get the id property: Resource Id of AKS Resource.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AksProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AksProfile if the JsonReader was pointing to an instance of it, or null if it was pointing
+ * to JSON null.
+ * @throws IOException If an error occurs while reading the AksProfile.
+ */
+ public static AksProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AksProfile deserializedAksProfile = new AksProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAksProfile.id = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAksProfile;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AmlProfile.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AmlProfile.java
new file mode 100644
index 000000000000..db7dd982ad7d
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AmlProfile.java
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to Azure Machine Learning Resource.
+ */
+@Fluent
+public final class AmlProfile implements JsonSerializable {
+ /*
+ * Resource Id of Azure Machine Learning Resource
+ */
+ private String id;
+
+ /*
+ * Custom Ner Service Uri
+ */
+ private String customNerServiceUri;
+
+ /**
+ * Creates an instance of AmlProfile class.
+ */
+ public AmlProfile() {
+ }
+
+ /**
+ * Get the id property: Resource Id of Azure Machine Learning Resource.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Resource Id of Azure Machine Learning Resource.
+ *
+ * @param id the id value to set.
+ * @return the AmlProfile object itself.
+ */
+ public AmlProfile withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the customNerServiceUri property: Custom Ner Service Uri.
+ *
+ * @return the customNerServiceUri value.
+ */
+ public String customNerServiceUri() {
+ return this.customNerServiceUri;
+ }
+
+ /**
+ * Set the customNerServiceUri property: Custom Ner Service Uri.
+ *
+ * @param customNerServiceUri the customNerServiceUri value to set.
+ * @return the AmlProfile object itself.
+ */
+ public AmlProfile withCustomNerServiceUri(String customNerServiceUri) {
+ this.customNerServiceUri = customNerServiceUri;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (id() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property id in model AmlProfile"));
+ }
+ if (customNerServiceUri() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property customNerServiceUri in model AmlProfile"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(AmlProfile.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("customNerServiceUri", this.customNerServiceUri);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmlProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmlProfile if the JsonReader was pointing to an instance of it, or null if it was pointing
+ * to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the AmlProfile.
+ */
+ public static AmlProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmlProfile deserializedAmlProfile = new AmlProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAmlProfile.id = reader.getString();
+ } else if ("customNerServiceUri".equals(fieldName)) {
+ deserializedAmlProfile.customNerServiceUri = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmlProfile;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AmlProfileUpdate.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AmlProfileUpdate.java
new file mode 100644
index 000000000000..38928d06b1d9
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AmlProfileUpdate.java
@@ -0,0 +1,121 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to Azure Machine Learning Resource.
+ */
+@Fluent
+public final class AmlProfileUpdate implements JsonSerializable {
+ /*
+ * Resource Id of Azure Machine Learning Resource
+ */
+ private String id;
+
+ /*
+ * Custom Ner Service Uri
+ */
+ private String customNerServiceUri;
+
+ /**
+ * Creates an instance of AmlProfileUpdate class.
+ */
+ public AmlProfileUpdate() {
+ }
+
+ /**
+ * Get the id property: Resource Id of Azure Machine Learning Resource.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Resource Id of Azure Machine Learning Resource.
+ *
+ * @param id the id value to set.
+ * @return the AmlProfileUpdate object itself.
+ */
+ public AmlProfileUpdate withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the customNerServiceUri property: Custom Ner Service Uri.
+ *
+ * @return the customNerServiceUri value.
+ */
+ public String customNerServiceUri() {
+ return this.customNerServiceUri;
+ }
+
+ /**
+ * Set the customNerServiceUri property: Custom Ner Service Uri.
+ *
+ * @param customNerServiceUri the customNerServiceUri value to set.
+ * @return the AmlProfileUpdate object itself.
+ */
+ public AmlProfileUpdate withCustomNerServiceUri(String customNerServiceUri) {
+ this.customNerServiceUri = customNerServiceUri;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("customNerServiceUri", this.customNerServiceUri);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmlProfileUpdate from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmlProfileUpdate if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the AmlProfileUpdate.
+ */
+ public static AmlProfileUpdate fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmlProfileUpdate deserializedAmlProfileUpdate = new AmlProfileUpdate();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAmlProfileUpdate.id = reader.getString();
+ } else if ("customNerServiceUri".equals(fieldName)) {
+ deserializedAmlProfileUpdate.customNerServiceUri = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmlProfileUpdate;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/ApplicationVersion.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/ApplicationVersion.java
new file mode 100644
index 000000000000..206de34a964d
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/ApplicationVersion.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Information about application versions.
+ */
+@Fluent
+public final class ApplicationVersion implements JsonSerializable {
+ /*
+ * Application Version
+ */
+ private String version;
+
+ /*
+ * Is Latest
+ */
+ private boolean isLatest;
+
+ /*
+ * Is Preview
+ */
+ private boolean isPreview;
+
+ /*
+ * Is Deprecated
+ */
+ private boolean isDeprecated;
+
+ /**
+ * Creates an instance of ApplicationVersion class.
+ */
+ public ApplicationVersion() {
+ }
+
+ /**
+ * Get the version property: Application Version.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Application Version.
+ *
+ * @param version the version value to set.
+ * @return the ApplicationVersion object itself.
+ */
+ public ApplicationVersion withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the isLatest property: Is Latest.
+ *
+ * @return the isLatest value.
+ */
+ public boolean isLatest() {
+ return this.isLatest;
+ }
+
+ /**
+ * Set the isLatest property: Is Latest.
+ *
+ * @param isLatest the isLatest value to set.
+ * @return the ApplicationVersion object itself.
+ */
+ public ApplicationVersion withIsLatest(boolean isLatest) {
+ this.isLatest = isLatest;
+ return this;
+ }
+
+ /**
+ * Get the isPreview property: Is Preview.
+ *
+ * @return the isPreview value.
+ */
+ public boolean isPreview() {
+ return this.isPreview;
+ }
+
+ /**
+ * Set the isPreview property: Is Preview.
+ *
+ * @param isPreview the isPreview value to set.
+ * @return the ApplicationVersion object itself.
+ */
+ public ApplicationVersion withIsPreview(boolean isPreview) {
+ this.isPreview = isPreview;
+ return this;
+ }
+
+ /**
+ * Get the isDeprecated property: Is Deprecated.
+ *
+ * @return the isDeprecated value.
+ */
+ public boolean isDeprecated() {
+ return this.isDeprecated;
+ }
+
+ /**
+ * Set the isDeprecated property: Is Deprecated.
+ *
+ * @param isDeprecated the isDeprecated value to set.
+ * @return the ApplicationVersion object itself.
+ */
+ public ApplicationVersion withIsDeprecated(boolean isDeprecated) {
+ this.isDeprecated = isDeprecated;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (version() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property version in model ApplicationVersion"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationVersion.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("version", this.version);
+ jsonWriter.writeBooleanField("isLatest", this.isLatest);
+ jsonWriter.writeBooleanField("isPreview", this.isPreview);
+ jsonWriter.writeBooleanField("isDeprecated", this.isDeprecated);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ApplicationVersion from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ApplicationVersion if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ApplicationVersion.
+ */
+ public static ApplicationVersion fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ApplicationVersion deserializedApplicationVersion = new ApplicationVersion();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("version".equals(fieldName)) {
+ deserializedApplicationVersion.version = reader.getString();
+ } else if ("isLatest".equals(fieldName)) {
+ deserializedApplicationVersion.isLatest = reader.getBoolean();
+ } else if ("isPreview".equals(fieldName)) {
+ deserializedApplicationVersion.isPreview = reader.getBoolean();
+ } else if ("isDeprecated".equals(fieldName)) {
+ deserializedApplicationVersion.isDeprecated = reader.getBoolean();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedApplicationVersion;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AvailableVersionListResult.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AvailableVersionListResult.java
new file mode 100644
index 000000000000..1be1b9cdfd1a
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AvailableVersionListResult.java
@@ -0,0 +1,28 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.resourcemanager.manufacturingplatform.fluent.models.AvailableVersionListResultInner;
+import java.util.List;
+
+/**
+ * An immutable client-side representation of AvailableVersionListResult.
+ */
+public interface AvailableVersionListResult {
+ /**
+ * Gets the versions property: The list of versions.
+ *
+ * @return the versions value.
+ */
+ List versions();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.manufacturingplatform.fluent.models.AvailableVersionListResultInner
+ * object.
+ *
+ * @return the inner object.
+ */
+ AvailableVersionListResultInner innerModel();
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AzureResourceManagerCommonTypesManagedServiceIdentityUpdate.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AzureResourceManagerCommonTypesManagedServiceIdentityUpdate.java
new file mode 100644
index 000000000000..496f6feeee73
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AzureResourceManagerCommonTypesManagedServiceIdentityUpdate.java
@@ -0,0 +1,139 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Managed service identity (system assigned and/or user assigned identities).
+ */
+@Fluent
+public final class AzureResourceManagerCommonTypesManagedServiceIdentityUpdate
+ implements JsonSerializable {
+ /*
+ * The type of managed identity assigned to this resource.
+ */
+ private ManagedServiceIdentityType type;
+
+ /*
+ * The identities assigned to this resource by the user.
+ */
+ private Map userAssignedIdentities;
+
+ /**
+ * Creates an instance of AzureResourceManagerCommonTypesManagedServiceIdentityUpdate class.
+ */
+ public AzureResourceManagerCommonTypesManagedServiceIdentityUpdate() {
+ }
+
+ /**
+ * Get the type property: The type of managed identity assigned to this resource.
+ *
+ * @return the type value.
+ */
+ public ManagedServiceIdentityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: The type of managed identity assigned to this resource.
+ *
+ * @param type the type value to set.
+ * @return the AzureResourceManagerCommonTypesManagedServiceIdentityUpdate object itself.
+ */
+ public AzureResourceManagerCommonTypesManagedServiceIdentityUpdate withType(ManagedServiceIdentityType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the userAssignedIdentities property: The identities assigned to this resource by the user.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public Map userAssignedIdentities() {
+ return this.userAssignedIdentities;
+ }
+
+ /**
+ * Set the userAssignedIdentities property: The identities assigned to this resource by the user.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the AzureResourceManagerCommonTypesManagedServiceIdentityUpdate object itself.
+ */
+ public AzureResourceManagerCommonTypesManagedServiceIdentityUpdate
+ withUserAssignedIdentities(Map userAssignedIdentities) {
+ this.userAssignedIdentities = userAssignedIdentities;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (userAssignedIdentities() != null) {
+ userAssignedIdentities().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString());
+ jsonWriter.writeMapField("userAssignedIdentities", this.userAssignedIdentities,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureResourceManagerCommonTypesManagedServiceIdentityUpdate from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureResourceManagerCommonTypesManagedServiceIdentityUpdate if the JsonReader was pointing
+ * to an instance of it, or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the
+ * AzureResourceManagerCommonTypesManagedServiceIdentityUpdate.
+ */
+ public static AzureResourceManagerCommonTypesManagedServiceIdentityUpdate fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureResourceManagerCommonTypesManagedServiceIdentityUpdate deserializedAzureResourceManagerCommonTypesManagedServiceIdentityUpdate
+ = new AzureResourceManagerCommonTypesManagedServiceIdentityUpdate();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("type".equals(fieldName)) {
+ deserializedAzureResourceManagerCommonTypesManagedServiceIdentityUpdate.type
+ = ManagedServiceIdentityType.fromString(reader.getString());
+ } else if ("userAssignedIdentities".equals(fieldName)) {
+ Map userAssignedIdentities
+ = reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1));
+ deserializedAzureResourceManagerCommonTypesManagedServiceIdentityUpdate.userAssignedIdentities
+ = userAssignedIdentities;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureResourceManagerCommonTypesManagedServiceIdentityUpdate;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AzureResourceManagerCommonTypesSkuUpdate.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AzureResourceManagerCommonTypesSkuUpdate.java
new file mode 100644
index 000000000000..5323e4d55288
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/AzureResourceManagerCommonTypesSkuUpdate.java
@@ -0,0 +1,219 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The resource model definition representing SKU.
+ */
+@Fluent
+public final class AzureResourceManagerCommonTypesSkuUpdate
+ implements JsonSerializable {
+ /*
+ * The name of the SKU. Ex - P3. It is typically a letter+number code
+ */
+ private String name;
+
+ /*
+ * This field is required to be implemented by the Resource Provider if the service has more than one tier, but is
+ * not required on a PUT.
+ */
+ private SkuTier tier;
+
+ /*
+ * The SKU size. When the name field is the combination of tier and some other value, this would be the standalone
+ * code.
+ */
+ private String size;
+
+ /*
+ * If the service has different generations of hardware, for the same SKU, then that can be captured here.
+ */
+ private String family;
+
+ /*
+ * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible
+ * for the resource this may be omitted.
+ */
+ private Integer capacity;
+
+ /**
+ * Creates an instance of AzureResourceManagerCommonTypesSkuUpdate class.
+ */
+ public AzureResourceManagerCommonTypesSkuUpdate() {
+ }
+
+ /**
+ * Get the name property: The name of the SKU. Ex - P3. It is typically a letter+number code.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the SKU. Ex - P3. It is typically a letter+number code.
+ *
+ * @param name the name value to set.
+ * @return the AzureResourceManagerCommonTypesSkuUpdate object itself.
+ */
+ public AzureResourceManagerCommonTypesSkuUpdate withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the tier property: This field is required to be implemented by the Resource Provider if the service has more
+ * than one tier, but is not required on a PUT.
+ *
+ * @return the tier value.
+ */
+ public SkuTier tier() {
+ return this.tier;
+ }
+
+ /**
+ * Set the tier property: This field is required to be implemented by the Resource Provider if the service has more
+ * than one tier, but is not required on a PUT.
+ *
+ * @param tier the tier value to set.
+ * @return the AzureResourceManagerCommonTypesSkuUpdate object itself.
+ */
+ public AzureResourceManagerCommonTypesSkuUpdate withTier(SkuTier tier) {
+ this.tier = tier;
+ return this;
+ }
+
+ /**
+ * Get the size property: The SKU size. When the name field is the combination of tier and some other value, this
+ * would be the standalone code.
+ *
+ * @return the size value.
+ */
+ public String size() {
+ return this.size;
+ }
+
+ /**
+ * Set the size property: The SKU size. When the name field is the combination of tier and some other value, this
+ * would be the standalone code.
+ *
+ * @param size the size value to set.
+ * @return the AzureResourceManagerCommonTypesSkuUpdate object itself.
+ */
+ public AzureResourceManagerCommonTypesSkuUpdate withSize(String size) {
+ this.size = size;
+ return this;
+ }
+
+ /**
+ * Get the family property: If the service has different generations of hardware, for the same SKU, then that can be
+ * captured here.
+ *
+ * @return the family value.
+ */
+ public String family() {
+ return this.family;
+ }
+
+ /**
+ * Set the family property: If the service has different generations of hardware, for the same SKU, then that can be
+ * captured here.
+ *
+ * @param family the family value to set.
+ * @return the AzureResourceManagerCommonTypesSkuUpdate object itself.
+ */
+ public AzureResourceManagerCommonTypesSkuUpdate withFamily(String family) {
+ this.family = family;
+ return this;
+ }
+
+ /**
+ * Get the capacity property: If the SKU supports scale out/in then the capacity integer should be included. If
+ * scale out/in is not possible for the resource this may be omitted.
+ *
+ * @return the capacity value.
+ */
+ public Integer capacity() {
+ return this.capacity;
+ }
+
+ /**
+ * Set the capacity property: If the SKU supports scale out/in then the capacity integer should be included. If
+ * scale out/in is not possible for the resource this may be omitted.
+ *
+ * @param capacity the capacity value to set.
+ * @return the AzureResourceManagerCommonTypesSkuUpdate object itself.
+ */
+ public AzureResourceManagerCommonTypesSkuUpdate withCapacity(Integer capacity) {
+ this.capacity = capacity;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeStringField("tier", this.tier == null ? null : this.tier.toString());
+ jsonWriter.writeStringField("size", this.size);
+ jsonWriter.writeStringField("family", this.family);
+ jsonWriter.writeNumberField("capacity", this.capacity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureResourceManagerCommonTypesSkuUpdate from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureResourceManagerCommonTypesSkuUpdate if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the AzureResourceManagerCommonTypesSkuUpdate.
+ */
+ public static AzureResourceManagerCommonTypesSkuUpdate fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureResourceManagerCommonTypesSkuUpdate deserializedAzureResourceManagerCommonTypesSkuUpdate
+ = new AzureResourceManagerCommonTypesSkuUpdate();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedAzureResourceManagerCommonTypesSkuUpdate.name = reader.getString();
+ } else if ("tier".equals(fieldName)) {
+ deserializedAzureResourceManagerCommonTypesSkuUpdate.tier = SkuTier.fromString(reader.getString());
+ } else if ("size".equals(fieldName)) {
+ deserializedAzureResourceManagerCommonTypesSkuUpdate.size = reader.getString();
+ } else if ("family".equals(fieldName)) {
+ deserializedAzureResourceManagerCommonTypesSkuUpdate.family = reader.getString();
+ } else if ("capacity".equals(fieldName)) {
+ deserializedAzureResourceManagerCommonTypesSkuUpdate.capacity
+ = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureResourceManagerCommonTypesSkuUpdate;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/CmkProfile.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/CmkProfile.java
new file mode 100644
index 000000000000..41f6692a55e9
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/CmkProfile.java
@@ -0,0 +1,101 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to CMK.
+ */
+@Fluent
+public final class CmkProfile implements JsonSerializable {
+ /*
+ * URI of Key in AKV
+ */
+ private String keyUri;
+
+ /**
+ * Creates an instance of CmkProfile class.
+ */
+ public CmkProfile() {
+ }
+
+ /**
+ * Get the keyUri property: URI of Key in AKV.
+ *
+ * @return the keyUri value.
+ */
+ public String keyUri() {
+ return this.keyUri;
+ }
+
+ /**
+ * Set the keyUri property: URI of Key in AKV.
+ *
+ * @param keyUri the keyUri value to set.
+ * @return the CmkProfile object itself.
+ */
+ public CmkProfile withKeyUri(String keyUri) {
+ this.keyUri = keyUri;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (keyUri() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property keyUri in model CmkProfile"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CmkProfile.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("keyUri", this.keyUri);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CmkProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CmkProfile if the JsonReader was pointing to an instance of it, or null if it was pointing
+ * to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the CmkProfile.
+ */
+ public static CmkProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CmkProfile deserializedCmkProfile = new CmkProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("keyUri".equals(fieldName)) {
+ deserializedCmkProfile.keyUri = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCmkProfile;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/DatabaseProfile.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/DatabaseProfile.java
new file mode 100644
index 000000000000..3a3985b97b8a
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/DatabaseProfile.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to Database Resource.
+ */
+@Immutable
+public final class DatabaseProfile implements JsonSerializable {
+ /*
+ * Resource Id of Cosmos Resource
+ */
+ private String cosmosId;
+
+ /**
+ * Creates an instance of DatabaseProfile class.
+ */
+ public DatabaseProfile() {
+ }
+
+ /**
+ * Get the cosmosId property: Resource Id of Cosmos Resource.
+ *
+ * @return the cosmosId value.
+ */
+ public String cosmosId() {
+ return this.cosmosId;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DatabaseProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DatabaseProfile if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the DatabaseProfile.
+ */
+ public static DatabaseProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DatabaseProfile deserializedDatabaseProfile = new DatabaseProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("cosmosId".equals(fieldName)) {
+ deserializedDatabaseProfile.cosmosId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDatabaseProfile;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/DenyAssignmentExclusion.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/DenyAssignmentExclusion.java
new file mode 100644
index 000000000000..5ac51521db6e
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/DenyAssignmentExclusion.java
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to Deny Assignment Exclusions.
+ */
+@Fluent
+public final class DenyAssignmentExclusion implements JsonSerializable {
+ /*
+ * Object Id of Identity
+ */
+ private String id;
+
+ /*
+ * Type of Identity
+ */
+ private String type;
+
+ /**
+ * Creates an instance of DenyAssignmentExclusion class.
+ */
+ public DenyAssignmentExclusion() {
+ }
+
+ /**
+ * Get the id property: Object Id of Identity.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Object Id of Identity.
+ *
+ * @param id the id value to set.
+ * @return the DenyAssignmentExclusion object itself.
+ */
+ public DenyAssignmentExclusion withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the type property: Type of Identity.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: Type of Identity.
+ *
+ * @param type the type value to set.
+ * @return the DenyAssignmentExclusion object itself.
+ */
+ public DenyAssignmentExclusion withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (id() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property id in model DenyAssignmentExclusion"));
+ }
+ if (type() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property type in model DenyAssignmentExclusion"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DenyAssignmentExclusion.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("type", this.type);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DenyAssignmentExclusion from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DenyAssignmentExclusion if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the DenyAssignmentExclusion.
+ */
+ public static DenyAssignmentExclusion fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DenyAssignmentExclusion deserializedDenyAssignmentExclusion = new DenyAssignmentExclusion();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDenyAssignmentExclusion.id = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDenyAssignmentExclusion.type = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDenyAssignmentExclusion;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/EventHubProfile.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/EventHubProfile.java
new file mode 100644
index 000000000000..751bc0d3451a
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/EventHubProfile.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to EventHub Resource.
+ */
+@Immutable
+public final class EventHubProfile implements JsonSerializable {
+ /*
+ * Resource Id of Adx Instance
+ */
+ private String adxInstanceId;
+
+ /*
+ * Host Name
+ */
+ private String hostname;
+
+ /**
+ * Creates an instance of EventHubProfile class.
+ */
+ public EventHubProfile() {
+ }
+
+ /**
+ * Get the adxInstanceId property: Resource Id of Adx Instance.
+ *
+ * @return the adxInstanceId value.
+ */
+ public String adxInstanceId() {
+ return this.adxInstanceId;
+ }
+
+ /**
+ * Get the hostname property: Host Name.
+ *
+ * @return the hostname value.
+ */
+ public String hostname() {
+ return this.hostname;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EventHubProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EventHubProfile if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the EventHubProfile.
+ */
+ public static EventHubProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EventHubProfile deserializedEventHubProfile = new EventHubProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("adxInstanceId".equals(fieldName)) {
+ deserializedEventHubProfile.adxInstanceId = reader.getString();
+ } else if ("hostName".equals(fieldName)) {
+ deserializedEventHubProfile.hostname = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEventHubProfile;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/FabricProfile.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/FabricProfile.java
new file mode 100644
index 000000000000..49f929a2c9da
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/FabricProfile.java
@@ -0,0 +1,165 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to Fabric.
+ */
+@Fluent
+public final class FabricProfile implements JsonSerializable {
+ /*
+ * Azure Key Vault Uri
+ */
+ private String keyUri;
+
+ /*
+ * URI of One Lake
+ */
+ private String oneLakeUri;
+
+ /*
+ * One Lake Path
+ */
+ private String oneLakePath;
+
+ /**
+ * Creates an instance of FabricProfile class.
+ */
+ public FabricProfile() {
+ }
+
+ /**
+ * Get the keyUri property: Azure Key Vault Uri.
+ *
+ * @return the keyUri value.
+ */
+ public String keyUri() {
+ return this.keyUri;
+ }
+
+ /**
+ * Set the keyUri property: Azure Key Vault Uri.
+ *
+ * @param keyUri the keyUri value to set.
+ * @return the FabricProfile object itself.
+ */
+ public FabricProfile withKeyUri(String keyUri) {
+ this.keyUri = keyUri;
+ return this;
+ }
+
+ /**
+ * Get the oneLakeUri property: URI of One Lake.
+ *
+ * @return the oneLakeUri value.
+ */
+ public String oneLakeUri() {
+ return this.oneLakeUri;
+ }
+
+ /**
+ * Set the oneLakeUri property: URI of One Lake.
+ *
+ * @param oneLakeUri the oneLakeUri value to set.
+ * @return the FabricProfile object itself.
+ */
+ public FabricProfile withOneLakeUri(String oneLakeUri) {
+ this.oneLakeUri = oneLakeUri;
+ return this;
+ }
+
+ /**
+ * Get the oneLakePath property: One Lake Path.
+ *
+ * @return the oneLakePath value.
+ */
+ public String oneLakePath() {
+ return this.oneLakePath;
+ }
+
+ /**
+ * Set the oneLakePath property: One Lake Path.
+ *
+ * @param oneLakePath the oneLakePath value to set.
+ * @return the FabricProfile object itself.
+ */
+ public FabricProfile withOneLakePath(String oneLakePath) {
+ this.oneLakePath = oneLakePath;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (keyUri() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property keyUri in model FabricProfile"));
+ }
+ if (oneLakeUri() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property oneLakeUri in model FabricProfile"));
+ }
+ if (oneLakePath() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property oneLakePath in model FabricProfile"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FabricProfile.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("keyUri", this.keyUri);
+ jsonWriter.writeStringField("oneLakeUri", this.oneLakeUri);
+ jsonWriter.writeStringField("oneLakePath", this.oneLakePath);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FabricProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FabricProfile if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the FabricProfile.
+ */
+ public static FabricProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FabricProfile deserializedFabricProfile = new FabricProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("keyUri".equals(fieldName)) {
+ deserializedFabricProfile.keyUri = reader.getString();
+ } else if ("oneLakeUri".equals(fieldName)) {
+ deserializedFabricProfile.oneLakeUri = reader.getString();
+ } else if ("oneLakePath".equals(fieldName)) {
+ deserializedFabricProfile.oneLakePath = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFabricProfile;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/FabricProfileUpdate.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/FabricProfileUpdate.java
new file mode 100644
index 000000000000..b44f1975cab7
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/FabricProfileUpdate.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.manufacturingplatform.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to Fabric.
+ */
+@Fluent
+public final class FabricProfileUpdate implements JsonSerializable {
+ /*
+ * Azure Key Vault Uri
+ */
+ private String keyUri;
+
+ /*
+ * URI of One Lake
+ */
+ private String oneLakeUri;
+
+ /*
+ * One Lake Path
+ */
+ private String oneLakePath;
+
+ /**
+ * Creates an instance of FabricProfileUpdate class.
+ */
+ public FabricProfileUpdate() {
+ }
+
+ /**
+ * Get the keyUri property: Azure Key Vault Uri.
+ *
+ * @return the keyUri value.
+ */
+ public String keyUri() {
+ return this.keyUri;
+ }
+
+ /**
+ * Set the keyUri property: Azure Key Vault Uri.
+ *
+ * @param keyUri the keyUri value to set.
+ * @return the FabricProfileUpdate object itself.
+ */
+ public FabricProfileUpdate withKeyUri(String keyUri) {
+ this.keyUri = keyUri;
+ return this;
+ }
+
+ /**
+ * Get the oneLakeUri property: URI of One Lake.
+ *
+ * @return the oneLakeUri value.
+ */
+ public String oneLakeUri() {
+ return this.oneLakeUri;
+ }
+
+ /**
+ * Set the oneLakeUri property: URI of One Lake.
+ *
+ * @param oneLakeUri the oneLakeUri value to set.
+ * @return the FabricProfileUpdate object itself.
+ */
+ public FabricProfileUpdate withOneLakeUri(String oneLakeUri) {
+ this.oneLakeUri = oneLakeUri;
+ return this;
+ }
+
+ /**
+ * Get the oneLakePath property: One Lake Path.
+ *
+ * @return the oneLakePath value.
+ */
+ public String oneLakePath() {
+ return this.oneLakePath;
+ }
+
+ /**
+ * Set the oneLakePath property: One Lake Path.
+ *
+ * @param oneLakePath the oneLakePath value to set.
+ * @return the FabricProfileUpdate object itself.
+ */
+ public FabricProfileUpdate withOneLakePath(String oneLakePath) {
+ this.oneLakePath = oneLakePath;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("keyUri", this.keyUri);
+ jsonWriter.writeStringField("oneLakeUri", this.oneLakeUri);
+ jsonWriter.writeStringField("oneLakePath", this.oneLakePath);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FabricProfileUpdate from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FabricProfileUpdate if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the FabricProfileUpdate.
+ */
+ public static FabricProfileUpdate fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FabricProfileUpdate deserializedFabricProfileUpdate = new FabricProfileUpdate();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("keyUri".equals(fieldName)) {
+ deserializedFabricProfileUpdate.keyUri = reader.getString();
+ } else if ("oneLakeUri".equals(fieldName)) {
+ deserializedFabricProfileUpdate.oneLakeUri = reader.getString();
+ } else if ("oneLakePath".equals(fieldName)) {
+ deserializedFabricProfileUpdate.oneLakePath = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFabricProfileUpdate;
+ });
+ }
+}
diff --git a/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/FunctionAppProfile.java b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/FunctionAppProfile.java
new file mode 100644
index 000000000000..22794d575646
--- /dev/null
+++ b/sdk/manufacturingplatform/azure-resourcemanager-manufacturingplatform/src/main/java/com/azure/resourcemanager/manufacturingplatform/models/FunctionAppProfile.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.manufacturingplatform.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The properties related to Azure Function App Resource.
+ */
+@Immutable
+public final class FunctionAppProfile implements JsonSerializable