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 migrate service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the migrate service API instance.
+ */
+ public MigrateManager 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.migrate")
+ .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 MigrateManager(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 CompoundAssessmentOperations. It manages CompoundAssessment.
+ *
+ * @return Resource collection API of CompoundAssessmentOperations.
+ */
+ public CompoundAssessmentOperations compoundAssessmentOperations() {
+ if (this.compoundAssessmentOperations == null) {
+ this.compoundAssessmentOperations
+ = new CompoundAssessmentOperationsImpl(clientObject.getCompoundAssessmentOperations(), this);
+ }
+ return compoundAssessmentOperations;
+ }
+
+ /**
+ * Gets the resource collection API of CompoundAssessmentSummaryOperations.
+ *
+ * @return Resource collection API of CompoundAssessmentSummaryOperations.
+ */
+ public CompoundAssessmentSummaryOperations compoundAssessmentSummaryOperations() {
+ if (this.compoundAssessmentSummaryOperations == null) {
+ this.compoundAssessmentSummaryOperations = new CompoundAssessmentSummaryOperationsImpl(
+ clientObject.getCompoundAssessmentSummaryOperations(), this);
+ }
+ return compoundAssessmentSummaryOperations;
+ }
+
+ /**
+ * Gets wrapped service client MigrateClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client MigrateClient.
+ */
+ public MigrateClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/CompoundAssessmentOperationsClient.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/CompoundAssessmentOperationsClient.java
new file mode 100644
index 000000000000..11e473d651c5
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/CompoundAssessmentOperationsClient.java
@@ -0,0 +1,239 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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.migrate.fluent.models.CompoundAssessmentInner;
+import com.azure.resourcemanager.migrate.fluent.models.DownloadUrlInner;
+import com.azure.resourcemanager.migrate.models.DownloadUrlRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in CompoundAssessmentOperationsClient.
+ */
+public interface CompoundAssessmentOperationsClient {
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 CompoundAssessment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context);
+
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 CompoundAssessment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CompoundAssessmentInner get(String resourceGroupName, String projectName, String compoundAssessmentName);
+
+ /**
+ * List CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 response of a CompoundAssessment list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByParent(String resourceGroupName, String projectName);
+
+ /**
+ * List CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 response of a CompoundAssessment list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByParent(String resourceGroupName, String projectName, Context context);
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CompoundAssessmentInner> beginCreate(String resourceGroupName,
+ String projectName, String compoundAssessmentName, CompoundAssessmentInner resource);
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CompoundAssessmentInner> beginCreate(String resourceGroupName,
+ String projectName, String compoundAssessmentName, CompoundAssessmentInner resource, Context context);
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CompoundAssessmentInner create(String resourceGroupName, String projectName, String compoundAssessmentName,
+ CompoundAssessmentInner resource);
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CompoundAssessmentInner create(String resourceGroupName, String projectName, String compoundAssessmentName,
+ CompoundAssessmentInner resource, Context context);
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String projectName, String compoundAssessmentName,
+ Context context);
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 projectName, String compoundAssessmentName);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DownloadUrlInner> beginDownloadUrl(String resourceGroupName,
+ String projectName, String compoundAssessmentName, DownloadUrlRequest body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DownloadUrlInner> beginDownloadUrl(String resourceGroupName,
+ String projectName, String compoundAssessmentName, DownloadUrlRequest body, Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DownloadUrlInner downloadUrl(String resourceGroupName, String projectName, String compoundAssessmentName,
+ DownloadUrlRequest body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DownloadUrlInner downloadUrl(String resourceGroupName, String projectName, String compoundAssessmentName,
+ DownloadUrlRequest body, Context context);
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/CompoundAssessmentSummaryOperationsClient.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/CompoundAssessmentSummaryOperationsClient.java
new file mode 100644
index 000000000000..c94bb41fbafc
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/CompoundAssessmentSummaryOperationsClient.java
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.migrate.fluent.models.WebAppCompoundAssessmentSummaryInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in CompoundAssessmentSummaryOperationsClient.
+ */
+public interface CompoundAssessmentSummaryOperationsClient {
+ /**
+ * Get a WebAppCompoundAssessmentSummary.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param summaryName Gets the Name of the WebApp compound assessment summary.
+ * @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 WebAppCompoundAssessmentSummary along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, String summaryName, Context context);
+
+ /**
+ * Get a WebAppCompoundAssessmentSummary.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param summaryName Gets the Name of the WebApp compound assessment summary.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 WebAppCompoundAssessmentSummary.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebAppCompoundAssessmentSummaryInner get(String resourceGroupName, String projectName,
+ String compoundAssessmentName, String summaryName);
+
+ /**
+ * List WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 response of a WebAppCompoundAssessmentSummary list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByParent(String resourceGroupName, String projectName,
+ String compoundAssessmentName);
+
+ /**
+ * List WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 response of a WebAppCompoundAssessmentSummary list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByParent(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context);
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/MigrateClient.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/MigrateClient.java
new file mode 100644
index 000000000000..de21ae7e8401
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/MigrateClient.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for MigrateClient class.
+ */
+public interface MigrateClient {
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * 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 CompoundAssessmentOperationsClient object to access its operations.
+ *
+ * @return the CompoundAssessmentOperationsClient object.
+ */
+ CompoundAssessmentOperationsClient getCompoundAssessmentOperations();
+
+ /**
+ * Gets the CompoundAssessmentSummaryOperationsClient object to access its operations.
+ *
+ * @return the CompoundAssessmentSummaryOperationsClient object.
+ */
+ CompoundAssessmentSummaryOperationsClient getCompoundAssessmentSummaryOperations();
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/OperationsClient.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/OperationsClient.java
new file mode 100644
index 000000000000..8b9af5d52240
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/OperationsClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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.migrate.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/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/CompoundAssessmentInner.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/CompoundAssessmentInner.java
new file mode 100644
index 000000000000..ae371edd731c
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/CompoundAssessmentInner.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+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.migrate.models.CompoundAssessmentProperties;
+import java.io.IOException;
+
+/**
+ * Compound assessment resource.
+ */
+@Fluent
+public final class CompoundAssessmentInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private CompoundAssessmentProperties properties;
+
+ /*
+ * 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 CompoundAssessmentInner class.
+ */
+ public CompoundAssessmentInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public CompoundAssessmentProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the CompoundAssessmentInner object itself.
+ */
+ public CompoundAssessmentInner withProperties(CompoundAssessmentProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CompoundAssessmentInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CompoundAssessmentInner 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 CompoundAssessmentInner.
+ */
+ public static CompoundAssessmentInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CompoundAssessmentInner deserializedCompoundAssessmentInner = new CompoundAssessmentInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedCompoundAssessmentInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedCompoundAssessmentInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedCompoundAssessmentInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedCompoundAssessmentInner.properties = CompoundAssessmentProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedCompoundAssessmentInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCompoundAssessmentInner;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/DownloadUrlInner.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/DownloadUrlInner.java
new file mode 100644
index 000000000000..a7d16cccd320
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/DownloadUrlInner.java
@@ -0,0 +1,101 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.CoreUtils;
+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.time.OffsetDateTime;
+
+/**
+ * Data model of Download URL for assessment report.
+ */
+@Immutable
+public final class DownloadUrlInner implements JsonSerializable {
+ /*
+ * Hyperlink to download report.
+ */
+ private String assessmentReportUrl;
+
+ /*
+ * Expiry date of download url.
+ */
+ private OffsetDateTime expirationTime;
+
+ /**
+ * Creates an instance of DownloadUrlInner class.
+ */
+ private DownloadUrlInner() {
+ }
+
+ /**
+ * Get the assessmentReportUrl property: Hyperlink to download report.
+ *
+ * @return the assessmentReportUrl value.
+ */
+ public String assessmentReportUrl() {
+ return this.assessmentReportUrl;
+ }
+
+ /**
+ * Get the expirationTime property: Expiry date of download url.
+ *
+ * @return the expirationTime value.
+ */
+ public OffsetDateTime expirationTime() {
+ return this.expirationTime;
+ }
+
+ /**
+ * 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 DownloadUrlInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DownloadUrlInner 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 DownloadUrlInner.
+ */
+ public static DownloadUrlInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DownloadUrlInner deserializedDownloadUrlInner = new DownloadUrlInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("assessmentReportUrl".equals(fieldName)) {
+ deserializedDownloadUrlInner.assessmentReportUrl = reader.getString();
+ } else if ("expirationTime".equals(fieldName)) {
+ deserializedDownloadUrlInner.expirationTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDownloadUrlInner;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/OperationInner.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..1a6e856dd042
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/OperationInner.java
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.fluent.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 com.azure.resourcemanager.migrate.models.ActionType;
+import com.azure.resourcemanager.migrate.models.OperationDisplay;
+import com.azure.resourcemanager.migrate.models.Origin;
+import java.io.IOException;
+
+/**
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Immutable
+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 Azure
+ * Resource Manager/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;
+
+ /*
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ private 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 Azure Resource Manager/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;
+ }
+
+ /**
+ * 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: Extensible 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/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/WebAppCompoundAssessmentSummaryInner.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/WebAppCompoundAssessmentSummaryInner.java
new file mode 100644
index 000000000000..aedb973f222c
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/WebAppCompoundAssessmentSummaryInner.java
@@ -0,0 +1,157 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+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.migrate.models.WebAppCompoundAssessmentSummaryProperties;
+import java.io.IOException;
+
+/**
+ * WebApp compound assessment summary resource.
+ */
+@Immutable
+public final class WebAppCompoundAssessmentSummaryInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private WebAppCompoundAssessmentSummaryProperties properties;
+
+ /*
+ * 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 WebAppCompoundAssessmentSummaryInner class.
+ */
+ private WebAppCompoundAssessmentSummaryInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public WebAppCompoundAssessmentSummaryProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WebAppCompoundAssessmentSummaryInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WebAppCompoundAssessmentSummaryInner 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 WebAppCompoundAssessmentSummaryInner.
+ */
+ public static WebAppCompoundAssessmentSummaryInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WebAppCompoundAssessmentSummaryInner deserializedWebAppCompoundAssessmentSummaryInner
+ = new WebAppCompoundAssessmentSummaryInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedWebAppCompoundAssessmentSummaryInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedWebAppCompoundAssessmentSummaryInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedWebAppCompoundAssessmentSummaryInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedWebAppCompoundAssessmentSummaryInner.properties
+ = WebAppCompoundAssessmentSummaryProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedWebAppCompoundAssessmentSummaryInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWebAppCompoundAssessmentSummaryInner;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/package-info.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/models/package-info.java
new file mode 100644
index 000000000000..2e96b34b740e
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/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) TypeSpec Code Generator.
+
+/**
+ * Package containing the inner data models for Migrate.
+ * Azure Migrate Resource Provider management API.
+ */
+package com.azure.resourcemanager.migrate.fluent.models;
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/package-info.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/fluent/package-info.java
new file mode 100644
index 000000000000..5fe3fd4e2a93
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/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) TypeSpec Code Generator.
+
+/**
+ * Package containing the service clients for Migrate.
+ * Azure Migrate Resource Provider management API.
+ */
+package com.azure.resourcemanager.migrate.fluent;
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentImpl.java
new file mode 100644
index 000000000000..9468ed626c6d
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentImpl.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.migrate.fluent.models.CompoundAssessmentInner;
+import com.azure.resourcemanager.migrate.models.CompoundAssessment;
+import com.azure.resourcemanager.migrate.models.CompoundAssessmentProperties;
+import com.azure.resourcemanager.migrate.models.DownloadUrl;
+import com.azure.resourcemanager.migrate.models.DownloadUrlRequest;
+
+public final class CompoundAssessmentImpl implements CompoundAssessment, CompoundAssessment.Definition {
+ private CompoundAssessmentInner innerObject;
+
+ private final com.azure.resourcemanager.migrate.MigrateManager serviceManager;
+
+ CompoundAssessmentImpl(CompoundAssessmentInner innerObject,
+ com.azure.resourcemanager.migrate.MigrateManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public CompoundAssessmentProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public CompoundAssessmentInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.migrate.MigrateManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String projectName;
+
+ private String compoundAssessmentName;
+
+ public CompoundAssessmentImpl withExistingAssessmentProject(String resourceGroupName, String projectName) {
+ this.resourceGroupName = resourceGroupName;
+ this.projectName = projectName;
+ return this;
+ }
+
+ public CompoundAssessment create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getCompoundAssessmentOperations()
+ .create(resourceGroupName, projectName, compoundAssessmentName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public CompoundAssessment create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getCompoundAssessmentOperations()
+ .create(resourceGroupName, projectName, compoundAssessmentName, this.innerModel(), context);
+ return this;
+ }
+
+ CompoundAssessmentImpl(String name, com.azure.resourcemanager.migrate.MigrateManager serviceManager) {
+ this.innerObject = new CompoundAssessmentInner();
+ this.serviceManager = serviceManager;
+ this.compoundAssessmentName = name;
+ }
+
+ public CompoundAssessment refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getCompoundAssessmentOperations()
+ .getWithResponse(resourceGroupName, projectName, compoundAssessmentName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public CompoundAssessment refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getCompoundAssessmentOperations()
+ .getWithResponse(resourceGroupName, projectName, compoundAssessmentName, context)
+ .getValue();
+ return this;
+ }
+
+ public DownloadUrl downloadUrl(DownloadUrlRequest body) {
+ return serviceManager.compoundAssessmentOperations()
+ .downloadUrl(resourceGroupName, projectName, compoundAssessmentName, body);
+ }
+
+ public DownloadUrl downloadUrl(DownloadUrlRequest body, Context context) {
+ return serviceManager.compoundAssessmentOperations()
+ .downloadUrl(resourceGroupName, projectName, compoundAssessmentName, body, context);
+ }
+
+ public CompoundAssessmentImpl withProperties(CompoundAssessmentProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentOperationsClientImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentOperationsClientImpl.java
new file mode 100644
index 000000000000..6d6eb2620c07
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentOperationsClientImpl.java
@@ -0,0 +1,1101 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.migrate.fluent.CompoundAssessmentOperationsClient;
+import com.azure.resourcemanager.migrate.fluent.models.CompoundAssessmentInner;
+import com.azure.resourcemanager.migrate.fluent.models.DownloadUrlInner;
+import com.azure.resourcemanager.migrate.implementation.models.CompoundAssessmentListResult;
+import com.azure.resourcemanager.migrate.models.DownloadUrlRequest;
+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 CompoundAssessmentOperationsClient.
+ */
+public final class CompoundAssessmentOperationsClientImpl implements CompoundAssessmentOperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final CompoundAssessmentOperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MigrateClientImpl client;
+
+ /**
+ * Initializes an instance of CompoundAssessmentOperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ CompoundAssessmentOperationsClientImpl(MigrateClientImpl client) {
+ this.service = RestProxy.create(CompoundAssessmentOperationsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MigrateClientCompoundAssessmentOperations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "MigrateClientCompoun")
+ public interface CompoundAssessmentOperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/webAppCompoundAssessments/{compoundAssessmentName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("projectName") String projectName,
+ @PathParam("compoundAssessmentName") String compoundAssessmentName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/webAppCompoundAssessments")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByParent(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("projectName") String projectName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/webAppCompoundAssessments/{compoundAssessmentName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("projectName") String projectName,
+ @PathParam("compoundAssessmentName") String compoundAssessmentName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CompoundAssessmentInner resource, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/webAppCompoundAssessments/{compoundAssessmentName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("projectName") String projectName,
+ @PathParam("compoundAssessmentName") String compoundAssessmentName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/webAppCompoundAssessments/{compoundAssessmentName}/downloadUrl")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> downloadUrl(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("projectName") String projectName,
+ @PathParam("compoundAssessmentName") String compoundAssessmentName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DownloadUrlRequest body, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByParentNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 CompoundAssessment along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName) {
+ 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 (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, projectName, compoundAssessmentName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 CompoundAssessment along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, projectName, compoundAssessmentName, accept, context);
+ }
+
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 CompoundAssessment on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName) {
+ return getWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 CompoundAssessment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context) {
+ return getWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName, context).block();
+ }
+
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 CompoundAssessment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CompoundAssessmentInner get(String resourceGroupName, String projectName, String compoundAssessmentName) {
+ return getWithResponse(resourceGroupName, projectName, compoundAssessmentName, Context.NONE).getValue();
+ }
+
+ /**
+ * List CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 of a CompoundAssessment list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByParentSinglePageAsync(String resourceGroupName,
+ String projectName) {
+ 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 (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByParent(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, projectName, 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 CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 of a CompoundAssessment list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByParentSinglePageAsync(String resourceGroupName,
+ String projectName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByParent(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, projectName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 of a CompoundAssessment list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByParentAsync(String resourceGroupName, String projectName) {
+ return new PagedFlux<>(() -> listByParentSinglePageAsync(resourceGroupName, projectName),
+ nextLink -> listByParentNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 of a CompoundAssessment list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByParentAsync(String resourceGroupName, String projectName,
+ Context context) {
+ return new PagedFlux<>(() -> listByParentSinglePageAsync(resourceGroupName, projectName, context),
+ nextLink -> listByParentNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 of a CompoundAssessment list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByParent(String resourceGroupName, String projectName) {
+ return new PagedIterable<>(listByParentAsync(resourceGroupName, projectName));
+ }
+
+ /**
+ * List CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 of a CompoundAssessment list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByParent(String resourceGroupName, String projectName,
+ Context context) {
+ return new PagedIterable<>(listByParentAsync(resourceGroupName, projectName, context));
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, CompoundAssessmentInner 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 (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName 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 contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, projectName, compoundAssessmentName, contentType,
+ accept, resource, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, CompoundAssessmentInner resource, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName 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 contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, projectName, compoundAssessmentName, contentType, accept, resource, context);
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CompoundAssessmentInner> beginCreateAsync(
+ String resourceGroupName, String projectName, String compoundAssessmentName, CompoundAssessmentInner resource) {
+ Mono>> mono
+ = createWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName, resource);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), CompoundAssessmentInner.class, CompoundAssessmentInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 PollerFlux} for polling of compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CompoundAssessmentInner> beginCreateAsync(
+ String resourceGroupName, String projectName, String compoundAssessmentName, CompoundAssessmentInner resource,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName, resource, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), CompoundAssessmentInner.class, CompoundAssessmentInner.class, context);
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CompoundAssessmentInner> beginCreate(
+ String resourceGroupName, String projectName, String compoundAssessmentName, CompoundAssessmentInner resource) {
+ return this.beginCreateAsync(resourceGroupName, projectName, compoundAssessmentName, resource).getSyncPoller();
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CompoundAssessmentInner> beginCreate(
+ String resourceGroupName, String projectName, String compoundAssessmentName, CompoundAssessmentInner resource,
+ Context context) {
+ return this.beginCreateAsync(resourceGroupName, projectName, compoundAssessmentName, resource, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, CompoundAssessmentInner resource) {
+ return beginCreateAsync(resourceGroupName, projectName, compoundAssessmentName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, CompoundAssessmentInner resource, Context context) {
+ return beginCreateAsync(resourceGroupName, projectName, compoundAssessmentName, resource, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CompoundAssessmentInner create(String resourceGroupName, String projectName, String compoundAssessmentName,
+ CompoundAssessmentInner resource) {
+ return createAsync(resourceGroupName, projectName, compoundAssessmentName, resource).block();
+ }
+
+ /**
+ * Create a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 compound assessment resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CompoundAssessmentInner create(String resourceGroupName, String projectName, String compoundAssessmentName,
+ CompoundAssessmentInner resource, Context context) {
+ return createAsync(resourceGroupName, projectName, compoundAssessmentName, resource, context).block();
+ }
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 projectName,
+ String compoundAssessmentName) {
+ 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 (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName 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, projectName, compoundAssessmentName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, projectName, compoundAssessmentName, accept, context);
+ }
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 projectName, String compoundAssessmentName) {
+ return deleteWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName, context).block();
+ }
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 projectName, String compoundAssessmentName) {
+ deleteWithResponse(resourceGroupName, projectName, compoundAssessmentName, Context.NONE);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> downloadUrlWithResponseAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, DownloadUrlRequest body) {
+ 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 (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.downloadUrl(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, projectName, compoundAssessmentName, contentType,
+ accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> downloadUrlWithResponseAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, DownloadUrlRequest body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.downloadUrl(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, projectName, compoundAssessmentName, contentType,
+ accept, body, context);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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, DownloadUrlInner> beginDownloadUrlAsync(String resourceGroupName,
+ String projectName, String compoundAssessmentName, DownloadUrlRequest body) {
+ Mono>> mono
+ = downloadUrlWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName, body);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ DownloadUrlInner.class, DownloadUrlInner.class, this.client.getContext());
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DownloadUrlInner> beginDownloadUrlAsync(String resourceGroupName,
+ String projectName, String compoundAssessmentName, DownloadUrlRequest body, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = downloadUrlWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName, body, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ DownloadUrlInner.class, DownloadUrlInner.class, context);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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, DownloadUrlInner> beginDownloadUrl(String resourceGroupName,
+ String projectName, String compoundAssessmentName, DownloadUrlRequest body) {
+ return this.beginDownloadUrlAsync(resourceGroupName, projectName, compoundAssessmentName, body).getSyncPoller();
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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, DownloadUrlInner> beginDownloadUrl(String resourceGroupName,
+ String projectName, String compoundAssessmentName, DownloadUrlRequest body, Context context) {
+ return this.beginDownloadUrlAsync(resourceGroupName, projectName, compoundAssessmentName, body, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono downloadUrlAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, DownloadUrlRequest body) {
+ return beginDownloadUrlAsync(resourceGroupName, projectName, compoundAssessmentName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono downloadUrlAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, DownloadUrlRequest body, Context context) {
+ return beginDownloadUrlAsync(resourceGroupName, projectName, compoundAssessmentName, body, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DownloadUrlInner downloadUrl(String resourceGroupName, String projectName, String compoundAssessmentName,
+ DownloadUrlRequest body) {
+ return downloadUrlAsync(resourceGroupName, projectName, compoundAssessmentName, body).block();
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DownloadUrlInner downloadUrl(String resourceGroupName, String projectName, String compoundAssessmentName,
+ DownloadUrlRequest body, Context context) {
+ return downloadUrlAsync(resourceGroupName, projectName, compoundAssessmentName, body, context).block();
+ }
+
+ /**
+ * 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 CompoundAssessment list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByParentNextSinglePageAsync(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.listByParentNext(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.
+ * @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 CompoundAssessment list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByParentNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listByParentNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentOperationsImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentOperationsImpl.java
new file mode 100644
index 000000000000..1814b7dfd907
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentOperationsImpl.java
@@ -0,0 +1,186 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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.migrate.fluent.CompoundAssessmentOperationsClient;
+import com.azure.resourcemanager.migrate.fluent.models.CompoundAssessmentInner;
+import com.azure.resourcemanager.migrate.fluent.models.DownloadUrlInner;
+import com.azure.resourcemanager.migrate.models.CompoundAssessment;
+import com.azure.resourcemanager.migrate.models.CompoundAssessmentOperations;
+import com.azure.resourcemanager.migrate.models.DownloadUrl;
+import com.azure.resourcemanager.migrate.models.DownloadUrlRequest;
+
+public final class CompoundAssessmentOperationsImpl implements CompoundAssessmentOperations {
+ private static final ClientLogger LOGGER = new ClientLogger(CompoundAssessmentOperationsImpl.class);
+
+ private final CompoundAssessmentOperationsClient innerClient;
+
+ private final com.azure.resourcemanager.migrate.MigrateManager serviceManager;
+
+ public CompoundAssessmentOperationsImpl(CompoundAssessmentOperationsClient innerClient,
+ com.azure.resourcemanager.migrate.MigrateManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, projectName, compoundAssessmentName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new CompoundAssessmentImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CompoundAssessment get(String resourceGroupName, String projectName, String compoundAssessmentName) {
+ CompoundAssessmentInner inner
+ = this.serviceClient().get(resourceGroupName, projectName, compoundAssessmentName);
+ if (inner != null) {
+ return new CompoundAssessmentImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable listByParent(String resourceGroupName, String projectName) {
+ PagedIterable inner
+ = this.serviceClient().listByParent(resourceGroupName, projectName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CompoundAssessmentImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByParent(String resourceGroupName, String projectName,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByParent(resourceGroupName, projectName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CompoundAssessmentImpl(inner1, this.manager()));
+ }
+
+ public Response deleteWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, projectName, compoundAssessmentName, context);
+ }
+
+ public void delete(String resourceGroupName, String projectName, String compoundAssessmentName) {
+ this.serviceClient().delete(resourceGroupName, projectName, compoundAssessmentName);
+ }
+
+ public DownloadUrl downloadUrl(String resourceGroupName, String projectName, String compoundAssessmentName,
+ DownloadUrlRequest body) {
+ DownloadUrlInner inner
+ = this.serviceClient().downloadUrl(resourceGroupName, projectName, compoundAssessmentName, body);
+ if (inner != null) {
+ return new DownloadUrlImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public DownloadUrl downloadUrl(String resourceGroupName, String projectName, String compoundAssessmentName,
+ DownloadUrlRequest body, Context context) {
+ DownloadUrlInner inner
+ = this.serviceClient().downloadUrl(resourceGroupName, projectName, compoundAssessmentName, body, context);
+ if (inner != null) {
+ return new DownloadUrlImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public CompoundAssessment 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 projectName = ResourceManagerUtils.getValueFromIdByName(id, "assessmentProjects");
+ if (projectName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'assessmentProjects'.", id)));
+ }
+ String compoundAssessmentName = ResourceManagerUtils.getValueFromIdByName(id, "webAppCompoundAssessments");
+ if (compoundAssessmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'webAppCompoundAssessments'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, projectName, compoundAssessmentName, 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 projectName = ResourceManagerUtils.getValueFromIdByName(id, "assessmentProjects");
+ if (projectName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'assessmentProjects'.", id)));
+ }
+ String compoundAssessmentName = ResourceManagerUtils.getValueFromIdByName(id, "webAppCompoundAssessments");
+ if (compoundAssessmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'webAppCompoundAssessments'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, projectName, compoundAssessmentName, 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 projectName = ResourceManagerUtils.getValueFromIdByName(id, "assessmentProjects");
+ if (projectName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'assessmentProjects'.", id)));
+ }
+ String compoundAssessmentName = ResourceManagerUtils.getValueFromIdByName(id, "webAppCompoundAssessments");
+ if (compoundAssessmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'webAppCompoundAssessments'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, projectName, compoundAssessmentName, Context.NONE);
+ }
+
+ public Response 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 projectName = ResourceManagerUtils.getValueFromIdByName(id, "assessmentProjects");
+ if (projectName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'assessmentProjects'.", id)));
+ }
+ String compoundAssessmentName = ResourceManagerUtils.getValueFromIdByName(id, "webAppCompoundAssessments");
+ if (compoundAssessmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'webAppCompoundAssessments'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, projectName, compoundAssessmentName, context);
+ }
+
+ private CompoundAssessmentOperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.migrate.MigrateManager manager() {
+ return this.serviceManager;
+ }
+
+ public CompoundAssessmentImpl define(String name) {
+ return new CompoundAssessmentImpl(name, this.manager());
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentSummaryOperationsClientImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentSummaryOperationsClientImpl.java
new file mode 100644
index 000000000000..be4dc423a7f8
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentSummaryOperationsClientImpl.java
@@ -0,0 +1,461 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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.resourcemanager.migrate.fluent.CompoundAssessmentSummaryOperationsClient;
+import com.azure.resourcemanager.migrate.fluent.models.WebAppCompoundAssessmentSummaryInner;
+import com.azure.resourcemanager.migrate.implementation.models.WebAppCompoundAssessmentSummaryListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in CompoundAssessmentSummaryOperationsClient.
+ */
+public final class CompoundAssessmentSummaryOperationsClientImpl implements CompoundAssessmentSummaryOperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final CompoundAssessmentSummaryOperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MigrateClientImpl client;
+
+ /**
+ * Initializes an instance of CompoundAssessmentSummaryOperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ CompoundAssessmentSummaryOperationsClientImpl(MigrateClientImpl client) {
+ this.service = RestProxy.create(CompoundAssessmentSummaryOperationsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MigrateClientCompoundAssessmentSummaryOperations to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "MigrateClientCompoun")
+ public interface CompoundAssessmentSummaryOperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/webAppCompoundAssessments/{compoundAssessmentName}/summaries/{summaryName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("projectName") String projectName,
+ @PathParam("compoundAssessmentName") String compoundAssessmentName,
+ @PathParam("summaryName") String summaryName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/webAppCompoundAssessments/{compoundAssessmentName}/summaries")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByParent(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("projectName") String projectName,
+ @PathParam("compoundAssessmentName") String compoundAssessmentName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByParentNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a WebAppCompoundAssessmentSummary.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param summaryName Gets the Name of the WebApp compound assessment summary.
+ * @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 WebAppCompoundAssessmentSummary along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String projectName, String compoundAssessmentName, String summaryName) {
+ 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 (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName is required and cannot be null."));
+ }
+ if (summaryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter summaryName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, projectName, compoundAssessmentName, summaryName,
+ accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a WebAppCompoundAssessmentSummary.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param summaryName Gets the Name of the WebApp compound assessment summary.
+ * @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 WebAppCompoundAssessmentSummary along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String projectName, String compoundAssessmentName, String summaryName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName is required and cannot be null."));
+ }
+ if (summaryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter summaryName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, projectName, compoundAssessmentName, summaryName, accept, context);
+ }
+
+ /**
+ * Get a WebAppCompoundAssessmentSummary.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param summaryName Gets the Name of the WebApp compound assessment summary.
+ * @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 WebAppCompoundAssessmentSummary on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String projectName,
+ String compoundAssessmentName, String summaryName) {
+ return getWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName, summaryName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a WebAppCompoundAssessmentSummary.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param summaryName Gets the Name of the WebApp compound assessment summary.
+ * @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 WebAppCompoundAssessmentSummary along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, String summaryName, Context context) {
+ return getWithResponseAsync(resourceGroupName, projectName, compoundAssessmentName, summaryName, context)
+ .block();
+ }
+
+ /**
+ * Get a WebAppCompoundAssessmentSummary.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param summaryName Gets the Name of the WebApp compound assessment summary.
+ * @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 WebAppCompoundAssessmentSummary.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public WebAppCompoundAssessmentSummaryInner get(String resourceGroupName, String projectName,
+ String compoundAssessmentName, String summaryName) {
+ return getWithResponse(resourceGroupName, projectName, compoundAssessmentName, summaryName, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * List WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 of a WebAppCompoundAssessmentSummary list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByParentSinglePageAsync(String resourceGroupName, String projectName, String compoundAssessmentName) {
+ 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 (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByParent(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, projectName, compoundAssessmentName, 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 WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 of a WebAppCompoundAssessmentSummary list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByParentSinglePageAsync(
+ String resourceGroupName, String projectName, String compoundAssessmentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (projectName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter projectName is required and cannot be null."));
+ }
+ if (compoundAssessmentName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter compoundAssessmentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByParent(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, projectName, compoundAssessmentName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 of a WebAppCompoundAssessmentSummary list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByParentAsync(String resourceGroupName,
+ String projectName, String compoundAssessmentName) {
+ return new PagedFlux<>(
+ () -> listByParentSinglePageAsync(resourceGroupName, projectName, compoundAssessmentName),
+ nextLink -> listByParentNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 of a WebAppCompoundAssessmentSummary list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByParentAsync(String resourceGroupName,
+ String projectName, String compoundAssessmentName, Context context) {
+ return new PagedFlux<>(
+ () -> listByParentSinglePageAsync(resourceGroupName, projectName, compoundAssessmentName, context),
+ nextLink -> listByParentNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 of a WebAppCompoundAssessmentSummary list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByParent(String resourceGroupName,
+ String projectName, String compoundAssessmentName) {
+ return new PagedIterable<>(listByParentAsync(resourceGroupName, projectName, compoundAssessmentName));
+ }
+
+ /**
+ * List WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 of a WebAppCompoundAssessmentSummary list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByParent(String resourceGroupName,
+ String projectName, String compoundAssessmentName, Context context) {
+ return new PagedIterable<>(listByParentAsync(resourceGroupName, projectName, compoundAssessmentName, 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 the response of a WebAppCompoundAssessmentSummary list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByParentNextSinglePageAsync(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.listByParentNext(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.
+ * @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 WebAppCompoundAssessmentSummary list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByParentNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listByParentNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentSummaryOperationsImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentSummaryOperationsImpl.java
new file mode 100644
index 000000000000..d99fe6e35f72
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/CompoundAssessmentSummaryOperationsImpl.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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.migrate.fluent.CompoundAssessmentSummaryOperationsClient;
+import com.azure.resourcemanager.migrate.fluent.models.WebAppCompoundAssessmentSummaryInner;
+import com.azure.resourcemanager.migrate.models.CompoundAssessmentSummaryOperations;
+import com.azure.resourcemanager.migrate.models.WebAppCompoundAssessmentSummary;
+
+public final class CompoundAssessmentSummaryOperationsImpl implements CompoundAssessmentSummaryOperations {
+ private static final ClientLogger LOGGER = new ClientLogger(CompoundAssessmentSummaryOperationsImpl.class);
+
+ private final CompoundAssessmentSummaryOperationsClient innerClient;
+
+ private final com.azure.resourcemanager.migrate.MigrateManager serviceManager;
+
+ public CompoundAssessmentSummaryOperationsImpl(CompoundAssessmentSummaryOperationsClient innerClient,
+ com.azure.resourcemanager.migrate.MigrateManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, String summaryName, Context context) {
+ Response inner = this.serviceClient()
+ .getWithResponse(resourceGroupName, projectName, compoundAssessmentName, summaryName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new WebAppCompoundAssessmentSummaryImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public WebAppCompoundAssessmentSummary get(String resourceGroupName, String projectName,
+ String compoundAssessmentName, String summaryName) {
+ WebAppCompoundAssessmentSummaryInner inner
+ = this.serviceClient().get(resourceGroupName, projectName, compoundAssessmentName, summaryName);
+ if (inner != null) {
+ return new WebAppCompoundAssessmentSummaryImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable listByParent(String resourceGroupName, String projectName,
+ String compoundAssessmentName) {
+ PagedIterable inner
+ = this.serviceClient().listByParent(resourceGroupName, projectName, compoundAssessmentName);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new WebAppCompoundAssessmentSummaryImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByParent(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByParent(resourceGroupName, projectName, compoundAssessmentName, context);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new WebAppCompoundAssessmentSummaryImpl(inner1, this.manager()));
+ }
+
+ private CompoundAssessmentSummaryOperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.migrate.MigrateManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/DownloadUrlImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/DownloadUrlImpl.java
new file mode 100644
index 000000000000..e2d60efad493
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/DownloadUrlImpl.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.implementation;
+
+import com.azure.resourcemanager.migrate.fluent.models.DownloadUrlInner;
+import com.azure.resourcemanager.migrate.models.DownloadUrl;
+import java.time.OffsetDateTime;
+
+public final class DownloadUrlImpl implements DownloadUrl {
+ private DownloadUrlInner innerObject;
+
+ private final com.azure.resourcemanager.migrate.MigrateManager serviceManager;
+
+ DownloadUrlImpl(DownloadUrlInner innerObject, com.azure.resourcemanager.migrate.MigrateManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String assessmentReportUrl() {
+ return this.innerModel().assessmentReportUrl();
+ }
+
+ public OffsetDateTime expirationTime() {
+ return this.innerModel().expirationTime();
+ }
+
+ public DownloadUrlInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.migrate.MigrateManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/MigrateClientBuilder.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/MigrateClientBuilder.java
new file mode 100644
index 000000000000..f435d263b7ef
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/MigrateClientBuilder.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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 MigrateClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { MigrateClientImpl.class })
+public final class MigrateClientBuilder {
+ /*
+ * Service host
+ */
+ private String endpoint;
+
+ /**
+ * Sets Service host.
+ *
+ * @param endpoint the endpoint value.
+ * @return the MigrateClientBuilder.
+ */
+ public MigrateClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * 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 MigrateClientBuilder.
+ */
+ public MigrateClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the MigrateClientBuilder.
+ */
+ public MigrateClientBuilder 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 MigrateClientBuilder.
+ */
+ public MigrateClientBuilder 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 MigrateClientBuilder.
+ */
+ public MigrateClientBuilder 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 MigrateClientBuilder.
+ */
+ public MigrateClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of MigrateClientImpl with the provided parameters.
+ *
+ * @return an instance of MigrateClientImpl.
+ */
+ public MigrateClientImpl 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();
+ MigrateClientImpl client = new MigrateClientImpl(localPipeline, localSerializerAdapter,
+ localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
+ return client;
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/MigrateClientImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/MigrateClientImpl.java
new file mode 100644
index 000000000000..cfcf6b722f4e
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/MigrateClientImpl.java
@@ -0,0 +1,320 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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.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.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.migrate.fluent.CompoundAssessmentOperationsClient;
+import com.azure.resourcemanager.migrate.fluent.CompoundAssessmentSummaryOperationsClient;
+import com.azure.resourcemanager.migrate.fluent.MigrateClient;
+import com.azure.resourcemanager.migrate.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 MigrateClientImpl type.
+ */
+@ServiceClient(builder = MigrateClientBuilder.class)
+public final class MigrateClientImpl implements MigrateClient {
+ /**
+ * Service host.
+ */
+ private final String endpoint;
+
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /**
+ * Version parameter.
+ */
+ private final String apiVersion;
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * 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 CompoundAssessmentOperationsClient object to access its operations.
+ */
+ private final CompoundAssessmentOperationsClient compoundAssessmentOperations;
+
+ /**
+ * Gets the CompoundAssessmentOperationsClient object to access its operations.
+ *
+ * @return the CompoundAssessmentOperationsClient object.
+ */
+ public CompoundAssessmentOperationsClient getCompoundAssessmentOperations() {
+ return this.compoundAssessmentOperations;
+ }
+
+ /**
+ * The CompoundAssessmentSummaryOperationsClient object to access its operations.
+ */
+ private final CompoundAssessmentSummaryOperationsClient compoundAssessmentSummaryOperations;
+
+ /**
+ * Gets the CompoundAssessmentSummaryOperationsClient object to access its operations.
+ *
+ * @return the CompoundAssessmentSummaryOperationsClient object.
+ */
+ public CompoundAssessmentSummaryOperationsClient getCompoundAssessmentSummaryOperations() {
+ return this.compoundAssessmentSummaryOperations;
+ }
+
+ /**
+ * Initializes an instance of MigrateClient 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 endpoint Service host.
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
+ */
+ MigrateClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval,
+ AzureEnvironment environment, String endpoint, String subscriptionId) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.endpoint = endpoint;
+ this.subscriptionId = subscriptionId;
+ this.apiVersion = "2024-03-03-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.compoundAssessmentOperations = new CompoundAssessmentOperationsClientImpl(this);
+ this.compoundAssessmentSummaryOperations = new CompoundAssessmentSummaryOperationsClientImpl(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 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(MigrateClientImpl.class);
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/OperationImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/OperationImpl.java
new file mode 100644
index 000000000000..1df845e02264
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/OperationImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.implementation;
+
+import com.azure.resourcemanager.migrate.fluent.models.OperationInner;
+import com.azure.resourcemanager.migrate.models.ActionType;
+import com.azure.resourcemanager.migrate.models.Operation;
+import com.azure.resourcemanager.migrate.models.OperationDisplay;
+import com.azure.resourcemanager.migrate.models.Origin;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.migrate.MigrateManager serviceManager;
+
+ OperationImpl(OperationInner innerObject, com.azure.resourcemanager.migrate.MigrateManager 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.migrate.MigrateManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/OperationsClientImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/OperationsClientImpl.java
new file mode 100644
index 000000000000..cfcdc07a1d09
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/OperationsClientImpl.java
@@ -0,0 +1,235 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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.resourcemanager.migrate.fluent.OperationsClient;
+import com.azure.resourcemanager.migrate.fluent.models.OperationInner;
+import com.azure.resourcemanager.migrate.implementation.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 MigrateClientImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(MigrateClientImpl client) {
+ this.service
+ = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MigrateClientOperations to be used by the proxy service to perform
+ * REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "MigrateClientOperati")
+ public interface OperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Migrate/operations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") 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("endpoint") 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.
+ *
+ * @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} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * 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.
+ *
+ * @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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listNextSinglePageAsync(nextLink, 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 as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * 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<>(listAsync(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.
+ * @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} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/OperationsImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/OperationsImpl.java
new file mode 100644
index 000000000000..a3a534387ccc
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/OperationsImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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.migrate.fluent.OperationsClient;
+import com.azure.resourcemanager.migrate.fluent.models.OperationInner;
+import com.azure.resourcemanager.migrate.models.Operation;
+import com.azure.resourcemanager.migrate.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.migrate.MigrateManager serviceManager;
+
+ public OperationsImpl(OperationsClient innerClient,
+ com.azure.resourcemanager.migrate.MigrateManager 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.migrate.MigrateManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/ResourceManagerUtils.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/ResourceManagerUtils.java
new file mode 100644
index 000000000000..8b440adb7d66
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/ResourceManagerUtils.java
@@ -0,0 +1,195 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/WebAppCompoundAssessmentSummaryImpl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/WebAppCompoundAssessmentSummaryImpl.java
new file mode 100644
index 000000000000..fd1b09ef6cc7
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/WebAppCompoundAssessmentSummaryImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.migrate.fluent.models.WebAppCompoundAssessmentSummaryInner;
+import com.azure.resourcemanager.migrate.models.WebAppCompoundAssessmentSummary;
+import com.azure.resourcemanager.migrate.models.WebAppCompoundAssessmentSummaryProperties;
+
+public final class WebAppCompoundAssessmentSummaryImpl implements WebAppCompoundAssessmentSummary {
+ private WebAppCompoundAssessmentSummaryInner innerObject;
+
+ private final com.azure.resourcemanager.migrate.MigrateManager serviceManager;
+
+ WebAppCompoundAssessmentSummaryImpl(WebAppCompoundAssessmentSummaryInner innerObject,
+ com.azure.resourcemanager.migrate.MigrateManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public WebAppCompoundAssessmentSummaryProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public WebAppCompoundAssessmentSummaryInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.migrate.MigrateManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/models/CompoundAssessmentListResult.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/models/CompoundAssessmentListResult.java
new file mode 100644
index 000000000000..a2022b64a28e
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/models/CompoundAssessmentListResult.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.implementation.models;
+
+import com.azure.core.annotation.Immutable;
+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.migrate.fluent.models.CompoundAssessmentInner;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response of a CompoundAssessment list operation.
+ */
+@Immutable
+public final class CompoundAssessmentListResult implements JsonSerializable {
+ /*
+ * The CompoundAssessment items on this page
+ */
+ private List value;
+
+ /*
+ * The link to the next page of items
+ */
+ private String nextLink;
+
+ /**
+ * Creates an instance of CompoundAssessmentListResult class.
+ */
+ private CompoundAssessmentListResult() {
+ }
+
+ /**
+ * Get the value property: The CompoundAssessment items on this page.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: The link to the next page of items.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property value in model CompoundAssessmentListResult"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CompoundAssessmentListResult.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CompoundAssessmentListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CompoundAssessmentListResult 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 CompoundAssessmentListResult.
+ */
+ public static CompoundAssessmentListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CompoundAssessmentListResult deserializedCompoundAssessmentListResult = new CompoundAssessmentListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> CompoundAssessmentInner.fromJson(reader1));
+ deserializedCompoundAssessmentListResult.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedCompoundAssessmentListResult.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCompoundAssessmentListResult;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/models/OperationListResult.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/models/OperationListResult.java
new file mode 100644
index 000000000000..516add0218be
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/models/OperationListResult.java
@@ -0,0 +1,113 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.implementation.models;
+
+import com.azure.core.annotation.Immutable;
+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.migrate.fluent.models.OperationInner;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
+ * results.
+ */
+@Immutable
+public final class OperationListResult implements JsonSerializable {
+ /*
+ * The Operation items on this page
+ */
+ private List value;
+
+ /*
+ * The link to the next page of items
+ */
+ private String nextLink;
+
+ /**
+ * Creates an instance of OperationListResult class.
+ */
+ private OperationListResult() {
+ }
+
+ /**
+ * Get the value property: The Operation items on this page.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: The link to the next page of items.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property value in model OperationListResult"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(OperationListResult.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationListResult 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 OperationListResult.
+ */
+ public static OperationListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationListResult deserializedOperationListResult = new OperationListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> OperationInner.fromJson(reader1));
+ deserializedOperationListResult.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedOperationListResult.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationListResult;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/models/WebAppCompoundAssessmentSummaryListResult.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/models/WebAppCompoundAssessmentSummaryListResult.java
new file mode 100644
index 000000000000..6ece967d888a
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/models/WebAppCompoundAssessmentSummaryListResult.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.implementation.models;
+
+import com.azure.core.annotation.Immutable;
+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.migrate.fluent.models.WebAppCompoundAssessmentSummaryInner;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response of a WebAppCompoundAssessmentSummary list operation.
+ */
+@Immutable
+public final class WebAppCompoundAssessmentSummaryListResult
+ implements JsonSerializable {
+ /*
+ * The WebAppCompoundAssessmentSummary items on this page
+ */
+ private List value;
+
+ /*
+ * The link to the next page of items
+ */
+ private String nextLink;
+
+ /**
+ * Creates an instance of WebAppCompoundAssessmentSummaryListResult class.
+ */
+ private WebAppCompoundAssessmentSummaryListResult() {
+ }
+
+ /**
+ * Get the value property: The WebAppCompoundAssessmentSummary items on this page.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: The link to the next page of items.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property value in model WebAppCompoundAssessmentSummaryListResult"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(WebAppCompoundAssessmentSummaryListResult.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WebAppCompoundAssessmentSummaryListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WebAppCompoundAssessmentSummaryListResult 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 WebAppCompoundAssessmentSummaryListResult.
+ */
+ public static WebAppCompoundAssessmentSummaryListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WebAppCompoundAssessmentSummaryListResult deserializedWebAppCompoundAssessmentSummaryListResult
+ = new WebAppCompoundAssessmentSummaryListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> WebAppCompoundAssessmentSummaryInner.fromJson(reader1));
+ deserializedWebAppCompoundAssessmentSummaryListResult.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedWebAppCompoundAssessmentSummaryListResult.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWebAppCompoundAssessmentSummaryListResult;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/package-info.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/implementation/package-info.java
new file mode 100644
index 000000000000..e87de4aa145b
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/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) TypeSpec Code Generator.
+
+/**
+ * Package containing the implementations for Migrate.
+ * Azure Migrate Resource Provider management API.
+ */
+package com.azure.resourcemanager.migrate.implementation;
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/ActionType.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/ActionType.java
new file mode 100644
index 000000000000..ae8b8640415a
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/ActionType.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+public final class ActionType extends ExpandableStringEnum {
+ /**
+ * Actions are for internal-only APIs.
+ */
+ 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/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AssessmentSource.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AssessmentSource.java
new file mode 100644
index 000000000000..954020143a1d
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AssessmentSource.java
@@ -0,0 +1,101 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Assessment Source.
+ */
+public final class AssessmentSource extends ExpandableStringEnum {
+ /**
+ * Unknown - Assessment Source.
+ */
+ public static final AssessmentSource UNKNOWN = fromString("Unknown");
+
+ /**
+ * Machine - Assessment Source.
+ */
+ public static final AssessmentSource MACHINE = fromString("Machine");
+
+ /**
+ * IIS - Assessment Source.
+ */
+ public static final AssessmentSource IIS = fromString("IIS");
+
+ /**
+ * TomCat - Assessment Source.
+ */
+ public static final AssessmentSource TOM_CAT = fromString("TomCat");
+
+ /**
+ * OracleServer - Assessment Source.
+ */
+ public static final AssessmentSource ORACLE_SERVER = fromString("OracleServer");
+
+ /**
+ * OracleDatabase - Assessment Source.
+ */
+ public static final AssessmentSource ORACLE_DATABASE = fromString("OracleDatabase");
+
+ /**
+ * SAPInstance - Assessment Source.
+ */
+ public static final AssessmentSource SAPINSTANCE = fromString("SAPInstance");
+
+ /**
+ * SpringbootApplication - Assessment Source.
+ */
+ public static final AssessmentSource SPRINGBOOT_APPLICATION = fromString("SpringbootApplication");
+
+ /**
+ * MySQLServer - Assessment Source.
+ */
+ public static final AssessmentSource MY_SQLSERVER = fromString("MySQLServer");
+
+ /**
+ * SqlInstance - Assessment Source.
+ */
+ public static final AssessmentSource SQL_INSTANCE = fromString("SqlInstance");
+
+ /**
+ * SqlDatabase - Assessment Source.
+ */
+ public static final AssessmentSource SQL_DATABASE = fromString("SqlDatabase");
+
+ /**
+ * WebApps - Assessment Source.
+ */
+ public static final AssessmentSource WEB_APPS = fromString("WebApps");
+
+ /**
+ * Creates a new instance of AssessmentSource value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AssessmentSource() {
+ }
+
+ /**
+ * Creates or finds a AssessmentSource from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AssessmentSource.
+ */
+ public static AssessmentSource fromString(String name) {
+ return fromString(name, AssessmentSource.class);
+ }
+
+ /**
+ * Gets known AssessmentSource values.
+ *
+ * @return known AssessmentSource values.
+ */
+ public static Collection values() {
+ return values(AssessmentSource.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AssessmentStatus.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AssessmentStatus.java
new file mode 100644
index 000000000000..b2b76b184cdc
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AssessmentStatus.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Assessment Status.
+ */
+public final class AssessmentStatus extends ExpandableStringEnum {
+ /**
+ * Assessment is Created.
+ */
+ public static final AssessmentStatus CREATED = fromString("Created");
+
+ /**
+ * Assessment is Updated.
+ */
+ public static final AssessmentStatus UPDATED = fromString("Updated");
+
+ /**
+ * Assessment is currently running.
+ */
+ public static final AssessmentStatus RUNNING = fromString("Running");
+
+ /**
+ * Assessment is Completed or Ready.
+ */
+ public static final AssessmentStatus COMPLETED = fromString("Completed");
+
+ /**
+ * Assessment is Failed i.e. it is now invalid.
+ */
+ public static final AssessmentStatus INVALID = fromString("Invalid");
+
+ /**
+ * Assessment is Out of Sync.
+ */
+ public static final AssessmentStatus OUT_OF_SYNC = fromString("OutOfSync");
+
+ /**
+ * Assessment is Out Dated.
+ */
+ public static final AssessmentStatus OUT_DATED = fromString("OutDated");
+
+ /**
+ * Assessment is Deleted.
+ */
+ public static final AssessmentStatus DELETED = fromString("Deleted");
+
+ /**
+ * Assessment has Failed.
+ */
+ public static final AssessmentStatus FAILED = fromString("Failed");
+
+ /**
+ * Creates a new instance of AssessmentStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AssessmentStatus() {
+ }
+
+ /**
+ * Creates or finds a AssessmentStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AssessmentStatus.
+ */
+ public static AssessmentStatus fromString(String name) {
+ return fromString(name, AssessmentStatus.class);
+ }
+
+ /**
+ * Gets known AssessmentStatus values.
+ *
+ * @return known AssessmentStatus values.
+ */
+ public static Collection values() {
+ return values(AssessmentStatus.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AzureManagementOfferingType.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AzureManagementOfferingType.java
new file mode 100644
index 000000000000..9d25ef4fbd84
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AzureManagementOfferingType.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Azure management Offering type.
+ */
+public final class AzureManagementOfferingType extends ExpandableStringEnum {
+ /**
+ * No - Azure management Offering type.
+ */
+ public static final AzureManagementOfferingType NO = fromString("No");
+
+ /**
+ * SCOMMI - Azure management Offering type.
+ */
+ public static final AzureManagementOfferingType SCOMMI = fromString("SCOMMI");
+
+ /**
+ * AzMon - Azure management Offering type.
+ */
+ public static final AzureManagementOfferingType AZ_MON = fromString("AzMon");
+
+ /**
+ * AUM - Azure management Offering type.
+ */
+ public static final AzureManagementOfferingType AUM = fromString("AUM");
+
+ /**
+ * AzureBackup - Azure management Offering type.
+ */
+ public static final AzureManagementOfferingType AZURE_BACKUP = fromString("AzureBackup");
+
+ /**
+ * Creates a new instance of AzureManagementOfferingType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AzureManagementOfferingType() {
+ }
+
+ /**
+ * Creates or finds a AzureManagementOfferingType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AzureManagementOfferingType.
+ */
+ public static AzureManagementOfferingType fromString(String name) {
+ return fromString(name, AzureManagementOfferingType.class);
+ }
+
+ /**
+ * Gets known AzureManagementOfferingType values.
+ *
+ * @return known AzureManagementOfferingType values.
+ */
+ public static Collection values() {
+ return values(AzureManagementOfferingType.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AzureTarget.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AzureTarget.java
new file mode 100644
index 000000000000..748c3b18062e
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/AzureTarget.java
@@ -0,0 +1,111 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Azure Target.
+ */
+public final class AzureTarget extends ExpandableStringEnum {
+ /**
+ * Unknown - Azure Target.
+ */
+ public static final AzureTarget UNKNOWN = fromString("Unknown");
+
+ /**
+ * SqlDatabase - Azure Target.
+ */
+ public static final AzureTarget SQL_DATABASE = fromString("SqlDatabase");
+
+ /**
+ * SqlMI - Azure Target.
+ */
+ public static final AzureTarget SQL_MI = fromString("SqlMI");
+
+ /**
+ * FlexServerPG - Azure Target.
+ */
+ public static final AzureTarget FLEX_SERVER_PG = fromString("FlexServerPG");
+
+ /**
+ * OracleIaasVM - Azure Target.
+ */
+ public static final AzureTarget ORACLE_IAAS_VM = fromString("OracleIaasVM");
+
+ /**
+ * AzureSpringApps - Azure Target.
+ */
+ public static final AzureTarget AZURE_SPRING_APPS = fromString("AzureSpringApps");
+
+ /**
+ * SAPAzureInstance - Azure Target.
+ */
+ public static final AzureTarget SAPAZURE_INSTANCE = fromString("SAPAzureInstance");
+
+ /**
+ * AKS - Azure Target.
+ */
+ public static final AzureTarget AKS = fromString("AKS");
+
+ /**
+ * MySQLAzureFlexServer - Azure Target.
+ */
+ public static final AzureTarget MY_SQLAZURE_FLEX_SERVER = fromString("MySQLAzureFlexServer");
+
+ /**
+ * AzureSQLVM - Azure Target.
+ */
+ public static final AzureTarget AZURE_SQLVM = fromString("AzureSQLVM");
+
+ /**
+ * AzureVM - Azure Target.
+ */
+ public static final AzureTarget AZURE_VM = fromString("AzureVM");
+
+ /**
+ * AzureAppService - Azure Target.
+ */
+ public static final AzureTarget AZURE_APP_SERVICE = fromString("AzureAppService");
+
+ /**
+ * AzureAppServiceContainer - Azure Target.
+ */
+ public static final AzureTarget AZURE_APP_SERVICE_CONTAINER = fromString("AzureAppServiceContainer");
+
+ /**
+ * Avs - Azure Target.
+ */
+ public static final AzureTarget AVS = fromString("Avs");
+
+ /**
+ * Creates a new instance of AzureTarget value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AzureTarget() {
+ }
+
+ /**
+ * Creates or finds a AzureTarget from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AzureTarget.
+ */
+ public static AzureTarget fromString(String name) {
+ return fromString(name, AzureTarget.class);
+ }
+
+ /**
+ * Gets known AzureTarget values.
+ *
+ * @return known AzureTarget values.
+ */
+ public static Collection values() {
+ return values(AzureTarget.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CloudSuitabilityCommon.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CloudSuitabilityCommon.java
new file mode 100644
index 000000000000..9d2545fa8f49
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CloudSuitabilityCommon.java
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Cloud Suitability Common.
+ */
+public final class CloudSuitabilityCommon extends ExpandableStringEnum {
+ /**
+ * Unknown - Cloud Suitability Common.
+ */
+ public static final CloudSuitabilityCommon UNKNOWN = fromString("Unknown");
+
+ /**
+ * NotSuitable - Cloud Suitability Common.
+ */
+ public static final CloudSuitabilityCommon NOT_SUITABLE = fromString("NotSuitable");
+
+ /**
+ * Suitable - Cloud Suitability Common.
+ */
+ public static final CloudSuitabilityCommon SUITABLE = fromString("Suitable");
+
+ /**
+ * ConditionallySuitable - Cloud Suitability Common.
+ */
+ public static final CloudSuitabilityCommon CONDITIONALLY_SUITABLE = fromString("ConditionallySuitable");
+
+ /**
+ * ReadinessUnknown - Cloud Suitability Common.
+ */
+ public static final CloudSuitabilityCommon READINESS_UNKNOWN = fromString("ReadinessUnknown");
+
+ /**
+ * SuitableWithWarnings - Cloud Suitability Common.
+ */
+ public static final CloudSuitabilityCommon SUITABLE_WITH_WARNINGS = fromString("SuitableWithWarnings");
+
+ /**
+ * Creates a new instance of CloudSuitabilityCommon value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public CloudSuitabilityCommon() {
+ }
+
+ /**
+ * Creates or finds a CloudSuitabilityCommon from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CloudSuitabilityCommon.
+ */
+ public static CloudSuitabilityCommon fromString(String name) {
+ return fromString(name, CloudSuitabilityCommon.class);
+ }
+
+ /**
+ * Gets known CloudSuitabilityCommon values.
+ *
+ * @return known CloudSuitabilityCommon values.
+ */
+ public static Collection values() {
+ return values(CloudSuitabilityCommon.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessment.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessment.java
new file mode 100644
index 000000000000..ff9f92916d23
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessment.java
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.migrate.fluent.models.CompoundAssessmentInner;
+
+/**
+ * An immutable client-side representation of CompoundAssessment.
+ */
+public interface CompoundAssessment {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ CompoundAssessmentProperties properties();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.migrate.fluent.models.CompoundAssessmentInner object.
+ *
+ * @return the inner object.
+ */
+ CompoundAssessmentInner innerModel();
+
+ /**
+ * The entirety of the CompoundAssessment definition.
+ */
+ interface Definition
+ extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * The CompoundAssessment definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of the CompoundAssessment definition.
+ */
+ interface Blank extends WithParentResource {
+ }
+
+ /**
+ * The stage of the CompoundAssessment definition allowing to specify parent resource.
+ */
+ interface WithParentResource {
+ /**
+ * Specifies resourceGroupName, projectName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @return the next definition stage.
+ */
+ WithCreate withExistingAssessmentProject(String resourceGroupName, String projectName);
+ }
+
+ /**
+ * The stage of the CompoundAssessment definition which contains all the minimum required properties for the
+ * resource to be created, but also allows for any other optional properties to be specified.
+ */
+ interface WithCreate extends DefinitionStages.WithProperties {
+ /**
+ * Executes the create request.
+ *
+ * @return the created resource.
+ */
+ CompoundAssessment create();
+
+ /**
+ * Executes the create request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the created resource.
+ */
+ CompoundAssessment create(Context context);
+ }
+
+ /**
+ * The stage of the CompoundAssessment definition allowing to specify properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies the properties property: The resource-specific properties for this resource..
+ *
+ * @param properties The resource-specific properties for this resource.
+ * @return the next definition stage.
+ */
+ WithCreate withProperties(CompoundAssessmentProperties properties);
+ }
+ }
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @return the refreshed resource.
+ */
+ CompoundAssessment refresh();
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @param context The context to associate with this operation.
+ * @return the refreshed resource.
+ */
+ CompoundAssessment refresh(Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ DownloadUrl downloadUrl(DownloadUrlRequest body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ DownloadUrl downloadUrl(DownloadUrlRequest body, Context context);
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentDetails.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentDetails.java
new file mode 100644
index 000000000000..a27708634b83
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentDetails.java
@@ -0,0 +1,136 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.CoreUtils;
+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;
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+
+/**
+ * Details of the compound assessment.
+ */
+@Immutable
+public final class CompoundAssessmentDetails implements JsonSerializable {
+ /*
+ * Timestamp when the assessment was created.
+ */
+ private OffsetDateTime createdTimestamp;
+
+ /*
+ * Timestamp when the assessment was last updated.
+ */
+ private OffsetDateTime updatedTimestamp;
+
+ /*
+ * Status of the assessment.
+ */
+ private AssessmentStatus status;
+
+ /**
+ * Creates an instance of CompoundAssessmentDetails class.
+ */
+ private CompoundAssessmentDetails() {
+ }
+
+ /**
+ * Get the createdTimestamp property: Timestamp when the assessment was created.
+ *
+ * @return the createdTimestamp value.
+ */
+ public OffsetDateTime createdTimestamp() {
+ return this.createdTimestamp;
+ }
+
+ /**
+ * Get the updatedTimestamp property: Timestamp when the assessment was last updated.
+ *
+ * @return the updatedTimestamp value.
+ */
+ public OffsetDateTime updatedTimestamp() {
+ return this.updatedTimestamp;
+ }
+
+ /**
+ * Get the status property: Status of the assessment.
+ *
+ * @return the status value.
+ */
+ public AssessmentStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (status() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property status in model CompoundAssessmentDetails"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CompoundAssessmentDetails.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString());
+ jsonWriter.writeStringField("createdTimestamp",
+ this.createdTimestamp == null
+ ? null
+ : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.createdTimestamp));
+ jsonWriter.writeStringField("updatedTimestamp",
+ this.updatedTimestamp == null
+ ? null
+ : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.updatedTimestamp));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CompoundAssessmentDetails from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CompoundAssessmentDetails 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 CompoundAssessmentDetails.
+ */
+ public static CompoundAssessmentDetails fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CompoundAssessmentDetails deserializedCompoundAssessmentDetails = new CompoundAssessmentDetails();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("status".equals(fieldName)) {
+ deserializedCompoundAssessmentDetails.status = AssessmentStatus.fromString(reader.getString());
+ } else if ("createdTimestamp".equals(fieldName)) {
+ deserializedCompoundAssessmentDetails.createdTimestamp = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("updatedTimestamp".equals(fieldName)) {
+ deserializedCompoundAssessmentDetails.updatedTimestamp = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCompoundAssessmentDetails;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentOperations.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentOperations.java
new file mode 100644
index 000000000000..46b0620d2968
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentOperations.java
@@ -0,0 +1,178 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of CompoundAssessmentOperations.
+ */
+public interface CompoundAssessmentOperations {
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 CompoundAssessment along with {@link Response}.
+ */
+ Response getWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context);
+
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 CompoundAssessment.
+ */
+ CompoundAssessment get(String resourceGroupName, String projectName, String compoundAssessmentName);
+
+ /**
+ * List CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 response of a CompoundAssessment list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByParent(String resourceGroupName, String projectName);
+
+ /**
+ * List CompoundAssessment resources by AssessmentProject.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project 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 response of a CompoundAssessment list operation as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByParent(String resourceGroupName, String projectName, Context context);
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 Response}.
+ */
+ Response deleteWithResponse(String resourceGroupName, String projectName, String compoundAssessmentName,
+ Context context);
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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.
+ */
+ void delete(String resourceGroupName, String projectName, String compoundAssessmentName);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ DownloadUrl downloadUrl(String resourceGroupName, String projectName, String compoundAssessmentName,
+ DownloadUrlRequest body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ DownloadUrl downloadUrl(String resourceGroupName, String projectName, String compoundAssessmentName,
+ DownloadUrlRequest body, Context context);
+
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CompoundAssessment along with {@link Response}.
+ */
+ CompoundAssessment getById(String id);
+
+ /**
+ * Get a CompoundAssessment.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CompoundAssessment along with {@link Response}.
+ */
+ Response getByIdWithResponse(String id, Context context);
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteById(String id);
+
+ /**
+ * Delete a CompoundAssessment.
+ *
+ * @param id the resource 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 {@link Response}.
+ */
+ Response deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new CompoundAssessment resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new CompoundAssessment definition.
+ */
+ CompoundAssessment.DefinitionStages.Blank define(String name);
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentProperties.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentProperties.java
new file mode 100644
index 000000000000..88f143928cec
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentProperties.java
@@ -0,0 +1,169 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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;
+
+/**
+ * Properties of a compound assessment.
+ */
+@Fluent
+public final class CompoundAssessmentProperties implements JsonSerializable {
+ /*
+ * The status of the last operation.
+ */
+ private ProvisioningState provisioningState;
+
+ /*
+ * ARM IDs of the target assessments.
+ */
+ private TargetAssessmentArmIds targetAssessmentArmIds;
+
+ /*
+ * Fallback machine assessment ARM ID.
+ */
+ private String fallbackMachineAssessmentArmId;
+
+ /*
+ * Details of the compound assessment.
+ */
+ private CompoundAssessmentDetails details;
+
+ /**
+ * Creates an instance of CompoundAssessmentProperties class.
+ */
+ public CompoundAssessmentProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: The status of the last operation.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the targetAssessmentArmIds property: ARM IDs of the target assessments.
+ *
+ * @return the targetAssessmentArmIds value.
+ */
+ public TargetAssessmentArmIds targetAssessmentArmIds() {
+ return this.targetAssessmentArmIds;
+ }
+
+ /**
+ * Set the targetAssessmentArmIds property: ARM IDs of the target assessments.
+ *
+ * @param targetAssessmentArmIds the targetAssessmentArmIds value to set.
+ * @return the CompoundAssessmentProperties object itself.
+ */
+ public CompoundAssessmentProperties withTargetAssessmentArmIds(TargetAssessmentArmIds targetAssessmentArmIds) {
+ this.targetAssessmentArmIds = targetAssessmentArmIds;
+ return this;
+ }
+
+ /**
+ * Get the fallbackMachineAssessmentArmId property: Fallback machine assessment ARM ID.
+ *
+ * @return the fallbackMachineAssessmentArmId value.
+ */
+ public String fallbackMachineAssessmentArmId() {
+ return this.fallbackMachineAssessmentArmId;
+ }
+
+ /**
+ * Set the fallbackMachineAssessmentArmId property: Fallback machine assessment ARM ID.
+ *
+ * @param fallbackMachineAssessmentArmId the fallbackMachineAssessmentArmId value to set.
+ * @return the CompoundAssessmentProperties object itself.
+ */
+ public CompoundAssessmentProperties withFallbackMachineAssessmentArmId(String fallbackMachineAssessmentArmId) {
+ this.fallbackMachineAssessmentArmId = fallbackMachineAssessmentArmId;
+ return this;
+ }
+
+ /**
+ * Get the details property: Details of the compound assessment.
+ *
+ * @return the details value.
+ */
+ public CompoundAssessmentDetails details() {
+ return this.details;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (targetAssessmentArmIds() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property targetAssessmentArmIds in model CompoundAssessmentProperties"));
+ } else {
+ targetAssessmentArmIds().validate();
+ }
+ if (details() != null) {
+ details().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CompoundAssessmentProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("targetAssessmentArmIds", this.targetAssessmentArmIds);
+ jsonWriter.writeStringField("fallbackMachineAssessmentArmId", this.fallbackMachineAssessmentArmId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CompoundAssessmentProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CompoundAssessmentProperties 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 CompoundAssessmentProperties.
+ */
+ public static CompoundAssessmentProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CompoundAssessmentProperties deserializedCompoundAssessmentProperties = new CompoundAssessmentProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("targetAssessmentArmIds".equals(fieldName)) {
+ deserializedCompoundAssessmentProperties.targetAssessmentArmIds
+ = TargetAssessmentArmIds.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedCompoundAssessmentProperties.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else if ("fallbackMachineAssessmentArmId".equals(fieldName)) {
+ deserializedCompoundAssessmentProperties.fallbackMachineAssessmentArmId = reader.getString();
+ } else if ("details".equals(fieldName)) {
+ deserializedCompoundAssessmentProperties.details = CompoundAssessmentDetails.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCompoundAssessmentProperties;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentSummaryOperations.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentSummaryOperations.java
new file mode 100644
index 000000000000..828b5e6918c4
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CompoundAssessmentSummaryOperations.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of CompoundAssessmentSummaryOperations.
+ */
+public interface CompoundAssessmentSummaryOperations {
+ /**
+ * Get a WebAppCompoundAssessmentSummary.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param summaryName Gets the Name of the WebApp compound assessment summary.
+ * @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 WebAppCompoundAssessmentSummary along with {@link Response}.
+ */
+ Response getWithResponse(String resourceGroupName, String projectName,
+ String compoundAssessmentName, String summaryName, Context context);
+
+ /**
+ * Get a WebAppCompoundAssessmentSummary.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM name.
+ * @param summaryName Gets the Name of the WebApp compound assessment summary.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 WebAppCompoundAssessmentSummary.
+ */
+ WebAppCompoundAssessmentSummary get(String resourceGroupName, String projectName, String compoundAssessmentName,
+ String summaryName);
+
+ /**
+ * List WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 response of a WebAppCompoundAssessmentSummary list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ PagedIterable listByParent(String resourceGroupName, String projectName,
+ String compoundAssessmentName);
+
+ /**
+ * List WebAppCompoundAssessmentSummary resources by CompoundAssessment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param projectName Assessment Project Name.
+ * @param compoundAssessmentName Compound Assessment ARM 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 response of a WebAppCompoundAssessmentSummary list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ PagedIterable listByParent(String resourceGroupName, String projectName,
+ String compoundAssessmentName, Context context);
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CostDetailsCommon.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CostDetailsCommon.java
new file mode 100644
index 000000000000..e8a1e2461142
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CostDetailsCommon.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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;
+import java.util.List;
+
+/**
+ * The cost details.
+ */
+@Immutable
+public final class CostDetailsCommon implements JsonSerializable {
+ /*
+ * The savings options.
+ */
+ private SavingsOptions savingOptions;
+
+ /*
+ * The sku cost details per azure offer type.
+ */
+ private List costDetail;
+
+ /**
+ * Creates an instance of CostDetailsCommon class.
+ */
+ private CostDetailsCommon() {
+ }
+
+ /**
+ * Get the savingOptions property: The savings options.
+ *
+ * @return the savingOptions value.
+ */
+ public SavingsOptions savingOptions() {
+ return this.savingOptions;
+ }
+
+ /**
+ * Get the costDetail property: The sku cost details per azure offer type.
+ *
+ * @return the costDetail value.
+ */
+ public List costDetail() {
+ return this.costDetail;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (costDetail() != null) {
+ costDetail().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CostDetailsCommon from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CostDetailsCommon 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 CostDetailsCommon.
+ */
+ public static CostDetailsCommon fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CostDetailsCommon deserializedCostDetailsCommon = new CostDetailsCommon();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("savingOptions".equals(fieldName)) {
+ deserializedCostDetailsCommon.savingOptions = SavingsOptions.fromString(reader.getString());
+ } else if ("costDetail".equals(fieldName)) {
+ List costDetail
+ = reader.readArray(reader1 -> NameValuePairCostType.fromJson(reader1));
+ deserializedCostDetailsCommon.costDetail = costDetail;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCostDetailsCommon;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CostType.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CostType.java
new file mode 100644
index 000000000000..58ff63b8b3a5
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/CostType.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Cost type.
+ */
+public final class CostType extends ExpandableStringEnum {
+ /**
+ * MonthlyStorageCost - Cost type.
+ */
+ public static final CostType MONTHLY_STORAGE_COST = fromString("MonthlyStorageCost");
+
+ /**
+ * MonthlyComputeCost - Cost type.
+ */
+ public static final CostType MONTHLY_COMPUTE_COST = fromString("MonthlyComputeCost");
+
+ /**
+ * MonthlyLicensingCost - Cost type.
+ */
+ public static final CostType MONTHLY_LICENSING_COST = fromString("MonthlyLicensingCost");
+
+ /**
+ * MonthlySecurityCost - Cost type.
+ */
+ public static final CostType MONTHLY_SECURITY_COST = fromString("MonthlySecurityCost");
+
+ /**
+ * MonthlyManagementCost - Cost type.
+ */
+ public static final CostType MONTHLY_MANAGEMENT_COST = fromString("MonthlyManagementCost");
+
+ /**
+ * MonitoringService - Cost type.
+ */
+ public static final CostType MONITORING_SERVICE = fromString("MonitoringService");
+
+ /**
+ * DataProtectionService - Cost type.
+ */
+ public static final CostType DATA_PROTECTION_SERVICE = fromString("DataProtectionService");
+
+ /**
+ * PatchingService - Cost type.
+ */
+ public static final CostType PATCHING_SERVICE = fromString("PatchingService");
+
+ /**
+ * MonthlyAzureHybridCost - Cost type.
+ */
+ public static final CostType MONTHLY_AZURE_HYBRID_COST = fromString("MonthlyAzureHybridCost");
+
+ /**
+ * MonthlyPremiumV2StorageCost - Cost type.
+ */
+ public static final CostType MONTHLY_PREMIUM_V2STORAGE_COST = fromString("MonthlyPremiumV2StorageCost");
+
+ /**
+ * MonthlyLinuxAzureHybridCost - Cost type.
+ */
+ public static final CostType MONTHLY_LINUX_AZURE_HYBRID_COST = fromString("MonthlyLinuxAzureHybridCost");
+
+ /**
+ * MonthlyUltraStorageCost - Cost type.
+ */
+ public static final CostType MONTHLY_ULTRA_STORAGE_COST = fromString("MonthlyUltraStorageCost");
+
+ /**
+ * MonthlyStandardSsdStorageCost - Cost type.
+ */
+ public static final CostType MONTHLY_STANDARD_SSD_STORAGE_COST = fromString("MonthlyStandardSsdStorageCost");
+
+ /**
+ * MonthlyBandwidthCost - Cost type.
+ */
+ public static final CostType MONTHLY_BANDWIDTH_COST = fromString("MonthlyBandwidthCost");
+
+ /**
+ * MonthlyPremiumStorageCost - Cost type.
+ */
+ public static final CostType MONTHLY_PREMIUM_STORAGE_COST = fromString("MonthlyPremiumStorageCost");
+
+ /**
+ * MonthlyUltraDiskCost - Cost type.
+ */
+ public static final CostType MONTHLY_ULTRA_DISK_COST = fromString("MonthlyUltraDiskCost");
+
+ /**
+ * MonthlyStandardHddStorageCost - Cost type.
+ */
+ public static final CostType MONTHLY_STANDARD_HDD_STORAGE_COST = fromString("MonthlyStandardHddStorageCost");
+
+ /**
+ * MonthlyAvsExternalStorageCost - Cost type.
+ */
+ public static final CostType MONTHLY_AVS_EXTERNAL_STORAGE_COST = fromString("MonthlyAvsExternalStorageCost");
+
+ /**
+ * MonthlyAvsNetworkCost - Cost type.
+ */
+ public static final CostType MONTHLY_AVS_NETWORK_COST = fromString("MonthlyAvsNetworkCost");
+
+ /**
+ * MonthlyAvsNodeCost - Cost type.
+ */
+ public static final CostType MONTHLY_AVS_NODE_COST = fromString("MonthlyAvsNodeCost");
+
+ /**
+ * TotalMonthlyCost - Cost type.
+ */
+ public static final CostType TOTAL_MONTHLY_COST = fromString("TotalMonthlyCost");
+
+ /**
+ * Creates a new instance of CostType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public CostType() {
+ }
+
+ /**
+ * Creates or finds a CostType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CostType.
+ */
+ public static CostType fromString(String name) {
+ return fromString(name, CostType.class);
+ }
+
+ /**
+ * Gets known CostType values.
+ *
+ * @return known CostType values.
+ */
+ public static Collection values() {
+ return values(CostType.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/DiscoveredLightSummary.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/DiscoveredLightSummary.java
new file mode 100644
index 000000000000..2294cc3aa738
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/DiscoveredLightSummary.java
@@ -0,0 +1,164 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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;
+import java.util.List;
+
+/**
+ * Summary of the compound assessment.
+ */
+@Immutable
+public final class DiscoveredLightSummary implements JsonSerializable {
+ /*
+ * Number of web apps.
+ */
+ private int numberOfWebApps;
+
+ /*
+ * Number of web apps per type.
+ */
+ private List numberOfWebAppsPerType;
+
+ /*
+ * Number of web servers per type.
+ */
+ private List numberOfWebServersPerType;
+
+ /*
+ * Number of web servers.
+ */
+ private int numberOfWebServers;
+
+ /*
+ * Number of servers.
+ */
+ private int numberOfServers;
+
+ /**
+ * Creates an instance of DiscoveredLightSummary class.
+ */
+ private DiscoveredLightSummary() {
+ }
+
+ /**
+ * Get the numberOfWebApps property: Number of web apps.
+ *
+ * @return the numberOfWebApps value.
+ */
+ public int numberOfWebApps() {
+ return this.numberOfWebApps;
+ }
+
+ /**
+ * Get the numberOfWebAppsPerType property: Number of web apps per type.
+ *
+ * @return the numberOfWebAppsPerType value.
+ */
+ public List numberOfWebAppsPerType() {
+ return this.numberOfWebAppsPerType;
+ }
+
+ /**
+ * Get the numberOfWebServersPerType property: Number of web servers per type.
+ *
+ * @return the numberOfWebServersPerType value.
+ */
+ public List numberOfWebServersPerType() {
+ return this.numberOfWebServersPerType;
+ }
+
+ /**
+ * Get the numberOfWebServers property: Number of web servers.
+ *
+ * @return the numberOfWebServers value.
+ */
+ public int numberOfWebServers() {
+ return this.numberOfWebServers;
+ }
+
+ /**
+ * Get the numberOfServers property: Number of servers.
+ *
+ * @return the numberOfServers value.
+ */
+ public int numberOfServers() {
+ return this.numberOfServers;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (numberOfWebAppsPerType() != null) {
+ numberOfWebAppsPerType().forEach(e -> e.validate());
+ }
+ if (numberOfWebServersPerType() != null) {
+ numberOfWebServersPerType().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeIntField("numberOfWebApps", this.numberOfWebApps);
+ jsonWriter.writeIntField("numberOfWebServers", this.numberOfWebServers);
+ jsonWriter.writeIntField("numberOfServers", this.numberOfServers);
+ jsonWriter.writeArrayField("numberOfWebAppsPerType", this.numberOfWebAppsPerType,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("numberOfWebServersPerType", this.numberOfWebServersPerType,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DiscoveredLightSummary from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DiscoveredLightSummary 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 DiscoveredLightSummary.
+ */
+ public static DiscoveredLightSummary fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DiscoveredLightSummary deserializedDiscoveredLightSummary = new DiscoveredLightSummary();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("numberOfWebApps".equals(fieldName)) {
+ deserializedDiscoveredLightSummary.numberOfWebApps = reader.getInt();
+ } else if ("numberOfWebServers".equals(fieldName)) {
+ deserializedDiscoveredLightSummary.numberOfWebServers = reader.getInt();
+ } else if ("numberOfServers".equals(fieldName)) {
+ deserializedDiscoveredLightSummary.numberOfServers = reader.getInt();
+ } else if ("numberOfWebAppsPerType".equals(fieldName)) {
+ List numberOfWebAppsPerType
+ = reader.readArray(reader1 -> WebAppsPerType.fromJson(reader1));
+ deserializedDiscoveredLightSummary.numberOfWebAppsPerType = numberOfWebAppsPerType;
+ } else if ("numberOfWebServersPerType".equals(fieldName)) {
+ List numberOfWebServersPerType
+ = reader.readArray(reader1 -> WebServersPerType.fromJson(reader1));
+ deserializedDiscoveredLightSummary.numberOfWebServersPerType = numberOfWebServersPerType;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDiscoveredLightSummary;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/DownloadUrl.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/DownloadUrl.java
new file mode 100644
index 000000000000..488e364e5920
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/DownloadUrl.java
@@ -0,0 +1,34 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.resourcemanager.migrate.fluent.models.DownloadUrlInner;
+import java.time.OffsetDateTime;
+
+/**
+ * An immutable client-side representation of DownloadUrl.
+ */
+public interface DownloadUrl {
+ /**
+ * Gets the assessmentReportUrl property: Hyperlink to download report.
+ *
+ * @return the assessmentReportUrl value.
+ */
+ String assessmentReportUrl();
+
+ /**
+ * Gets the expirationTime property: Expiry date of download url.
+ *
+ * @return the expirationTime value.
+ */
+ OffsetDateTime expirationTime();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.migrate.fluent.models.DownloadUrlInner object.
+ *
+ * @return the inner object.
+ */
+ DownloadUrlInner innerModel();
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/DownloadUrlRequest.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/DownloadUrlRequest.java
new file mode 100644
index 000000000000..a3ccdb5ed156
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/DownloadUrlRequest.java
@@ -0,0 +1,63 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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 DownloadUrlRequest model.
+ */
+@Immutable
+public final class DownloadUrlRequest implements JsonSerializable {
+ /**
+ * Creates an instance of DownloadUrlRequest class.
+ */
+ public DownloadUrlRequest() {
+ }
+
+ /**
+ * 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 DownloadUrlRequest from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DownloadUrlRequest 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 DownloadUrlRequest.
+ */
+ public static DownloadUrlRequest fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DownloadUrlRequest deserializedDownloadUrlRequest = new DownloadUrlRequest();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ reader.skipChildren();
+ }
+
+ return deserializedDownloadUrlRequest;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/ManagementDetails.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/ManagementDetails.java
new file mode 100644
index 000000000000..6adda471800e
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/ManagementDetails.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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;
+import java.util.List;
+
+/**
+ * Management details.
+ */
+@Immutable
+public final class ManagementDetails implements JsonSerializable {
+ /*
+ * The management summary name.
+ */
+ private AzureManagementOfferingType name;
+
+ /*
+ * The management suitability summary.
+ */
+ private List readinessSummary;
+
+ /**
+ * Creates an instance of ManagementDetails class.
+ */
+ private ManagementDetails() {
+ }
+
+ /**
+ * Get the name property: The management summary name.
+ *
+ * @return the name value.
+ */
+ public AzureManagementOfferingType name() {
+ return this.name;
+ }
+
+ /**
+ * Get the readinessSummary property: The management suitability summary.
+ *
+ * @return the readinessSummary value.
+ */
+ public List readinessSummary() {
+ return this.readinessSummary;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (readinessSummary() != null) {
+ readinessSummary().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagementDetails from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagementDetails 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 ManagementDetails.
+ */
+ public static ManagementDetails fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagementDetails deserializedManagementDetails = new ManagementDetails();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedManagementDetails.name = AzureManagementOfferingType.fromString(reader.getString());
+ } else if ("readinessSummary".equals(fieldName)) {
+ List readinessSummary
+ = reader.readArray(reader1 -> NameValuePairCloudSuitabilityCommon.fromJson(reader1));
+ deserializedManagementDetails.readinessSummary = readinessSummary;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagementDetails;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrateWorkloadType.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrateWorkloadType.java
new file mode 100644
index 000000000000..e13364e1e08e
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrateWorkloadType.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Migration Workload type.
+ */
+public final class MigrateWorkloadType extends ExpandableStringEnum {
+ /**
+ * Unknown - Migration Workload type.
+ */
+ public static final MigrateWorkloadType UNKNOWN = fromString("Unknown");
+
+ /**
+ * Machine - Migration Workload type.
+ */
+ public static final MigrateWorkloadType MACHINE = fromString("Machine");
+
+ /**
+ * Server - Migration Workload type.
+ */
+ public static final MigrateWorkloadType SERVER = fromString("Server");
+
+ /**
+ * Instance - Migration Workload type.
+ */
+ public static final MigrateWorkloadType INSTANCE = fromString("Instance");
+
+ /**
+ * WebServer - Migration Workload type.
+ */
+ public static final MigrateWorkloadType WEB_SERVER = fromString("WebServer");
+
+ /**
+ * WebApplication - Migration Workload type.
+ */
+ public static final MigrateWorkloadType WEB_APPLICATION = fromString("WebApplication");
+
+ /**
+ * Database - Migration Workload type.
+ */
+ public static final MigrateWorkloadType DATABASE = fromString("Database");
+
+ /**
+ * Host - Migration Workload type.
+ */
+ public static final MigrateWorkloadType HOST = fromString("Host");
+
+ /**
+ * ManagementServer - Migration Workload type.
+ */
+ public static final MigrateWorkloadType MANAGEMENT_SERVER = fromString("ManagementServer");
+
+ /**
+ * Creates a new instance of MigrateWorkloadType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public MigrateWorkloadType() {
+ }
+
+ /**
+ * Creates or finds a MigrateWorkloadType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding MigrateWorkloadType.
+ */
+ public static MigrateWorkloadType fromString(String name) {
+ return fromString(name, MigrateWorkloadType.class);
+ }
+
+ /**
+ * Gets known MigrateWorkloadType values.
+ *
+ * @return known MigrateWorkloadType values.
+ */
+ public static Collection values() {
+ return values(MigrateWorkloadType.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrationDetails.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrationDetails.java
new file mode 100644
index 000000000000..5cde63afa126
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrationDetails.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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;
+import java.util.List;
+
+/**
+ * Migration details.
+ */
+@Immutable
+public final class MigrationDetails implements JsonSerializable {
+ /*
+ * The readiness summary.
+ */
+ private List readinessSummary;
+
+ /*
+ * The migration type
+ */
+ private MigrationType migrationType;
+
+ /**
+ * Creates an instance of MigrationDetails class.
+ */
+ private MigrationDetails() {
+ }
+
+ /**
+ * Get the readinessSummary property: The readiness summary.
+ *
+ * @return the readinessSummary value.
+ */
+ public List readinessSummary() {
+ return this.readinessSummary;
+ }
+
+ /**
+ * Get the migrationType property: The migration type.
+ *
+ * @return the migrationType value.
+ */
+ public MigrationType migrationType() {
+ return this.migrationType;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (readinessSummary() != null) {
+ readinessSummary().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MigrationDetails from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MigrationDetails 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 MigrationDetails.
+ */
+ public static MigrationDetails fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MigrationDetails deserializedMigrationDetails = new MigrationDetails();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("readinessSummary".equals(fieldName)) {
+ List readinessSummary
+ = reader.readArray(reader1 -> NameValuePairCloudSuitabilityCommon.fromJson(reader1));
+ deserializedMigrationDetails.readinessSummary = readinessSummary;
+ } else if ("migrationType".equals(fieldName)) {
+ deserializedMigrationDetails.migrationType = MigrationType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMigrationDetails;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrationPlatform.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrationPlatform.java
new file mode 100644
index 000000000000..32cd1ec71561
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrationPlatform.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Migration Platform.
+ */
+public final class MigrationPlatform extends ExpandableStringEnum {
+ /**
+ * Unknown - Migration Platform.
+ */
+ public static final MigrationPlatform UNKNOWN = fromString("Unknown");
+
+ /**
+ * PaaS - Migration Platform.
+ */
+ public static final MigrationPlatform PAAS = fromString("PaaS");
+
+ /**
+ * IaaS - Migration Platform.
+ */
+ public static final MigrationPlatform IAAS = fromString("IaaS");
+
+ /**
+ * SaaS - Migration Platform.
+ */
+ public static final MigrationPlatform SAAS = fromString("SaaS");
+
+ /**
+ * Creates a new instance of MigrationPlatform value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public MigrationPlatform() {
+ }
+
+ /**
+ * Creates or finds a MigrationPlatform from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding MigrationPlatform.
+ */
+ public static MigrationPlatform fromString(String name) {
+ return fromString(name, MigrationPlatform.class);
+ }
+
+ /**
+ * Gets known MigrationPlatform values.
+ *
+ * @return known MigrationPlatform values.
+ */
+ public static Collection values() {
+ return values(MigrationPlatform.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrationType.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrationType.java
new file mode 100644
index 000000000000..224fb148b483
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/MigrationType.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Migration Type.
+ */
+public final class MigrationType extends ExpandableStringEnum {
+ /**
+ * Unknown - Migration Type.
+ */
+ public static final MigrationType UNKNOWN = fromString("Unknown");
+
+ /**
+ * Replatform - Migration Type.
+ */
+ public static final MigrationType REPLATFORM = fromString("Replatform");
+
+ /**
+ * Rehost - Migration Type.
+ */
+ public static final MigrationType REHOST = fromString("Rehost");
+
+ /**
+ * Retain - Migration Type.
+ */
+ public static final MigrationType RETAIN = fromString("Retain");
+
+ /**
+ * Rearchitect - Migration Type.
+ */
+ public static final MigrationType REARCHITECT = fromString("Rearchitect");
+
+ /**
+ * Creates a new instance of MigrationType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public MigrationType() {
+ }
+
+ /**
+ * Creates or finds a MigrationType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding MigrationType.
+ */
+ public static MigrationType fromString(String name) {
+ return fromString(name, MigrationType.class);
+ }
+
+ /**
+ * Gets known MigrationType values.
+ *
+ * @return known MigrationType values.
+ */
+ public static Collection values() {
+ return values(MigrationType.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/NameValuePairCloudSuitabilityCommon.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/NameValuePairCloudSuitabilityCommon.java
new file mode 100644
index 000000000000..2d58f7a61607
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/NameValuePairCloudSuitabilityCommon.java
@@ -0,0 +1,100 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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 generic name value pair.
+ */
+@Immutable
+public final class NameValuePairCloudSuitabilityCommon
+ implements JsonSerializable {
+ /*
+ * The name.
+ */
+ private CloudSuitabilityCommon name;
+
+ /*
+ * The value.
+ */
+ private Integer value;
+
+ /**
+ * Creates an instance of NameValuePairCloudSuitabilityCommon class.
+ */
+ private NameValuePairCloudSuitabilityCommon() {
+ }
+
+ /**
+ * Get the name property: The name.
+ *
+ * @return the name value.
+ */
+ public CloudSuitabilityCommon name() {
+ return this.name;
+ }
+
+ /**
+ * Get the value property: The value.
+ *
+ * @return the value value.
+ */
+ public Integer value() {
+ return this.value;
+ }
+
+ /**
+ * 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 NameValuePairCloudSuitabilityCommon from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NameValuePairCloudSuitabilityCommon 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 NameValuePairCloudSuitabilityCommon.
+ */
+ public static NameValuePairCloudSuitabilityCommon fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NameValuePairCloudSuitabilityCommon deserializedNameValuePairCloudSuitabilityCommon
+ = new NameValuePairCloudSuitabilityCommon();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedNameValuePairCloudSuitabilityCommon.name
+ = CloudSuitabilityCommon.fromString(reader.getString());
+ } else if ("value".equals(fieldName)) {
+ deserializedNameValuePairCloudSuitabilityCommon.value = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNameValuePairCloudSuitabilityCommon;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/NameValuePairCostType.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/NameValuePairCostType.java
new file mode 100644
index 000000000000..076c1b618916
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/NameValuePairCostType.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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 generic name value pair.
+ */
+@Immutable
+public final class NameValuePairCostType implements JsonSerializable {
+ /*
+ * The name.
+ */
+ private CostType name;
+
+ /*
+ * The value.
+ */
+ private Double value;
+
+ /**
+ * Creates an instance of NameValuePairCostType class.
+ */
+ private NameValuePairCostType() {
+ }
+
+ /**
+ * Get the name property: The name.
+ *
+ * @return the name value.
+ */
+ public CostType name() {
+ return this.name;
+ }
+
+ /**
+ * Get the value property: The value.
+ *
+ * @return the value value.
+ */
+ public Double value() {
+ return this.value;
+ }
+
+ /**
+ * 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 NameValuePairCostType from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NameValuePairCostType 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 NameValuePairCostType.
+ */
+ public static NameValuePairCostType fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NameValuePairCostType deserializedNameValuePairCostType = new NameValuePairCostType();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedNameValuePairCostType.name = CostType.fromString(reader.getString());
+ } else if ("value".equals(fieldName)) {
+ deserializedNameValuePairCostType.value = reader.getNullable(JsonReader::getDouble);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNameValuePairCostType;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/NameValuePairSavingsType.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/NameValuePairSavingsType.java
new file mode 100644
index 000000000000..8079a262716b
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/NameValuePairSavingsType.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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 generic name value pair.
+ */
+@Immutable
+public final class NameValuePairSavingsType implements JsonSerializable {
+ /*
+ * The name.
+ */
+ private SavingsType name;
+
+ /*
+ * The value.
+ */
+ private Double value;
+
+ /**
+ * Creates an instance of NameValuePairSavingsType class.
+ */
+ private NameValuePairSavingsType() {
+ }
+
+ /**
+ * Get the name property: The name.
+ *
+ * @return the name value.
+ */
+ public SavingsType name() {
+ return this.name;
+ }
+
+ /**
+ * Get the value property: The value.
+ *
+ * @return the value value.
+ */
+ public Double value() {
+ return this.value;
+ }
+
+ /**
+ * 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 NameValuePairSavingsType from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NameValuePairSavingsType 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 NameValuePairSavingsType.
+ */
+ public static NameValuePairSavingsType fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NameValuePairSavingsType deserializedNameValuePairSavingsType = new NameValuePairSavingsType();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedNameValuePairSavingsType.name = SavingsType.fromString(reader.getString());
+ } else if ("value".equals(fieldName)) {
+ deserializedNameValuePairSavingsType.value = reader.getNullable(JsonReader::getDouble);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNameValuePairSavingsType;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/Operation.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/Operation.java
new file mode 100644
index 000000000000..c541d46c08f5
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/Operation.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.resourcemanager.migrate.fluent.models.OperationInner;
+
+/**
+ * An immutable client-side representation of Operation.
+ */
+public interface Operation {
+ /**
+ * Gets 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.
+ */
+ String name();
+
+ /**
+ * Gets the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for Azure Resource Manager/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ Boolean isDataAction();
+
+ /**
+ * Gets the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ OperationDisplay display();
+
+ /**
+ * Gets 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.
+ */
+ Origin origin();
+
+ /**
+ * Gets the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
+ *
+ * @return the actionType value.
+ */
+ ActionType actionType();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.migrate.fluent.models.OperationInner object.
+ *
+ * @return the inner object.
+ */
+ OperationInner innerModel();
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/OperationDisplay.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/OperationDisplay.java
new file mode 100644
index 000000000000..8f4ee02055c1
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/OperationDisplay.java
@@ -0,0 +1,136 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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;
+
+/**
+ * Localized display information for and operation.
+ */
+@Immutable
+public final class OperationDisplay implements JsonSerializable {
+ /*
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or
+ * "Microsoft Compute".
+ */
+ private String provider;
+
+ /*
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or
+ * "Job Schedule Collections".
+ */
+ private String resource;
+
+ /*
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g.
+ * "Create or Update Virtual Machine", "Restart Virtual Machine".
+ */
+ private String operation;
+
+ /*
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
+ */
+ private String description;
+
+ /**
+ * Creates an instance of OperationDisplay class.
+ */
+ private OperationDisplay() {
+ }
+
+ /**
+ * Get the provider property: The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring
+ * Insights" or "Microsoft Compute".
+ *
+ * @return the provider value.
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Get the resource property: The localized friendly name of the resource type related to this operation. E.g.
+ * "Virtual Machines" or "Job Schedule Collections".
+ *
+ * @return the resource value.
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Get the operation property: The concise, localized friendly name for the operation; suitable for dropdowns. E.g.
+ * "Create or Update Virtual Machine", "Restart Virtual Machine".
+ *
+ * @return the operation value.
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Get the description property: The short, localized friendly description of the operation; suitable for tool tips
+ * and detailed views.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * 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 OperationDisplay from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationDisplay 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 OperationDisplay.
+ */
+ public static OperationDisplay fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationDisplay deserializedOperationDisplay = new OperationDisplay();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provider".equals(fieldName)) {
+ deserializedOperationDisplay.provider = reader.getString();
+ } else if ("resource".equals(fieldName)) {
+ deserializedOperationDisplay.resource = reader.getString();
+ } else if ("operation".equals(fieldName)) {
+ deserializedOperationDisplay.operation = reader.getString();
+ } else if ("description".equals(fieldName)) {
+ deserializedOperationDisplay.description = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationDisplay;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/Operations.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/Operations.java
new file mode 100644
index 000000000000..55c0aab29b73
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/Operations.java
@@ -0,0 +1,35 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of Operations.
+ */
+public interface Operations {
+ /**
+ * 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}.
+ */
+ 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}.
+ */
+ PagedIterable list(Context context);
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/Origin.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/Origin.java
new file mode 100644
index 000000000000..81f94e362d26
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/Origin.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value
+ * is "user,system".
+ */
+public final class Origin extends ExpandableStringEnum {
+ /**
+ * Indicates the operation is initiated by a user.
+ */
+ public static final Origin USER = fromString("user");
+
+ /**
+ * Indicates the operation is initiated by a system.
+ */
+ public static final Origin SYSTEM = fromString("system");
+
+ /**
+ * Indicates the operation is initiated by a user or system.
+ */
+ public static final Origin USER_SYSTEM = fromString("user,system");
+
+ /**
+ * Creates a new instance of Origin value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public Origin() {
+ }
+
+ /**
+ * Creates or finds a Origin from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding Origin.
+ */
+ public static Origin fromString(String name) {
+ return fromString(name, Origin.class);
+ }
+
+ /**
+ * Gets known Origin values.
+ *
+ * @return known Origin values.
+ */
+ public static Collection values() {
+ return values(Origin.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/ProvisioningState.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/ProvisioningState.java
new file mode 100644
index 000000000000..661f6af3216b
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/ProvisioningState.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The status of the current operation.
+ */
+public final class ProvisioningState extends ExpandableStringEnum {
+ /**
+ * Resource provisioning Successful.
+ */
+ public static final ProvisioningState SUCCEEDED = fromString("Succeeded");
+
+ /**
+ * Resource provisioning Failed.
+ */
+ public static final ProvisioningState FAILED = fromString("Failed");
+
+ /**
+ * Resource provisioning Canceled.
+ */
+ public static final ProvisioningState CANCELED = fromString("Canceled");
+
+ /**
+ * Resource is being Provisioned.
+ */
+ public static final ProvisioningState PROVISIONING = fromString("Provisioning");
+
+ /**
+ * Resource is being Updated.
+ */
+ public static final ProvisioningState UPDATING = fromString("Updating");
+
+ /**
+ * Resource is being Deleted.
+ */
+ public static final ProvisioningState DELETING = fromString("Deleting");
+
+ /**
+ * Resource is being Accepted.
+ */
+ public static final ProvisioningState ACCEPTED = fromString("Accepted");
+
+ /**
+ * Creates a new instance of ProvisioningState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ProvisioningState() {
+ }
+
+ /**
+ * Creates or finds a ProvisioningState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ProvisioningState.
+ */
+ public static ProvisioningState fromString(String name) {
+ return fromString(name, ProvisioningState.class);
+ }
+
+ /**
+ * Gets known ProvisioningState values.
+ *
+ * @return known ProvisioningState values.
+ */
+ public static Collection values() {
+ return values(ProvisioningState.class);
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/SavingsDetailsCommon.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/SavingsDetailsCommon.java
new file mode 100644
index 000000000000..43211b3465f5
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/SavingsDetailsCommon.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.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;
+import java.util.List;
+
+/**
+ * The savings details.
+ */
+@Immutable
+public final class SavingsDetailsCommon implements JsonSerializable {
+ /*
+ * The savings options.
+ */
+ private SavingsOptions savingOptions;
+
+ /*
+ * The sku cost details per azure offer type.
+ */
+ private List savingsDetail;
+
+ /**
+ * Creates an instance of SavingsDetailsCommon class.
+ */
+ private SavingsDetailsCommon() {
+ }
+
+ /**
+ * Get the savingOptions property: The savings options.
+ *
+ * @return the savingOptions value.
+ */
+ public SavingsOptions savingOptions() {
+ return this.savingOptions;
+ }
+
+ /**
+ * Get the savingsDetail property: The sku cost details per azure offer type.
+ *
+ * @return the savingsDetail value.
+ */
+ public List savingsDetail() {
+ return this.savingsDetail;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (savingsDetail() != null) {
+ savingsDetail().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SavingsDetailsCommon from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SavingsDetailsCommon 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 SavingsDetailsCommon.
+ */
+ public static SavingsDetailsCommon fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SavingsDetailsCommon deserializedSavingsDetailsCommon = new SavingsDetailsCommon();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("savingOptions".equals(fieldName)) {
+ deserializedSavingsDetailsCommon.savingOptions = SavingsOptions.fromString(reader.getString());
+ } else if ("savingsDetail".equals(fieldName)) {
+ List savingsDetail
+ = reader.readArray(reader1 -> NameValuePairSavingsType.fromJson(reader1));
+ deserializedSavingsDetailsCommon.savingsDetail = savingsDetail;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSavingsDetailsCommon;
+ });
+ }
+}
diff --git a/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/SavingsOptions.java b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/SavingsOptions.java
new file mode 100644
index 000000000000..ada7eed70ebf
--- /dev/null
+++ b/sdk/migrate/azure-resourcemanager-migrate/src/main/java/com/azure/resourcemanager/migrate/models/SavingsOptions.java
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.migrate.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The savings options.
+ */
+public final class SavingsOptions extends ExpandableStringEnum